EconStatsCraft › VECM

VECM

Estimates the vector error-correction model once the Johansen test says your series are cointegrated: the long-run relationship, how fast each variable adjusts to it, and who is weakly exogenous.

What it needs

Frequently asked questions

What is a VECM model?

A vector error correction model (VECM) is a VAR for variables that are non-stationary but cointegrated. It models their short-run changes while including an error correction term that pulls them back towards their long-run equilibrium relationship.

When should I use a VECM instead of a VAR?

Use a VECM when the series are I(1) and the Johansen test finds at least one cointegrating relationship. A VAR in levels ignores the long-run constraint, and a VAR in differences throws the long-run relationship away; the VECM keeps both.

How do I interpret the alpha and beta in a VECM?

Beta is the cointegrating vector: the long-run equilibrium relationship between the variables. Alpha is the speed of adjustment: how much of last period's deviation from equilibrium each variable corrects this period. A significant negative alpha on a variable means it does the adjusting; an alpha near zero means it is weakly exogenous.

What is the error correction term?

The error correction term is last period's deviation from the long-run relationship, beta times the lagged levels. Multiplied by alpha, it is the part of each variable's change that closes the gap to equilibrium.

How many cointegrating relationships should a VECM have?

As many as the Johansen trace or maximum-eigenvalue test supports, which must be fewer than the number of variables. Zero means no cointegration (use a VAR in differences); as many as the number of variables means the series are stationary (use a VAR in levels).

The intuition

Two non-stationary series that are tied together cannot drift apart forever. A VECM formalises that: it models the CHANGES in each variable, but adds a term measuring how far the system currently sits from its long-run equilibrium. The further from equilibrium, the harder the pull back. β describes the equilibrium; α describes who does the adjusting.

When to use it

After Johansen finds one or more cointegrating relationships. It is the correct model there - a VAR in differences would discard the long-run information.

Where the estimator comes from

Start from a VAR in levels and rewrite it as \Delta y_t=\Pi y_{t-1}+\sum_i \Gamma_i \Delta y_{t-i}+\varepsilon_t. The rank of \Pi decides everything: rank 0 means no cointegration (a VAR in differences), full rank means the series were stationary all along, and intermediate rank r means \Pi=\alpha\beta' where \beta holds the r cointegrating vectors and \alpha the adjustment speeds. Johansen estimates this by reduced-rank regression, and the trace and maximum-eigenvalue statistics test the rank.

The model

\Delta \mathbf{y}_t=\boldsymbol{\alpha}\boldsymbol{\beta}^{\prime}\mathbf{y}_{t-1}+\sum_{i=1}^{p-1}\boldsymbol{\Gamma}_i\,\Delta\mathbf{y}_{t-i}+\boldsymbol{\varepsilon}_t

What it assumes

Statistical properties

How to read the output

A worked reading

β normalised on log GDP gives (1, −0.83) on log money, so the long-run money elasticity of output is 0.83. α = −0.19 on the GDP equation and insignificant on money: output does the adjusting, correcting 19% of any gap per quarter (half-life ≈ 3.3 quarters), while money supply is weakly exogenous.

Symptom → diagnosis → what to do

If you see thisIt meansDo this
Rank is 0No cointegrationModel in first differences - a plain VAR on Δy
Rank equals the number of variablesEverything was stationaryUse a VAR in levels
α positive and significantExplosive - moves away from equilibriumCheck the sign convention and the normalisation
All α insignificantNothing adjustsThe cointegrating relation may be spurious
Results flip with the deterministic termsSpecification-drivenJustify the choice economically and report alternatives

Common mistakes

Where to read this properly

See also

Cointegration determines the rank you need here. ARDL is the alternative when integration orders are mixed.

Related Time series - several series

Yield curve (Nelson–Siegel / Svensson) · Dynamic factor model · Dynamic regression (ARIMAX) · Structural VAR · VAR · Granger causality · Cointegration · 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.