FRENESDE

Mean reversion: half-life and z-score

A spread that reverts to its mean is often modelled as an Ornstein-Uhlenbeck process: ds = θ(μ − s)dt + σdW. The larger θ, the faster the reversion. In discrete data: Δst = λ·st−1 + c + ε, with λ < 0.
The half-life = −ln 2 / λ. Example: λ = −0.05 per day → half-life = 0.693 / 0.05 ≈ 14 days. A gap takes 14 days on average to shrink by half. It is used to choose the z-score window and the maximum length of a trade.
The z-score = (s − rolling mean) / rolling standard deviation, over a window close to the half-life. Typical rule: enter at |z| > 2, exit around z ≈ 0, cut if |z| > 4 or if the trade lasts more than 3 half-lives (time stop).
To estimate λ, you regress the change in the spread on its previous day’s level: the slope of that line is λ. Example: if the spread shrinks on average by 5% of its gap each day, λ = −0.05. If λ is close to 0 or positive, the half-life explodes: no usable mean reversion. Re-estimate λ regularly: it changes with the regime.

Examples

Key terms

Ornstein-Uhlenbeck
Random process pulled back to a mean with a force proportional to the gap
Half-life
Average time for a gap from the mean to shrink by half
Z-score
Distance from the mean expressed in standard deviations
Time stop
Forced exit when a trade lasts too long without reverting
λ (lambda)
Estimated pull-back speed: the more negative, the faster the gap closes
Selling the spread
Sell A and buy β × B, betting that the gap will shrink
Take the mission on Doji Academy

← Back to the index