The two step Engle-Grander cointegration test, to detect relationship between time series X(t) and Y(t).
- Form a new time series
U(t) = X(t) - Y(t)
and fit linear regressionLM(t)
for it - Run Augmented Dickey-Fuller test against the residuals of
LM(t)
to check ifU(t)
is a stationary time series