Sliding-Window Detection of Hidden Regimes under Stochastic Switching↗
A sliding-window average is a simple estimator of the current state of a hidden regime-switching process, such as a hidden Markov model. A longer window averages out more noise but is more likely to contain a switch, and the question is what such a switch costs. We analyse the decoder that assigns the average of the last $m$ observations to the nearest regime mean. For two regimes with conditionally independent, stochastically ordered observations, a switch inside the window, averaged uniformly over its positions and directions, causes an error with probability exactly $1/2$. Consequently, for every stationary switching law, the error is at most $\bar P(m)+\bar s(m-1)/2$, where $\bar P(m)$ is the stationary-weighted single-regime error and $\bar s$ the switch rate. Under Markov switching, time reversal shows that a window whose oldest and current regimes differ is misclassified with prob
