This type of learning is referred to as "instrumental conditioning".
Instrumental conditioning is another term for operant conditioning , a learning procedure previously portrayed by B. F. Skinner. In instrumental conditioning , reinforcement or discipline are utilized to either increment or diminishing the likelihood that a conduct will happen again later on.
Instrumental conditioning is frequently utilized in animal preparing too. For instance, preparing a puppy to shake hands would include offering a reward each time the coveted conduct happens.