Skip to main content

Quant Analytics: from scratch to pro · Quant foundations: returns, risk and clean data · Intermediate

Time series basics: random walks, autocorrelation and stationarity

A price series and a return series behave very differently. This lesson covers random walks, autocorrelation, the AR(1) model with its half-life, volatility clustering and unit roots, the vocabulary needed before any model of market data.

4 min read Reviewed Revision 1

In this lesson

  • Explain why prices are usually treated as non-stationary and returns as roughly stationary
  • Compute and test a sample autocorrelation against its noise band
  • Use the AR(1) model to find autocorrelations and a half-life
  • Recognise volatility clustering and a unit root

Read first: Returns: simple, log and compounded, Volatility: from daily moves to an annual figure

Autocorrelation of an AR(1) series at each lag

  • phi = 0.9
  • phi = 0.5
  • phi = 1 (random walk)
0.0 0.2 0.4 0.6 0.8 1.0 0246810 Lag
Autocorrelation. Computed from the AR(1) formula, not from market data. A higher phi decays slowly; at phi = 1 shocks never fade, which is the unit-root case.

Worked numbers

Each result is recomputed from the formula shown.

WhatFormulaResult
number of returns10001,000
one standard error of a sample autocorrelation1 / sqrt(n_obs)3.16%
95% noise band1.96 / sqrt(n_obs)6.20%
z-score of a lag-1 autocorrelation of 0.040.04 * sqrt(n_obs)1.26
AR(1) coefficient0.90.9
AR(1) autocorrelation at lag 1ar_coef**10.90
at lag 2ar_coef**20.81
at lag 3ar_coef**30.73
at lag 5ar_coef**50.59
at lag 10ar_coef**100.35
half-life with phi 0.9ln(0.5) / ln(ar_coef)6.58
half-life with phi 0.95ln(0.5) / ln(0.95)13.51
random walk, 1% a day, 100 days0.01 * sqrt(100)10%
random walk, 1% a day, 400 days0.01 * sqrt(400)20%

Check yourself

A daily return series of 1,000 observations has a lag-1 autocorrelation of 0.04. Is that distinguishable from zero?

The noise band is about 1.96 / sqrt(1000) = 6.20%. The z-score is 0.04 x sqrt(1000) = 1.26. A value of 4.0% lies inside the band, so it cannot be told apart from luck.

In an AR(1) with phi = 0.9, what is the autocorrelation at lag 5, and the half-life of a shock?

Lag 5: 0.9^5 = 0.59. Half-life: ln(0.5) / ln(0.9) = 6.58 periods.

A daily volatility of 1% and a random walk in prices. What is the standard deviation of the price change after 100 days?

0.01 x sqrt(100) = 10%. It grows with the square root of time and has no upper limit.

Returns have no autocorrelation. Does that mean the size of returns cannot be forecast?

No. Squared or absolute returns are typically autocorrelated: large moves tend to follow large moves. That is volatility clustering. The direction is hard to forecast; the size is not.

Key terms

AutocorrelationStationarityVolatility

Sources

  • Time Series Analysis. Princeton University Press (James D. Hamilton), 1994. Accessed 9 Nov 2026
  • Distribution of the Estimators for Autoregressive Time Series with a Unit Root. Journal of the American Statistical Association 74(366), 427-431 (David A. Dickey, Wayne A. Fuller), 1979. Accessed 9 Nov 2026
  • Stock Market Prices Do Not Follow Random Walks: Evidence from a Simple Specification Test. The Review of Financial Studies 1(1), 41-66 (Andrew W. Lo, A. Craig MacKinlay), 1988. Accessed 9 Nov 2026
  • Empirical properties of asset returns: stylized facts and statistical issues. Quantitative Finance 1(2), 223-236 (Rama Cont), 2001. Accessed 9 Nov 2026

Informational content. Not investment advice.