Schedules of reinforcement
Reinforcing every response teaches fastest, but partial schedules, fixed or variable and by ratio or interval, keep behavior going longer, the variable ratio most of all, while uncontrollable punishment can teach learned helplessness.
From AP Psychology.