Vector Autoregression (VAR): A Practical Guide to Multivariate Time Series Analysis

    This guide explains how vector autoregression (VAR) extends univariate autoregressive models to multivariate time series. It covers the VAR(p) formulation, related models such as VMA, VARMA, and VECM, stationarity and unit-root checks, parameter estimation with OLS, and the distinction between endogenous and exogenous variables. Readers will also learn why VAR estimates are consistent under standard assumptions but should not be described simply as unbiased in finite samples, and how exogenous regressors or block exogeneity constraints can be incorporated.

    In economics, meteorology, industry, and finance, multiple indicators often change at the same time and influence one another. For example, changes in interest rates can affect inflation expectations, and inflation can in turn affect central bank interest-rate decisions. Rising temperatures can change air humidity, and changes in humidity can affect pressure distribution. Forecasting each variable separately with a single-variable model would ignore these interactions. The vector autoregression (VAR) model is designed for this type of problem: it uses a set of equations to describe the dynamic relationships among multiple variables simultaneously.

    From AR to VAR

    A univariate autoregressive model (AR) explains the current value of a variable using only its own past values. The VAR model extends this idea to multiple variables: the current value of each variable is affected by the past values of both itself and the other variables.

    Suppose a time series vector (Z_t) consists of (k) variables. A VAR(p) model of order (p) can be written as:

    [
    Zt = C + \Phi_1 Z{t-1} + \Phi2 Z{t-2} + \cdots + \Phip Z{t-p} + \varepsilon_t
    ]

    Here, (Z_t) is a (k)-dimensional column vector, (C) is a constant vector, (\Phi_i) is a (k \times k) coefficient matrix, and (\varepsilon_t) is an error vector with zero mean and a fixed covariance matrix. When (k=1), the model reduces to an ordinary AR(p) model.

    VAR is often used together with other models. VMA (vector moving average) and VARMA (vector autoregressive moving average) add lag structure for the error terms. VECM (vector error correction model) is used when cointegration relationships exist among the variables.

    Check Stationarity First

    The statistical properties of VAR depend on stationarity. One way to check stationarity is to write the model in companion matrix form and verify that the modulus of every eigenvalue is less than 1. Equivalently, all roots of the characteristic polynomial

    [
    \det(I - \Phi_1 z - \cdots - \Phi_p z^p)
    ]

    should lie outside the unit circle.

    If a series contains a unit root, meaning that it is nonstationary, directly fitting a VAR may make the estimates and inference invalid. In this case, there are two common approaches:

    1. If each series is integrated of order one and no cointegration relationship exists, difference the data and then build a VAR on the differenced series. In this case, the model describes relationships among changes.
    2. If cointegration exists, use a VECM to describe the long-run equilibrium relationship and short-run dynamics separately.

    The ADF test is commonly used to assess unit roots, and the Johansen test is commonly used to assess cointegration relationships.

    Parameter Estimation and the Claim of Being “Unbiased”

    Each equation in a VAR can be estimated separately by ordinary least squares (OLS), because all equations have the same explanatory variables. When stationarity holds, the errors are white noise, and the usual assumptions are satisfied, the OLS estimator is consistent: as the sample size grows, it converges to the true parameters.

    It is important to note that OLS estimates in finite samples may be biased. The stronger the coefficient persistence and the shorter the sample, the more noticeable the bias often becomes. Therefore, when reporting results, standard errors and confidence intervals should be provided together, rather than simply claiming that the estimates are unbiased.

    Endogenous and Exogenous Variables

    The values of endogenous variables are jointly determined by variables inside the model. They are affected by other variables and also affect other variables. The values of exogenous variables are determined by factors outside the model. They affect variables within the system but are not themselves affected by variables in the system.

    A standard VAR treats all variables as endogenous by default. If some variables clearly come from outside the system—for example, the effect of commodity prices on regional inflation—there are two common modeling approaches.

    The first approach is to add exogenous regression terms. Some software provides interfaces such as exog or VARX-like options to include exogenous variables as additional explanatory variables in each equation. At prediction time, future values of the exogenous variables must also be supplied.

    The second approach is to impose block exogeneity constraints. For example, in a VAR(1) model, block exogeneity constraints can be used to restrict the coefficient structure.