HomeArticlesEconomics

Cognitive Bias in Financial Markets

Herding, anchoring and loss aversion pull prices away from fair value — and a model with two kinds of trader is enough to reproduce bubbles, crashes and fat tails.

mysimulator teamUpdated June 2026≈ 8 min read▶ Open the simulation

The biases, briefly

Standard finance assumes traders form unbiased expectations from all available information. Kahneman and Tversky's behavioural research found something different: people weight losses roughly twice as heavily as equivalent gains (loss aversion), cling to an initial reference price when judging whether a new price is cheap or expensive (anchoring), and copy the actions of others rather than acting on independent analysis, especially under uncertainty (herding). None of these are irrational in isolation — anchoring on a recent price is a reasonable shortcut when full information is costly to gather — but in aggregate, across thousands of interacting traders, they produce price dynamics that a rational-expectations model cannot.

Two kinds of trader

The workhorse model here, in the tradition of Brock and Hommes (1998), splits the trading population into fundamentalists, who believe price reverts toward a computable fair value and trade against any deviation, and chartists (trend followers), who extrapolate whatever the recent price move has been, betting it continues. Crucially, the population is not fixed: each period, traders re-evaluate which strategy has been more profitable recently and switch accordingly, weighted by a parameter that controls how sensitive the switching is to a performance gap.

live demo · price wandering away from and back toward fair value● LIVE

How a bubble forms in the model

demand_fund   = beta * (fair_value - price)        // pulls toward fair value
demand_chart  = gamma * (price - price_lag)         // pushes with the trend

price_next = price + eta * ( w_fund * demand_fund + w_chart * demand_chart )

w_fund, w_chart : fractions of traders using each rule this period,
                  updated by relative recent profitability

When chartists briefly outperform — which happens by chance even in a fair market — more traders switch to trend-following, which itself pushes the trend further, which makes chartists look even more profitable, and so on. This positive feedback is what a bubble is, mechanically: a self-reinforcing majority of trend-followers pushing price away from fundamental value. The bubble ends when the gap grows large enough that fundamentalist demand (which grows with the size of the deviation) overwhelms the chartist push, or when a shock reverses the recent trend and flips the switching logic into a self-reinforcing decline — the crash.

The stylized facts this reproduces

Real financial returns share several statistical regularities that a simple random walk does not: fat tails (extreme moves are far more common than a normal distribution predicts), volatility clustering (large moves tend to be followed by more large moves, of either sign), and near-zero autocorrelation in returns themselves despite strong autocorrelation in their magnitude. A switching fundamentalist-chartist model reproduces all three qualitatively from nothing more exotic than the two trading rules above plus a switching mechanism — no fat-tailed news shocks need to be assumed, because the feedback loop itself manufactures the fat tail.

What this does and does not explain

The model is deliberately stylized: it says nothing about which specific asset will bubble next or when a particular crash will occur, because the switching dynamics are chaotic and sensitive to initial conditions in the same way weather is. What it does explain is why bubbles and crashes are a structural feature of markets populated by people using simple, individually reasonable heuristics, rather than requiring irrationality, fraud or external shocks as a trigger — the shock can just as easily be an ordinary run of luck for one trading strategy over another.

Frequently asked questions

What is a heterogeneous agent model of markets?

A model with more than one type of trader, each with a different rule for forming expectations, instead of a single representative rational agent. The Brock-Hommes style model used here mixes fundamentalists, who bet on price returning to fair value, with chartists, who extrapolate the recent trend, and lets traders switch between the two strategies based on which one has been more profitable lately.

Why do fat tails appear in return distributions even without a fat-tailed news process?

Because the interaction between trend followers amplifies small moves into larger ones through positive feedback, and switching between fundamentalist and chartist behaviour is itself a nonlinear, threshold-like process. A Gaussian noise input can produce a leptokurtic (fat-tailed, sharply peaked) output distribution once it passes through this kind of feedback loop — the fat tails are emergent, not imported from the input.

Is herding the same thing as a bubble?

No. Herding is the behaviour — traders copying each other's actions or beliefs instead of using independent information. A bubble is one possible outcome of sustained herding, when the copying pushes price persistently above fundamental value. Herding can also occur around a price that happens to be correct, in which case it just adds noise without creating a bubble.

Try it live

Everything above runs in your browser — open Cognitive Bias in Financial Markets and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Cognitive Bias in Financial Markets simulation

What did you find?

Add reproduction steps (optional)