It's criminology 101. Expected punishment = probability of being caught * severity of punishment.
https://en.wikipedia.org/wiki/Deterrence_theory