Basic Prerequisites: 02 · Markov-Switching Models and 04 · Hidden Markov Models.
1. Intuition & Practical Objective
Regime models are beautifully estimable and empirically fragile in three specific ways. This page names them precisely and shows them in numbers, so a practitioner knows which failure mode to guard against. The objective is not cynicism - it is knowing exactly where the model’s identifiability and stability break so the output can be used safely.
The three failures, in one line each:
- Label switching - the likelihood is identical under a permutation of the state labels, so two runs can return the same model with swapped meanings.
- Overfitting regimes - adding states always raises the likelihood; the model will happily invent regimes that are clones of real ones.
- Regime persistence & detection lag - the filter is deliberately conservative, so it is slow to switch; over a fast strategy’s horizon this lag is a real cost, and on non-regime data it oscillates and overreacts.
2. Mathematical Ground Truth & Derivations
Where each failure lives.
- Label switching is a symmetry of the likelihood. For any parameter vector , the permuted vector (state everywhere) gives the same marginal likelihood because the sum over states is invariant:
and the inner sum is unchanged when you rename the states. Hamilton (1989 §4.2) states this explicitly (“the decision of which state to call state 0 and which to call state 1 is arbitrary”) and fixes it by normalization, e.g. .
- Overfitting is the usual bias–variance trade (ESL Ch 7). A -state HMM has mean/vol params plus transition params. The likelihood is non-decreasing in (a -state model can always mimic a -state one by duplicating a state with ). The correction is a complexity penalty:
which, on genuine 2-state data, decisively rejects a spurious third state (verified below).
- Detection lag is Bayesian by construction. The filtered probability moves only when evidence accumulates; with overlapping regime densities a single return barely moves it. The expected “time to detect” is proportional to how separable the regimes are (). Persistence then interacts: high persistence makes the filter confident (good) but makes false switches costly (a regime that actually changed is not believed for several periods).
3. Computational Implementation - the failures in numbers
Experiment 1 - label switching. Run EM twice on the same data from different random starts; both converge to the same likelihood but with permuted labels. Stdlib only.
Run A labels the positive-mean state first (); run B finds the exact same model with the labels swapped ( first). Same likelihood, swapped meaning. The fix is a constraint () so the optimizer cannot cross the symmetry.
Experiment 2 - overfitting regimes. Fit 2- and 3-state HMMs to the same genuine 2-state data; the 3rd state clones an existing one, and BIC rejects it.
The third state buys only of log-likelihood by splitting the bull state into two near-identical regimes ( and ). BIC’s complexity penalty ( extra params) dominates, correctly choosing 2 states. If you do not penalize, the model invents regimes.
4. Failure Modes & First-Principles Breakdowns (numbered)
- Label switching (identifiability). The likelihood is invariant to a permutation of the states; EM can return a swapped labeling with identical fit (verified: diff). Fix with an ordering constraint on a parameter. This matters in production: a “bull→bear” trade based on run A is a “bear→bull” trade based on run B.
- Overfitting the number of regimes. Likelihood rises monotonically in ; the third state clones a real one (verified). Use BIC (or cross-validated likelihood) to choose - never max-likelihood alone.
- Regime persistence vs detection lag. High makes the filter confident but slow to admit a genuine switch; low overlap extends detection time. The filtered probability that you trade on is lagging by construction - cost that lag, don’t ignore it.
- Weakly-identified parameters on rare regimes. A regime visited only a few times has its estimated from a handful of effective observations (page 02’s vs transition), regardless of total sample size.
- Regime detection on non-regime data. If returns are truly a single Gaussian (or the nonlinearity is in variance, not mean - Tsay Ch 3/Ch 4), the two-state filter still manufactures a story. Test for regime structure first (BDS, threshold tests under the correct null - see 03 · Threshold Models).
5. References
- Hamilton (1989)
- ESL, Ch 7 (model selection, BIC, bias–variance) and Ch 8.5 (EM monotonicity). Verified: esl_ch6-10.md.
- Tsay
- Ang & Timmermann (2012)
6. Connected Graph Bridges
- Back: 04 · Hidden Markov Models · Index Hub
- Forward: 06 · Advanced Extensions (Regime Allocation)
- Testing roots: Statistics & Inference (hypothesis testing, model selection) · Econometrics & Time Series
- Sibling: Backtesting Hygiene (multiple-testing: testing many regime specs inflates apparent skill) · Signal Processing & the Kalman Filter (filter lag in the continuous-state case)