Inferensys

Glossary

Regime-Switching Vector Autoregression (MS-VAR)

A multivariate time-series model where the parameters of a vector autoregression change according to a hidden Markov chain, capturing regime-dependent interactions between multiple economic or financial time series.
ML engineer running AI model benchmarks, performance charts on multiple screens, late night home office setup.
Multivariate Regime-Dependent Modeling

What is Regime-Switching Vector Autoregression (MS-VAR)?

A multivariate time-series model where the parameters of a vector autoregression change according to a Markov chain, capturing regime-dependent interactions between multiple economic or financial time series.

Regime-Switching Vector Autoregression (MS-VAR) is a multivariate time-series model where the coefficients and covariance structure of a Vector Autoregression (VAR) shift between a finite number of discrete states governed by an unobservable Markov chain. Unlike univariate switching models, MS-VAR captures how the dynamic interdependencies between multiple variables—such as interest rates, inflation, and output—change fundamentally when the economy transitions between regimes like expansion and recession.

The model's parameters, including the intercept, autoregressive matrices, and residual covariance, are all regime-dependent, allowing the system's propagation mechanism to differ across states. Estimation typically employs the Expectation-Maximization (EM) algorithm or Bayesian Gibbs sampling to jointly infer the latent regime sequence and the regime-specific VAR coefficients. This framework is essential for macroeconomic forecasting and stress testing, as it models the non-linear feedback loops that emerge during financial crises when standard linear relationships break down.

REGIME-DEPENDENT MULTIVARIATE DYNAMICS

Key Features of MS-VAR Models

Markov-Switching Vector Autoregression (MS-VAR) extends standard VAR models by allowing parameters to shift across unobserved regimes governed by a Markov chain. This captures structural breaks in the interactions between multiple time series—such as GDP, inflation, and interest rates—that occur during recessions versus expansions.

01

Regime-Dependent Coefficient Matrices

Unlike a standard VAR where the autoregressive coefficient matrices are fixed, MS-VAR allows these matrices to vary across regimes. Each regime has its own set of lagged interaction parameters.

  • Mechanism: The model estimates separate coefficient matrices for each hidden state, capturing how the dynamic relationships between variables change when the economy shifts from expansion to contraction.
  • Example: In a low-volatility regime, the feedback from interest rates to equity returns may be weak; in a crisis regime, the same coefficient may become strongly negative and highly significant.
  • Benefit: Prevents the averaging of distinct dynamic structures, avoiding misleading impulse response functions that would result from fitting a single linear model to regime-mixed data.
02

Markovian Regime Transitions

The unobservable regime variable follows a first-order Markov process, meaning the probability of being in a given regime at time t depends only on the regime at time t-1.

  • Transition Probability Matrix: A square matrix where each entry p_ij represents the probability of moving from regime i to regime j. High diagonal values imply regime persistence.
  • Expected Duration: Calculated as 1/(1-p_ii), this tells you how long the system is expected to remain in a given state. A duration of 20 quarters for an expansion regime indicates strong persistence.
  • Filtered vs. Smoothed Probabilities: Filtered probabilities use only information up to time t; smoothed probabilities use the entire sample, providing the best inference of the regime at each point in time.
03

Regime-Dependent Error Covariance

The variance-covariance matrix of the innovations is allowed to differ across regimes, directly modeling heteroskedasticity and volatility clustering in a multivariate setting.

  • Crisis Identification: A regime with a significantly inflated covariance matrix identifies periods of market turmoil where all series exhibit elevated volatility and increased cross-correlation.
  • Contemporaneous Relationships: Changes in the covariance structure reveal how the instantaneous co-movement between variables intensifies during stress—a phenomenon known as correlation breakdown.
  • Structural Identification: Regime-switching in the error structure can be exploited to identify structural shocks without relying on controversial short-run or long-run restrictions, using heteroskedasticity for identification.
04

Regime-Dependent Intercepts and Means

MS-VAR models can specify either regime-dependent intercepts or regime-dependent means, which have different implications for the dynamic adjustment path after a regime switch.

  • MSI Specification: Regime-dependent intercepts cause an immediate one-time jump in the level of the series when a regime change occurs.
  • MSM Specification: Regime-dependent means imply a smooth adjustment toward the new long-run mean, as the autoregressive dynamics govern the transition path.
  • Practical Relevance: Choosing between MSI and MSM affects forecasts. An MSM model predicts a gradual recovery after a recession, while an MSI model implies an abrupt rebound, making the distinction critical for scenario analysis in macro stress testing.
05

Expectation-Maximization Estimation

The EM algorithm is the workhorse for estimating MS-VAR models, iteratively maximizing the likelihood in the presence of unobserved regime states.

  • E-Step: Computes the smoothed probabilities of being in each regime at each time point, given the current parameter estimates. This uses the Hamilton filter, a forward-backward recursive algorithm.
  • M-Step: Updates the parameter estimates—coefficient matrices, covariance matrices, and transition probabilities—using weighted least squares where the weights are the smoothed regime probabilities.
  • Convergence: The algorithm alternates until the log-likelihood stabilizes. Multiple starting values are essential to avoid local maxima, a common pitfall in high-dimensional MS-VAR models with many parameters.
06

Regime-Dependent Impulse Response Functions

Standard impulse response functions trace the effect of a shock through a linear system. In MS-VAR, regime-dependent IRFs show how the propagation of a shock depends critically on the prevailing regime.

  • Asymmetric Responses: A monetary policy shock may have a muted effect on output in a high-growth regime but a magnified effect in a recessionary regime, capturing the well-documented asymmetry in policy transmission.
  • State-Dependent Propagation: The IRF is calculated conditional on remaining in a given regime, or generalized to account for possible regime switches during the response horizon.
  • Application: Central banks use regime-dependent IRFs to assess whether interest rate changes will have the intended effect given the current phase of the business cycle, informing state-contingent forward guidance.
MS-VAR CLARIFIED

Frequently Asked Questions

Concise answers to the most common technical questions about Regime-Switching Vector Autoregression models and their application in quantitative finance.

A Regime-Switching Vector Autoregression (MS-VAR) is a multivariate time-series model where the parameters of a vector autoregression change according to an unobservable Markov chain, capturing regime-dependent interactions between multiple economic or financial time series. Unlike a standard VAR, which assumes a stable relationship between variables, an MS-VAR allows the lag coefficients, intercepts, and covariance matrix of the error terms to shift across distinct states, such as bull and bear markets. The regime at any time t is governed by a latent state variable s_t that evolves according to a transition probability matrix. This framework enables the model to endogenously identify structural breaks and characterize how the dynamic relationships between variables—such as interest rates, inflation, and asset returns—differ fundamentally across macroeconomic or market regimes.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.