Markov-Switching Vector Autoregression (MS-VAR)
A Markov-switching VAR lets the intercepts, autoregressive matrices and error covariance of a vector autoregression change with an unobserved regime that follows a Markov chain. Parameters are estimated by maximum likelihood through the EM algorithm with the Hamilton filter and Kim smoother, followed by a direct refinement of the exact likelihood. Smoothed regime probabilities show when each regime was in force.
마르코프 전환 VAR은 벡터자기회귀의 절편, 자기회귀 행렬, 오차 공분산이 관측되지 않는 국면에 따라 달라지고 그 국면이 마르코프 연쇄를 따른다고 보는 모형입니다. 해밀턴 필터와 킴 평활기를 쓰는 EM 알고리즘으로 최대우도 추정을 하고, 정확한 우도를 직접 한 번 더 최대화합니다. 평활된 국면 확률로 각 국면이 언제 나타났는지 알 수 있습니다.
Do these series move between distinct regimes with different dynamics, and when did the regimes occur?
이 계열들이 동학이 다른 몇 개의 국면을 오가며, 각 국면은 언제 나타났습니까?
The method returns regime-specific intercepts, autoregressive coefficients and covariances with standard errors, the transition matrix, expected regime durations, smoothed regime probabilities, and the log-likelihood with AIC and BIC against a linear VAR.
When to use Markov-Switching Vector Autoregression (MS-VAR)
- Several related series show periods of different means, volatility or dynamics.
- You want the probability of each regime at every date.
- Regime durations and switching probabilities are of interest.
When to use something else
- Only one series is modelled: use Markov Switching Regression Model
- Regimes are observed or known dates: use Bai-Perron Multiple Structural Breaks
Assumptions and requirements
- Regimes follow a first-order Markov chain
- Gaussian errors within each regime
- Each regime is visited often enough to estimate its parameters
- The likelihood is conditional on the first p observations
What the analysis reports
- Regime-specific coefficients and covariances
- Transition matrix and expected durations
- Smoothed regime probabilities
- Log-likelihood, AIC and BIC
How to report it
A [M]-regime Markov-switching VAR([p]) for [K] series (T = [value]) had log-likelihood [value] (BIC [value] vs [value] for the linear VAR); expected regime durations were [value] periods.
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with statsmodels and direct computations (formulas, enumeration or simulation) at a stated tolerance of 2e-3.
독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과(허용오차 2e-3).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Markov-Switching Vector Autoregression (MS-VAR) on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.