Why the consequence changes the behavior

In operant conditioning, a behavior is shaped by what happens after it. When a dog sits and then receives a treat, the treat is positive reinforcement: something desirable is added, making sitting more likely in similar circumstances. “Positive” here means added, not necessarily good; “reinforcement” means the behavior increases.

The sequence matters. A reward delivered right after the action makes the connection easier to learn. If it arrives much later, the animal may associate it with whatever happened in between instead. At first, a trainer may reward even a partial move toward the goal—bending the knees, for example—then gradually reward only a complete sit. This gradual process is called shaping.

From a treat to a learned pattern

Once the behavior is dependable, the reward need not follow every repetition. Occasional rewards can help maintain a learned behavior, while the cue, setting, and history of successful responses also guide what the animal does. A treat may therefore begin as the reason to try an action, but become less important than the practiced response itself.

That shift is not automatic. If rewards stop abruptly, a behavior may weaken, especially if it was rewarded every time. And if the reward no longer seems worthwhile, the animal may respond less often. The practical lesson is to make the desired action clear, reward it promptly while it is being learned, and adjust rewards as the pattern becomes reliable. The treat is not a bribe in the moment so much as feedback that tells the learner, “That action worked.”