Sub topic 2
The three-term contingency: antecedent, behavior, consequence
This chapter assumes you know what "behavior" and "learning" mean in psychology and that you have a high-level picture of Pavlovian conditioning. The Python snippet is optional. The previous chapter introduced the law of effect: behavior is shaped by its consequences. Here you will learn the unit of analysis that behavior analysts use to apply that idea to real situations.
Why one term is not enough
"Consequences change behavior" is true but incomplete. A rat that presses a lever only when a light is on is not responding to the food alone. It also responds to the light, which signals that pressing will pay off. A person who says "please" to a vending machine gets nothing, and the same person saying "please" to a colleague may get a favor. The setting matters.
The three-term contingency adds the setting. A contingency is an if-then relationship between events. The three terms are:
- Antecedent: the stimulus or situation present just before the behavior.
- Behavior: the operant response, meaning something the organism does that acts on the environment.
- Consequence: the change in the environment that follows the behavior.
Written as a sentence: in the presence of this antecedent, this behavior produces this consequence. This is often shortened to ABC (antecedent, behavior, consequence).
The diagram's feedback arrow is the key point. The consequence does not act on the behavior that just happened, which is already over. It changes how likely that behavior is the next time a similar antecedent appears.
Each term in detail
Antecedent
An antecedent is any stimulus or condition present before the behavior. It can be an object (a ringing phone), a person (a teacher walking in), a place (the kitchen), a verbal instruction ("Sit down"), or an internal state (hunger).
Antecedents do not force behavior. They set the occasion for it, because in the past the behavior paid off (or failed to) when that antecedent was present. Later chapters call an antecedent that signals available reinforcement a discriminative stimulus. For now, treat the antecedent as part of the context that gives the contingency its meaning.
Behavior
The behavior term must be an observable action that you can count or time. "Is frustrated" is not a behavior. "Throws the pencil" is. Good behavior definitions let two observers agree on whether it happened.
Operant behavior is emitted, not elicited. In Pavlovian (respondent) conditioning, a stimulus triggers a reflex such as salivation. In operant conditioning, the organism acts first and the consequence follows. This difference is why the antecedent in an operant contingency is not called a "cause" of the behavior.
Consequence
A consequence is a change in the environment that depends on the behavior. Two conditions must hold:
- The change follows the behavior closely in time.
- The change would not have happened (or would have been less likely) without the behavior.
Both conditions matter. A teacher's smile that arrives ten minutes later, or that arrives whether or not the student answered, is a weak consequence for answering.
Worked analysis
Take this scenario: a child in a grocery store sees candy at the checkout, asks for it, hears "no," screams, and the parent buys the candy.
| Term | Content |
|---|---|
| Antecedent | Candy visible at checkout; parent says "no" |
| Behavior | Screaming |
| Consequence | Parent buys the candy |
The consequence is an added stimulus (candy), and the analysis predicts screaming will become more likely at checkouts. Notice how much work the table does. It separates what the child does from what the parent does, and it shows that the parent's behavior (giving in) is itself an operant, with its own contingency. The parent's antecedent is the screaming, and the consequence is that the screaming stops. Two three-term contingencies interlock here.
> Block quotes are not available, so note this directly: naming which contingency you analyze, the child's or the parent's, is the first step in any analysis.
Recording ABC data
In applied settings, practitioners record ABC data: each time the target behavior occurs, they note what came before and what followed. Patterns across many records show which antecedents and consequences are linked to the behavior.
This optional snippet tallies a small log and reports the most common consequence for each antecedent.
from collections import Counter, defaultdict
records = [
{"antecedent": "difficult task", "behavior": "shouts", "consequence": "task removed"},
{"antecedent": "difficult task", "behavior": "shouts", "consequence": "task removed"},
{"antecedent": "difficult task", "behavior": "shouts", "consequence": "reprimand"},
{"antecedent": "alone in room", "behavior": "shouts", "consequence": "adult attention"},
{"antecedent": "alone in room", "behavior": "shouts", "consequence": "adult attention"},
]
by_antecedent = defaultdict(Counter)
for r in records:
by_antecedent[r["antecedent"]][r["consequence"]] += 1
for antecedent, counts in by_antecedent.items():
consequence, n = counts.most_common(1)[0]
total = sum(counts.values())
print(f"{antecedent}: '{consequence}' followed {n} of {total} occurrences")The output shows "task removed" following two of three occurrences after a difficult task, and "adult attention" following both occurrences when the child is alone. The same behavior (shouting) may be maintained by different consequences in different situations. That is why a single label such as "attention-seeking" can mislead.
Common errors
- Treating the antecedent as the cause. An antecedent raises or lowers the probability of a behavior because of past consequences. It does not trigger the behavior the way a stimulus triggers a reflex.
- Confusing the consequence with what you intended. A consequence is defined by its effect on behavior, not by your intent. A reprimand meant to stop misbehavior may increase it if attention is the thing the person wants. Check the behavior's future frequency, not your intent.
- Mixing up timing. A stimulus that comes before the behavior is an antecedent, even if it looks like a reward. Promising candy before cleaning up is an antecedent, and the candy given afterward is the consequence.
- Skipping the behavior definition. If the behavior is vague, you cannot tell which consequences follow it. Define it so another person could count it.
- Ignoring that people respond to a history. The same antecedent produces different behavior in different people because their learning histories differ. The contingency describes a relationship, not a fixed rule.
How this connects to what follows
The next chapters build on this structure. The type of consequence (added or removed, increasing or decreasing behavior) gives the four consequence types. The pattern in which consequences are delivered gives schedules of reinforcement. A change in the antecedent that signals which behaviors pay off gives stimulus control. All three topics are variations on the same ABC frame.
Exercise
A student raises her hand when the teacher asks a question. The teacher calls on her and says "Good answer." The student raises her hand more often in that class over the following weeks. Identify the antecedent, behavior, and consequence. Then explain why the teacher's question is not the "cause" of the hand-raising.
Show answer
Antecedent: the teacher asks a question. Behavior: the student raises her hand. Consequence: being called on and receiving praise. The question does not cause the hand-raising the way a stimulus elicits a reflex. It sets the occasion, because in the past hand-raising after a question was followed by reinforcing consequences. The increase in hand-raising across weeks shows that the consequence changed the future probability of the behavior in that situation.
Exercise
A worker's phone buzzes (an alert), he checks it, and he finds a message from a friend. Later the phone buzzes with a spam notification and he checks it, finding nothing useful. Using the three-term contingency, explain what the worker's checking behavior is likely to do over time and what determines this.
Show answer
The antecedent (buzz) and behavior (checking) are the same each time, but the consequences differ. A friend's message is a consequence that is likely to maintain checking. A spam notification offers no such consequence. Over time, the likelihood of checking depends on how often checking is followed by a valued consequence. Because it is sometimes followed and sometimes not, checking is likely to persist. Later chapters on schedules explain why such unpredictable payoffs make behavior especially durable.