Compute and plot the sample autocorrelation function of a slowly changing series and of a white-noise series.
Compute and plot the sample autocorrelation function of a slowly changing series and of a white-noise series.
Autocorrelation measures linear dependence between a series and its lagged values. For white noise, ACF should be near zero after lag 0. For a persistent series, ACF decays slowly.
Two constructed series of length 80: a random walk-like cumsum of noise, and independent noise. Teaching data.
Two ACF bar plots. The persistent series shows many significant early lags; white noise bars stay inside the confidence bands after lag 0.
ACF is a dependence diagnostic. It does not by itself name the 'true' model, but it tells you whether independence is plausible.
ACF helps identify dependence between current and past observations.