Rusty is waiting. Start by giving a biscuit to see a natural reflex.
What happened
- Nothing yet. Each time you present a sound, that's one trial.
Rusty the dog drools for biscuits. Can you teach Rusty to drool at a sound? Click a stimulus on the right to present it to Rusty, then watch Rusty and the graphs.
Rusty is waiting. Start by giving a biscuit to see a natural reflex.
0 of 5 done. They check themselves as you go.
This is acquisition: building a new association.
Goal: get the bell's strength to 0.80.
This is extinction: the CS keeps coming but the US stops.
Goal: bring the bell's strength down to 0.15 or less.
This is spontaneous recovery.
Goal: ring the bell after a rest that brought some of its strength back.
Use “Treat!” for this one, and watch the timing strip under Rusty each time.
Goal: try all three, a few times each, and compare the graph. Press Start over between them so each one starts from zero.
This is blocking, discovered by Leon Kamin in the late 1960s.
Goal: “Treat!” stays below 0.25 even after 5 pairings with the biscuit.
Something that causes no particular response at first. Here: the bell or “Treat!” before training.
Something that triggers a response with no learning needed. Here: the biscuit.
The automatic response to the US. Here: drooling at the biscuit.
A neutral stimulus that now triggers a response because it was paired with the US. Here: the bell after training.
The learned response to the CS. Here: drooling at the bell.
Every time you present a sound, that is one trial. Each sound has a strength, V, from 0 to 1, shown in its little graph. After every trial the strength of each sound that was present changes by the Rescorla-Wagner rule:
Learning is driven by surprise. Early pairings are surprising, so V jumps. Later pairings are expected, so V barely moves. In blocking, the bell already predicts the biscuit, so on Bell + “Treat!” trials there is almost no surprise left for “Treat!” to learn from. Drooling to a sound is drawn in proportion to ΣV.
λ is multiplied by the timing factor above. A biscuit 0.5 to 2 seconds after the sound gets full credit. Credit falls off gradually after that and is close to zero by 10 seconds, when the trial ends as an extinction trial. Very short gaps are weak, and a biscuit before the sound (backward) teaches nothing. Because timing scales λ rather than the learning rate, badly timed pairings level off at a lower strength instead of slowly reaching the top. That matches the finding that long delays produce weaker conditioning, not just slower conditioning.
Studies that vary the interstimulus interval find an inverted U: little or no conditioning when the CS and US are simultaneous or backward, a peak at a short forward delay, and a gradual decline at longer delays (Smith, Coleman & Gormezano, 1969). The best delay depends on the response being learned. Eyelid conditioning peaks at a fraction of a second, salivation and fear conditioning tolerate several seconds, and taste aversion works across hours. The best window here is stretched to 0.5–2 seconds so that a person clicking two buttons can hit it.
Backward pairings produce no learning here, which is what the Rescorla-Wagner model predicts. Real animals are messier. A few backward pairings can produce weak excitation, while many backward pairings usually make the CS a conditioned inhibitor, a signal that no food is coming for a while (Heth, 1976; Chang, Blaisdell & Miller, 2003).
A backward trial stays backward only if no biscuit follows the sound. If the next biscuit comes within 10 seconds, the sound also came just before that biscuit, so the demo counts it as a forward pairing. Real experiments space backward trials far apart for the same reason.
The Rescorla-Wagner model predicts no spontaneous recovery: extinction just lowers V, and V stays low. Real animals recover part of an extinguished response after time passes (Pavlov, 1927; Rescorla, 2004), which suggests extinction is new learning laid over the old rather than erasure. So the demo adds recovery by hand: Rest overnight gives back half of the strength lost to extinction since the last rest. Repeated rounds of extinction and rest recover less each time.
Other simplifications: strengths stay between 0 and 1, so the demo shows no conditioned inhibition; extinction uses the same rate as acquisition; and relearning after extinction isn't faster, though in real animals it usually is.