The Keynes Beauty Contest

Keynes described the stock market as resembling a newspaper beauty contest of his era, in which readers were asked to pick the six prettiest faces from a hundred photographs — but the winner was whoever picked the most popular faces, not their personal favourite. Rational participants, Keynes noted, would not vote for who they found most attractive, or even for who they thought most people would find attractive, but for what they thought most people would think most people would find attractive — reasoning about the reasoning of others, potentially several levels deep.
Applied to equity markets: a rational investor does not simply buy stocks they believe are undervalued. They buy stocks they believe other investors will come to recognise as undervalued — or that momentum will carry higher. This dynamic can cause prices to diverge substantially from intrinsic value for extended periods.