https://123dok.org/document/6zkvk48q-gibbs-sampling-approach-regime-switching-analysis-financial-series.html