E_ADF_004 — ADF: singular / degenerate regression¶
The ADF regression matrix is numerically singular — one or more regressors are linearly dependent. This usually means the input series is constant, near-constant, or otherwise lacks variation.
How to fix¶
Check the input variance and the lag specification:
Common causes¶
- The series is constant (
var == 0) or near-constant after rounding. - The series has < N unique values where N is the regressor count.
max_lagis too large for the available variation.- Floating-point underflow in the augmented regression — try the same series scaled (e.g. multiply by 1000 and re-test).