Autocorrelation function
Also known as: ACF, Sample ACF
The autocorrelation function (ACF) at lag $k$ is the correlation of a series with its $k$-step lag:
\[\mathrm{ACF}(k)=\frac{\sum_{t=k+1}^{n}(Y_t-\bar Y)(Y_{t-k}-\bar Y)}{\sum_{t=1}^{n}(Y_t-\bar Y)^2}.\]$\mathrm{ACF}(0)=1$. Spikes outside confidence bands signal serial correlation. With PACF, guides AR/MA/ARMA order: ACF tails off & PACF cuts at $p$ ⇒ AR($p$); reverse ⇒ MA($q$).