Quant research and backtesting

Ornstein-Uhlenbeck process

Also called OU process, Vasicek process

A continuous-time mean-reverting process dx = theta x (mu - x) dt + sigma dW, which pulls x towards mu at speed theta while adding random noise.

How it works

Given x0, the expected value decays towards mu as x0 e^(-theta t) + mu (1 - e^(-theta t)), and the long-run variance is sigma^2 / (2 theta). It is the continuous-time analogue of an AR(1) process, so it can be fitted by regressing x_t on x_(t-1): with slope phi, theta = -ln(phi) per period. Avellaneda and Lee model stock residuals this way and keep only those that revert fast enough. A small estimated theta is often indistinguishable from a random walk in finite samples, so OU fits on short data tend to overstate mean reversion.

Worked example

A daily spread fitted as x_t = 0.95 x_(t-1) + noise gives theta = -ln(0.95) = 0.0513 a day. If the noise standard deviation per day is 1, the stationary standard deviation of the AR(1) is 1 / sqrt(1 - 0.95^2) = 3.2.

Put it to work in a timed game.

Practise with Find the Bug

Sources

  1. en.wikipedia.org/wiki/Ornstein%E2%80%93Uhlenbeck_process
  2. math.nyu.edu/~avellane/AvellanedaLeeStatArb20090616.pdf

Last checked November 2026.

← All 281 glossary terms

Was this definition clear?