Vector Autoregressive Models (VAR)

Vector Autoregressive (VAR) models are a cornerstone of multivariate time series analysis, pivotal in fields such as econometrics, finance, and various branches of the social sciences. These models help capture the linear interdependencies among multiple time series. Unlike univariate processes (like ARMA models), which depend only on their own past values, VAR models incorporate the past values of all variables in the system to predict future values.

BTC/USD Benchmark ETH/USD Daily candles Kraken
StockSharp JS-Charts

Each forecast fits a new VAR to consecutive matched BTC/USD and ETH/USD daily returns through its starting date. Forecasts are placed at the dates they predict. The training control counts regression responses, with the preceding lagged returns supplied separately.

Loading candle history…

Fundamentals of VAR Models

General Structure

A VAR model describes the evolution of a set of variables over time by considering the lags of each variable. Formally, a VAR model of order p (VAR(p)) for k variables can be expressed as:

Y_t = c + A_1 Y_{t-1} + A_2 Y_{t-2} + \ldots + A_p Y_{t-p} + \epsilon_t

where:

Steps to Implement VAR Models

1. Pre-Processing Data

2. Estimation

3. Diagnostic Checking

4. Forecasting

Uses in Finance and Investing

VAR models are extensively used in finance for various applications, such as:

1. Impulse Response Analysis

2. Forecasting Macroeconomic Indicators

3. Risk Management

Real-World Applications

Several financial institutions and research entities utilize VAR models to inform their strategies and understand economic dynamics. Notable examples include:

  1. Federal Reserve Banks: Employ VAR models for economic forecasting and policy analysis.
  2. European Central Bank (ECB): Uses VAR models for macroeconomic forecasting and to study monetary policy effects. For more detailed insights, visit the ECB’s Statistical Data Warehouse.
  3. International Monetary Fund (IMF): Applies VAR models in its World Economic Outlook projections and reports. Explore more on the IMF Research.

Mathematical Foundations

Vector Autoregression of Order p (VAR(p))

A VAR(p) model assumes:

Y_t = c + A_1 Y_{t-1} + A_2 Y_{t-2} + \ldots + A_p Y_{t-p} + \epsilon_t

The structure ensures that each variable is regressed on its own lagged values and the lagged values of all other variables in the system. The white noise errors \epsilon_t follow:

E(\epsilon_t) = 0
E(\epsilon_t \epsilon_t') = \Sigma_\epsilon

where \Sigma_\epsilon is a covariance matrix.

Estimation Method

The parameters c, A_1, \ldots, A_p can be estimated using Ordinary Least Squares (OLS) for each equation separately. Given the endogenous nature of the model, each endogenous variable is regressed against the lagged values of all endogenous variables in the system.

Identification and Selection Criteria

The identification process involves selecting the optimal lag length using the criteria mentioned earlier (AIC, BIC, HQ). Criteria calculations are as follows:

\text{AIC} = -2 \log(L) + 2k
\text{BIC} = -2 \log(L) + k\log(T)
\text{HQ} = -2 \log(L) + 2k\log(\log(T))

where L is the likelihood of the model, k is the number of parameters estimated, and T is the number of observations.

In the example, L is the maximized Gaussian likelihood conditional on the initial lagged values. The parameter count includes the intercepts, lag coefficients, and three distinct covariance entries. Use the same response dates when comparing lag orders.

Two-series VAR fit and impulse response StockSharp JS-Charts

Enter two values per row in time order. The first four rows supply the lagged inputs so different lag orders use the same response dates. Each coefficient row starts with its intercept. The response curves show the effect of an innovation in the selected equation. At horizon zero the forecast curves show the last observation.

Loading calculator…

Impulse Response Functions (IRF)

Impulse Response Functions (IRF) trace the effect of a one-time shock to one of the innovations on current and future values of the endogenous variables. They provide dynamic responses, which help in understanding the temporal impacts of shocks in a system.

Consider the one-lag VAR.

Y_t = c + A_1 Y_{t-1} + \epsilon_t

When this model is stable, the following moving-average representation gives its impulse responses.

Y_t = \mu + \sum_{i=0}^{\infty} \Psi_i \epsilon_{t-i}

The matrices \Psi_i describe the impulse responses.

\Psi_0 = I,\qquad \Psi_h = \sum_{j=1}^{\min(h,p)} A_j \Psi_{h-j} \quad (h \geq 1)

An innovation in equation j of size s contributes s\Psi_h e_j to the response h steps later. The sample chart applies this reduced-form shock directly.

Variance Decomposition

Variance Decomposition separates the variation in an endogenous variable into the component shocks to the VAR. This helps in understanding the proportion of the movements in a variable due to shocks from itself and from others.

Limitations

Despite their strong utility, VAR models have limitations:

  1. Overfitting: With a large number of parameters, there’s a risk of overfitting, especially in small samples.
  2. Parameter Uncertainty: The accuracy of forecasts can be heavily dependent on parameter estimates, which may have uncertainty.
  3. Stationarity Requirement: Requires the data to be stationary, which may not always be the case for financial time series.

Advanced VAR Models

Structural VAR (SVAR)

An extension of the basic VAR model, the Structural VAR (SVAR) incorporates contemporaneous relationships among the variables to identify structural shocks.

Bayesian VAR (BVAR)

Bayesian VAR incorporates prior distributions on the parameters to improve forecasting, especially beneficial when dealing with shorter time series.

Software and Tools

Several statistical and econometric software packages support the implementation of VAR models, including but not limited to:

  1. R: The vars package in R provides a comprehensive toolset for estimating VAR models.
  2. Python: The statsmodels package in Python includes a module for VAR models.
  3. EViews: A proprietary tool specialized in econometric analysis.
  4. MATLAB: Includes functions for time series analysis and VAR modeling.

In conclusion, Vector Autoregressive models are a powerful tool for understanding and forecasting the dynamics in multivariate time series. Through their ability to model the interdependencies among variables, they offer valuable insights, particularly in economic and financial applications.