Psychology and Sociology, unit 7C: Attitude and behavior change
Operant conditioning
12 min lesson. Free lesson. Start this lesson free
Summary
Operant conditioning is learning from consequences. A voluntary behavior becomes more likely when it is followed by reinforcement, and less likely when it is followed by punishment. Thorndike called this the law of effect. Skinner studied it with animals pressing levers for food. "Positive" and "negative" describe whether a stimulus is added or removed. "Reinforcement" and "punishment" describe whether the behavior increases or decreases. The schedule is how often reinforcement comes. It shapes how fast and how steadily a behavior is performed. It also shapes how long the behavior lasts once reinforcement stops. Shaping builds complex behaviors step by step. Escape and avoidance learning explain how people learn to end or prevent unpleasant situations.
Test your knowledge
Read the idea, then try it.
Name an operant consequence with two questions. First, is a stimulus added (positive) or removed (negative)? Second, does the behavior become more frequent (reinforcement) or less frequent (punishment)? "Positive" and "negative" mean added and removed, not good and bad.
- Positive reinforcement: praise is added after homework, and homework increases.
- Negative reinforcement: aspirin removes a headache, and aspirin taking increases.
- Positive punishment: extra chores are added after lying, and lying decreases.
- Negative punishment: points are removed after rule breaking, and rule breaking decreases.
Sort each case by the contingency it shows.
Tap an item, then tap the group it belongs in.
Nothing here yet.
Nothing here yet.
Nothing here yet.
Nothing here yet.
Key concepts
From the law of effect to operant conditioning
Edward Thorndike placed cats in puzzle boxes. Behaviors followed by escape and food were repeated more quickly over trials. Other behaviors dropped away. His law of effect states that behaviors followed by satisfying consequences become more likely. Behaviors followed by unpleasant consequences become less likely. B. F. Skinner developed this into operant conditioning. He studied how rats and pigeons in an operant chamber (Skinner box) learned to press levers or peck keys for food. Operant conditioning is also called instrumental conditioning. Classical and operant conditioning are the two types of associative learning. In associative learning, ideas, stimuli, or behaviors become linked to one another.
The key contrast with classical conditioning:
| Classical conditioning | Operant conditioning | |
|---|---|---|
| What is learned | an association between two stimuli | an association between a behavior and its consequence |
| Type of behavior | involuntary, reflexive responses | voluntary behaviors (operants) |
| Timing | the stimulus comes before the response | the consequence comes after the behavior |
| Example | salivating to a tone | pressing a lever for food |
Reinforcement and punishment
The four basic contingencies come from two questions. Is a stimulus added or removed? Does the behavior increase or decrease?
| Behavior increases (reinforcement) | Behavior decreases (punishment) | |
|---|---|---|
| Stimulus added (positive) | positive reinforcement: praise after finishing homework | positive punishment: a scolding or extra chores after lying |
| Stimulus removed (negative) | negative reinforcement: taking aspirin removes a headache, so aspirin taking increases | negative punishment: losing phone privileges for breaking curfew. Time out and response cost (losing points or tokens) are named forms |
"Positive" and "negative" mean added and removed, not good and bad. Negative reinforcement is the most commonly confused term. It increases a behavior by removing something unpleasant. It is not punishment.
Primary and conditioned reinforcers
- Primary reinforcers are reinforcing without learning because they meet biological needs: food, water, warmth, relief from pain, sexual contact.
- Conditioned (secondary) reinforcers become reinforcing by association with primary reinforcers. Examples are money, grades, praise, and tokens. They work because they have been paired with, or can be exchanged for, primary reinforcers. This is classical conditioning at work inside operant learning.
Reinforcers and punishers work best when they come immediately after the behavior. Delays weaken learning. This is why delayed rewards, such as the health benefits of exercise, compete poorly with immediate ones. An activity a person prefers can reinforce a less preferred one. This is the Premack principle. For example, finishing homework is reinforced by getting to play.
A token economy is used in classrooms, hospitals, and psychiatric units. It gives tokens for desired behaviors. The tokens are later exchanged for privileges or items. Clicker training of animals uses a click, paired with food, as a conditioned reinforcer. The click can be delivered instantly.
Punishment and its limits
Punishment decreases a behavior, either by adding something unpleasant (positive punishment) or removing something pleasant (negative punishment). It works best when it is immediate, consistent, and paired with reinforcement of an alternative behavior. Its limits are well documented:
- It suppresses a behavior rather than removing it. The behavior can return when the punisher is absent.
- It teaches what not to do but not what to do.
- It can produce fear, anxiety, and aggression.
- Physical punishment models aggression.
For these reasons, reinforcing desired behavior is usually more effective.
Shaping
Shaping builds a behavior that the organism would rarely perform on its own by reinforcing successive approximations of it. To teach a rat to press a lever, the trainer raises the requirement at each step:
- Reinforce turning toward the lever.
- Reinforce approaching it.
- Reinforce touching it.
- Reinforce pressing it.
Shaping is how animals learn complex tricks, how children learn many skills, and how therapists build new behaviors in autism and rehabilitation. Chaining is a related technique. It links already learned behaviors into a sequence, with each step serving as the cue for the next. Accidental reinforcement can also produce superstitious behavior. Skinner's pigeons were fed at fixed times regardless of what they did. They repeated whatever they happened to be doing when food arrived.
Extinction in operant conditioning
When a behavior is no longer reinforced, it gradually decreases. This is operant extinction. Often the behavior first increases briefly in rate or intensity. This is an extinction burst. An example is pushing an elevator button repeatedly when it fails to respond. As in classical conditioning, spontaneous recovery can occur after a rest.
Reinforcement schedules
Continuous reinforcement means every response is reinforced. It produces the fastest learning but the fastest extinction. Partial (intermittent) reinforcement produces slower learning. The behavior is much more resistant to extinction. This is the partial reinforcement effect. The four basic partial schedules combine two choices. The first is ratio (based on number of responses) or interval (based on time). The second is fixed or variable.
| Schedule | Rule | Response pattern | Resistance to extinction | Example |
|---|---|---|---|---|
| Fixed ratio (FR) | reinforcement after a set number of responses | high rate, with a brief pause after each reinforcement | moderate | piecework pay, a coffee card's tenth drink free |
| Variable ratio (VR) | reinforcement after an unpredictable number of responses around an average | highest, steady rate with no pauses | highest | slot machines, sales calls |
| Fixed interval (FI) | reinforcement for the first response after a set time | scalloped pattern: slow after reinforcement, speeding up as the time nears | lowest of the four | checking for a scheduled delivery, studying before scheduled exams |
| Variable interval (VI) | reinforcement for the first response after an unpredictable time | moderate, steady rate | high | checking email or social media, pop quizzes |
Response patterns like these are recorded with a cumulative recorder. The exam often shows the resulting graphs. The firm points are that variable ratio is most resistant to extinction and fixed interval least. The middle order varies by source. Ratio schedules give higher response rates than interval schedules, because more responding brings more reinforcement. Variable schedules give steadier responding and more resistance to extinction than fixed ones. The organism cannot tell when the next reinforcement will come. So a long run without reinforcement is not a clear signal that reinforcement has stopped. This is why gambling, which runs on a variable ratio schedule, is so persistent.
Stimulus control
A behavior often pays off only in certain situations. Organisms learn to respond to the cue that signals reinforcement is available. This cue is a discriminative stimulus. A rat reinforced for pressing only when a light is on soon presses mostly when the light is on. A driver goes at a green light and stops at a red one. As in classical conditioning, responses generalize to similar cues. They can also be trained to discriminate between them.
Escape and avoidance learning
Both are forms of negative reinforcement. They are learned when a behavior ends or prevents an unpleasant stimulus. Behavior motivated by a wish to avoid something unpleasant is called aversive control. It takes two forms, escape and avoidance.
- Escape learning: the behavior ends an aversive stimulus already present. Examples are leaving a room to get away from a loud alarm, or taking an antacid to stop heartburn.
- Avoidance learning: the behavior prevents an aversive stimulus before it starts, often after a warning signal. Examples are leaving early to avoid traffic, or studying to avoid a bad grade.
Avoidance often develops from escape. A rat first learns to jump a barrier to end a shock. It then learns to jump when a warning light comes on, before the shock begins. Two factor theory, proposed by O. H. Mowrer, explains this in two steps:
- The warning signal becomes frightening through classical conditioning.
- Avoiding the signal is negatively reinforced by the drop in fear. This is an operant process.
Avoided situations are never encountered, so the fear is never extinguished. This helps explain why phobias and avoidance in anxiety disorders persist.
Learned helplessness is the opposite outcome. Seligman and Maier showed it in dogs. Animals exposed to inescapable shocks later fail to escape even when escape becomes possible. It has been proposed as a model of some features of depression.
Check yourself
Another question from this lesson. Answer to see the explanation.
Each time a third grader calls out answers without raising his hand, his teacher turns to him and scolds him in front of the class. Over the next several weeks, he calls out more often. Which contingency is at work?
Worked examples
Classifying consequences
For each, name the contingency:
- 1.
- (a) A parent stops nagging when a teen cleans their room, and the teen cleans more often.
- 2.
- (b) A child loses recess for hitting, and hitting decreases.
- 3.
- (c) A dog gets a treat for sitting.
- 4.
- (a) Nagging, an unpleasant stimulus, is removed, and cleaning increases. This is negative reinforcement.
- 5.
- (b) Recess, a pleasant stimulus, is removed, and hitting decreases. This is negative punishment.
- 6.
- (c) A treat is added, and sitting increases. This is positive reinforcement.
Choosing a schedule
A manager wants employees to make sales calls at a high, steady rate that continues even if bonuses become rare. Which schedule?
- 1.
- High, steady responding comes from ratio schedules. Variable schedules resist extinction.
- 2.
- A variable ratio schedule gives both. The bonus comes after an unpredictable number of calls.
Reading a cumulative record
A pigeon's pecking rate drops right after each reinforcement and climbs until the next. Reinforcement comes exactly every 60 seconds. Which schedule is this?
- 1.
- Reinforcement depends on time, not number of pecks. So it is an interval schedule.
- 2.
- The pecking speeds up faster and faster as each 60 seconds nears. This is a scalloped pattern. With the predictable timing, it indicates a fixed interval schedule.
Escape or avoidance
A student with test anxiety starts skipping class on exam days, and their anxiety on those mornings goes away. Over time they skip more. Explain.
- 1.
- Skipping prevents the feared situation before it begins. This is avoidance learning.
- 2.
- The relief from anxiety negatively reinforces skipping.
- 3.
- The student never faces the exam, so the fear does not extinguish. The avoidance persists.
Common mistakes and exam traps
Negative reinforcement increases a behavior by removing something unpleasant. It is not punishment.
"Positive" and "negative" mean adding and removing, not good and bad.
Reinforcement always increases a behavior and punishment always decreases it. Decide by what happens to the behavior.
Variable ratio schedules give the highest rate and the most resistance to extinction. Fixed interval gives the scalloped pattern and the least resistance of the partial schedules.
Continuous reinforcement is best for learning a new behavior quickly. Partial reinforcement is best for making it last.
Shaping reinforces successive approximations. It is not the same as chaining, which links already learned behaviors in sequence.
An extinction burst is a brief rise in the behavior when reinforcement stops. It is a normal part of operant extinction.
Escape ends an aversive stimulus already present. Avoidance prevents it from starting.
Operant conditioning changes voluntary behaviors. Classical conditioning changes reflexive responses to stimuli.
Key terms
- Operant conditioning
learning in which the consequences of a voluntary behavior change how often it occurs.
- Law of effect
Thorndike's principle that behaviors followed by satisfying consequences become more likely.
- Reinforcement
a consequence that increases the likelihood of a behavior.
- Punishment
a consequence that decreases the likelihood of a behavior.
- Positive reinforcement
adding a pleasant stimulus to increase a behavior.
- Negative reinforcement
removing an unpleasant stimulus to increase a behavior.
- Primary reinforcer
a stimulus that is reinforcing without learning, such as food.
- Conditioned (secondary) reinforcer
a stimulus that becomes reinforcing through association with a primary reinforcer, such as money.
- Shaping
reinforcing successive approximations of a target behavior.
- Partial reinforcement effect
the greater resistance to extinction of behaviors learned under intermittent reinforcement.
- Discriminative stimulus
a cue that signals that a behavior will be reinforced.
- Escape learning
learning a behavior that ends an aversive stimulus.
- Avoidance learning
learning a behavior that prevents an aversive stimulus.
- Learned helplessness
failing to escape an aversive situation after earlier experience of uncontrollable aversive events.
Connections
This lesson builds on classical conditioning, which supplies conditioned reinforcers and the fear in two factor theory. It leads to the cognitive processes in associative learning (latent learning, expectancy) and the biological constraints on learning (instinctive drift) in this step, then to observational learning, behavior change and motivation (incentive theory), the reward pathway and addiction, behavioral therapies for anxiety and depression, and learned helplessness as a model of depression.
Common questions
What is operant conditioning?
Operant conditioning is learning from consequences: a voluntary behavior becomes more likely when followed by reinforcement and less likely when followed by punishment. Thorndike called this the law of effect, and Skinner studied it with rats and pigeons pressing levers or pecking keys for food. It is also called instrumental conditioning.
What is the difference between classical and operant conditioning?
Classical conditioning links two stimuli and changes involuntary, reflexive responses, such as salivating to a tone, while operant conditioning links a behavior to its consequence and changes voluntary behaviors, such as pressing a lever for food. In classical conditioning the stimulus comes before the response, and in operant conditioning the consequence comes after the behavior.
What is the difference between negative reinforcement and punishment?
Negative reinforcement increases a behavior by removing something unpleasant, while punishment decreases a behavior. Taking aspirin to remove a headache is negative reinforcement, because aspirin taking increases. "Positive" and "negative" mean a stimulus is added or removed, not good and bad, and reinforcement always increases a behavior.
What is shaping in operant conditioning?
Shaping builds a behavior the organism would rarely perform on its own by reinforcing successive approximations of it. To teach a rat to press a lever, the trainer first reinforces turning toward the lever, then approaching it, then touching it, and finally pressing it. Chaining is different: it links already learned behaviors into a sequence.
Which reinforcement schedule produces the most persistent behavior?
The variable ratio schedule gives the highest rate of response and the most resistance to extinction. Fixed interval gives a scalloped pattern and the least resistance among the partial schedules. Continuous reinforcement is best for learning a new behavior quickly, while partial reinforcement is best for making it last.
Take this lesson in MedCoach
A free account teaches this lesson one idea at a time with a question after each, brings it back for review before you forget it, and has a tutor for when you are stuck.
Free to start. No credit card required.
More lessons in Attitude and behavior change
- Habituation and dishabituation
- Classical conditioning
- Cognitive processes in associative learning
- Biological processes that affect associative learning
- Modeling and observational learning
- Biological processes in observational learning, mirror neurons and vicarious emotion
- Applying observational learning to explain behavior
- The elaboration likelihood model of persuasion
- Social cognitive theory and self-efficacy
- Factors that affect attitude change