What market state are we probably in — and is it likely to persist?
Read Me First — Regime LabRegime Lab fits a transparent three-state Gaussian Hidden Markov Model to bundled SPY or QQQ history. The purpose is not to predict tomorrow's price. It is to estimate latent market-state probabilities, persistence, and expected duration so we can test whether regime awareness adds value to options-strategy decisions.
Model setup
Price-only prototype · weekly observations · 3 latent statesBundled data are adjusted-close log returns. State names are heuristic labels assigned after fitting; the latent states themselves are statistical clusters, not observed facts.
Current filtered state probabilities
—Regime history
Reconstructed index from weekly returnsRegime-information research sequence
Stage 2 now completeRun the same option rules without knowing the regime. This remains the baseline.
Give the strategy the true current state at each 30-DTE decision boundary. This measures the maximum value current-state information can add under the frozen policy.
Use only filtered state probabilities and persistence available at the decision date, then compare with the oracle and fixed baselines.
HMM-ORACLE-001 · Perfect-state upper bound
5,000 paired paths · 36 × 30-DTE cyclesCovered-call test: 100 shares, 30-DTE 0.20-delta calls, realistic option fee/execution friction, no rolling. The hidden state is held fixed through each option contract and can transition only between contracts. The state-specific sell/hold rule was learned on a separate training sample, then frozen for the 5,000-path test.
State characteristics
Posterior-weighted estimatesTransition matrix
One-week transition probabilitiesPersistence of current state
Probability of uninterrupted continuationInterpretation
What the HMM does and does not sayA high state probability is not a forecast that prices must rise or fall. HMMs infer hidden statistical states from observed features. The economically important test comes next: whether acting on those probabilities out of sample improves an option strategy after trading friction.
Stage 3: Walk-Forward HMM Strategy Test
Does real-time regime detection improve Wheel timing?Stage 2 (Oracle): Perfect regime knowledge added +1.02 pp/yr at fair IV, confirming that regime awareness has theoretical value. Stage 3 (Real-Time HMM): A walk-forward HMM refit monthly using only prior data never accumulated enough confidence and persistence to change the fixed strategy rule. The decision thresholds (≥0.65 posterior probability + ≥20 weeks expected duration) were too stringent for practical signals.
| IV Premium | Oracle Edge | HMM Captured | Capture Ratio | Interpretation |
|---|---|---|---|---|
| 0% (Fair) | +1.02 pp/yr | 0.00 pp/yr | 0% | Oracle has clear advantage; HMM missed it |
| 5% | +0.44 pp/yr | 0.00 pp/yr | 0% | Moderate oracle edge; HMM silent |
| 10% | −0.04 pp/yr | 0.00 pp/yr | 0% | Options rich enough; oracle neutral |
| 15% | −0.38 pp/yr | 0.00 pp/yr | 0% | Oracle underperforms; HMM correctly defaults |
| 20% | −0.83 pp/yr | 0.00 pp/yr | 0% | Option premium dominant; oracle disadvantaged |
Protocol Status (per HMM-001): RED — Do not deploy as strategy-selection tool. The HMM remains valuable as a descriptive research feature for understanding how regimes correlate with strategy performance, but the real-time signal is insufficient to improve Wheel timing out of sample.