Sub topic 1
Learning as Forming Associations
Prerequisites
This chapter assumes you know the following:
- A basic idea of what psychology studies: behavior and mental processes, and how they can be measured.
- The terms stimulus (an event or thing in the environment that an organism can detect) and response (a reaction, such as a movement, a gland secretion, or a feeling).
- How to read a simple graph that shows change over repeated trials, with trial number on the horizontal axis and some measure on the vertical axis.
No programming is required here, though a short code sketch near the end makes the idea of "strength of an association" concrete. This is the first chapter of the tutorial. It sets up the vocabulary and the working model that the later chapters (Pavlov's experiments, extinction, timing, blocking, and applications) build on.
What "learning" means in psychology
In everyday speech, "learning" often means studying facts for a test. Psychologists use a broader definition. Learning is a relatively lasting change in behavior or in behavior potential that results from experience. Each part of this definition does work:
- Relatively lasting. A flinch caused by a loud noise is not learning. A lasting change in how you respond to the sound of a dentist's drill is.
- Behavior potential. You can learn something without showing it right away. The change may only appear later, under the right conditions.
- Results from experience. Changes caused by maturation (growing), injury, fatigue, or drugs are excluded.
This definition covers a wide range of cases, from a sea slug withdrawing its gill less after repeated harmless touches to a person who feels uneasy when a particular song plays. The simplest and most widely studied kind of learning is learning about relationships between events.
The associationist idea
An association is a learned link between two events, so that experiencing one makes you expect, or mentally call up, the other. The idea is old. Aristotle suggested that things we experience together or in succession become linked in memory. British empiricist philosophers such as John Locke and David Hume developed this into associationism: complex thoughts are built from simple ideas joined by experience. Hume proposed that ideas become linked through resemblance, closeness in time and place, and cause and effect.
Early experimental psychology wanted to test such claims with measurement instead of reflection. Ivan Pavlov, a Russian physiologist, supplied the method. His work, covered in later chapters, showed that a simple association could be created in the laboratory, measured with a number (such as drops of saliva), and manipulated by changing the conditions of training.
A useful working model of an association has three parts:
- Two events. Event A (a bell, a taste, a place) and event B (food, pain, a feeling).
- A relationship between them. Usually A tends to occur before B.
- A change in behavior. After enough experience, A produces a response that is related to B, because A now signals B.
Notice the word signals. In this view, an association is not just a "stuck together" pair of memories. It is information that lets the organism predict what is coming and prepare for it. This predictive reading of conditioning becomes central in the chapters on contingency and the Rescorla-Wagner model.
Why associations matter
Learning to predict events has clear survival value. An animal that learns that a rustle in the grass often precedes a predator can flee sooner. A person who learns that a certain food made them ill can avoid it. Associations also shape human experience in less obvious ways:
- Emotional reactions, such as fear or comfort, attach to places, sounds, and people.
- Cravings can be triggered by cues linked to past drug use or eating.
- Consumer preferences are influenced by pairing products with pleasant images or music.
Associative learning is also not limited to humans or even to vertebrates. Insects, mollusks, fish, birds, and mammals all show it, which suggests it is an old and widely useful mechanism.
Two main families of associative learning
Psychologists distinguish two broad kinds of associative learning. The difference is what gets linked to what.
| Feature | Classical (Pavlovian) conditioning | Operant (instrumental) conditioning |
|---|---|---|
| What is linked | Two stimuli: one signals the other | A behavior and its consequence |
| Does the organism's action change the outcome? | No. The events occur whether or not it acts | Yes. The outcome depends on what it does |
| Typical responses | Reflex-like reactions such as salivation, fear, nausea | Voluntary, flexible actions such as pressing a lever |
| Example | A dog salivates at a sound that precedes food | A rat presses a lever more often because it earns food |
This tutorial focuses on the first family. A later chapter compares the two in detail, and you will see that they often operate together in real life.
Studying association: what a conditioning experiment looks like
Even before meeting Pavlov's specific procedure, you can recognize the general design of an associative learning experiment:
- Choose a response you can measure. It might be drops of saliva, a heart-rate change, the time spent frozen in place, or a rating of how much someone likes a stimulus.
- Present events in a controlled arrangement. Decide which event comes first, how long the gap is, and how many times the pair occurs.
- Track the response across trials. A trial is one presentation of the events. Plotting the response by trial number gives a learning curve.
- Compare with controls. A control group might see the same events in random order, or see only one of them. If it shows no learning, the pairing is responsible for the change.
The control step matters. Without it, a researcher cannot tell whether the response changed because the events were linked or just because the animal got used to the apparatus, became sensitized, or grew tired. Much of the later theory (contingency, blocking) came from asking which control conditions do and do not produce learning.
A first look at a learning curve
Learning curves for simple associations are usually negatively accelerated. That is, they rise quickly at first, then level off as the response approaches a maximum. Early trials produce large gains because the organism has the most to learn. Later trials add less because most of the association is already in place.
You can model this shape with a few lines of code. The sketch below is not the full theory, which comes later. It only shows the idea that each experience closes part of the gap between what the organism currently expects (its associative strength) and the maximum possible.
# A simple model of how association strength grows over trials.
# Each trial closes a fixed fraction of the remaining gap to the maximum.
rate = 0.3 # fraction of the gap closed per trial
maximum = 1.0 # the strongest the association can become
strength = 0.0 # starts with no association
for trial in range(1, 9):
strength += rate * (maximum - strength)
print(f"Trial {trial}: strength = {strength:.2f}")Running it prints values that climb from 0.30 on trial 1 to about 0.94 on trial 8. The gains shrink each trial: 0.30, then 0.21, then 0.15, and so on. This matches the leveling-off shape you will see in real acquisition data.
Common errors and misconceptions
- Treating "association" as "simple closeness." Two events occurring together is not always enough. Later chapters show that the events must be informative about each other. If A occurs just as often without B as with it, little is learned.
- Assuming learning must be conscious. Many associations form without the person being able to state the rule. Fear responses, for example, can develop to cues the person did not notice.
- Assuming learning shows up immediately. Because learning is a change in behavior potential, performance can lag behind what was learned.
- Confusing the two families. If the organism's own action controls whether the second event occurs, the case is operant. If the events happen regardless of its action, the case is classical.
- Calling every habit "conditioning." The term has a specific meaning in this field: a defined procedure with defined outcomes.
What comes next
The next chapters introduce the reflexes that Pavlov started from, and then the experiments that turned a reflex into a tool for studying learning. The vocabulary you will need is small: unconditioned stimulus and response, then conditioned stimulus and response. Keep in mind the working model from this chapter: two events, a relationship between them, and a change in behavior that reflects prediction.
Exercise
A cat hears an electric can opener every time its owner opens a can of cat food. After several weeks, the cat comes running into the kitchen when it hears the can opener, even when no can is being opened for it. (a) Which two events are being associated? (b) What change in behavior shows learning? (c) Is this classical or operant learning, and why?
Show answer
(a) The sound of the can opener (event A) and the arrival of food (event B). (b) The cat now runs to the kitchen at the sound alone, before any food appears, which shows that the sound has come to signal food. This is a lasting change resulting from experience. (c) It is classical, because the sound and the food occur regardless of what the cat does. The cat's running does not cause the sound to be followed by food. If the cat instead had to perform an action, such as pressing a button, to get the food, it would be operant.
Exercise
In the Python sketch above, change rate to 0.6 and run it again. What happens to the learning curve, and what does a larger rate represent in psychological terms?
Show answer
The strength climbs faster and levels off sooner: trial 1 gives 0.60 and strength is above 0.99 by trial 6. A larger rate represents faster learning per experience, for example because the events are more noticeable or more intense. The final level is still set by maximum, not by rate.