Vector Autoregression (VAR)
A vector autoregressive process of order generalizes the AR(p) model from a single series to series whose components depend on each other through time. The state vector evolves as
where each is a transition matrix that says how much the lag- value of every component predicts every other component, and is the contemporaneous covariance of the vector white-noise innovations. The simplest case VAR(1) reads .The off-diagonal entries of are what make VAR more than a stack of independent AR fits. The entry measures how much the lag- value of series predicts today’s value of series , the cross-influences that a univariate AR cannot capture. Many real systems require this: interest rates and inflation move together; blood markers in a patient affect each other day-to-day; neighboring brain regions co-fluctuate.
VAR is stationary when all roots of lie strictly outside the unit circle in the complex plane. The condition reduces to “all eigenvalues of the companion matrix have modulus less than one,” generalizing the univariate root condition. The standard estimator is equation-by-equation OLS: each row of the system is a separate regression of one component on all lagged components, and OLS on each row produces the maximum-likelihood estimate of the corresponding row of .
Coefficient Count Grows Quadratically ) on series has coefficients in plus in . With series and lags that is over parameters before the noise covariance, far too many to estimate without regularization or sparsity assumptions. Classical unregularized VAR is practical only for up to around or ; modern high-dimensional VAR uses lasso or group lasso to identify which cross-influences are non-zero.
A VAR(
Intuition
A VAR is a coupled set of AR regressions, one per series, in which each series’s regressors include not only its own past but also the past of every other series in the system. The diagonal entries of the transition matrices govern how much each series predicts itself at lag , the same self-feedback that a univariate AR captures. The off-diagonal entries govern how much each series predicts the others, the new information that VAR captures and that motivates fitting it in the first place. Reading the fitted matrix entry-by-entry tells you the system’s interaction structure: who drives whom, on what timescale, and how strongly.
The fitting story is unusually clean for a multivariate model. Each row of the VAR equations is a separate regression problem with the same regressors (lagged copies of all series), so OLS row-by-row is consistent and equivalent to the joint maximum-likelihood estimate. The dependence between equations shows up only in the residual covariance , which is just the sample covariance of the residuals across the equations. The hard work is interpreting the fit. A transition matrix can be enormous, and the meaningful summaries (impulse responses, variance decompositions, Granger causality tests) require additional steps beyond the raw coefficients.
Properties
(Companion Form Reduces VAR(p) to VAR(1)) Stack the lags into a -dimensional state.
Define , a vector of length that holds the most recent states stacked. The VAR(p) equations rewrite as where is the companion matrix with in the top block-row and identity blocks below. Stationarity of the VAR(p) is equivalent to the spectral radius of being less than one. This is also the form used internally by software (statsmodels.tsa.vector_ar) and by the Kalman-filter machinery in DLMs when treating the VAR as a state-space model.
(OLS Equation-by-Equation) Each row of the system is a separate regression with the same design matrix.
Stacking lagged copies of all series gives a single design matrix that the same regression is run against times, once per output series. Provided the design has more rows than columns (, with substantial cushion for stable estimation), OLS on each row produces unbiased coefficients and the joint MLE for . The residual covariance is then the sample covariance of the -dimensional residual vector across observations.
(Granger Causality) Series Granger-causes series when lagged improves the prediction of beyond ‘s own past.
Test this with a standard -test on the joint significance of , the entries of the lag matrices that send series into series . Granger causality is a statement about predictive content, not actual causality: lagged smoke can Granger-cause fire if smoke detectors are slow, even though fire causes smoke. It is useful for screening which cross-series links carry predictive information, and misleading if treated as a causal claim without further structural assumptions.
(Impulse Response) The effect on every series of a unit shock to one component.
For the MA() representation derived from the inverted operator, the matrix gives the response of to a unit innovation at time . Because shocks are typically correlated across components ( is non-diagonal), interpreting “a shock to series ” requires an orthogonalization, typically by Cholesky factorization of , which depends on the order of the variables. Different orderings give different orthogonalized impulse responses, the well-known identification problem in structural VAR analysis.
(Variance Decomposition) Forecast error variance attributable to each shock.
The -step-ahead forecast error variance of component decomposes as a sum over the orthogonalized shock channels and the time steps, and the decomposition tells you what fraction of the unpredictable variation in series is driven by each shock source. Reporting “shock to series 2 accounts for 30% of the 12-step forecast variance of series 1” is a staple of macroeconomic VAR analysis. Like impulse responses, the decomposition depends on the orthogonalization order.
(Lag Selection by Information Criteria) Choose by AIC, BIC, or HQ on the multivariate log-likelihood.
Compute the criterion for each candidate order and pick the minimum. BIC tends to select smaller orders than AIC; HQ (Hannan-Quinn) is intermediate. For modest all three criteria usually agree; for large they diverge and BIC’s preference for parsimony is usually the right default to avoid overfitting.
Examples
Bivariate VAR(1)
with , . What does the fitted matrix tell you?
Reading the structure (more persistent), series 2 with (less). The off-diagonal says past values of series 2 do influence series 1, so there is a small spillover. The off-diagonal says series 1 does not influence series 2 at all. Information flows one-way: . Stationarity check: eigenvalues of are and , both inside the unit circle, so the process is stationary. A Granger-causality test would reject "series 2 does not Granger-cause series 1" (since ) but not "series 1 does not Granger-cause series 2."
The diagonal entries say each series has its own AR(1)-like persistence: series 1 with parameter
Bone-marrow transplant biomarkers
Three biomarkers are modeled jointly as a VAR(1).
What the fitted matrix reveals would mean that platelet recovery yesterday predicts white-blood-cell recovery today, consistent with the underlying bone-marrow function recovering as a single coordinated process. The matrix captures shocks that hit multiple markers on the same day. To handle the heavy missing-data pattern in this dataset (about 40% missing, especially after day 35), the VAR has to be embedded in a state-space model and inferred through the Kalman filter. VAR alone has no built-in mechanism for missing observations.
The diagonal entries say how persistent each marker is from one day to the next (close to one means slow change; close to zero means rapid turnover). The off-diagonal entries reveal cross-marker coupling. For example,
Lag selection on a 3-variable VAR
For three quarterly macro series with observations, BIC is computed for .
Procedure , fit the VAR by OLS, compute the residual covariance , and evaluate Pick the that minimizes BIC; macro data typically gives or . The chosen lag order is then used for impulse-response analysis, Granger-causality tests, and forecasting.
For each candidate