Cointegration
Short answer
Cointegration is a property of time series in which each series wanders on its own, but some combination of them, such as a spread, stays stationary. Cointegrated prices can drift apart for a while but are pulled back together.
Correlation and cointegration are often confused. Correlation measures whether day-to-day changes move together. Cointegration asks whether the levels stay tied in the long run. Prices can be highly correlated and still drift apart for good, and cointegrated prices can have periods of low correlation. For spread trading, the long-run tie is what matters.
How it is used in strategy design and testing
In strategy design, cointegration is the statistical backbone of pairs trading and many relative-value ideas. The designer looks for assets with an economic reason to stay linked, builds a spread with a hedge ratio, and checks whether that spread is stationary. When it is, a stretched spread is expected to narrow over time.
In testing, the classic method is the Engle-Granger approach: regress the price of the first asset on the second and test the leftover spread for stationarity. The Johansen method handles more than a pair of assets. Because a vast number of candidate pairs can be checked, many will look cointegrated by chance, so testers prefer pairs with a clear link, select on an earlier period, and check that the relationship holds on later data.
Common mistakes
- Using correlation instead. Correlated prices can diverge without limit.
- Testing too many pairs. A large search finds many false relationships.
- Assuming the link is permanent. Mergers, new products and other changes can break cointegration.
- Ignoring a drifting hedge ratio. A stale ratio leaves hidden market exposure.
Related
- Strategy guides: Pairs trading and statistical arbitrage, Mean reversion
- Related terms: Stationarity, Hedge ratio, Half-life of mean reversion, z-score
Where the term comes from
Engle and Granger formalised cointegration and gave methods to estimate and test it, work later recognised in the Nobel prize in economics.
Education only. Not investment advice.
Questions people ask
What is cointegration in simple terms?
It means a combination of prices, such as their spread, stays anchored even though each price wanders. The prices may drift apart for a while but tend to come back together.
What is the difference between correlation and cointegration?
Correlation measures whether short-term changes move together. Cointegration measures whether price levels stay linked over the long run. Pairs trading relies on the second.
How do you test for cointegration?
The Engle-Granger method tests the spread from a regression for stationarity. The Johansen method tests for cointegration among several series at once.
Can cointegration break down?
Yes. Changes in the businesses or markets behind the series can end the relationship, and the spread may then drift away for good.
Papers
- PaperCo-Integration and Error Correction: Representation, Estimation, and Testing · F. Engle and C. W. J. Granger