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!
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It only takes a minute to sign up.
Sign up to join this communityI 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!
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,
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.
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.
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 non-stationary, and hence $I(1)$, then test for co-integration:
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.