Does a high unemployment rate this quarter predict a high rate next quarter? Does a stock's return today say anything about tomorrow's? Time-series analysis starts by measuring how strongly a series is correlated with its own past.
We will define autocorrelation, estimate it from data, test it against noise, and finish with reading a correlogram.
Step 1: Autocovariance and autocorrelation
For a stationary series the autocovariance at lag k, γk = Cov(yt, yt−k), is the same for every t. Dividing by the variance γ₀ gives the autocorrelation:
Like any correlation it lies between −1 and 1, with ρ₀ = 1, and it is the same whichever direction you look: the link between today and k periods ago equals the link between today and k periods ahead. Example: γ₀ = 20 and γ₂ = 8 give ρ₂ = 0.4; a series with γ₀ = 20 and γ₁ = −5 has ρ₁ = −0.25, so a high value tends to be followed by a low one.
Step 2: Estimating it from data
The sample version uses the full-sample mean ȳ in both terms:
The top sum runs over the T − k pairs that are k periods apart; the bottom over every observation. Example: 3, 5, 9, 7, 6 has mean 6 and deviations −3, −1, 3, 1, 0. The bottom sum is 9 + 1 + 9 + 1 + 0 = 20; the lag-1 products are 3, −3, 3 and 0, summing to 3; so r₁ = 0.15. In small samples sample autocorrelations tend to be biased toward zero.
Step 3: Is it more than noise?
A series with no autocorrelation at all is white noise. Even then, sample autocorrelations aren't exactly zero. In a sample of T observations they are roughly normal with standard deviation 1/√T, so
Autocorrelations outside the band are evidence of real persistence. Example: with T = 100 the band is ±0.2, so r₁ = 0.15 is consistent with white noise while r₁ = 0.35 is not; with T = 25 the band widens to ±0.4. Software draws these bands on ACF plots.
Step 4: Reading a correlogram
A plot of rk against the lag k, with the band drawn as two horizontal lines, is a correlogram. Read it by looking for bars that poke out of the band and for the pattern they form: a single spike at lag 1, a slow decay, or a spike at a seasonal lag such as 4 or 12. With 20 lags plotted, about one bar is expected to cross the band by chance, so a lone crossing at an odd lag is weak evidence.