Quant500 Academy

3. Autocorrelation: does today resemble yesterday?

Level 5: Time series: why the past does not repeat itself the same way

If today's return says nothing about tomorrow's, it seems reasonable to conclude that nothing at all about tomorrow can be anticipated.

That is false. You can fail to know whether the price will rise or fall and still have a fairly good idea of how much it is going to move.

This module measures exactly that difference.

What autocorrelation measures

Autocorrelation measures exactly what its name suggests: the correlation of a series with itself, comparing each value with the value the series itself had a certain number of periods earlier.

That number of periods is called the lag:

The calculation is formally the same correlation coefficient you already know from the previous level, and it takes values between -1 and +1. The only difference is that instead of comparing two different variables, such as a share's return against the market's return, it compares the same variable with itself shifted in time.

What each sign means

The interpretation of each sign is straightforward, but it deserves precision:

The autocorrelation function

The set of autocorrelations computed for different lags (lag 1, lag 2, lag 3 and so on) is known as the autocorrelation function.

Plotting it makes it possible to see at a glance whether there is detectable temporal structure, and at what horizon it shows up.

For example, a series might show nothing relevant at one day but a weak negative autocorrelation at five days, suggesting a short-term reversion dynamic that is not apparent when looking only one day at a time.

It never comes out exactly zero

There is one point that separates rigorous analysis from superficial analysis. An estimated autocorrelation is never exactly zero, even when the real process has no temporal structure at all. Out of pure sampling noise, any calculation on a finite sample is going to throw up a number slightly different from zero.

So the relevant question is not whether the estimated autocorrelation is exactly zero. The question is whether it is different enough from zero not to be explainable by simple sampling noise.

The reference band depends on the sample size

There is a simple rule of thumb. Under the hypothesis that there is no real autocorrelation, the standard error of an autocorrelation estimated with n observations is approximately 1 divided by the square root of n.

Look at what that implies depending on how much data you have in front of you:

The sample size completely changes which autocorrelation is considered relevant. Reporting an autocorrelation figure without saying how many observations it was computed with, or without comparing it with this reference band, is a common error that gives a false sense of precision.

It measures linear dependence only

There is a crucial nuance that connects with two later modules of this same level. Autocorrelation as defined so far measures only linear dependence between the values of the series itself, the returns.

It is perfectly possible for these two things to happen at the same time:

This is not a contradiction. It means that although it cannot be predicted whether the price will rise or fall tomorrow, there is predictable information about how large the movement is likely to be, whatever its sign.

That is precisely the operational definition of the volatility clustering dealt with in module 6 of this level: a day with a large return, positive or negative, tends to be followed by another day with a large return, even though the sign of each one is, separately, hard to anticipate.

The arithmetic of the two autocorrelations

A numerical example illustrates this distinction well.

Imagine you compute the lag 1 autocorrelation of a share's daily returns over the last ten years and obtain 0.03. With an approximate standard error of 0.02 for that sample size, that value is within the range of what is explainable by noise, so there is no solid evidence of directional predictability.

But now compute the lag 1 autocorrelation of the squared returns of that same share, and suppose you obtain 0.25.

That value is enormously larger than the standard error of 0.02: a difference of more than ten standard deviations, compelling statistical evidence that the size of the movements is indeed serially correlated even though its direction is not.

This distinction between the autocorrelation of the returns and the autocorrelation of their size is one of the most useful and least intuitive ideas in the whole of financial time series analysis.

And it underpins much of why risk management models take recent volatility seriously, even though nobody claims to predict whether the market rises or falls tomorrow.

The rest of Quant500

What you are learning, applied to the index every day:

The model portfolio, weekly in your inbox

Every Saturday, its week in one minute: how it went, the best and the worst, and which insiders bought with their own money. Plus, the day the model is rebuilt, which stocks come in and which go out. A simulation, not advice. At most one email a week, no ads, no account; one-click unsubscribe. Made by one person: Pol Gracia.

A model portfolio with simulated results, not a personalized recommendation. Your email is used for this only: privacy.

Behind the Academy and the rest of Quant500 there is one person: Pol Gracia Serrahima.