Algorithm Search⌘K

Definitionadvanced

Cointegration

Also called cointegrated series.

Nonstationary series are cointegrated when some linear combination of them is stationary, so they share a common stochastic trend.

Two or more series are cointegrated when each one wanders like a random walk, but some linear combination of them stays near a fixed level. The series then share a common stochastic trend, and the combination measures how far they are from a long-run relation. Examples are the prices of one good in two markets, interest rates of different maturities, and the logarithms of consumption and income. Clive Granger gave the idea in 1981, and Robert Engle and Granger made it formal in 1987. Their representation theorem says that cointegrated series follow an error correction model: the change in each series reacts to the gap from the long-run relation. Cointegration is tested by the Engle-Granger test and the Johansen test. It also explains when a regression of one trending series on another is real and when it is spurious.

Definition

Orders of integration. A KK-dimensional series utu_t is I(0) if it is a stationary linear process ut−Eut=∑i≥0Ciεt−iu_t - \mathbb{E}u_t = \sum_{i \ge 0}C_i\varepsilon_{t-i}, with εt\varepsilon_t white noise, ∑i∥Ci∥\sum_i\|C_i\| finite and ∑iCi≠0\sum_iC_i \neq 0. The last condition excludes over-differenced series such as εt−εt−1\varepsilon_t - \varepsilon_{t-1}. A series YtY_t is I(dd), integrated of order dd, if ∇dYt\nabla^dY_t is I(0) (after a suitable choice of starting values) and ∇d−1Yt\nabla^{d-1}Y_t is not. A random walk is I(1), and an ARIMA(pp, dd, qq) series is I(dd).

Cointegration (Engle and Granger 1987). Let every component of YtY_t be I(dd). Then YtY_t is cointegrated of order (d,b)(d, b), written Yt∼CI(d,b)Y_t \sim \mathrm{CI}(d, b) with b>0b > 0, if there is a vector β≠0\beta \neq 0 such that β⊤Yt\beta^\top Y_t is I(d−bd - b). Such a β\beta is a cointegrating vector. The most common case is CI(1, 1): I(1) series with a stationary combination.

Cointegrating space and rank (Johansen 1995). Let YtY_t be I(1). The vectors β\beta such that β⊤Yt\beta^\top Y_t is stationary for a suitable choice of starting values, together with 00, form a linear subspace of RK\mathbb{R}^K, the cointegrating space. Its dimension rr is the cointegrating rank, with 0≤r≤K−10 \le r \le K - 1. The value r=Kr = K is not possible, because then every unit vector would give a stationary combination and YtY_t would be I(0). The columns of any K×rK \times r matrix β\beta of rank rr that spans the space are a basis. Only the space is determined: β\beta and βQ\beta Q span the same space for any nonsingular r×rr \times r matrix QQ, so a normalization such as a leading identity block is needed to report numbers. A process with rank rr has K−rK - r common stochastic trends. This definition does not require every component to be I(1). A stationary component, if there is one, gives a unit vector in the cointegrating space.

The Granger representation theorem. Let YtY_t follow a VAR(pp) A(L)Yt=εtA(L)Y_t = \varepsilon_t whose characteristic roots det⁡A(z)=0\det A(z) = 0 are either outside the unit circle or at z=1z = 1. Write it in error correction form

∇Yt=ΠYt−1+∑i=1p−1Γi∇Yt−i+εt,Π=−A(1),Γ=I−∑i=1p−1Γi.\nabla Y_t = \Pi Y_{t-1} + \sum_{i=1}^{p-1}\Gamma_i\nabla Y_{t-i} + \varepsilon_t, \qquad \Pi = -A(1), \quad \Gamma = I - \sum_{i=1}^{p-1}\Gamma_i.

Then YtY_t is I(1) with cointegrating rank rr if and only if Π=αβ⊤\Pi = \alpha\beta^\top with α\alpha and β\beta of size K×rK \times r and rank rr, and α⊥⊤Γβ⊥\alpha_\perp^\top\Gamma\beta_\perp is nonsingular, where α⊥\alpha_\perp and β⊥\beta_\perp are K×(K−r)K \times (K - r) of full rank with α⊤α⊥=0\alpha^\top\alpha_\perp = 0 and β⊤β⊥=0\beta^\top\beta_\perp = 0. In that case

Yt=C∑i=1tεi+∑i≥0Ci∗εt−i+A0,C=β⊥(α⊥⊤Γβ⊥)−1α⊥⊤,Y_t = C\sum_{i=1}^{t}\varepsilon_i + \sum_{i \ge 0}C_i^*\varepsilon_{t-i} + A_0, \qquad C = \beta_\perp(\alpha_\perp^\top\Gamma\beta_\perp)^{-1}\alpha_\perp^\top,

with β⊤A0=0\beta^\top A_0 = 0 and a stationary second term (Engle and Granger 1987; Johansen 1991; Johansen 1995, Chapter 4). This page cites the theorem and does not prove it. The K−rK - r random walks α⊥⊤∑iεi\alpha_\perp^\top\sum_i\varepsilon_i are the common trends. The columns of β\beta give the long-run relations, and the adjustment coefficients α\alpha say how fast each series moves back toward them. Because β⊤C=0\beta^\top C = 0, the trends cancel in β⊤Yt\beta^\top Y_t, which is stationary.

Examples and non-examples

  • A worked system. Let ε1t\varepsilon_{1t} and ε2t\varepsilon_{2t} be independent white noise with variance 1, and
∇Y1t=−12(Y1,t−1−Y2,t−1)+ε1t,∇Y2t=ε2t.\nabla Y_{1t} = -\tfrac12(Y_{1,t-1} - Y_{2,t-1}) + \varepsilon_{1t}, \qquad \nabla Y_{2t} = \varepsilon_{2t}.

So α=(−12,0)⊤\alpha = (-\frac12, 0)^\top, β=(1,−1)⊤\beta = (1, -1)^\top and Π=αβ⊤=(−1/21/200)\Pi = \alpha\beta^\top = \begin{pmatrix}-1/2 & 1/2\\ 0 & 0\end{pmatrix}. In levels it is the VAR(1) Yt=AYt−1+εtY_t = AY_{t-1} + \varepsilon_t with A=I+Π=(1/21/201)A = I + \Pi = \begin{pmatrix}1/2 & 1/2\\ 0 & 1\end{pmatrix}, whose eigenvalues are 12\frac12 and 11.

  • Y2tY_{2t} is a random walk, so it is I(1).
  • The gap zt=Y1t−Y2tz_t = Y_{1t} - Y_{2t} satisfies zt=12Y1,t−1+12Y2,t−1+ε1t−Y2,t−1−ε2t=12zt−1+(ε1t−ε2t)z_t = \frac12Y_{1,t-1} + \frac12Y_{2,t-1} + \varepsilon_{1t} - Y_{2,t-1} - \varepsilon_{2t} = \frac12z_{t-1} + (\varepsilon_{1t} - \varepsilon_{2t}). This is a stationary AR(1) with variance 2/(1−14)=8/32/(1 - \frac14) = 8/3. So β=(1,−1)⊤\beta = (1, -1)^\top is a cointegrating vector.
  • Y1t=Y2t+ztY_{1t} = Y_{2t} + z_t is a random walk plus a stationary series, so it is I(1).
  • The rank is exactly 1. For any b=(b1,b2)⊤b = (b_1, b_2)^\top, b⊤Yt=(b1+b2)Y2t+b1ztb^\top Y_t = (b_1 + b_2)Y_{2t} + b_1z_t. This is stationary if and only if b1+b2=0b_1 + b_2 = 0, because otherwise it is a nonzero multiple of a random walk plus a stationary term.
  • With α⊥=(0,1)⊤\alpha_\perp = (0, 1)^\top, β⊥=(1,1)⊤\beta_\perp = (1, 1)^\top and Γ=I\Gamma = I, the matrix α⊥⊤β⊥=1\alpha_\perp^\top\beta_\perp = 1 is nonsingular and C=β⊥α⊥⊤=(0101)C = \beta_\perp\alpha_\perp^\top = \begin{pmatrix}0 & 1\\ 0 & 1\end{pmatrix}. The single common trend is ∑iε2i\sum_i\varepsilon_{2i}, which enters both series with weight 1, and β⊤C=0\beta^\top C = 0.
  • Only Y1Y_1 adjusts to the gap. Y2Y_2 does not react to it, and its past does help to forecast Y1Y_1, so Y2Y_2 Granger-causes Y1Y_1 but not the reverse.
  • Least squares on the levels. In the system above, the regression of Y1Y_1 on Y2Y_2 with an intercept estimates the cointegrating slope 1. With seed 2026 and 1000 samples, the root mean squared error of the slope was 0.259, 0.070 and 0.020 for T=50T = 50, 200 and 800. Each fourfold increase of TT cut it by a factor of 3.5 to 3.7, near the factor 4 of the 1/T1/T rate and far from the factor 2 of the usual 1/T1/\sqrt{T} rate. This is the superconsistency proved on the Engle-Granger test page. The numbers are measured, not derived.
  • One common factor. Let WtW_t be a random walk, u1tu_{1t} and u2tu_{2t} stationary, Y1t=Wt+u1tY_{1t} = W_t + u_{1t} and Y2t=2Wt+u2tY_{2t} = 2W_t + u_{2t}. Then 2Y1t−Y2t=2u1t−u2t2Y_{1t} - Y_{2t} = 2u_{1t} - u_{2t} is stationary, and the cointegrating space is spanned by (2,−1)⊤(2, -1)^\top. With KK series that load on one random walk with loadings λ\lambda, the cointegrating space is every vector orthogonal to λ\lambda, and the rank is K−1K - 1.
  • CI(2, 1). Let StS_t be I(2), such as the running sum of a random walk, and Y1t=StY_{1t} = S_t and Y2t=St+WtY_{2t} = S_t + W_t with WtW_t a random walk. Both series are I(2), and Y2t−Y1t=WtY_{2t} - Y_{1t} = W_t is I(1). So (Y1,Y2)∼CI(2,1)(Y_1, Y_2) \sim \mathrm{CI}(2, 1).
  • Non-example: independent random walks. Let Y1tY_{1t} and Y2tY_{2t} be independent random walks with innovation variance 1. For any b≠0b \neq 0, b⊤Ytb^\top Y_t is a random walk with innovation variance b12+b22>0b_1^2 + b_2^2 > 0, so no combination is stationary and the rank is 0. A regression of one on the other is still often "significant". With seed 2026 and 2000 samples, the usual t test of a zero slope at the 5% level rejected in 67.6% of samples for T=50T = 50 and in 82.0% for T=200T = 200. This is the spurious regression of Granger and Newbold (1974). Phillips (1986) proved that the slope estimate has a random limit and that the t statistic grows like T\sqrt{T}, so the rejection rate goes to 1.
  • Non-example: stationary series. If every component is I(0), every vector gives a stationary combination, and the idea has no content. The CI(dd, bb) definition needs d≥1d \ge 1.
  • Non-example: mixed orders. If Y1Y_1 is I(1) and Y2Y_2 is I(0), a combination b⊤Ytb^\top Y_t is stationary only when b1=0b_1 = 0. In the Engle-Granger sense the pair is not cointegrated, since the components do not have the same order. In Johansen's sense the rank is 1 with β=(0,1)⊤\beta = (0, 1)^\top. This matters in practice, since a stationary series in a Johansen system adds 1 to the rank.
  • Non-example: deterministic trends only. If Yit=cit+uitY_{it} = c_it + u_{it} with stationary uitu_{it}, the combination c2Y1t−c1Y2tc_2Y_{1t} - c_1Y_{2t} removes the trend. The series are trend stationary, not I(1), so this is not cointegration in the sense above. Some authors call it deterministic cointegration.
  • Error correction model. The form ∇Yt=αβ⊤Yt−1+∑iΓi∇Yt−i+εt\nabla Y_t = \alpha\beta^\top Y_{t-1} + \sum_i\Gamma_i\nabla Y_{t-i} + \varepsilon_t above. The Granger representation theorem says that cointegrated VAR series have this form with all terms I(0), and the reverse.
  • Common trends. Stock and Watson (1988) write a cointegrated system as K−rK - r random walks plus stationary parts, as in the representation C∑iεiC\sum_i\varepsilon_i above, and test for the number of trends.
  • Vector autoregression. A cointegrated system is a VAR with roots at z=1z = 1, so it is not stable in the sense of that page. The VAR in levels is still correct, but tests on its coefficients can have nonstandard laws. A VAR in differences omits the term αβ⊤Yt−1\alpha\beta^\top Y_{t-1} and is misspecified.
  • Unit root tests. The augmented Dickey-Fuller test and the KPSS test decide whether each series is I(1) before cointegration is tested. The Engle-Granger test applies a unit root test to the residuals of the levels regression.
  • Rank and canonical correlations. The Johansen test estimates rr by the canonical correlations between ∇Yt\nabla Y_t and Yt−1Y_{t-1}, after both are adjusted for the lagged differences.
  • Granger causality. If two series are cointegrated, at least one of them Granger-causes the other (Granger 1988).
  • Spurious regression. A regression between integrated series that are not cointegrated. Its residuals are I(1), which is what the residual-based tests look for.

References

  1. C. W. J. Granger, Some properties of time series data and their use in econometric model specification, Journal of Econometrics 16(1) (1981), pages 121 to 130, the first statement of the idea that integrated series can have a linear combination of lower order
  2. Robert F. Engle and C. W. J. Granger, Co-integration and error correction, representation, estimation, and testing, Econometrica 55(2) (1987), pages 251 to 276, the definition of CI(d, b), the Granger representation theorem, and the link to error correction models
  3. Søren Johansen, Estimation and hypothesis testing of cointegration vectors in Gaussian vector autoregressive models, Econometrica 59(6) (1991), pages 1551 to 1580, the condition that the matrix of the levels term has reduced rank, and the representation of the process as common trends plus a stationary part
  4. Søren Johansen, Likelihood-Based Inference in Cointegrated Vector Autoregressive Models, Oxford University Press, 1995, Chapter 3 (the definitions of I(0), I(1) and the cointegrating space) and Chapter 4 (the Granger representation theorem)
  5. C. W. J. Granger and Paul Newbold, Spurious regressions in econometrics, Journal of Econometrics 2(2) (1974), pages 111 to 120, the simulation that shows how often a regression of one independent random walk on another looks significant
  6. P. C. B. Phillips, Understanding spurious regressions in econometrics, Journal of Econometrics 33(3) (1986), pages 311 to 340, the limit theory of the spurious regression, where the slope has a random limit and the t statistic diverges
  7. James H. Stock and Mark W. Watson, Testing for common trends, Journal of the American Statistical Association 83(404) (1988), pages 1097 to 1107, the common trends representation and the tests for the number of common trends
  8. C. W. J. Granger, Some recent development in a concept of causality, Journal of Econometrics 39(1-2) (1988), pages 199 to 211, the result that cointegrated series have Granger causality in at least one direction
  9. James D. Hamilton, Time Series Analysis, Princeton University Press, 1994, Chapter 19 (cointegration, the error correction form and the common trends form)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/17ZKKX/text.yaml