Paper Explained
Two Drunks and a Dog: The Idea Behind Pairs Trading
The 1987 paper that explained how two wandering, unpredictable prices can still stay tethered together, the statistical bedrock of pairs trading.
July 6, 2026
The paper
Co-integration and Error Correction: Representation, Estimation, and Testing
Robert F. Engle and Clive W. J. Granger · 1987
Read the original →There's a famous way to picture the idea in this paper: a drunk and her dog stumbling home from the pub.
The drunk wanders. You truly cannot predict where she'll be a minute from now, she lurches left, then right, then forward, aimless. The dog wanders too, sniffing off in every direction, equally unpredictable on its own. If you watched either one alone, you'd swear they were pure random noise, going nowhere in particular.
But here's the thing: they're going home together. However far the dog roams, it keeps checking on its owner and trots back. However the drunk lurches, she keeps whistling for the dog. Neither's position is predictable, but the distance between them is small and stubbornly stays that way. Whenever the gap grows too wide, something pulls them back together.
That, in a nutshell, is cointegration, and Engle and Granger won a Nobel Prize partly for making it rigorous. It's also the entire reason pairs trading exists.
First, the puzzle they were solving
Lots of financial series wander in exactly the drunk-walk way. A stock price today is basically yesterday's price plus a random nudge; tomorrow's is today's plus another nudge. There's no fixed "home base" it returns to, it just drifts wherever the nudges take it. Statisticians call this a random walk, and it has a maddening property: it never settles down, so most normal statistical tools break when you use them on it.
Even worse, Granger had earlier shown a nasty trap called spurious correlation. Take two completely unrelated wandering series, say, UK inflation and the number of storks in a country, and run them through standard statistics, and they'll often look strongly, convincingly related. Pure coincidence, dressed up as a discovery. Two random walks can drift in vaguely similar directions for years by sheer luck and fool you completely.
So there was a real problem: how do you tell a genuine long-term relationship between two wandering series from a fake one?
The breakthrough: sometimes the wandering cancels out
Here's the elegant answer.
Take two series that each wander unpredictably on their own, two random walks, two drunks. Normally, if you look at the difference between them, that difference wanders too. The drunks drift apart with no limit.
But occasionally, something special happens. You subtract one from the other and the difference doesn't wander. It stays put, hovering around a stable average, snapping back whenever it strays too far. The individual series are each wild and unpredictable, yet a particular combination of them is calm and well-behaved.
When that happens, the two series are cointegrated. In plain terms: they're tied together by an invisible leash. Each can roam, but they can't roam independently, a shared force keeps pulling them back into line. The drunk and her dog.
The magic quantity is that stable difference, often called the spread. When it drifts too wide, it tends to snap back. That snap-back is the tradable part.
Error correction: the leash in action
The second half of the paper's title, "Error Correction", is just the mechanism of the leash, and it's intuitive.
Think of it as a self-correcting system. When the two series drift too far apart, there's pressure for them to close the gap. The bigger the gap ("the error"), the stronger the pull back together ("the correction"). It's a thermostat: the further the room temperature strays from the setting, the harder the system works to bring it back.
Engle and Granger proved a deep and satisfying result: any two series that are cointegrated must have this error-correction mechanism, and vice versa. The invisible leash and the snap-back force are two descriptions of the same thing. That equivalence is the technical heart of the paper.
Why traders fell in love with this
Cointegration is the statistical foundation of pairs trading and much of statistical arbitrage.
The playbook is simple to state:
- Find two assets whose prices are cointegrated, say, two companies in the same industry, or a stock and a closely related basket. Their spread stays tethered around a stable level.
- Wait for the spread to stretch unusually wide, one has wandered too far from the other.
- Bet on the snap-back: buy the one that's lagged, sell the one that's run ahead, and profit as the leash pulls them back into line.
The beauty is that you don't need to predict where either price is going, an almost impossible task. You only need the gap between them to behave, which cointegration says it will. You're betting on the leash, not on the drunk.
The honest limitations
Cointegration is powerful but far from a money-printing machine:
- The leash can snap. Two companies look tethered for years, until one gets acquired, changes its business, or hits a scandal. The relationship that held historically simply breaks, and your "snap-back" never comes. Your spread just keeps widening, and the loss with it.
- You can be right and still get hurt. Even a genuine leash can stretch alarmingly far before it pulls back. A spread that "must" revert can go the wrong way long enough to blow up a position. Being correct eventually is little comfort if you're wiped out first.
- History can lie. Cointegration is detected from past data, and past tethers don't guarantee future ones. Test enough pairs and some will look cointegrated purely by chance, the same trap Granger warned about, sneaking back in through the side door.
- Everyone knows this now. Pairs trading was more lucrative when it was obscure. Today the easy, obvious pairs are crowded, and the edge is thin.
The one-line takeaway
Engle and Granger gave a precise, testable meaning to a beautiful idea: two prices can each be hopelessly unpredictable and yet be bound together by an invisible leash, and when the leash stretches too far, betting on the snap-back is the essence of pairs trading.