Market Bubble Simulator: Speculation, Herd Behavior & Financial Crashes

simulator advanced ~12 min
Loading simulation...
Crash: ~35% — speculation-driven bubble followed by correction

With default parameters (5% fundamental return, speculation factor 2, 50% herd behavior), the market develops a speculative bubble that eventually crashes approximately 35%. The peak price significantly exceeds the fundamental value trajectory, illustrating Minsky's financial instability hypothesis.

Formula

Price dynamics: P(t+1) = P(t) · (1 + fundamental_return + speculation · sentiment(t))
Sentiment feedback: sentiment(t) = α · (P(t)/P(t-1) - 1)
Fundamental value: V(t) = P(0) · (1 + r_fundamental)^t
Overvaluation ratio: P(t) / V(t)

Anatomy of a Bubble

Market bubbles have occurred throughout financial history — from the Dutch Tulip Mania of 1637 to the Dot-com bubble of 2000 and the 2008 housing crisis. In each case, asset prices dramatically exceeded fundamental value before crashing. This simulator models the core mechanism: positive feedback loops between price changes and investor sentiment.

Minsky's Financial Instability Hypothesis

Economist Hyman Minsky (1986) argued that financial crises are not exogenous shocks but endogenous features of capitalist economies. During periods of stability, investors gradually take on more risk. Minsky identified three stages: hedge finance (income covers both principal and interest), speculative finance (income covers only interest), and Ponzi finance (income covers neither — relying entirely on asset appreciation). The transition to Ponzi finance is what inflates bubbles.

Herd Behavior and Feedback Loops

The herd behavior parameter models how much investors follow the crowd rather than fundamentals. When prices rise, optimistic sentiment attracts more buyers, pushing prices higher — a classic positive feedback loop. The speculation parameter amplifies how much this sentiment affects actual price movements. Together, they can drive prices far above the fundamental value trajectory (the dashed cyan line).

The Crash

Bubbles burst when speculative pressure exceeds a critical threshold. In real markets, this can be triggered by a change in monetary policy, a negative earnings surprise, or simply the exhaustion of new buyers. The crash is typically faster than the build-up — as Kindleberger observed, prices take the stairs up and the elevator down. The fear/greed indicator at the bottom of the chart shows how sentiment swings from euphoria to panic.

Reading the Simulation

The shaded area between the red price line and the cyan fundamental line represents overvaluation. Watch how increasing speculation and herd behavior inflates this area before an eventual correction. With low speculation, prices track fundamentals closely. With high values, dramatic boom-bust cycles emerge — the pattern Minsky predicted would occur endogenously in any unregulated financial system.

FAQ

What causes market bubbles?

Market bubbles form when asset prices significantly exceed their fundamental value, driven by speculative demand. Key factors include positive feedback loops (rising prices attract more buyers), herd behavior (investors follow others rather than fundamentals), easy credit conditions, and narrative-driven optimism. Hyman Minsky identified three stages: hedge finance (sound), speculative finance (risky), and Ponzi finance (unsustainable).

What is the Minsky Moment?

The Minsky Moment is the point at which a speculative boom turns into a bust. Named after economist Hyman Minsky, it occurs when over-leveraged investors are forced to sell assets to meet margin calls, triggering a cascade of selling that crashes prices. Minsky's Financial Instability Hypothesis argues that periods of stability inherently breed instability as actors take on more risk.

Can bubbles be predicted?

While the existence of overvaluation can often be identified in real-time (price-to-earnings ratios, deviation from trend), timing the crash is extremely difficult. As economist Charles Kindleberger noted, bubbles can persist far longer than rational analysis would suggest, because positive feedback loops and herd behavior sustain them beyond any 'rational' endpoint.

What is the role of speculation in markets?

Some speculation is healthy — it provides liquidity and helps with price discovery. But excessive speculation decouples prices from fundamentals. In this model, the speculation parameter controls how much sentiment amplifies price movements beyond the fundamental return rate, creating the conditions for boom-bust cycles.

Sources

Embed

<iframe src="https://homo-deus.com/lab/economics/market-bubbles/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub