Cointegration and Error Correction
00 · Symbol Glossary
is if differences produce an series (weakly stationary, for our purposes) and differences do not. Log prices are the usual candidates; returns are the candidates.
A vector such that is while itself is . In the bivariate case is unique up to scale.
In an error-correction model, (a vector or matrix) multiplies the lagged equilibrium error. It says who closes the gap, and how fast.
In , cointegration of rank is with . Johansen tests that rank.
01 · Spurious Regression
A levels VAR on independent nonstationary series can look spectacular: near one, -statistics in the double digits, and nothing causal happening.
If and are independent series, the levels OLS regression typically yields an residual, a large , and -statistics that do not have a limit. Significance is fiction.
A significant of an equity index level on an unrelated series is not evidence of a relationship.
Why it breaks: both series wander; OLS attributes the shared wander to . The residual inherits a unit root.
Consequence: difference both series, or test whether a candidate residual is (the cointegration route below). Do not publish levels -tests of independent series.
02 · Cointegration
and are both . They are cointegrated if there exists such that is . The pair shares one common stochastic trend; is the equilibrium error.
In a -vector that is , cointegration of rank means there is a matrix of rank with an -vector of series. Then there are independent stochastic trends.
If the basis is mean-reverting while each log price is , a cointegrating vector is (or a nearby ). A pairs-trade residual is the same idea: the spread is the candidate . Whether that spread is actually is an empirical claim, not a slogan.
03 · Engle–Granger Two-Step
Superconsistency: under cointegration converges at rate rather than the usual . That fast rate is what licenses treating as if were known when you pass it to the second stage.
Superconsistency is not a licence to do inference on itself. The static OLS estimator carries a second-order bias whenever is correlated with the equilibrium error, and its limiting distribution is not mixed normal, so the reported -statistic on has no standard interpretation. If the long-run coefficient is the quantity you want to test — a hedge ratio of exactly , say — estimate it with DOLS (add leads and lags of to the static regression) or FM-OLS, which restore asymptotic mixed normality and valid -tests. A constant and trend in the first step must also match the DGP.
In a bivariate system the cointegrating vector is unique up to scale, but OLS normalizes on the left-hand variable. If both series are noisy, the two possible regressions need not agree in small samples. That is one reason system estimators exist.
04 · Error Correction
If and are cointegrated, the Granger representation theorem says there is an error-correction model (ECM). A bivariate sketch:
and a matching equation for , with . The coefficient is the speed at which closes the gap. If when , a positive gap pulls down. At least one of must be nonzero or the equilibrium does no work — in a bivariate system, often only one series error-corrects while the other adjusts weakly or not at all, depending on which market leads.
A levels VAR that omits is misspecified under cointegration: the long-run term is missing. A differences-only VAR omits it too, and cannot recover the levels relation.
Including in a differences regression when the residual is still is not error correction.
Why it breaks: the ECM representation assumes cointegration. Without it you have mixed a spurious lagged levels combination into .
Consequence: test cointegration first. Then estimate .
05 · Johansen, Briefly
For , or when you do not want to choose a left-hand variable, the Johansen procedure estimates a VECM
where collects the long-run behaviour of the levels VAR. Everything hinges on :
| Meaning | Correct model | |
|---|---|---|
| , no cointegration | VAR in differences | |
| , relations, common trends | VECM | |
| was already | VAR in levels |
The two statistics are built from the ordered squared canonical correlations of a reduced-rank regression. Stated, not derived:
They test different hypotheses. Trace takes against the unrestricted alternative . Maximum-eigenvalue takes against exactly one more, . In practice you run them sequentially from upward and stop at the first non-rejection — which means the overall error rate is not the nominal one you read off each step, and the two statistics can disagree about .
The Johansen statistics are likelihood ratios, but their null distributions are not .
Why it breaks: under the null there are unit roots in the system. The limits are functionals of a -dimensional Brownian motion — the multivariate cousin of the Dickey–Fuller distribution of Chapter 04. The tabulated values depend on and on which of Johansen’s five deterministic specifications you chose (no terms; constant restricted to the cointegrating relation; unrestricted constant; trend restricted to the relation; unrestricted trend).
Consequence: use the Johansen–MacKinnon–Haug–Michelis tables that match your and your deterministic case, and state which case you ran. A degrees-of-freedom count is not available here.
The factorization is not unique. For any nonsingular matrix , gives the identical . Only the cointegrating space — the column span of — is identified by the data; individual columns need normalization restrictions before they can be read as economic relations. For this collapses to the “unique up to scale” statement made earlier in this chapter. For , a printed is a software normalization choice, and interpreting one of its columns as the long-run relation without imposing and testing restrictions is an error.
This course does not derive those statistics or quote their critical values. Treat Johansen as a system rank test plus a jointly estimated . Use it when Engle–Granger’s single-equation normalization is the wrong tool.
06 · Exercises
Independent random walks; the residual inherits a unit root.
Spurious regression: is , OLS -statistics do not have a standard normal limit, and can look large. Differencing, or a cointegration test on the residual, is the check.
You regress one independent random walk on another in levels and get and . What went wrong, and what should you look at next?
should be ; is unique up to scale.
. Any nonzero scale of spans the same cointegrating space.
If and are and is , write a cointegrating residual .
The lagged gap belongs in the equations.
An error-correction term (plus short-run lags). A plain VAR in differences leaves the long-run relation out.
In an ECM for cointegrated , what extra regressor appears next to lagged differences?
07 · Chapter Summary
| Idea | Content |
|---|---|
| levels nonstationary; stationary | |
| Spurious regression | independent series look related in levels OLS |
| Cointegration | is |
| Engle–Granger | OLS levels, then a residual unit-root test with the right tables |
| -consistent, but no standard ; use DOLS or FM-OLS to test it | |
| ECM | depends on the lagged equilibrium error |
| Johansen | rank of ; trace vs max-eigenvalue test different |
| only the cointegrating space is identified |
Next: Chapter 09 — Spectral Analysis and Linear Filters, the same second-order structure read in the frequency domain.