Regime Switching Deep Dive

Markets alternate between distinct economic regimes. A 2-state Hamilton model assigns each period to a hidden state — calm / bull vs crisis / bear — with Markov transition probabilities.

Crisis share

0%

Ergodic π(calm)

70.0%

Avg calm run

33 d

Avg crisis run

14 d

Return Series Coloured by Regime

Cumulative Return by Regime

Bimodal Return Distribution

Transition Matrix Heatmap

μ₀ (calm mean)0.04
σ₀ (calm vol)0.60
μ₁ (crisis mean)-0.08
σ₁ (crisis vol)1.80
p₀₀ (stay calm)0.970
p₁₁ (stay crisis)0.930
Observations1000
Seed42
Reduce p₀₀ to trigger frequent switches from calm to crisis. The bimodal histogram reveals well-separated distributions when σ₁ ≫ σ₀. The transition matrix heatmap summarises the full Markov dynamics at a glance.

Try the interactive model

Drag the sliders to see how parameters shape the simulation in real time.