Wiktionary
vicarious reinforcement
n. (context psychology English) reinforcement that occurs when you imitate the behavior of someone who has been reinforced for that behavior, as when avoiding hot water having seen another person burned by it.