How it Works
This simulation implements a heterogeneous agent model of a financial market. Two types of traders interact: fundamentalists who trade toward the fundamental value V (mean-reverting), and chartists (trend followers) who extrapolate recent price momentum.
Cognitive biases modify trader behavior: herding amplifies trend-following, loss aversion creates asymmetric response to gains vs losses (sellers overreact to falling prices), and anchoring causes traders to anchor to a remembered price level that adjusts slowly.
When chartists dominate, prices depart from fundamentals (bubbles). When fundamentalists dominate, prices revert. The interplay creates realistic patterns: volatility clustering, fat tails, and occasional crashes.
Frequently Asked Questions
What is behavioral finance?
Behavioral finance studies how psychological biases and cognitive errors cause investors to deviate from rational actor assumptions. Key findings include overconfidence, loss aversion, herding, and anchoring, all of which distort asset prices from fundamental value.
What is herding behavior in markets?
Herding occurs when investors follow the crowd rather than their own information. This creates price momentum, amplifies trends, and can produce bubbles. Herding arises from social pressure, reputational concerns, or information cascades where individuals infer private signals from others' behavior.
What is loss aversion?
Loss aversion (Kahneman & Tversky, 1979) is the tendency to weight losses approximately twice as heavily as equivalent gains. This leads to the disposition effect (selling winners too early, holding losers too long) and excessive risk aversion in the gain domain.
What is anchoring bias?
Anchoring is the tendency to rely too heavily on an initial piece of information. In markets, investors anchor to recent prices, 52-week highs, or historical averages. This slows adjustment to new information and creates price levels that act as support or resistance.
What is the heterogeneous agent model?
Heterogeneous agent models replace the representative rational agent with a population of traders using different strategies — fundamentalists who trade toward fundamental value and chartists who follow price trends. Their interaction produces realistic market dynamics including volatility clustering and fat tails.
What is a market bubble?
A bubble occurs when asset prices rise far above fundamental value, sustained by expectations of further price increases rather than dividends or earnings. Behavioral models explain bubbles through overconfidence, herding, and positive feedback trading. Bubbles end when momentum reverses and fundamentalists dominate.
What causes fat-tailed return distributions?
Real asset returns have heavier tails than a normal distribution — large crashes and spikes are far more frequent. Behavioral models generate fat tails through regime switching between fundamentalist and chartist dominance, creating occasional extreme price movements.
What is the Efficient Market Hypothesis?
The Efficient Market Hypothesis (Fama, 1970) states that asset prices fully reflect all available information. Behavioral finance challenges EMH by documenting systematic mispricings attributable to psychological biases that persist because limits to arbitrage prevent rapid correction.
How does overconfidence affect markets?
Overconfident investors overestimate the precision of their information and trade more than they should. This increases trading volume, volatility, and mispricing. Studies show that individual investors who trade most frequently earn the worst net returns.
What is the disposition effect?
The disposition effect, arising from loss aversion and mental accounting, causes investors to sell winning investments too soon and hold losing investments too long. This is empirically well-documented and leads to suboptimal portfolio performance.