Find a course

Module 3: Learning and MemoryLesson 6 of 1013 min

How We Learn: Conditioning

Understand classical and operant conditioning, reinforcement and punishment, and how these processes shape habits, phobias, apps and games.

Step 1 of 11Learn

Pavlov's accidental discovery

In the 1890s, Russian scientist Ivan Pavlov was studying digestion in dogs. He noticed something annoying: the dogs started drooling before food arrived, when they heard the footsteps of the assistant who usually fed them. Pavlov realized he'd found a basic form of learning.

He tested it. Food naturally makes dogs salivate; no learning needed. Pavlov rang a sound (often described as a bell) just before giving food, many times. Eventually, the sound alone made the dogs salivate. This is classical conditioning: learning that one thing predicts another.

The terms:

  • Unconditioned stimulus (UCS): naturally triggers a response (food).
  • Unconditioned response (UCR): the natural response (drooling at food).
  • Neutral stimulus: at first triggers nothing special (the bell).
  • After pairing, the bell becomes a conditioned stimulus (CS) and drooling to it is a conditioned response (CR).

You've been classically conditioned too. Maybe your heart jumps at the sound of a notification, or you feel queasy at the smell of a food that once made you sick. Ads use the same principle, pairing products with attractive people, exciting music or happy scenes so that good feelings attach to the brand.

If the bell is rung again and again without food, the response fades: extinction.

Step 2 of 11Practice · Match the pairs

In Pavlov's experiment, match each term to what it was.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Unconditioned stimulus
  2. Unconditioned response
  3. Conditioned stimulus
  4. Conditioned response

Step 3 of 11Practice · Diagram

Classical conditioning in three phases

Tap the phase where learning actually happens.

Tap the shape that answers the question, then press Check.

Classical conditioning in three phasesProcess diagram: Before: bell brings nothing → Before: food brings drool → During: bell, then food, many times → After: bell alone brings drool → Later: bell without food, drool fades.Before: bell bringsnothingBefore: food bringsdroolDuring: bell, thenfood, many timesAfter: bell alonebrings droolLater: bell withoutfood, drool fades
Before: bell brings nothing

The bell is a neutral stimulus; the dog just turns its head.

Before: food brings drool

No learning needed; this reflex is built in.

During: bell, then food, many times

Pairing teaches the dog that the bell predicts food.

After: bell alone brings drool

The bell is now a conditioned stimulus.

Later: bell without food, drool fades

Extinction: the prediction stops being true, so the response weakens.

Step 4 of 11Learn

Fears can be learned, and unlearned

In 1920, psychologist John B. Watson and his student Rosalie Rayner conducted the "Little Albert" study. They showed a baby a white rat, which he wasn't afraid of, and then made a loud, frightening noise each time. Soon Albert cried at the sight of the rat, and even at other furry things like a rabbit. Spreading a response to similar stimuli is called generalization.

The study would never be allowed today: Albert was frightened on purpose, and his fear was never removed. Modern ethics rules require informed consent, protection from harm and the right to withdraw.

But the idea that fears can be learned led to effective treatments. If a fear was learned through association, it can be reduced through new learning. In exposure therapy, a person faces the feared thing gradually and safely, in small steps, until the fear response fades. Someone afraid of dogs might start by looking at photos, then watching a dog from far away, then standing near a calm dog, then petting one. Exposure-based therapy is among the most effective treatments for phobias and many anxiety problems.

It also explains why avoidance keeps fears alive: if you always avoid the feared thing, you never learn that it's safe.

Step 5 of 11Practice · True or false

Avoiding something you fear usually helps the fear fade over time.

Step 6 of 11Diagram

An exposure ladder for a fear of dogs

An exposure ladder for a fear of dogsProcess diagram: Look at dog photos → Watch dog videos → See a dog across a park → Stand near a calm, leashed dog → Pet a calm dog.Look at dog photosWatch dog videosSee a dog across aparkStand near a calm,leashed dogPet a calm dog

Tap a shape with to see more.

Example only. Real exposure therapy is planned with a trained therapist and goes at the person's pace.
Look at dog photos
Watch dog videos
See a dog across a park
Stand near a calm, leashed dog

Stay until the fear drops noticeably before moving on.

Pet a calm dog

Each rung teaches the brain new learning: this is safe.

Step 7 of 11Learn

Operant conditioning: learning from consequences

Classical conditioning is about things that happen to you. Operant conditioning, studied by B. F. Skinner, is about how the consequences of your actions change how often you do them.

  • Reinforcement makes a behavior more likely.
  • Positive reinforcement adds something pleasant: praise for helping, points in a game, likes on a post.
  • Negative reinforcement removes something unpleasant: you buckle your seatbelt and the annoying beeping stops. "Negative" means taking away, not "bad."
  • Punishment makes a behavior less likely.
  • Positive punishment adds something unpleasant: extra chores for breaking a rule.
  • Negative punishment takes away something pleasant: losing phone time.

The most common confusion: negative reinforcement is not punishment. It increases behavior by removing something unpleasant.

Timing matters too. Rewards and consequences that come immediately work far better than delayed ones, which is part of why it's so hard to choose studying, with a reward months away, over a video game with rewards every few seconds.

Punishment alone often works poorly. It may stop a behavior for a while, but it doesn't teach what to do instead, and it can create fear or resentment. Reinforcing the behavior you want usually works better.

Step 8 of 11Practice · Sort into groups

Classify each example.

Tap an item, then tap its group (or drag it there).

Step 9 of 11Practice · Diagram

The four consequences in one grid

Your parent stops nagging the moment you start your homework, and you start sooner the next day. Which box is this?

Tap the shape that answers the question, then press Check.

The four consequences in one gridTwo-by-two matrix: Positive reinforcement, Negative reinforcement, Positive punishment, Negative punishment.Positive reinforcementNegative reinforcementPositive punishmentNegative punishmentWhat happensSomething addedSomething removedEffect on behaviorLess likelyMore likely
Positive reinforcement

Add something pleasant: praise, points, likes.

Negative reinforcement

Remove something unpleasant: the beeping stops, the headache goes.

Positive punishment

Add something unpleasant: extra chores, a ticket.

Negative punishment

Remove something pleasant: lost phone time, benched.

Step 10 of 11Learn

Schedules of reinforcement

Skinner found that how often rewards come changes behavior a lot:

  • Continuous reinforcement: a reward every time. Learning is fast, but the behavior stops quickly when rewards stop.
  • Fixed-ratio: a reward after a set number of responses, such as a free drink after every 10 coffees.
  • Fixed-interval: a reward after a set amount of time, such as a weekly allowance. Effort tends to spike just before the reward is due, like studying only right before a scheduled test.
  • Variable-ratio: a reward after an unpredictable number of responses. This produces the highest, most persistent behavior, and it's the hardest to stop.

Variable-ratio schedules power slot machines, loot boxes, gacha games and, some argue, social media feeds. You never know whether the next pull, opened box or refresh will bring something exciting, so you keep going. Many app designers use these principles on purpose.

Knowing this gives you some power back. When you catch yourself refreshing a feed for the twentieth time, you can name what's happening: a variable reward schedule doing exactly what it was designed to do.

Step 11 of 11Practice · Choose one

Which reinforcement schedule explains why loot boxes and slot machines are so hard to stop using?