← Lessons

quiz vs the machine

Silver1120

Machine Learning

Autocorrelation And The ACF

Measuring how a series relates to its own past at different lags.

4 min read · intro · beat Silver to climb

Autocorrelation And The ACF

Autocorrelation measures how similar a series is to a shifted copy of itself. The shift amount is called a lag.

Reading correlation by lag

  • At lag one, you compare each value with the one just before it.
  • At lag twelve on monthly data, you compare each value with the same month last year.
  • A high value at a lag means the past strongly predicts the present at that distance.

The ACF plot

The autocorrelation function plots correlation against lag. It is one of the most useful diagnostics in time series work.

  • A slow decay across many lags suggests a trend that has not been removed.
  • Spikes at seasonal lags reveal a repeating cycle.
  • Values inside the confidence band are treated as effectively zero.

The partial version

The partial autocorrelation function strips out the influence of shorter lags, isolating the direct link at each lag. Analysts use both plots together to pick model orders.

Key idea

The ACF shows how strongly each lag predicts the present, guiding both diagnosis and model choice.

Check yourself

Answer to earn rating on the learn ladder.

1. What does a lag represent in autocorrelation?

2. A slow decay of the ACF across many lags often indicates what?

3. What does the partial autocorrelation function isolate?