11 — Herd & Social

Herd Behavior#

Debated
◆ The PatternFollowing the crowd's actions rather than your own analysis.

Herd behavior — following the crowd's actions regardless of your own analysis.

Why we herd:
• Evolutionary: safety in numbers (wildebeest at the river)
• Informational: "They must know something I don't"
• Social: fear of standing out, career risk ("no one got fired for buying IBM")

Market impact: Creates momentum that overshoots fair value in both directions

Keynes: "It is better for reputation to fail conventionally than to succeed unconventionally."

Worked example

Five stocks, with the funds buying and selling each in one quarter. Across all of them 57% of trades were buys. Lakonishok, Shleifer and Vishny measure herding as how far each stock’s buy share sits from 57%, minus how far it would sit by chance. Stock A (18 buyers, 2 sellers) scores 0.24, stock D (5 and 15) 0.23; E scores −0.07, no more lopsided than chance. The average is 0.09.

Where it misleads
  • Trading together is not proof of copying: funds reacting to the same news will look like a herd.
  • Using the same measure, LSV (1992) found only a little herding among U.S. pension fund managers — far less than the stories suggest.
  • Herding can be rational for each person (see Information Cascades); it is the collective result that goes wrong.
In code
from math import comb
q = pd.DataFrame({'buyers': [18, 9, 14, 5, 11], 'sellers': [2, 11, 6, 15, 9]},
                 index=list('ABCDE'))            # funds buying and selling five stocks in one quarter, made up
n = q.buyers + q.sellers
p = q.buyers / n
p_all = q.buyers.sum() / n.sum()                 # share of all trades that are buys

def af(n, p):                                    # |p_i - p_all| expected by chance alone
    return sum(comb(n, k) * p**k * (1 - p)**(n - k) * abs(k / n - p) for k in range(n + 1))

H = (p - p_all).abs() - n.apply(af, p=p_all)     # Lakonishok, Shleifer & Vishny's herding measure
Python, in your browser — edit the code and run it again

Assumes import numpy as np and import pandas as pd. Each snippet carries its own example numbers; the comments say which are made up.

Sources
  • J. Lakonishok, A. Shleifer & R. W. Vishny, “The Impact of Institutional Trading on Stock Prices”, Journal of Financial Economics 32(1), 1992
  • D. S. Scharfstein & J. C. Stein, “Herd Behavior and Investment”, American Economic Review 80(3), 1990
  • A. V. Banerjee, “A Simple Model of Herd Behavior”, Quarterly Journal of Economics 107(3), 1992

Last reviewed October 2026 · How this site checks its content · Report a mistake

Pattern bridge: Following the crowd is a collective reward signal — the market’s version of RLHF. In statistics, it produces spurious correlation as everyone moves together. The individual version, taking others’ choices as evidence, is social proof.
When to use this
✓ Use when: You notice everyone around you talking about the same trade. Social media is flooded with one-directional conviction. Volume spikes massively with no fundamental catalyst. A contrarian position has become very painful.
✗ Skip when: The "herd" is responding to genuine fundamental changes (earnings beat, regulatory approval). Early in a trend — herding is most dangerous at extremes, not at the start. In highly efficient markets (large-cap liquid stocks) where herding is arbitraged away quickly.
Linked from 3
← Previous
Disposition Effect
Open in the full reader, with the topic sidebar