Autocorrelation (also called serial Correlation) measures how a time series is related to a lagged version of itself.
Formally, for a time series , the autocorrelation at lag is:
It takes values between and :
- : Positive correlation → if is above its mean, tends to be above its mean too.
- : Negative correlation → if is above its mean, tends to be below its mean.
- : No linear relationship between and its past at lag .
Intuition
Autocorrelation tells you how predictable a series is from its past:
- Stock returns: low/no autocorrelation (mostly random).
- Daily temperatures: high autocorrelation at lag 1 (yesterday’s temperature is a good predictor of today’s).
- Strong seasonal effects: autocorrelation spikes at seasonal lags (e.g., 7 days for weekly seasonality).
Why it matters
- Used to detect Seasonality and Trends in Time Series.
- Helps decide AR and MA terms in ARIMA.
- Checked via Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots.