Why Cointegration Tests Can Fail on Identical Series
Summary
The document examines an apparent contradiction: two identical integrated time series seem to share a stationary relationship, yet a cointegration test may report no cointegration. It explains that the residual from an Engle–Granger regression of one series on the other is exactly zero in this degenerate case. Standard residual unit-root testing may therefore behave unexpectedly or become numerically unstable, depending on the test and its implementation.
The answers also expose a definitional subtlety. A nonzero linear combination of identical integrated series remains integrated, while choosing opposite coefficients produces the zero series, which is stationary; whether that qualifies depends on the cointegration definition and test conventions. For automated workflows, the document suggests detecting perfect or near collinearity before running cointegration tests, for example by examining a covariance matrix condition number. It does not provide a controlled comparison across software packages or a universal workaround, and one answer gives a general testing outline rather than resolving the degeneracy.
Key ideas
- Cointegration means that a linear combination of integrated series is stationary, subject to the definition used.
- Identical integrated series yield a zero residual when one is regressed on the other.
- Residual unit-root tests can produce unexpected outcomes on a zero residual or suffer numerical instability.
- Checking for perfect or near collinearity can prevent degenerate inputs from reaching an automated cointegration procedure.
- Test results depend on the statistic and implementation, so identical series are an edge case.
Tags
Full text
# Are two identical time series cointegrated?
# Are two identical time series cointegrated?
I did cointegration test on two identical time series, and the result shows that they are not cointegrated, but intuitively, I think they are.
Can anyone share some thoughts on this? Thanks!
## Answer by Richard Herron (score 9)
https://quant.stackexchange.com/a/992
Let us test that $x$ and $y$ are co-integrated, say that $x_t, y_t \sim I(1)$. In the Engle-Granger we test stationarity of the error term in $$y_t = \alpha + \beta x_t + u_t$$ which we estimate as $$\hat u_t = y_t - \hat \alpha - \hat \beta x_t$$ and find that $\hat \alpha =0$, $\hat \beta = 1$, and $\hat u_t = 0 \; \forall t$.
So now when we Dickey-Fuller test residuals in something like $$\Delta \hat u_t = \gamma_0 + \gamma_1 \hat u_{t-1} + \epsilon_t$$ nothing will be significant and we won't find any co-integration.
I am not precisely schooled in this theory, so I'm not sure if this means these series can't be referred to as "co-integrated" (clearly they have the same drift) or if this is just a trivial case where the test fails,
## Answer by mpiktas (score 8)
https://quant.stackexchange.com/a/1461
Two integrated series $X_t$ and $Y_t$ are cointegrated if their linear combination (some, not any) $\alpha X_t+\beta Y_t$ is stationary. If you have $P(X_t=Y_t)=1$ for all $t$, then $P(\alpha X_t+\beta Y_t=(\alpha+\beta) X_t)=1$. So according to definition of cointegration $(\alpha+\beta) X_t$ should be stationary, which is identical to $X_t$ being stationary. And here we get the contradiction, since $X_t$ is integrated, hence not stationary.
This was a basic explanation why you received your result. However a lot depends on how the actual statistic is computed. For other statistics or their software implementations you might get that two identical series are cointegrated, but that will not mean that they are. Two identical time series are the degenerate case which no-one checks against, and with degenerate cases you can always get unexpected results.
## Answer by Ryogi (score 5)
https://quant.stackexchange.com/a/3253
Your intuition is correct. $X_t$ and $Y_t$ are cointegrated if there exists some linear combination $\alpha X_t + \beta Y_t$ that is stationary (or more generally, of lower cointegration index --- see for example, Hamilton, pag 571). If $X_t = Y_t$, the above linear combination is zero (hence stationary) whenever $\alpha = -\beta$.
On the other hand, most tests exclude this particular case. The exact reasons depend on the specific test you are using.
## Answer by JohnAndrews (score 0)
https://quant.stackexchange.com/a/3239
Here is an empirical strategy to test for cointegration.
FIRST, check whether both $X_t$ and $Y_t$ contain an unit root.
- If they are both stationary then model $Y_t$ or $X_t$ in levels (and nothing is wrong).
- If one of the two is $I(1)$ (non-stationary for one level), then take differences to ensure stationarity.
- If they are both non-stationary, and hence $I(1)$, then test for co-integration: if the residuals are $I(0)$, then we speak of the presence of cointegration. Estimate then an ECM model: $Y_t = \beta_0 + \beta_1 X_t + \eta_t$ obtaining $\hat{\beta_0}$ and $\hat{\beta_1}$ and using it in: $\Delta Y_t = \Delta X_t'\phi - \psi(Y_{t-1}-\hat{\beta_0} - \hat{\beta_1}X_t) + \varepsilon_t$. When $\varepsilon_t \sim N(0,1)$ then both $\psi$ and $\phi$ are asymptotically valid. if the residuals are $I(1)$ then we speak of spurious regression. In that case you should model both variables by taking the first differences.
## Answer by NBF (score 0)
https://quant.stackexchange.com/a/36909
Identical? So $Y_t=X_t$ for all $t$?
Then the difference is zero which is more than just a stationary time-series. They are perfectly collinear.
Now, it depends on the cointegration test you use whether high collinearity will show up as cointegration. If you use Engle-Granger, you do a regression first, which will find $\alpha=0,\beta=1$ and $\epsilon_t=0$. I'm not sure what an ADF test on $0$ will actually do, and this could lead to a numeric instability.
I believe that a Johansen test will also lead to a numeric instability.
If this is a serious problem for some automated system, then probably the first thing to do is look for collinearity (take the timeseries covariance matrix and look at the condition number). If they are highly collinear or identical, you should catch it before running it through the cointegration engine.Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.