E_ADF_002 — ADF: input too short¶
The Augmented Dickey-Fuller test needs at least 4 observations, and
typically more depending on max_lag and the regression mode. The
input series didn't provide enough.
How to fix¶
Use a longer input series or reduce max_lag:
The minimum required length is approximately:
n_required = max_lag + n_regressors + 2
n_regressors = 1 (the lagged-level term)
+ (1 if regression in {"c", "ct"})
+ (1 if regression == "ct")
Common causes¶
- Stationarity test on a per-day window of intraday returns where the window is too small.
- Forgetting that
max_lagconsumes observations from the front.