liveBook · Manning

Temporal autocorrelation

As explained in Build a Robo-Advisor with Python (From Scratch)

Autocorrelation is the correlation between a time series and a lagged version of itself.

Temporal autocorrelation measures how a time series relates to a lagged version of itself. In financial returns, autocorrelation of squared returns, Corr(r²ₜ₋₁, r²ₜ), tests whether large moves follow large moves and small moves follow small moves, regardless of direction. section 3.2.2

S&P 500 volatility clustering

Compute daily returns, square them, and calculate lag-one autocorrelation. The S&P 500 result is 0.2228, with standard error 0.0106 and t-statistic 21.03, providing strong evidence that volatility is not independent over time.

Interpret the statistic in context:

  • Near-zero autocorrelation would be consistent with no volatility clustering; a materially positive value indicates that yesterday’s squared return helps forecast today’s. section 3.2.2
  • GARCH models use this persistence to forecast future volatility rather than treating returns as identically distributed over time. section 3.2.2

How Build a Robo-Advisor with Python (From Scratch) covers it

How deep it goes
Explains the lagged statistic, computes it in Python, and evaluates significance with a standard error and t-statistic.
Examples
Uses S&P 500 crash returns and a Python calculation producing autocorrelation 0.2228.
What you can do after
Diagnose volatility clustering by computing squared-return autocorrelation and testing it against its estimated standard error.
How it connects
Connects squared returns with volatility clustering, GARCH models, and volatility forecasting.

Also explained in

Compare how 4 books explain temporal autocorrelation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Robo-Advisor with Python (From Scratch). The section links point to the parts of the book it draws on.