Markov switching models are essentially the univariate time series
analog to Gaussian Mixture Modellling (the machine learning GMM).
So some of the intuition and application should be similar to it, but
with persistence, serial correlation in the underlying state and in
the within state autoregression. Outliers would be short lived regimes
or episodes that show up every once in a while, like recessions in the
economy or financial crises.
I haven't read anything in a while, and my references were old
econometrics text books, like Hamilton.
https://github.com/statsmodels/statsmodels/pull/2921
Since Valera and Chad do all the heavy stuff, I think it should be
possible just to run it semi-automatically over various datasets and
check usability for outlier detection.
Similar to automatic forecasting, there would be a need for trying out
different specifications, e.g. choosing the number of states.
Additionally ,mixture models often have multiple local minima that
need to be worked around for applications.
Josef