Imagine two friends, Alex and Ben, walking home from a party. They’ve both had a bit to drink, so their individual paths are erratic. Alex might wander left, Ben might stumble right. If you only looked at Alex’s path, you’d think he was on a “random walk,” drifting further and further from his starting point with no clear direction. The same is true for Ben. In economic terms, their paths are non-stationary. They don’t return to any average value, and the variance of their position increases over time. Now, what if you regressed Alex’s position on Ben’s? You might find a statistically “significant” relationship, but it would be meaningless. They are just two random walkers. This is the infamous problem of spurious regression: finding a connection where none exists, simply because two variables are drifting, perhaps both upwards over time like GDP and, say, the number of pirates (to use a classic silly example).
But what if Alex and Ben, despite their stumbling, are old friends? They don’t want to lose each other. So, if Alex wanders too far left, he’ll correct his path back towards Ben. If Ben stumbles too far right, he’ll adjust back towards Alex. While their individual paths are still non-stationary (they never go back to the party), the distance between them is stable. It hovers around an average, say, a few feet. This “distance” is stationary. This, in essence, is the beautiful and powerful concept of cointegration. It’s the idea that even when variables look like they are drifting randomly and independently, they might be bound together by a deep, long-run equilibrium relationship that keeps them from drifting infinitely far apart.
Table of Contents
- What is this ‘non-stationarity’ problem anyway?
- The big idea: Cointegration, the long-run anchor
- Real-world examples of cointegrating relationships
- The permanent income hypothesis
- Money demand functions
- An example from the Indian economy
- How the system corrects itself: The Error Correction Mechanism (ECM)
- How do we test for cointegration? The Engle-Granger two-step test
- Step 1: Estimate the long-run equilibrium and find the ‘error’
- Step 2: Test if the ‘error’ is stationary
What is this ‘non-stationarity’ problem anyway?
In econometrics, we often work with time-series data: GDP over quarters, inflation over months, stock prices over days. A core assumption for many traditional models (like simple OLS regression) is that the data is stationary. A stationary series is one whose statistical properties-like the mean, variance, and autocorrelation-are all constant over time. It’s a series that likes to hang around a specific average and doesn’t have a persistent trend.
A non-stationary series, often called a unit root process or a “random walk,” is the opposite. It has no long-run mean to return to. Shocks to the system are permanent. If GDP is non-stationary, a financial crisis doesn’t just cause a temporary dip; it permanently alters the path of GDP forever. Most macroeconomic variables, like income, consumption, and prices, are in fact non-stationary. They tend to drift upwards over time.
The trouble starts, as mentioned, when you regress one non-stationary variable on another. In the 1970s and 80s, economists were baffled by getting fantastic-looking results (high R-squared, significant t-statistics) from regressions that made no theoretical sense. This was the spurious regression problem. You weren’t capturing a true economic relationship, just the fact that both variables were trending together by sheer coincidence. Any policy recommendation based on such a model would be disastrous.
The big idea: Cointegration, the long-run anchor
This is where economists Robert Engle and Clive Granger revolutionized the field in a 1987 paper, work that would later win them the Nobel Prize. They introduced the concept of cointegration. They argued that even if two series, say X and Y, are individually non-stationary (economists call this integrated of order one, or I(1)), a specific linear combination of them might be stationary (I(0)).
Think back to Alex and Ben.
- Alex’s position, A, is I(1).
- Ben’s position, B, is I(1).
But the “distance” between them, let’s say D = A – B, is stationary, or I(0). This means A and B are cointegrated. They share a common “stochastic trend” that drives their long-term movement. They are the drunk friends who, despite their random stumbling, are linked by a long-run equilibrium. Any time the distance D gets too large, forces pull them back together.
This simple idea has profound implications. It means we can meaningfully talk about equilibrium relationships between non-stationary variables. We just have to find the right combination.
Real-world examples of cointegrating relationships
This isn’t just a statistical curiosity. Economic theory is full of ideas about long-run equilibrium.
The permanent income hypothesis
One of the classic examples is the relationship between consumption and income. The permanent income hypothesis suggests that a person’s consumption (C) is not based on their current income, but on their long-run expected, or “permanent,” income (Yp). Both your actual consumption and your actual income will drift upwards over your lifetime (they are non-stationary, I(1) variables). However, the theory predicts that you will “smooth” your consumption, so C and Yp (or Y as a proxy) should not drift infinitely far apart. They are bound by your long-run spending habits. Therefore, we would expect consumption and income to be cointegrated. If they are, it provides strong empirical support for the theory.
Money demand functions
Another common example is the demand for money. Economic theory suggests that the amount of real money people hold (M/P) should be in a stable long-run relationship with their real income (Y) and interest rates (r). Income represents the need to make transactions, while interest rates represent the opportunity cost of holding money instead of an interest-bearing asset. All three of these variables-real money, real income, and interest rates-are typically non-stationary. But theory implies they should be cointegrated. If they weren’t, it would mean that people’s desire to hold money could drift infinitely far away from the economic fundamentals that drive it, which seems unlikely.
An example from the Indian economy
We can find these relationships in specific economies as well. For instance, studies on the Indian economy have explored the relationship between different interest rates. After financial liberalization in the 1990s, the Reserve Bank of India (RBI) moved away from administering interest rates, allowing them to be more market-determined. Research has examined whether various rates-like the call money rate, government security yields, and bank lending rates-move together in the long run. Even though these rates might be non-stationary individually, finding cointegration between them would suggest an integrated and efficient domestic financial market, where changes in one policy rate are effectively transmitted to other rates in the economy.
How the system corrects itself: The Error Correction Mechanism (ECM)
This is the next logical question. If Alex and Ben are cointegrated (bound together), how do they stay together? What mechanism pulls them back when they drift apart? This is where the Error Correction Mechanism (ECM) comes in.
The Granger Representation Theorem provides the formal link. It states that if two (or more) variables are cointegrated, then their relationship must be representable by an Error Correction Model (ECM). The two concepts are two sides of the same coin.
An ECM is a beautiful model because it separates the short-run dynamics of a relationship from its long-run equilibrium. Let’s build it with our consumption (C) and income (Y) example.
The model for the change in consumption (ΔC) might look like this: ΔCt = α + β1ΔYt + γ(Ct-1 – β2Yt-1) + εt
Let’s break this down:
- ΔCt: The change in consumption in this period. This is a short-run, stationary variable.
- ΔYt: The change in income in this period. This captures the immediate, short-run effect of an income change on consumption.
- (Ct-1 – β2Yt-1): This is the heart of the model. This term is the “error” from the previous period (t-1). It’s the residual from the long-run cointegrating regression. It literally measures how far consumption was from its long-run equilibrium relationship with income in the last period.
- γ (gamma): This is the speed of adjustment parameter. It tells us what percentage of last period’s “error” (or disequilibrium) is “corrected” in this period.
For the system to be stable and correcting, the γ coefficient must be negative and statistically significant. A negative γ means that if consumption was too high relative to income last period (a positive error), the change in consumption this period will be negative, pulling it back down towards the equilibrium. If γ = -0.2, it means that 20% of the deviation from the long-run equilibrium is corrected in the next period. The ECM brilliantly shows how short-run changes (ΔY) and long-run balance (the error term) both determine the behavior of the variable.
How do we test for cointegration? The Engle-Granger two-step test
So, how do we find out if our variables are cointegrated in the first place? Engle and Granger proposed a simple, intuitive two-step procedure.
Step 1: Estimate the long-run equilibrium and find the ‘error’
First, you have to make sure all your variables are non-stationary and integrated of the same order (e.g., all are I(1)). You do this using standard unit root tests like the Augmented Dickey-Fuller (ADF) test. Once you’ve confirmed they are all I(1), you simply run a standard OLS regression using the levels of the variables, just as you were warned not to do!
For example: Ct = β0 + β1Yt + ut
At this stage, we don’t trust the t-statistics or R-squared from this (potentially spurious) regression. We are interested in only one thing: the residuals (ut). These residuals are our estimate of the “error” term, the deviation from the long-run equilibrium in each time period.
Step 2: Test if the ‘error’ is stationary
Now, we take the series of residuals (ut) that we saved from Step 1. If the variables are cointegrated, what must be true about this “error” series? It must be stationary (I(0)). It cannot have a unit root. It must be mean-reverting.
So, the second step is simply to run a unit root test (like the ADF test) on the residuals (ut).
- Null Hypothesis (H0): The residuals have a unit root (they are non-stationary).
- Alternative Hypothesis (HA): The residuals are stationary.
If we reject the null hypothesis, we conclude that the residuals are stationary. And if the residuals (the “error”) are stationary, it means our original I(1) variables, consumption and income, are cointegrated. They share a stable, long-run equilibrium. This simple test confirms that our “drunk friends” are, in fact, walking home together. (Note: Because these residuals are estimated from a regression, we must use a special set of critical values, also developed by Engle and Granger, for this ADF test, not the standard ones.)
By finding cointegration, we move beyond the fear of spurious regressions and unlock a powerful way to model both the long-run anchors and the short-run dynamics that define our complex economic world.
What do you think? Can you think of other long-run relationships in business or finance that might be cointegrated (e.g., the price of a stock and its dividend, or the price of the same commodity in two different-but-linked markets)? If you found that your company’s sales and the national GDP were cointegrated, how might that change your forecasting models compared to just running a simple regression on the growth rates?
References
- https://corporatefinanceinstitute.com/resources/data-science/cointegration/
- https://en.wikipedia.org/wiki/Cointegration
- https://www.researchgate.net/publication/41846961_Establishing_Cointegrating_Relationships_Involving_Interest_Rates_and_Other_Macroeconomic_Variables_in_India
- https://warwick.ac.uk/fac/soc/economics/staff/gboero/personal/hand2_cointeg.pdf
Leave a Reply