associative learning
Associative learning is how a brain figures out that two things tend to go together, and then starts treating one as a clue about the other. If a sound keeps coming right before dinner, you eventually expect food the moment you hear it. If pressing a certain button always turns on the light, you learn to press it on purpose. In both cases nothing was memorized like a fact — instead, repeated experience quietly built a link between events, so that one now predicts or triggers the other. This kind of learning is everywhere in animals and people, from a dog drooling at the rattle of its leash to a child learning that saying please earns a treat.
Scientists usually split it into two flavors. In classical (Pavlovian) conditioning, you learn that one signal predicts another event you don't control — like a bell predicting food — and your body starts reacting to the signal itself. In operant conditioning, you learn from the consequences of your own actions: behaviors that bring rewards happen more often, and ones that bring unpleasant results fade away. Both work because the brain is constantly tracking what reliably follows what, and strengthens the neural connections that capture those regularities.
Underneath, associative learning is thought to depend on plasticity — lasting changes in the strength of the connections (synapses) between neurons. When two patterns of brain activity fire together repeatedly, the wiring between them tends to tighten, a rough version of the saying neurons that fire together wire together. That physical re-tuning is how a fleeting coincidence in the world gets stored as a stable expectation inside the brain.
Its two classic forms are classical conditioning (learning that one event predicts another) and operant conditioning (learning from the rewards and punishments your own actions bring).