- Introduced by
- Engle & Granger (1987); Johansen (1988)
- Year
- 1988
- Type
- Time-series cointegration test
What does it do?
The cointegration test examines whether non-stationary time series that each contain a unit root share a stable long-run equilibrium relationship.
The single-equation residual approach was introduced by Engle and Granger (1987) and the system-based rank approach by Johansen (1988).
The intuition behind the method
Two or more series can each wander without bound over time, yet still move together so that a particular combination of them stays stable. Picture a drunk walking a dog on a leash: each one drifts unpredictably, but the leash keeps the distance between them within bounds. Cointegration tests look for exactly that kind of tethering — individual series that trend freely but cannot stray too far apart in the long run.
History
Engle and Granger (1987) formalised cointegration and the error-correction representation, building on Granger's (1981) earlier suggestion. They showed that a linear combination of individually non-stationary series can itself be stationary. Johansen (1988) extended the idea to a maximum-likelihood, system-wide framework that estimates the number of cointegrating vectors from the rank of the long-run impact matrix, and it is widely used as the multivariate test.
When to use it
Use a cointegration test when you have two or more continuous time series that are each integrated of order one, meaning non-stationary in levels but stationary after first differencing, and you want to know whether they share a long-run equilibrium. Confirm the integration order of each series first with an ADF or Phillips-Perron test, and choose the lag length by AIC or BIC, reporting the choice, because the two criteria can disagree sharply and the lag length affects the result. A sample of roughly 50 observations or more is a rule of thumb, not a formal threshold; results from shorter series should be read with caution. Do not use the test when some series are stationary and others are I(1) in a mixed setting, where an ARDL bounds test is designed to work, or when all series are stationary, in which case a level VAR is sufficient. Use the Engle-Granger residual test when the question concerns one equilibrium between two series, and the Johansen procedure when several variables may share more than one relationship.
Limitations and considerations
- Assumes every series in the system is I(1). If some series are stationary, the Johansen framework does not fit, and the ARDL bounds test, which accommodates a mix of I(0) and I(1) regressors, is the usual alternative.
- The size of the Johansen test can be distorted in small samples, so the null of no cointegration may be rejected too often. As a rough rule of thumb, series shorter than about 50 observations call for caution.
- Results depend on the lag length and on the deterministic terms (intercept and trend) specified in the model, and a different choice can change the inferred cointegrating rank.
- The procedure described here applies to individual time series. Panel versions, such as the Johansen–Fisher panel cointegration test, are distinct procedures with their own inference, and time-series critical values should not be applied to panel data.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Detects a genuine long-run equilibrium between trending series that would otherwise look spuriously related.
- The Johansen system approach can identify more than one cointegrating relationship among several series at once.
- A positive result justifies moving to a vector error-correction model that separates short-run dynamics from long-run adjustment.
Applications
- Testing whether macroeconomic pairs such as consumption and income, or wages and prices, share a long-run equilibrium; the original Engle-Granger examples found consumption and income cointegrated but wages and prices not.
- Examining long-run links between short and long interest rates, which the same examples found to be cointegrated, and between nominal GNP and M2, which were cointegrated while M1 and M3 were not.
- Confirming cointegration before specifying a vector error-correction model for forecasting and policy analysis.
How it works
How it works
Each series is differenced once and written in a vector error-correction form: today's change in the vector y depends on its level one period ago through the matrix Π, plus short-run lagged changes and an error term. Π can be factored as Π = αβ′, where the columns of β are the cointegrating vectors and α gives the speed of adjustment back to equilibrium. The rank of Π counts how many independent long-run equilibrium relations hold the series together. Engle and Granger (1987) describe the cointegrating vectors as a matrix, with a′x_t = 0 read as the long-run equilibrium.
Formula
\Delta y_t = \Pi y_{t-1} + \sum_{i=1}^{k-1}\Gamma_i\,\Delta y_{t-i} + \varepsilon_tThe Johansen procedure estimates the rank of Π from its eigenvalues. The trace statistic, -T·ln(1-λ̂ᵢ) summed over the smallest eigenvalues, tests the null of at most r cointegrating relations against more, and successively larger r are tested until the null is no longer rejected. A companion maximum-eigenvalue statistic tests r against r+1 relations. The two are read together: the trace test asks whether more than r relations exist, while the maximum-eigenvalue test checks the step to exactly r+1. The deterministic terms define the test case. Whether the intercept and trend enter the cointegrating relations or only the short-run part changes the critical values and can change the inferred rank, so the case should be chosen on theoretical grounds before testing. The Engle-Granger alternative regresses one series on the others and tests the residual for a unit root, since stationary residuals signal cointegration; because the residuals are estimated, its critical values differ from standard ADF tables and must be simulated separately.
Formula
\lambda_{\text{trace}}(r) = -T\sum_{i=r+1}^{n}\ln(1-\hat{\lambda}_i)Common pitfalls
- Running the test without first confirming that each series is I(1) with an ADF or Phillips-Perron test.
- Applying the Johansen test to a short sample, where small-sample size distortion can make the trace statistic unreliable.
- Choosing the lag length by a single criterion without checking the alternatives. AIC and SC/BIC can suggest very different lag orders, and the inferred cointegrating rank can change with them.
- Treating a cointegrating relationship as causal — Granger causality must be tested separately.
Frequently asked questions
What does it mean for series to be cointegrated?
It means that although each series is individually non-stationary (it wanders with a stochastic trend), a particular linear combination of them is stationary. That stationary combination represents a long-run equilibrium the series return to, so they cannot drift apart indefinitely.
When should I use the Johansen test versus Engle-Granger?
Engle-Granger is a two-step residual test: one cointegrating relationship is estimated by regression and its residual is tested for stationarity. It can be applied to more than two variables, but it estimates one cointegrating vector at a time and cannot count several relationships. The Johansen procedure is a system approach that estimates and tests the number of cointegrating vectors among several variables simultaneously and is generally preferred when more than two variables are involved.
What do I do after finding cointegration?
If the series are cointegrated, estimate a vector error-correction model (VECM), which captures both the short-run dynamics and the speed of adjustment back to the long-run equilibrium. You can then test Granger causality among the variables.
Why does my small sample give unreliable results?
Small samples can distort the size of the Johansen test, so the no-cointegration null may be over-rejected. As a rule of thumb, treat results from series shorter than about 50 observations with caution. Check the lag length and deterministic terms, since both affect the outcome, and run a sensitivity check across the lag orders suggested by AIC and SC/BIC.
Related methods
Sources
Johansen, S. (1988). Statistical Analysis of Cointegration Vectors. Journal of Economic Dynamics and Control, 12(2-3), 231-254.
Open DOI referenceEngle, R. F. & Granger, C. W. J. (1987). Co-Integration and Error Correction: Representation, Estimation, and Testing. Econometrica, 55(2), 251-276.
Open DOI reference