perception of happiness
When people assess a past experience, they pay attention above all to two things: how it felt at the peak and whether it got better or worse at the end. A mild improvement—even if it's an improvement from "intolerable" to "pretty bad"—makes the whole experience seem better, and a bad ending makes everything seem worse.
From a recent New Yorker article on the economy.