I believe the answer is: Operant conditioning
In operant conditioning, the behavior of the subject would be controlled/influenced by either reward or punishment.
On the scenario above, amy's behaving the way she does because she's expecting the reward from her grandfather (by tickling her)