Hidden Markov Model

A Gaussian Hidden Markov Model fit on SPY daily log-returns + 21-day realized volatility. It infers hidden market regimes — calm bull, chop, crisis — and the probability the market is in each right now (filtered, no look-ahead). Regimes are named after fitting by their realized return and volatility.

Model comparison

The app runs three different Markov models on SPY. Each keeps its own state labels — they are named differently by construction, so a difference between models is a methodology difference, not a contradiction. Each available model's chart has its own time-span selector, starting at the window selected above.

Fitting the models — the comparison will appear automatically.
connecting…