Concept 1 of 71 min
AR(1): mean, variance, forecasts and half-life
Forecasts fade towards the mean
| Mean | 0 |
|---|---|
| φ | 0.6 |
| x today | 8 |
- 1 step: 8 × 0.6 = 4.8
- 2 steps: 4.8 × 0.6 = 2.88
- 3 steps: 2.88 × 0.6 ≈ 1.73
Each step keeps 60% of the gap to the mean.
Long-run mean and variance
| Constant | 1 |
|---|---|
| φ | 0.6 |
| Var(ε) | 2 |
- Mean = 1 ÷ (1 − 0.6) = 2.5
- Variance = 2 ÷ (1 − 0.62) = 3.125
The mean is 2.5, not the constant 1, and the variance is 3.125, not 5.
- φ = 0.6, mean 0
Its variance is σ² ÷ (1 − φ²) and its lag-k autocorrelation φk.
Its forecasts shrink the gap to the mean by φ each step, and its half-life is ln 0.5 ÷ ln φ, or ln 2 ÷ θ for a continuous Ornstein-Uhlenbeck process. The constant is not the mean: in equilibrium the mean equals c plus φ times itself.
Dividing σ² by 1 − φ instead of 1 − φ² confuses the variance with the mean formula. The mean lag 1/(1 − φ) is not the half-life.
Pairs traders size their holding periods on the half-life of the spread's mean reversion. Each step ahead keeps a share φ of today's gap to the mean, so forecasts fade geometrically towards it.
- Taking the constant as the mean.
- Dividing by 1 − φ for the variance.
- Quoting the mean lag 1/(1 − φ) as the half-life.
A spread between 2 related assets mean-reverts. How would you estimate how long a trade on it should last?
A complete answer covers
- Fit an AR(1), or an Ornstein-Uhlenbeck process, to the spread.
- The half-life is ln 0.5 ÷ ln φ, or ln 2 ÷ θ.
- Size the holding period and stop-loss on it.
- Check that the coefficient is stable over time, not a feature of one period.
Also in our technical interviews, on camera, with a score.
Concept 2 of 71 min
Reading autocorrelation: ACF, PACF and tests
The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.
See the plansSign inConcept 3 of 71 min
Unit roots and stationarity
The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.
See the plansSign inConcept 4 of 71 min
Cointegration and spurious regressions
The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.
See the plansSign inConcept 5 of 71 min
Volatility clustering: GARCH and EWMA
The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.
See the plansSign inConcept 6 of 71 min
Backtest pitfalls and forecast errors
The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.
See the plansSign inConcept 7 of 71 min
AdvancedHow a GARCH forecast slopes back after a shock
The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.
See the plansSign inRecap
- AR(1) xt = c + φ xt−1 + ε: mean c ÷ (1 − φ), variance σ² ÷ (1 − φ²), lag-k autocorrelation φk, half-life ln 0.5 ÷ ln φ.
- φ = 1 is a unit root: a random walk whose variance grows with time; test it with Dickey-Fuller and difference it.
- Regressing one trending series on another produces spurious fits; cointegration means a stationary spread.
- GARCH captures volatility clustering; its long-run variance is ω ÷ (1 − α − β); EWMA (exponentially weighted moving average) weights the newest return 1 − λ.
- Overlapping returns, full-sample means and unknown breaks make backtests look better than they are.
25 questions on Time series and econometrics
Timed, like the real one, drawn from a bank of 33. Every answer explained.