The late psychologist Daniel Kahneman had an important message for investors, analysts, and economists: Be careful when you treat the market as if it were a person.