TL;DR
A vector autoregression, or VAR, is a model for several time series at once. Each variable is predicted from its own past values and from the past values of every other variable in the system. Each equation is an ordinary linear regression, so the whole model is fitted with tools you already know.
VARs let the variables talk to each other. An interest rate can depend on last month's inflation, and inflation can depend on last month's rate, all in one model.
Where you'll see it: in macroeconomic forecasting, where a handful of variables such as output, inflation and the policy rate are modelled together, and in studies that trace how a shock to one variable spreads to the others.
This lesson explains a statistical model. It is not financial or economic advice.
Intuition
One variable, then several
A single series can be forecast from its own history. If this month's temperature is close to last month's, a simple Autoregressive Model that says "tomorrow looks like today, a bit adjusted" does well. That is one equation with one variable.
Now suppose you track two things, say the number of rabbits and the number of foxes in a field. Rabbits today depend on rabbits yesterday, but also on how many foxes ate them. Foxes today depend on foxes yesterday, and on how many rabbits were available to eat. A model that uses only each series' own past misses the second effect. A VAR keeps both series and lets each one use the other's history.
The picture is a set of gears. Turn one and the others move with it, a little later and by an amount set by the model.
Why not just write a big structural model?
Economists used to build large models with dozens of equations, each carrying a theory about how one variable responds to another. Christopher Sims argued in 1980 that many of those restrictions were imposed for convenience rather than learned from the data. A VAR takes the opposite route. It lets every variable depend on the past of every other variable, and lets the data decide which links matter. You pay for that freedom with many parameters, and you have to be careful about how you read the results. Both points come up below.
The math
The model
Let be a column vector of variables observed at time . A VAR() is
where is a vector of constants, each is a matrix of coefficients, is the number of lags (how many past periods feed in), and is a vector of shocks.
Read it one row at a time. Row says that variable today equals a constant, plus a weighted sum of all variables from the last periods, plus its own shock. The matrix holds the weights: entry of says how much variable at lag pushes variable today.
The shocks are assumed to be White Noise in the vector sense. Each has mean zero, no link to its own past, and a covariance matrix that does not change over time. Because the shocks in one equation can be correlated with the shocks in another, is generally not diagonal. The entries of form the Covariance Matrix of the shocks.
The simplest case: two variables, one lag
Take and , with no constant and no shocks for now:
Here and
The first equation says today is half of last period plus a fifth of last period. The second says today is a tenth of last period plus six tenths of last period.
Stationarity: will it settle down?
A single Stationary Process has the same mean and a fixed spread over time. For a univariate AR(1), , the process is stationary when . Each shock decays by the factor every period, so its effect fades.
For a VAR the same idea uses the matrix. Stack the lags into a bigger first-order system, called the companion form, and ask for all of its eigenvalues to have absolute value below 1. For the eigenvalues are simply those of . For a matrix, with trace (sum of the diagonal) and determinant ( for entries ), they solve , which gives the answer for the example above.
Estimation: one regression per equation
Every equation of a VAR has the same right-hand side: the constant and the lags of all variables. Because the regressors are identical across equations, you can estimate each equation separately by ordinary least squares. The result is the same as fitting the whole system jointly, and when the shocks are Gaussian it is also the maximum likelihood estimate.
The number of coefficients is large. Each equation has coefficients, so the equations together have
coefficients, before counting the entries of . Two variables with two lags give . Three variables with four lags give .
Forecasting
Given the current values, the one-step forecast is the model's mean for the next period with the shocks set to zero:
Longer forecasts feed each forecast back in as if it were data.
Impulse responses and the ordering problem
A VAR describes correlations between shocks, but the shocks are not yet "the interest-rate shock" or "the demand shock". The covariance matrix can be correlated across equations, so a shock to one equation also moves the others in the same period. To trace the effect of one economically meaningful shock you have to decide how the contemporaneous links run.
A common choice is a Cholesky Decomposition of , which orders the variables so that the first one responds only to its own shock within the period and the last one responds to all of them. The answer depends on the ordering, which is a judgment, not something the data settles. This is why a VAR's results need to be read together with an explicit identification assumption.
The mapping from a one-off shock to the path of every variable over time is the Impulse Response Function. It is built from the matrices and the chosen shock structure.
Worked examples
Use from the simplest case, no constant and no shocks, and start from .
- Period 1: . Also . So .
- Period 2: . Also . So .
Interpretation: a starting value of alone reaches one period later, and both values shrink each period. The effect of on is visible but small.
Same matrix. First check stationarity. The trace is and the determinant is . The eigenvalues solve :
- Discriminant: .
- Square root: .
- Roots: , so or .
Both are below 1 in absolute value, so the system is stationary.
Now forecast from with zero shocks:
- One step: and . Forecast .
- Two steps: and . Forecast .
Interpretation: both forecasts drift towards zero, the mean of this stationary system. Your two-step forecast is already closer to zero than the one-step forecast.
Macroeconomists often model three series together, for example output growth, inflation and a short-term interest rate, observed monthly. Take and , so that four months of history feed into each equation.
- Each equation has coefficients: one constant and twelve lag weights.
- Three equations give coefficients in the mean.
- The shock covariance is a symmetric matrix, so it has distinct entries. The total is numbers.
- With a few hundred monthly observations, each equation is fitted with about the same amount of data as a single regression with 13 predictors. Estimates are noisy, so the coefficients are read as a group, not one at a time.
Interpretation: the model's strength is that output, inflation and the rate can influence each other with no imposed direction. Its weakness is that 45 numbers come from a short sample, so the individual links are uncertain. That is why impulse responses are usually reported with confidence bands.
Tradeoffs and failure modes
| Situation | What goes wrong | Better choice |
|---|---|---|
| Many variables with many lags | Parameters grow as ; the estimates become noisy and forecasts overfit | Fewer variables, fewer lags, or a Bayesian prior that shrinks the coefficients |
| Trending series such as levels of GDP | Regressions on non-stationary data can show strong links that are not real (spurious results) | Difference the series (model period-to-period changes), or use a cointegration model, which handles series that drift together over time, such as a vector error correction model |
| Asking what happens after a policy change | Correlations between shocks hide which shock caused what | Impose an identification scheme and report how sensitive the answer is to it |
| Only forecasting a few steps ahead | A VAR is often as good as a larger model and much easier to build | Use it as the baseline |
| Structural questions with a clear theory | The VAR lets the data pick links that the theory rules out | A structural model such as a DSGE Model |
History
Vector autoregressions were popularised by Christopher Sims in the early 1980s. In his 1980 paper "Macroeconomics and Reality", published in Econometrica, he argued that large models with many imposed restrictions were not well supported by the data, and he proposed VARs as a less restrictive alternative. The approach spread quickly through macroeconomics and central-bank research. Sims shared the 2011 Nobel Memorial Prize in Economic Sciences with Thomas Sargent for their empirical work on cause and effect in the economy.
Recap
A VAR writes each variable as a linear function of the past of all variables plus a shock. It is stationary when the matrix of lag weights has eigenvalues inside the unit circle. Each equation is estimated by ordinary least squares, but the number of parameters grows quickly. Impulse responses, which trace one shock through time, need an identification choice on top of the fitted model. Where it leads next: the Impulse Response Function that answers "what does one shock do?", and the DSGE Model when a theory should constrain the links.
Check yourself
QuestionRecall: what does the matrix hold in a VAR(1), and what does the entry in row , column mean?Show answer
is the matrix of lag-one coefficients. Entry says how much variable in the previous period contributes to variable in the current period. Row is the equation for variable , and column indexes which variable from the past it uses.
QuestionComputation: for the VAR with and with zero shocks, what is ?Show answer
. . So .
QuestionWhy: why can each equation of a VAR be estimated by ordinary least squares on its own?Show answer
Every equation has the same regressors: the constant and the lags of every variable in the system. When the regressors are identical across equations, separate least squares fits give the same coefficients as a joint estimate of the system. With Gaussian shocks this is also the maximum likelihood estimate, so nothing is lost by treating the equations separately.
QuestionApplied: a researcher fits a VAR with five variables and six lags to 120 quarterly observations. What is the main concern, and what would you check first?Show answer
The system has coefficients in total. Each equation has coefficients estimated from about 114 usable rows (the first six quarters are consumed as lags), so the estimates are very noisy and the model is likely to overfit. First check the stationarity of each series, then reduce the number of variables or lags, or use a prior that shrinks the coefficients towards zero.