Day 95 — Regime switching, and the temptation it represents

Monday, 9 November 2026 · Week 14 of 52 · Time series · Study day · 60 min

Every strategy that stopped working looks like a regime change afterwards, and a model that can declare regimes will always find them, so the discipline is in the out-of-sample test rather than in the fit.

What you should be able to do tonight

  • Fit a two-state Markov switching model and interpret the transition matrix in terms of expected regime duration.
  • Say what a regime model can and cannot do in real time, and why the smoothed state probabilities are not usable for trading.

Tasks 60 min

30 min Fit a two-state Markov switching model to your spread or to index returns with statsmodels, and report the transition matrix, the implied expected duration of each state, and the state-conditional parameters.

30 min Make the distinction that matters: plot the smoothed state probabilities against the filtered ones. The smoothed series uses future data and looks convincing; the filtered series is what you would have had. Then run a changepoint detection on the same series with ruptures and compare where the two methods put the breaks.

Resources

Deliverable

notebooks/day-095-regimes.ipynb with a fitted two-state model, its transition matrix, and filtered against smoothed probabilities plotted together.

Checkpoint

Why can you not trade on smoothed regime probabilities, and how much worse is the filtered version at calling a turn?

Prepare for tomorrow

Ten minutes tonight so Day 96, Tuesday, 10 November 2026 starts clean. This is what the evening email sends you.

Assemble the pieces milestone 3 needs and list what is missing. It should be short by now.

Confirm the out-of-sample period has still not been used for any selection decision.

If it has, say so in the report tomorrow rather than quietly using a different window.