Case Study - Building a Quantitative Strategy from Scratch › Stage 1: Idea Generation and Economic Rationale
Quantitative FinanceAll chapters Case Study - Building a Quantitative Strategy from Scratch › Stage 1: Idea Generation and Economic RationaleOne section · Sections in this chapter2 / 12 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Every quantitative strategy begins with an idea, and every good idea begins with an economic rationale. Without a clear reason why a pattern should exist and persist, you are curve-fitting noise.
The Idea: Pairs Trading via Mean Reversion
Our strategy rests on a well-documented stylized fact: certain pairs of economically linked stocks move together over time because they are exposed to similar fundamental drivers. When the price relationship between such a pair temporarily diverges, it tends to revert. As we discussed in the chapter on mean reversion and statistical arbitrage, this is the core premise of pairs trading.
The economic rationale is straightforward:
- Common factor exposure. Two companies in the same industry (say, two large oil producers) are driven by the same commodity prices, regulatory environment, and demand cycles. Their stock prices should reflect similar information over time.
- Temporary divergence. Short-term divergences arise from liquidity shocks, idiosyncratic news, or differential order flow. These are transient, not structural.
- Arbitrage forces. When the spread widens beyond fair value, informed traders step in, buying the undervalued stock and selling the overvalued one, pushing prices back toward equilibrium.
This rationale gives us confidence that the pattern is not spurious. It is grounded in economic theory (the law of one price) and market microstructure (arbitrage correction of mispricings).
Formalizing the Hypothesis
We can state our hypothesis precisely: if two stocks are cointegrated, meaning their prices share a long-run equilibrium relationship as defined in Part III's treatment of time series models, then the spread between them is stationary and mean-reverting. We can profit by trading deviations from this equilibrium.
To appreciate why cointegration is the right framework here, consider what it means in mathematical terms. Two non-stationary price series, each individually following a random walk and therefore unpredictable in levels, can nonetheless be bound together by a shared stochastic trend. When such a binding exists, some linear combination of the two price series cancels out the common non-stationary component, leaving behind a residual that fluctuates around a stable mean. That residual is the spread we intend to trade. Unlike raw prices, which wander without bound, a stationary spread tends to revert to its long-run average, and this mean-reverting property is the source of our trading edge.
The distinction between cointegration and correlation is worth pausing on, because confusing the two is one of the most common conceptual errors in pairs trading research.
Two time series can be highly correlated without being cointegrated, and vice versa. Correlation measures the co-movement of returns (short-term). Cointegration measures whether a linear combination of price levels is stationary (long-term). For pairs trading, cointegration is the relevant concept because we are trading the price spread, not return co-movement.
To build further intuition, consider two stocks whose daily returns are strongly correlated at 0.95. This tells you that on most days, both stocks move in the same direction by similar magnitudes. However, even tiny systematic differences in drift can cause the price levels to diverge without bound over time. A portfolio that is long one and short the other would slowly bleed money despite the high return correlation. Conversely, two stocks with moderate return correlation of 0.60 might still be cointegrated if their price levels are linked by a stable equilibrium relationship: the spread may wander day-to-day (producing imperfect return correlation) but it reliably snaps back over weeks or months. When you hold positions for days to weeks and profit from the convergence of price levels, cointegration is the property that matters, not correlation.