Skip to main content
A regime-switching series alternates between distinct dynamic regimes — bull/bear markets, expansion/recession — with switches governed by a hidden Markov chain. Each regime has its own mean and volatility, so the series changes character abruptly and persistently.
The model yt=μst+ϕst(yt1μst)+σstεt,stMarkov(P)y_t = \mu_{s_t} + \phi_{s_t}\,(y_{t-1} - \mu_{s_t}) + \sigma_{s_t}\,\varepsilon_t, \qquad s_t \sim \text{Markov}(P) A latent Markov chain over n_regimes states controls which dynamics generate each step; a transition matrix sets how sticky each regime is. The result is piecewise-stationary data with structural breaks that recur rather than happen once.

Bull/Bear market model

Define a two-regime model where the bull regime has positive mean and low variance, while the bear regime has negative mean and high variance.

Model information

Inspect model parameters including the stationary distribution of the Markov chain.

Regime labels

Generate data with regime labels to see how observations are distributed across regimes.

Statistics by series

Compare summary statistics across the generated series.
Related generators
  • Changepoints — one-off structural breaks rather than recurring regimes.
  • GARCH — smoothly varying volatility instead of discrete states.
Regime and transition parameters are in the generator reference.