Markets: A Rigorous Course

13A.4 Cointegration and error correction

Core about 15 min

Motivation

Two random walks can share a random walk. If they do, some combination of them is stationary, and that combination is what a pairs trader wants to hold.

13A.4.1Definition#

DefinitionEngle and Granger 1987

An nn-vector yty_t whose components are each I(1)I(1) is cointegrated if there is a non-zero β∈Rn\beta\in\mathbb R^n with β′yt\beta'y_t stationary (I(0)I(0), after removing a constant). The set of such β\beta together with 0 is a linear subspace; its dimension rr (0<r<n0<r<n) is the cointegrating rank, and any basis, collected in an n×rn\times r matrix β\beta, is a set of cointegrating vectors.

For a pair, n=2n=2 and r≤1r\le1: cointegration means one stationary combination pt1−b pt2p^1_t - b\,p^2_t, unique up to scale. The normalisation (coefficient 1 on p1p^1) is a choice.

13A.4.2The vector error-correction model#

Write a VAR(pp) in levels, yt=ν+∑i=1pAiyt−i+εty_t = \nu + \sum_{i=1}^p A_i y_{t-i} + \varepsilon_t, in differences:

Δyt=ν+Π yt−1+∑i=1p−1Γi Δyt−i+εt,Π=−(I−∑i=1pAi),Γi=−∑j=i+1pAj.(13A.9)\begin{gathered} \Delta y_t = \nu + \Pi\,y_{t-1} + \sum_{i=1}^{p-1}\Gamma_i\,\Delta y_{t-i} + \varepsilon_t, \\ \Pi = -\Big(I - \sum_{i=1}^p A_i\Big),\qquad \Gamma_i = -\sum_{j=i+1}^p A_j. \end{gathered} \tag{13A.9}

(This is Proposition 13A.2 in matrix form; the proof is the same.) If yty_t is I(1)I(1) and cointegrated with rank rr, then Π\Pi has rank rr and factors as

Π=αβ′,α,β∈Rn×r of full column rank.(13A.10)\Pi = \alpha\beta', \qquad \alpha,\beta \in\mathbb R^{n\times r}\ \text{of full column rank}. \tag{13A.10}

β′yt−1\beta'y_{t-1} is the lagged equilibrium error; α\alpha holds the adjustment speeds (loadings): how each price responds to last period's error. (13A.9)–(13A.10) is the vector error-correction model (VECM).

13A.4.3The Granger representation, proved for a VAR(1)#

The general theorem (Engle and Granger 1987; Johansen 1991) says that, under a rank condition, a VAR with Π=αβ′\Pi = \alpha\beta' is I(1)I(1) with exactly rr stationary combinations β′yt\beta'y_t and n−rn-r common stochastic trends. The VAR(1) case shows every idea.

Proposition 13A.4Granger representation, VAR(1)

Let yt=Ayt−1+εty_t = Ay_{t-1}+\varepsilon_t with A−I=αβ′A - I = \alpha\beta', α,β\alpha,\beta of rank rr, and suppose all eigenvalues of Ir+β′αI_r + \beta'\alpha lie strictly inside the unit circle. Let α⊥,β⊥\alpha_\perp, \beta_\perp be n×(n−r)n\times(n-r) matrices of full rank with α⊥′α=0\alpha_\perp'\alpha = 0, β⊥′β=0\beta_\perp'\beta = 0. Then:

(a) β′yt\beta'y_t is a stationary VAR(1):

β′yt=(Ir+β′α) β′yt−1+β′εt.(13A.11)\beta'y_t = (I_r + \beta'\alpha)\,\beta'y_{t-1} + \beta'\varepsilon_t. \tag{13A.11}

(b) α⊥′yt\alpha_\perp'y_t is an (n−r)(n-r)-dimensional random walk:

α⊥′yt=α⊥′yt−1+α⊥′εt.(13A.12)\alpha_\perp'y_t = \alpha_\perp'y_{t-1} + \alpha_\perp'\varepsilon_t. \tag{13A.12}

(c) yt=C∑s=1tεs+Cy0+α(β′α)−1β′yty_t = C\sum_{s=1}^t\varepsilon_s + C y_0 + \alpha(\beta'\alpha)^{-1}\beta'y_t, with

C=β⊥(α⊥′β⊥)−1α⊥′.(13A.13)C = \beta_\perp(\alpha_\perp'\beta_\perp)^{-1}\alpha_\perp'. \tag{13A.13}

The first term is a random walk (the common trends), the last term is stationary by (a).

Proof

(a) Premultiply yt=yt−1+αβ′yt−1+εty_t = y_{t-1} + \alpha\beta'y_{t-1} + \varepsilon_t by β′\beta'. The eigenvalue condition makes the rr-dimensional VAR(1) stable.

(b) Premultiply by α⊥′\alpha_\perp'; the α\alpha term vanishes.

(c) The eigenvalues of β′α\beta'\alpha are those of Ir+β′αI_r + \beta'\alpha minus one; they lie inside the disc of radius 1 centred at −1-1 and so are non-zero. Hence β′α\beta'\alpha is invertible. Then [α,β⊥][\alpha, \beta_\perp] is non-singular: if αa+β⊥b=0\alpha a + \beta_\perp b = 0, premultiplying by β′\beta' gives β′αa=0\beta'\alpha a = 0, so a=0a=0, and then b=0b=0. Similarly α⊥′β⊥\alpha_\perp'\beta_\perp is invertible (if α⊥′β⊥b=0\alpha_\perp'\beta_\perp b = 0 then β⊥b∈span⁡(α)\beta_\perp b \in \operatorname{span}(\alpha), say =αa=\alpha a, and the previous argument gives a=b=0a = b = 0). Now check the identity

In=β⊥(α⊥′β⊥)−1α⊥′+α(β′α)−1β′I_n = \beta_\perp(\alpha_\perp'\beta_\perp)^{-1}\alpha_\perp' + \alpha(\beta'\alpha)^{-1}\beta'

on the basis [α,β⊥][\alpha,\beta_\perp]: applied to α\alpha the right side gives 0+α0 + \alpha; applied to β⊥\beta_\perp it gives β⊥+0\beta_\perp + 0. Apply the identity to yty_t and use (b), α⊥′yt=α⊥′y0+α⊥′∑s≤tεs\alpha_\perp'y_t = \alpha_\perp'y_0 + \alpha_\perp'\sum_{s\le t}\varepsilon_s.∎

Reading the result for a pair Take y=(p1,p2)′y = (p^1, p^2)', β=(1,−b)′\beta = (1, -b)', α=(α1,α2)′\alpha = (\alpha_1,\alpha_2)'. The spread st=pt1−b pt2s_t = p^1_t - b\,p^2_t satisfies, from (13A.11),

st=(1+α1−b α2) st−1+(ε1t−b ε2t).s_t = (1 + \alpha_1 - b\,\alpha_2)\,s_{t-1} + (\varepsilon_{1t} - b\,\varepsilon_{2t}).

It mean-reverts iff −2<α1−bα2<0-2 < \alpha_1 - b\alpha_2 < 0. Typically α1<0\alpha_1 < 0 (asset 1 falls when the spread is high) and α2>0\alpha_2 > 0 (asset 2 rises). The common trend is α⊥′yt\alpha_\perp'y_t with α⊥=(α2,−α1)′\alpha_\perp = (\alpha_2, -\alpha_1)': the price to which both are tied is a weighted average, with weights set by the loadings, not by market capitalisation.

Who adjusts matters for execution If α2=0\alpha_2 = 0, asset 2 is weakly exogenous: it does not respond to the spread, all correction happens in asset 1, and asset 2 "leads". For MCX gold against COMEX-implied parity (13A.12.3) one expects the COMEX loading to be close to zero, since India is a price taker in gold; that is a hypothesis to test, not a fact. Gonzalo and Granger (1995) use α⊥\alpha_\perp to define permanent–transitory decompositions; Hasbrouck (1995) defines "information shares" for the same purpose in market microstructure.

Long-run impact CC in (13A.13) is the long-run response of the price levels to a shock. Problem 13A.4 computes it for a numerical VAR(1) and checks it against lim⁡hAh\lim_h A^h.

Create a free account

Reading is open to everyone. An account keeps your progress, answers, notes and code drafts, and gives you the study plan, the journals and the simulator. Running code needs an account approved for it.