Skip to content
LeetQuant
QR05 Time Series and Econometrics

QR05 · Time Series and Econometrics · Lesson 1 of 5

Time-Series Analysis

Stationarity, AR/MA models, autocorrelation and volatility clustering.

30 min

Stationarity

A time series is (weakly) stationary if its mean and variance are constant and the covariance between XtX_t and Xt+kX_{t+k} depends only on the lag kk. Stationary series have stable statistics, so estimates from the past say something about the future.

Prices are not stationary; returns roughly are. The autocorrelation function ρk=Corr⁡(Xt,Xt+k)\rho_k = \operatorname{Corr}(X_t, X_{t+k}) is the first thing to look at. Under the null of no autocorrelation, sample autocorrelations have standard error about 1/n1/\sqrt n.

AR and MA models

AR(1): Xt=ϕXt−1+εtX_t = \phi X_{t-1} + \varepsilon_t with white noise εt\varepsilon_t of variance σ2\sigma^2. It is stationary when ∣ϕ∣<1|\phi| < 1, and then

Var⁡(Xt)=σ21−ϕ2,ρk=ϕk,half-life=ln⁡12ln⁡ϕ.\operatorname{Var}(X_t) = \frac{\sigma^2}{1 - \phi^2}, \qquad \rho_k = \phi^k, \qquad \text{half-life} = \frac{\ln \tfrac12}{\ln \phi} .

The variance formula comes from taking the variance of both sides: v=ϕ2v+σ2v = \phi^2 v + \sigma^2.

MA(1): Xt=εt+θεt−1X_t = \varepsilon_t + \theta\varepsilon_{t-1}. Its autocorrelation is ρ1=θ1+θ2\rho_1 = \dfrac{\theta}{1 + \theta^2} and ρk=0\rho_k = 0 for k≥2k \ge 2. The ACF of an MA(qq) cuts off after lag qq; the ACF of an AR decays geometrically.

Random walk: ϕ=1\phi = 1. The variance grows linearly with time and shocks never die out. This is a unit root, tested with the Dickey–Fuller test. Difference the series (Xt−Xt−1X_t - X_{t-1}) to make it stationary.

Worked example

a persistent signal

A trading signal follows an AR(1) with ϕ=0.9\phi = 0.9 and unit-variance shocks. What is its stationary variance, and how many days does it take for a shock to decay by half?

Show solution

Var⁡=1/(1−0.81)≈5.26\operatorname{Var} = 1 / (1 - 0.81) \approx 5.26, a standard deviation of about 2.292.29.

Half-life =ln⁡0.5/ln⁡0.9=−0.693/−0.105≈6.6= \ln 0.5 / \ln 0.9 = -0.693 / -0.105 \approx 6.6 days. A quick check: 0.97≈0.480.9^7 \approx 0.48.

Autocorrelation and multi-period risk

If daily returns have variance σ2\sigma^2 and lag-1 autocorrelation ρ\rho (and none beyond), the two-day return has variance

Var⁡(r1+r2)=2σ2(1+ρ).\operatorname{Var}(r_1 + r_2) = 2\sigma^2(1 + \rho) .

Positive autocorrelation (momentum) makes long-horizon risk larger than T\sqrt{T} scaling suggests; negative autocorrelation (mean reversion, or bid–ask bounce) makes it smaller. The ratio of the kk-period variance to kk times the one-period variance is the variance ratio, a standard test for both.

Volatility clustering and GARCH

Returns are nearly uncorrelated, but their squares are strongly autocorrelated: big moves follow big moves. GARCH(1,1) models this:

σt2=ω+α rt−12+β σt−12.\sigma_t^2 = \omega + \alpha\,r_{t-1}^2 + \beta\,\sigma_{t-1}^2 .

It is stationary when α+β<1\alpha + \beta < 1, with long-run variance ω/(1−α−β)\omega / (1 - \alpha - \beta). Persistence α+β\alpha + \beta is typically 0.95–0.99 for daily equity returns. The EWMA estimator σt2=λσt−12+(1−λ)rt−12\sigma_t^2 = \lambda\sigma_{t-1}^2 + (1 - \lambda)r_{t-1}^2 is the special case ω=0\omega = 0, α+β=1\alpha + \beta = 1, so it has no long-run level to revert to.

Worked example

GARCH long-run volatility

A GARCH(1,1) on daily returns has ω=2×10−6\omega = 2 \times 10^{-6}, α=0.08\alpha = 0.08 and β=0.90\beta = 0.90. What is the long-run annualised volatility?

Show solution

Long-run daily variance is 2×10−61−0.98=10−4\dfrac{2 \times 10^{-6}}{1 - 0.98} = 10^{-4}, a daily volatility of 1%. Annualised with 252 days: 1%×252≈15.9%1\% \times \sqrt{252} \approx 15.9\%.

Knowledge check

What is the lag-1 autocorrelation of the MA(1) process Xt=εt+0.5 εt−1X_t = \varepsilon_t + 0.5\,\varepsilon_{t-1}?

Knowledge check

Daily returns have lag-1 autocorrelation −0.2 and no autocorrelation beyond that. How does the variance of two-day returns compare with twice the daily variance?

Knowledge check

Which of these series is not stationary?

Practice problems

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).