Autocorrelation (ACF) and partial autocorrelation (PACF) plots of a time series + Ljung-Box tests at canonical lags. The diagnostic before ARIMA modelling.
ACF at lag k = correlation(x_t, x_{t-k}); PACF at lag k = the same correlation after partialling out the intermediate lags. The two together identify the (p, q) structure of an ARMA model: ACF cuts off at lag q for an MA(q); PACF cuts off at lag p for an AR(p); both decay gradually for a mixed ARMA.
The ±1.96/√n band approximates the 95% no-correlation interval. Bars outside the band at low lags suggest serial dependence worth modelling.
Ljung-Box aggregates multiple lags into one χ²-style test — a significant Ljung-Box at the standard lags 5 / 10 / 20 confirms the series isn't white noise.
One numeric column ordered in time + max lag.
Lag-by-lag ACF and PACF with the ±1.96/√n band, Ljung-Box χ² and p at lags 5 / 10 / 20.
ACF decays exponentially while PACF cuts off at lag p ⇒ AR(p).
ACF cuts off at lag q while PACF decays exponentially ⇒ MA(q).
Both decay gradually ⇒ mixed ARMA; pick orders via AIC after fitting candidates.