Why account for fitted model degrees of freedom in a residual Ljung–Box test?
StatisticsLevel: IntermediateRegression diagnostics
Why account for fitted model degrees of freedom in a residual Ljung–Box test?
Hints
- Residuals are estimated, not raw noise.
- Check lag−model_df.
Answer
Fitting consumes degrees of freedom and changes the residual reference distribution. If tested lags minus model degrees of freedom is nonpositive, the standard p-value is unavailable.
Source and licence: statsmodels — model diagnostics · BSD-3-Clause · answer: Quantoros editorial