Autocorrelation (ACF) and partial autocorrelation (PACF)
The correlation of a series with its own past at each lag (ACF), and the same after removing the effect of shorter lags (PACF), used to detect dependence, seasonality and AR order.
- lag (number of periods apart)
- length of the series
- mean of the whole series
- length of the series
When to use
- Checking whether a series (or a model's residuals) is white noise; spotting seasonality (spikes at lags ); choosing an AR order.
- The PACF at lag is the last coefficient of an AR() fitted to the series (computed by the Durbin–Levinson recursion on the ACF).
Assumptions
- Equally spaced observations with no missing values; the series should be roughly stationary (trend removed or differenced) for the ACF to be interpretable.
- The ±1.96/√n bands assume white noise and apply lag by lag; with many lags, about 1 in 20 will cross by chance.
How to interpret
- Slowly decaying ACF: trend or non-stationarity — difference the series.
- AR(p): PACF cuts off after lag , ACF decays gradually.
- For residuals, a joint check such as the Ljung–Box test complements the plot.
Common mistakes
- Interpreting a single bar that just crosses the band as a real pattern.
- Reading the ACF of a trending series as "strong dependence" rather than non-stationarity.
- Expecting reliable ACFs from very short series (the bands are wide).
Example
Series 3, 5, 4, 6, 5, 7, 6, 8 (): , , ; PACF at lag 2 = 0.464. The white-noise band is ±1.96/√8 = ±0.693, so no lag is clearly significant — eight points are too few to say much.