Skip to main content
Blog home
Newsletter
News
Video
Podcast
Reading list
Wright Brief
Sign In

What is Cointegration?

A plain-language explanation of Cointegration, with a worked example, common pitfalls and the questions people ask most.

Listen to this article
Audio · ~2 min
Add as a preferred source on Google

Cointegration means that two or more price series, each of which wanders without a fixed average, move together in the long run so that a particular combination of them stays stable. It is the statistical basis of pairs trading.

The idea in plain terms

Imagine two stocks whose prices both drift up and down over the years, but the gap between them keeps returning to a typical level, like a dog on a lead walking beside its owner. Each stock alone is unpredictable, but their combination is not. For example, the combination price of A - 1.2 x price of B may keep oscillating around zero. That stable combination is called the spread.

Cointegration compared with correlation

CorrelationCointegration
What it measuresWhether returns move in the same directionWhether price levels stay tied together
Based onChanges (returns)Levels (prices)
Can the gap grow without limit?Yes, even with high correlationNo, the gap tends to come back

Two stocks can have a high correlation of daily returns and still drift apart in price over time, which is why correlation alone is not enough for a pairs trade.

How it is tested

  1. Check that each price series is non-stationary, meaning it has no fixed average.
  2. Estimate the combination, for example by regressing one price on the other.
  3. Test whether the resulting spread is stationary, for instance with the Engle-Granger two-step method or the augmented Dickey-Fuller test.

Cautions

  • Relationships break. Cointegration found in the past may not continue, for example after a merger or a change in a business.
  • Estimation leaks the future. Estimating the hedge ratio on the whole data set and applying it to the past is look-ahead bias.
  • Many pairs, some false. Testing thousands of pairs will produce some that look cointegrated by chance. See overfitting and correlation vs causation.

Cointegration is the basis for statistical arbitrage and for strategies built on mean reversion.

Frequently asked questions

What is cointegration?

It is a statistical property of two or more non-stationary series whose combination is stationary, meaning they may wander individually but stay tied together over the long run.

What is the difference between correlation and cointegration?

Correlation looks at how returns move together. Cointegration looks at whether price levels stay linked, so the gap between them tends to return to a typical value.

How do you test for cointegration?

Common tests are the Engle-Granger two-step test and the Johansen test. They check whether the spread between the series is stationary.

Why is cointegration important in pairs trading?

It suggests the spread between two stocks will revert to its average, which is the condition a pairs trade needs to profit from the gap closing.

Further reading

  1. Engle, R. and Granger, C. (1987). Co-integration and error correction. Econometrica 55(2).
  2. Vidyamurthy, G. (2004). Pairs Trading: Quantitative Methods and Analysis. Wiley.
Browse the full Quant Glossary →

Disclaimer: Investment in securities market are subject to market risks. Read all the related documents carefully before investing. Registration granted by SEBI, membership of a SEBI recognized supervisory body (if any) and certification from NISM in no way guarantee performance of the intermediary or provide any assurance of returns to investors.

The content in these posts/articles is for informational and educational purposes only and should not be construed as professional financial advice and nor to be construed as an offer to buy/sell or the solicitation of an offer to buy/sell any security or financial products. Users must make their own investment decisions based on their specific investment objective and financial position and using such independent advisors as they believe necessary.

Wryght Research & Capital Pvt (Brand name: Wright Research) is a SEBI Registered Portfolio Manager Reg No: INP000007979 (Validity: Apr 03, 2023 – Perpetual) and a SEBI Registered Research Analyst No: INH000017295 (Validity: Jul 03, 2024 – Perpetual), with its registered office at 103, Shagun Vatika Prag Narayan Road, Lucknow, UP, 226001 India and CIN: U67100UP2019PTC123244. Past performance may or may not be sustained in future. Performance provided there in is not verified by SEBI. Investment in securities is subject to market and other risks, and there is no assurance or guarantee that the objectives of any of the strategies of the Portfolio Management Services will be achieved. Registration granted by SEBI, enlistment as RA with Exchange and certification from National Institute of Securities Markets (NISM) in no way guarantee performance of the intermediary or provide any assurance of returns to investors. Please read the Disclosure document carefully before investing. Securities quoted are for illustration only and are not recommendatory. Charts shown are for illustration only. For more information and disclosures, visit our disclosures page here.

Found this useful? Share it.
Wright PMS · Portfolio Management Service

Put this research to work

The same 300+ factor research engine behind this article — applied to a professionally managed portfolio, end to end.

300+
Factors tracked
2L+
Investors
₹1,200+ Cr
Invested
SEBI
Registered PMS