Modelcore
Vector autoregression
Also called VAR model.
An autoregressive model for a vector of series, in which each series depends on lags of all of them. It is fitted equation by equation with least squares.
A vector autoregression of order , VAR(), models series together: each series at time is a linear function of the last values of all series plus a noise term, . It is the autoregressive model with vectors in place of numbers and matrices in place of coefficients. The model is stable, and has a stationary solution, exactly when the companion matrix has all eigenvalues inside the unit circle. Because every equation has the same regressors, ordinary least squares applied to each equation alone is already the efficient system estimate. Sims (1980) made the VAR the standard tool of empirical macroeconomics. Its outputs are forecasts, Granger causality tests, impulse responses and forecast error variance decompositions, and its error correction form is the setting of the Johansen test for cointegration.
The machine
Notation. . The noise is vector white noise, : , positive definite, and for . With the backshift , write , so the model is
The univariate polynomial of the AR model becomes the matrix polynomial , and its roots become the roots of .
Parameters. The intercept , the coefficient matrices with , and . That is numbers. Entry of is the effect of on with all other lags held fixed.
Companion form. Stack . Then with
and . Every VAR() is a VAR(1) in dimensions, and every AR() is the case .
Stability. The VAR is stable when for all complex . Theorem 1 below proves that this holds exactly when the spectral radius of is below 1, and that then is the unique stationary solution with uncorrelated with the past, where and the decay geometrically. If , the process has a unit root; with of rank , , the series are cointegrated, and the model is written in error correction form with .
A worked case. Take , , ,
Then , with roots and , both outside the unit circle; the eigenvalues of are and . The model is stable. Its variance solves , a linear system of 4 equations in the entries:
and .
What it counts
| quantity | formula | cost from the parameters |
|---|---|---|
| moving average weights | , ; equivalently with | per lag |
| mean | ||
| autocovariances | with , then for (the multivariate Yule-Walker equations) | directly, by a Schur method, then per lag |
| forecasts | , with for | per step |
| forecast error covariance | ||
| impulse responses | ; orthogonalized with the Cholesky factor | per lag |
| variance decomposition | share of shock in the -step error of series : | |
| spectral density | per frequency |
Impulse responses depend on the order. In the worked case, and : a unit change in alone moves by 0.31 and by 0.27. But the errors are correlated, so a change in alone is not a typical event. The Cholesky factor in the order is : the first orthogonal shock moves by 1 and by 0.5 on impact, and the second moves only . In the order the impact matrix is : now a shock to also moves by 0.5 on impact, and the other shock moves only . The variance decompositions change with it. At , the order attributes 97.8% of 's forecast error to its own shock; the order attributes 67.5%. The data cannot tell the two orders apart, because both give the same . The order is an assumption about which variable can react to which within one period.
Relation to other models
- Autoregressive model. The case . Each equation of a VAR is an autoregressive distributed lag regression.
- VARMA. Adding a matrix moving average part gives VARMA(, ). It is more parsimonious, but its parameters are not identified without extra rules (echelon forms), which is why practice uses VARs. A stable VAR is a VMA(), and an invertible VARMA is a VAR(), which a VAR() with growing slowly approximates.
- State space model. The companion form is a state space model with state and no observation noise. The Kalman filter then handles missing values and mixed frequencies.
- Error correction form and cointegration. A VAR with unit roots and is a vector error correction model. The Johansen test estimates by reduced rank regression, and the Engle-Granger test checks one relation.
- Seemingly unrelated regressions. A VAR is a system of regressions with correlated errors and identical regressors. Zellner's (1962) GLS for such systems reduces to OLS here (Theorem 2). With zero restrictions that differ across equations, it does not.
- Structural VAR. with uncorrelated structural shocks . The reduced form is the VAR with , . Recursive (Cholesky), long-run, sign and external-instrument restrictions are different ways to pick .
- Local projections. Jordà (2005) estimates the response at horizon by regressing on directly, one regression per . Under a correct VAR both target the same ; local projections are less efficient but more robust to a wrong lag order.
Known results in the model
Theorem 1 (stability and the companion matrix). (a) for all . Hence the roots of are exactly the reciprocals of the nonzero eigenvalues of , and on if and only if every eigenvalue of has . (b) If every eigenvalue of has , then , with and , converges in mean square, solves the model, and is stationary. It is the only stationary solution in which is uncorrelated with for . (c) If some eigenvalue of has , there is no stationary solution with uncorrelated with the past.
Proof. (a) Split into the first block row and column and the rest: , , , and is block lower bidiagonal with on the diagonal and below it, so . The Schur complement formula gives . Solving block by block gives and , so . Then and . For , , so is an eigenvalue if and only if is a root; is never a root since .
(b) Since is invertible, satisfies the model with , so take . With strictly between the spectral radius and 1, Gelfand's formula gives a constant with . Then , so converges in mean square. It satisfies term by term, its mean is 0 and its covariances do not depend on , and it is uncorrelated with later . Its first block is , because . For uniqueness, let be any stationary solution with uncorrelated with the past. Iterating times, , and . So in mean square.
(c) Let and with . Write in blocks. The block equations are for and . If , the last one gives and then, going up, all ; so . Let . Then (plus a constant, which does not change variances). If were stationary with uncorrelated with , then would satisfy with , so , which is impossible for .
The AR(2) model is a check of part (a) with : has eigenvalues 0.7 and 0.5, and .
Theorem 2 (equation-by-equation OLS is GLS and the Gaussian MLE). Write the equations as , with of size , the common regressor matrix of size (a column of ones and the lags, ) of full column rank, and rows of uncorrelated with covariance . (a) The GLS estimate of the stacked system , , is , which is OLS on each equation, for every positive definite . (b) For Gaussian errors and conditional on the first observations, the maximum likelihood estimates are and with .
Proof. (a) Using and ,
and . has dropped out. (b) The conditional log-likelihood is plus a constant. Since , , and the second term is positive semidefinite, so for every the trace is smallest at . With , maximizing over gives , the standard result for a Gaussian covariance.
In a fixed-regressor setting, (a) and the Gauss-Markov theorem for generalized least squares make the best linear unbiased estimate. In a VAR the regressors are lagged , so is biased in small samples (toward less persistence, like the AR(1) estimate), and its optimality is asymptotic.
Asymptotic law (cited). If the VAR is stable and is IID (or a martingale difference with bounded fourth moments) with covariance , then with , and in probability (Lütkepohl 2005, Chapter 3; Hamilton 1994, Chapter 11). So Wald tests of linear restrictions, such as Granger noncausality, are asymptotically chi-square. With unit roots, is still consistent, but Wald tests on coefficients that cannot be written as coefficients of stationary regressors have nonstandard laws (Sims, Stock and Watson 1990). The Granger causality page measures this in a simulation and gives the Toda-Yamamoto fix.
A simulated fit. With seed 2026, simulate 200 points from the worked case (after a burn-in of 100) and fit a VAR(1) with intercept by OLS on 199 rows. The estimates are , with standard errors about 0.07 for each entry, and . The eigenvalues of are 0.746 and 0.295. The entry 0.659 is more than two standard errors from 0.5, which is the sampling noise of one draw, not a property of the method.
Order selection. The lag order is chosen by the Akaike information criterion , by Hannan-Quinn, or by the Bayesian information criterion , or by sequential likelihood ratio tests. For a finite true order, BIC and Hannan-Quinn are consistent and AIC overestimates the order with positive probability (Lütkepohl 2005, Chapter 4). Too few lags leave correlated residuals and bias every derived quantity, so check the residuals with a multivariate portmanteau test.
Dimension. The number of coefficients, , grows fast: and give 196 coefficients besides the intercepts. Large VARs need shrinkage, such as the Minnesota prior of Bayesian VARs, which pulls each equation toward a random walk (Litterman 1986), or factor models.
Forecasting. The forecasts above are the best linear forecasts for a stable VAR with known parameters, and their error covariance tends to as grows. With estimated parameters the forecast error has an extra term of order .
References
- Christopher A. Sims, Macroeconomics and reality, Econometrica 48(1) (1980), pages 1 to 48, the case for unrestricted VARs, orthogonalized impulse responses and variance decompositions
- Helmut Lütkepohl, New Introduction to Multiple Time Series Analysis, Springer, 2005, Chapter 2 (stable VAR processes, the companion form, Granger causality, impulse responses and variance decompositions), Chapter 3 (least squares and maximum likelihood estimation and their asymptotic laws) and Chapter 4 (order selection)
- James D. Hamilton, Time Series Analysis, Princeton University Press, 1994, Chapter 10 (covariance-stationary vector processes) and Chapter 11 (vector autoregressions)
- Arnold Zellner, An efficient method of estimating seemingly unrelated regressions and tests for aggregation bias, Journal of the American Statistical Association 57(298) (1962), pages 348 to 368, generalized least squares for a system of regressions, which reduces to equation-by-equation least squares when all equations have the same regressors
- Christopher A. Sims, James H. Stock and Mark W. Watson, Inference in linear time series models with some unit roots, Econometrica 58(1) (1990), pages 113 to 144, which Wald tests in a VAR in levels keep their standard limit laws when the series have unit roots
- Òscar Jordà, Estimation and inference of impulse responses by local projections, American Economic Review 95(1) (2005), pages 161 to 182, impulse responses estimated by one regression per horizon instead of by iterating a VAR
- Robert B. Litterman, Forecasting with Bayesian vector autoregressions, five years of experience, Journal of Business and Economic Statistics 4(1) (1986), pages 25 to 38, the Minnesota prior that shrinks each equation toward a random walk
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 5NRXN8 Edit this page History Report an error Markdown