EconStatsCraft › VAR

VAR

Vector autoregression: lag-length criteria, every equation, Granger causality in both directions, stability roots, impulse responses and variance decomposition.

What it needs

The intuition

Sims's objection in 1980 was that the identifying restrictions macroeconomists used to pin down "which variable causes which" were incredible. A VAR refuses to impose them: every variable depends on the lags of every variable, and you let the data describe the joint dynamics. The cost is that you cannot interpret anything structurally until you put SOME assumption back in.

When to use it

Several macro series that plainly influence each other - output, inflation and interest rates - where imposing a causal ordering in advance would be arbitrary.

Where the estimator comes from

y_t=A_1y_{t-1}+\dots+A_p y_{t-p}+\varepsilon_t with E[\varepsilon_t\varepsilon_t']=\Sigma. Because every equation has identical regressors, equation-by-equation OLS is efficient - no system estimator needed. Inverting to the \mathrm{MA}(\infty) form y_t=\sum_j \Psi_j\varepsilon_{t-j} gives the impulse responses. But \varepsilon_t are correlated reduced-form residuals, so a Cholesky factorisation \Sigma=PP' is imposed to make the shocks orthogonal - and that ordering IS an economic assumption about which variable cannot respond within the period.

The model

\mathbf{y}_t=\mathbf{A}_1\mathbf{y}_{t-1}+\dots+\mathbf{A}_p\mathbf{y}_{t-p}+\boldsymbol{\varepsilon}_t,\qquad E[\boldsymbol{\varepsilon}_t\boldsymbol{\varepsilon}_t^{\prime}]=\boldsymbol{\Sigma}

What it assumes

Statistical properties

How to read the output

A worked reading

A one-standard-deviation shock to the interest rate lowers GDP growth by 0.31pp after 3 quarters, with the effect dying out by quarter 8, and explains 22% of GDP growth's forecast-error variance at that horizon. That is conditional on the Cholesky ordering placing output before the interest rate.

Symptom → diagnosis → what to do

If you see thisIt meansDo this
A series is I(1)Spurious VARDifference, or use a VECM if they are cointegrated
An inverse root has modulus below 1UnstableReduce lags; check for unit roots
Impulse responses explodeSame instabilitySame fix
Wide impulse-response bandsToo many parameters for the sampleFewer lags or fewer variables; consider a Bayesian VAR
Results change a lot on reorderingThe identification is doing the workSay so; consider sign restrictions or an external instrument

Common mistakes

Where to read this properly

See also

If the series are I(1) and cointegrated, VECM is the correct model - it keeps the long-run relationship a differenced VAR would discard.

Related Time series - several series

Yield curve (Nelson–Siegel / Svensson) · Dynamic factor model · Dynamic regression (ARIMAX) · Structural VAR · Granger causality · Cointegration · VECM · ARDL & bounds test

All analyses

Charts

Line chart · Area chart · Bar chart · Stacked bar · Scatter plot · Bubble chart · Histogram · Box plot · Pie chart · Heat map · Rebased to 100 · Lorenz curve and Gini

Maps

World map · Bivariate map · Flow map · India - state map · India - district map

Explore

Descriptive statistics · Summary by group · Two-way table · Classical statistical tests

Regression

Multiple regression (OLS) · Logit / Probit · Tobit (censored) · Truncated regression · Multinomial logit · Ordered logit / probit · Quantile regression · Poisson / Negative binomial

Time series - one series

Time-varying coefficients (Kalman) · Unit root tests · Correlogram (ACF / PACF) · ARIMA / SARIMA · Rolling-origin cross-validation · Theta method · Unobserved components · STL forecasting · Forecast combination · Markov regime switching · Change frequency (resample) · ARCH / GARCH volatility · Decompose & filter · Spectral analysis · Exponential smoothing · Forecast accuracy

Time series - several series

Yield curve (Nelson–Siegel / Svensson) · Dynamic factor model · Dynamic regression (ARIMAX) · Structural VAR · VAR · Granger causality · Cointegration · VECM · ARDL & bounds test

Panel data

Panel regression · Panel cointegration tests · Heterogeneous panel: Mean Group & PMG · Gravity model of trade · Dynamic panel GMM · Panel diagnostics · Panel unit-root tests

Multivariate statistics

Principal components (PCA) · Factor analysis · Cluster analysis

Marketing research

Conjoint analysis · MaxDiff (best–worst scaling) · TURF - reach of a product line · Price sensitivity (Van Westendorp) · Market basket analysis · Perceptual map · Scale reliability (Cronbach’s alpha) · Key driver analysis

Causal

Spatial autocorrelation · Spatial regression · Heckman selection · Instrumental variables (2SLS) · Difference-in-differences · Staggered difference-in-differences · Regression discontinuity · Matching & weighting · Oaxaca–Blinder decomposition

Finance & risk

Black–Scholes option pricing · Bond price, duration & convexity · Merton distance to default · EMI / home loan planner · CAPM / beta estimation · Multi-factor model · Portfolio optimization · Value at Risk & Expected Shortfall · Performance & drawdown · Time value of money & NPV/IRR · Equity valuation (DDM, FCF, residual income) · Cost of capital (WACC) · Binomial option pricing · Option strategies (payoff & profit) · Forwards, futures & swaps · Credit risk & Basel capital · Extreme value theory (tail risk)

Actuarial

Life table · Life annuity · Life insurance pricing · Chain ladder reserving · Buhlmann credibility · Survival analysis · Mortality graduation · Aggregate loss model · Ruin probability · Multi-state Markov model · Loss severity fitting

Tests & breaks

Monte Carlo experiment · F-test, Wald & Chow · Structural breaks & stability

Machine learning

Regression vs machine learning · Ridge / Lasso / Elastic Net · Random forest · Gradient boosting

Open the workspace →

Starting engine…

EconStatsCraft rigorous, plain-spoken econometrics

Econometrics that explains itself.

Regression, panel data, time series and the whole battery of tests. Every result is followed by a verdict you can defend.

Load a dataset to see it here.