Two random walks can never be traded against each other in isolation — each price series wanders without a stable mean to revert to. But two companies exposed to the same underlying economic driver (the same commodity input, the same regulatory regime, the same consumer trend) have log-price series that share the same random-walk component. That shared component cancels in a linear combination, leaving a stationary residual with a well-defined equilibrium. This is cointegration, and the equity pairs trade is a bet that the residual will revert to zero.
This note develops the formal machinery behind that bet: the common-trends representation, the error-correction model, and the simple trading strategy that Vidyamurthy constructs from them. The hypothesis-testing procedures that certify whether a candidate pair actually passes the cointegration criterion are in the companion derivation note.
Learning objectives. By the end of this note you should be able to:
- state the definition of cointegration for two I(1) series and identify the cointegrating vector ;
- write down the common-trends representation and explain why it implies stationarity of the spread;
- interpret the error-correction coefficients and and explain what sign constraints must hold for the system to error-correct;
- apply the cointegration model to log stock prices and derive the trading strategy from the spread dynamics;
- compute the portfolio return as the increment to the spread and describe the -band trading rule.
In this lesson
-
- The intuition: a shared random walk
-
- The common-trends representation
-
- The error-correction representation
-
- Applying the model to log stock prices
-
- A simple -band trading strategy
-
- Estimating the cointegrating coefficient
Before you start
- Stationarity, Non-Stationarity, and the Tradability of Spreads
- The Distance Method: Pair Selection by Normalized Price Divergence
The full lesson, with worked examples and exercise solutions, is for members.
Read the full lessonNew to SelfMadeQuant.com? See membership options or browse the Statistical Arbitrage syllabus.