operant conditioning
Operant conditioning is how we learn from the consequences of what we do. When an action brings something good, we tend to do it more; when it brings something bad, we tend to do it less. Think of a dog that sits and gets a treat — it learns to sit again, because last time sitting paid off.
The American psychologist B. F. Skinner developed and named this framework starting in the 1930s, building on Edward Thorndike's earlier Law of Effect — the idea that actions followed by good outcomes tend to be repeated. Skinner's tool was a small box, now called the Skinner box. A rat inside it would, by accident, bump a lever and receive a food pellet. Soon the rat was pressing the lever on purpose. The reward had reshaped its behavior. We are all in larger boxes: a bonus at work, a like on a photo, a scolding for being late — each consequence quietly tilts what we do next.
One thing trips people up: reinforcement and punishment are about whether a behavior goes up or down, not whether something feels pleasant. And a key cousin of reward is escape — a behavior that makes something unpleasant stop (like taking an aspirin to kill a headache) gets reinforced just as strongly as one that brings a treat.
A toddler whines at the checkout; the parent buys candy to quiet her. The candy reinforces the whining, so she whines louder next time — while her surrender reinforces the parent's giving in.
Consequences shape both people at once — reinforcement runs in both directions.
Skinner coined "operant" because the behavior operates on the environment to produce an effect. It contrasts with classical conditioning, where a reflex is simply triggered: in operant conditioning the animal acts first, then the world answers back.