A single integrated series accumulates its shocks and drifts, but a linear combination of several integrated series can cancel the common trends and revert to a level. That combination is cointegration, and its stationary spread is the object a statistical arbitrage strategy trades. This post builds the error-correction representation from a vector autoregression, splits it into the cointegrating vectors and the adjustment speeds, and derives the two tests that certify the rank [1], [2].
#Cointegration and error correction
::: definition [def
] A series is when it is stationary with a positive finite long-run variance, and when its th difference is but its th is not. An series has a unit root, accumulates shocks, and has variance growing linearly in . :::::: definition [def
] An vector is cointegrated with rank when there is an matrix of full rank with stationary. Each column of is a cointegrating vector, a linear combination that cancels the common trends and leaves a stationary spread. :::The link to a vector autoregression is exact. Let with white noise and .
::: theorem [thm
] The order- autoregression reparametrises identically asIf is then and with of full rank ; the columns of are the cointegrating vectors and the rows of the speeds at which each equation corrects past disequilibrium. When the level is already stationary; when no stationary combination exists and the system is a pure unit-root vector. :::
::: proof Add and subtract to telescope the levels into differences. From subtract and write each . Collecting the coefficient of gives , and collecting the coefficient of gives , which is Equation (1). Since , the , and are stationary, the term must be stationary though is , so has reduced rank . Take the rank factorisation with of full column rank ; left-multiplying by a left inverse of shows is stationary, so the columns of are the cointegrating vectors. :::
::: remark This is the necessary direction. The converse, that a rank- makes exactly with cointegrating relations and common trends, is the Granger representation theorem and needs nonsingular, with and the orthogonal complements of , which rules out behaviour. :::
The factorisation separates levels from dynamics. The columns of are the stationary combinations, the disequilibrium each carries, and the rate at which each equation pulls back toward it. The directions orthogonal to carry what does not revert.
::: proposition [prop
] Let be a full-rank orthogonal complement of , so . Then carries the common stochastic trends of the system and is not mean reverting. :::::: proof Premultiply Equation (1) by . The error-correction term drops because , leaving , a stationary series with no level feedback. Cumulating, is a partial sum of those stationary increments, and under the Granger representation condition its long-run variance is nonsingular, so it is and supplies the trends that the stationary combinations do not span [3]. :::
#Engle-Granger
The simplest estimator fixes one spread by a regression in levels, and the unit-root theory of the previous post makes it converge unusually fast.
::: theorem [thm
] Let with a -vector process and stationary. The ordinary least squares estimator is super-consistent, , converging at rate rather than . :::::: proof . The normalised design satisfies for a -vector Brownian motion , the matrix analogue of the first functional in the unit-root post, while . The ratio gives , an limit, so the error is of order . :::
::: remark Cointegration is tested by a Dickey-Fuller statistic on the residual . Because is estimated, the null limit is not the Dickey-Fuller law but a residual functional whose quantiles depend on , the Engle-Granger, equivalently Phillips-Ouliaris, critical values [4]. :::
Engle-Granger cointegration test
input I(1) series y0 and k-vector of I(1) regressors y1
1 regress y0 on y1 by least squares, leaving residual u_hat
2 apply the augmented Dickey-Fuller statistic to u_hat
with no deterministic term
3 reject no cointegration when the statistic is below the
Phillips-Ouliaris critical value for k regressors
#Johansen
Engle-Granger fixes one spread by regression. Johansen estimates the rank and the whole cointegrating matrix at once by Gaussian maximum likelihood on the error-correction system.
::: theorem [thm
] Concentrating out the lagged differences leaves residuals with product moments . Gaussian maximum likelihood reduces to the ordered eigenvalues of , andUnder the rank- null converges to a functional of an -dimensional Brownian motion. :::
::: proof The are squared sample canonical correlations between and after the lags are removed. The largest are and identify genuine cointegrating directions; the smallest are , so . On the non-cointegrated directions the are eigenvalues of a matrix in the integrated regressors and the innovations, whose joint limit is the stated Brownian functional by the functional central limit theorem and the continuous-mapping theorem. :::
Johansen trace test for cointegrating rank
input series y, lag order, deterministic case
1 concentrate out the lagged differences, leaving S00, S01, S11
2 lambda_1 >= .. >= lambda_n <- eigenvalues of
|lambda S11 - S10 S00^{-1} S01| = 0
3 for r = 0, 1, .., n-1:
LR_tr(r) <- -T sum_{i>r} ln(1 - lambda_i)
if LR_tr(r) below its critical value, return rank r
4 return full rank n
::: remark A constant or trend enters either inside the cointegrating space, where it sets the level or slope of , or outside it, where it drives the common trends. Five nested cases are standard, from no deterministic term through a restricted constant, an unrestricted constant, a restricted trend, to an unrestricted trend, each with its own null limit for the rank statistics. Misreading a drift as an in-space mean inflates the apparent rank, so the test is run against the specification matching the data. :::
#Threshold cointegration
Linear error correction pulls back at a constant speed however far the system has strayed. When a band of inaction separates small departures from large ones, as a no-arbitrage region bounded by transaction costs does, the correction switches on only outside the band.
::: definition [def
] Let be the disequilibrium of a cointegrated system. The multivariate threshold error-correction model makes the dynamics regime-dependent in ,the regime chosen by which interval cut by thresholds contains . :::
::: remark With three regimes the outer two carry the correction while the middle one, , has , so inside the band the spread drifts as an uncorrected random walk and outside it is pulled back. The band is the region where the gain from correcting does not cover its cost, and a test of against a correcting outer regime is a test for threshold cointegration [5]. The thresholds are fixed by minimising the residual sum of squares over a grid. :::
Cointegration completes the unit-root picture. Where the unit-root tests certify that each series is individually , the error-correction representation certifies that a combination of them is , splitting the system into common trends that wander and stationary spreads that revert. That decomposition of a nonstationary vector into permanent and transitory parts is the econometric backbone of mean-reversion strategies such as statistical arbitrage, and it sits one step beyond the autoregression whose reduced-rank coefficient matrix it reads.