LjungBoxTests
LjungBoxTests are statistical tools used to assess whether a time series exhibits no autocorrelation at specified lags, effectively testing if residuals behave like white noise. They are commonly applied in the diagnostics of time series models, such as ARIMA, to determine whether further modeling is warranted.
The Ljung-Box test statistic is defined as Q = n(n + 2) sum_{k = 1}^m [r_k^2 / (n − k)], where
There is a related Box-Pierce test, which uses Qp = n sum_{k=1}^m r_k^2 and tends to be less
Interpretation centers on the comparison of the calculated Q to the chi-square distribution: a large Q leads
Notes include the influence of the chosen lag m on test power, the impact of parameter estimation