Sub topic 13
Contingency: Predictiveness over Mere Pairing
What this chapter assumes
You should know the terms CS, US, CR and UR, and what acquisition and extinction are. You should also be comfortable reading a simple graph of change over trials. Earlier chapters showed that a CS paired with a US produces a CR. This chapter asks a sharper question: is pairing enough, or does the CS have to carry information?
The contiguity view and its problem
The early account of conditioning was contiguity. If two events occur close together in time, the learner links them. On this view, the number of CS-US pairings is what drives learning.
Contiguity cannot explain a set of findings. A CS can be paired with a US many times and still produce little conditioning. The reason is that the learner is sensitive to whether the CS tells it something about the US.
Contingency is the dependence of one event on another. A CS-US contingency means the US is more likely when the CS is present than when it is absent. A CS is predictive when it improves the learner's forecast of the US.
Rescorla's random-control experiment
Robert Rescorla (1968) tested contiguity directly. Rats heard a tone and sometimes received a mild shock. Every group got the same number of tone-shock pairings. The groups differed in how often shocks occurred when the tone was not on.
- Group 1: shocks occurred only during the tone. The tone was a perfect predictor.
- Group 2: shocks also occurred between tones, at a rate equal to the rate during the tone. The tone gave no information about shock.
Group 1 developed strong conditioned fear of the tone. Group 2 developed little or none, even though both groups experienced identical tone-shock pairings.
Group 2 shows that pairing alone does not produce conditioning. The tone-shock pairings were embedded in a stream of shocks that happened anyway, so the tone did not predict anything new.
Measuring contingency
You can express contingency with two conditional probabilities:
- P(US | CS): the probability of the US given that the CS is present.
- P(US | no CS): the probability of the US given that the CS is absent.
The difference between them is often written ΔP.
| Condition | Relationship | ΔP | Expected result | Column | Column |
|---|---|---|---|---|---|
| Positive contingency | P(US \ | CS) > P(US \ | no CS) | Positive | Excitatory conditioning |
| Zero contingency | P(US \ | CS) = P(US \ | no CS) | Zero | Little or no conditioning |
| Negative contingency | P(US \ | CS) < P(US \ | no CS) | Negative | Inhibitory conditioning |
Negative contingency is the interesting third case. If a tone signals that shock is less likely, the tone becomes a safety signal. This is called a conditioned inhibitor. The learner responds to it by showing less fear than it shows in a neutral setting.
The following code computes ΔP from a list of trials. Each trial records whether the CS was present and whether the US followed.
def delta_p(trials):
"""trials: list of (cs_present, us_occurred) booleans."""
with_cs = [us for cs, us in trials if cs]
without_cs = [us for cs, us in trials if not cs]
p_cs = sum(with_cs) / len(with_cs)
p_no_cs = sum(without_cs) / len(without_cs)
return p_cs - p_no_cs
# Perfect predictor: US only follows the CS
predictive = [(True, True)] * 10 + [(False, False)] * 10
# Same 10 CS-US pairings, but the US also occurs without the CS
uninformative = [(True, True)] * 10 + [(False, True)] * 10
# Safety signal: the US is less likely with the CS
inhibitory = [(True, False)] * 8 + [(True, True)] * 2 + [(False, True)] * 10
print(delta_p(predictive)) # 1.0
print(delta_p(uninformative)) # 0.0
print(delta_p(inhibitory)) # -0.8The uninformative list has the same ten CS-US pairings as predictive. Only ΔP differs, and ΔP is what tracks the outcome in Rescorla's experiment.
Why predictiveness matters: the learner as forecaster
The contingency findings fit a view of conditioning as prediction. The learner is tracking which cues forecast important events. A cue that forecasts nothing new is not worth attending to.
This view also fits a result from extinction. Extinction can be produced either by dropping the US after the CS or by delivering the US equally often with and without the CS. Both procedures reduce ΔP to zero, and both weaken the CR. What matters is the loss of predictiveness, not only the absence of the US.
A related finding is the US-preexposure effect. If a US is delivered alone many times before any CS appears, later conditioning to a CS is slower. One reading is that the background context already predicts the US, so a new CS adds little. The context competes with the CS for credit.
Context as a competing cue
Every conditioning trial happens in a context: the room, the apparatus, the smell, the time of day. The context is itself a cue that can become associated with the US.
When USs occur at random, the context absorbs the association. When the US is delivered only after the CS, the context stays a poor predictor, so the CS gets the credit. This explains Rescorla's Group 2. The tone competed with the context, and the context was equally good at predicting shock.
Common errors
- Counting pairings as the cause. The number of pairings is not what predicts learning. A high pairing count with a high background US rate yields weak conditioning.
- Ignoring the no-CS condition. To judge a contingency you must know what happens when the CS is absent. Reports that give only P(US | CS) are incomplete.
- Treating zero conditioning as zero learning. The learner may have learned the US rate in the context. The context association can be strong while the CS association is weak.
- Assuming contingency replaces timing. Timing still matters. A CS that is perfectly predictive but arrives long before the US, or after it, may still fail to condition well. Contingency and timing both shape the outcome.
- Confusing negative contingency with extinction. Extinction weakens an excitatory CS. A negative contingency builds a separate inhibitory CS that signals safety.
Detecting an inhibitor
Showing that a CS is a true conditioned inhibitor takes more than observing weak responding, since weak responding also fits a neutral cue. Two standard checks are used.
- Summation test: present the suspected inhibitor together with a known excitatory CS. If it is inhibitory, the combined response is smaller than the response to the excitor alone.
- Retardation test: pair the suspected inhibitor with the US. If it is inhibitory, excitatory conditioning proceeds more slowly than for a novel cue.
Passing both tests supports the claim that the cue actively signals the absence of the US.
Limits of the contingency account
Contingency explains why pairing is not sufficient, but it has limits.
- It treats all cues alike. Biological constraints, such as the ease of linking taste to illness, mean that equal contingency does not give equal learning.
- It says nothing about how credit is divided when several cues are present together. That problem is the subject of blocking.
- Humans can report contingencies, and explicit knowledge may affect responding. Animal results may not carry over fully to human judgment tasks.
Exercise
In an experiment, a light is followed by food on 10 trials. In the light-absent periods, food is also delivered, giving P(food | light) = 0.5 and P(food | no light) = 0.5. Predict the strength of conditioning to the light, and explain why using the term contingency.
Show answer
Conditioning to the light should be weak or absent. ΔP = 0.5 − 0.5 = 0, so the contingency is zero. The light does not make food more likely, so it carries no information. Food is predicted equally well by the context, which competes with the light for credit. The ten light-food pairings alone do not guarantee learning.
Exercise
A tone is presented on 10 trials and a shock follows on only 2 of them. In the periods without the tone, shock occurs on 10 of 10 occasions. What kind of contingency is this, and which test would you run to confirm that the tone has become a conditioned inhibitor?
Show answer
This is a negative contingency: P(shock | tone) = 0.2 and P(shock | no tone) = 1.0, so ΔP = −0.8. The tone signals reduced shock and should become a safety signal. To confirm inhibition, run a summation test (present the tone with a known excitatory CS and check that the response shrinks) and a retardation test (pair the tone with shock and check that excitatory conditioning is slower than for a novel cue).