The peak-end rule is the cognitive bias in which people judge an experience based on its peak moments and how it ends, rather than considering the overall experience.