FRENESDE

Detecting market regimes

A regime is a period in which returns keep stable properties: calm (low volatility, gentle trend), stress (high volatility, rising correlations), trend or range. A strategy does not work the same way everywhere: momentum suffers from reversals, mean reversion from strong trends.
Simple approach: 20-day realised volatility compared with its long-run median, or the VIX level. Statistical approach: a Markov regime-switching model (Hamilton, 1989) or a 2-state Gaussian HMM, each state with its own mean and volatility.
Calculation: probability of staying in the calm regime = 0.98 per day → average duration = 1 / (1 − 0.98) = 50 days. A stress regime at 0.90 → 10 days on average. These durations help check the model is plausible and calibrate how fast it reacts.
Major trap: fitting the model on the full history and then labelling each date uses the future to describe the past. For a backtest, re-estimate the model on a rolling basis and use only filtered probabilities, known at date t. Regimes are always detected with some delay.

Examples

Key terms

Market regime
Period in which returns, volatility and correlations behave in a stable way
Hidden Markov model (HMM)
Model in which an invisible state drives the distribution of observed returns
Transition probability
Probability of moving from one regime to another from one period to the next
Filtered probability
Probability of a regime computed with only the data available at date t
VIX
Index of expected 30-day S&P 500 volatility, derived from option prices
Target volatility
Intended risk level: exposure = target / current volatility
Take the mission on Doji Academy

← Back to the index