Skip to content

Ornstein-Uhlenbeck process

The OU process combines mean reversion with Gaussian shocks. Derive its exact transition, distinguish conditional and stationary laws, and connect half-life to AR(1) sampling.

An Ornstein-Uhlenbeck process, or OU process, is a continuous-time model in which a variable is pulled toward a fixed level while receiving additive random shocks. It is a standard model for a signed spread, a factor residual or a Gaussian short rate. Its appeal is practical: both the forecast distribution and an exact simulation step are available in closed form.
The restoring force acts on the conditional mean. It does not require the next observed movement to be toward equilibrium, keep the process inside a band, or guarantee a profitable convergence trade.

A restoring drift with noise

The constant-parameter stochastic differential equation is
dXt=κ(θ−Xt) dt+σ dWt,κ>0,σ>0.dX_t=\kappa(\theta-X_t)\,dt+\sigma\,dW_t, \qquad \kappa>0,\quad \sigma>0.
Here WtW_t is standard Brownian motion, θ\theta is the long-run level, κ\kappa is the speed of mean reversion, and σ\sigma is the diffusion coefficient. With time measured in years and XX in spread points, their units are respectively points, per year and points per square-root year. The diffusion coefficient is not the long-run standard deviation.

Above θ\theta, the drift is negative; below it, positive. At θ\theta, the drift vanishes but the shocks remain. This is an equilibrium level for the distribution, rather than a place where the process stops. A centered OU process uses θ=0\theta=0; subtracting θ\theta from a nonzero-mean model gives that centered form.

To see why the model is tractable, set Yt=Xt−θY_t=X_t-\theta and multiply by eκte^{\kappa t}. The time derivative of the multiplying factor cancels the restoring drift:

d(eκtYt)=σeκt dWt.d(e^{\kappa t}Y_t)=\sigma e^{\kappa t}\,dW_t.

Consequently, conditional on the observed value Xt=xX_t=x, the future level is

Xt+h=θ+(x−θ)e−κh+σ∫tt+he−κ(t+h−s) dWs.X_{t+h}=\theta+(x-\theta)e^{-\kappa h} +\sigma\int_t^{t+h}e^{-\kappa(t+h-s)}\,dW_s.
The last term is an Itô integral with a deterministic integrand. It is a zero-mean normal shock, independent of information available at tt. Integrating its squared coefficient gives the variance. This integrating-factor argument is developed for the centered process in Jonathan Mattingly's Duke notes.

An exact forecast for a displaced spread

The resulting normal transition law, for h>0h>0, is
Xt+h∣Xt=x∼N ⁣(θ+(x−θ)e−κh,  σ22κ(1−e−2κh)).X_{t+h}\mid X_t=x\sim\mathcal{N}\!\left( \theta+(x-\theta)e^{-\kappa h},\; \frac{\sigma^2}{2\kappa}(1-e^{-2\kappa h}) \right).
Consider a synthetic spread measured in points. Suppose its stipulated parameters are κ=2\kappa=2 per year, θ=3\theta=3 points and σ=1.2\sigma=1.2 points per square-root year. Today the spread is 9 points. These are illustrative assumptions, rather than estimates from market data.

At a horizon of half a year,

E[X0.5∣X0=9]=3+(9−3)e−1≈5.207277 points,Var(X0.5∣X0=9)=1.224(1−e−2)≈0.311279 points2.\begin{aligned} \mathbb{E}[X_{0.5}\mid X_0=9] &=3+(9-3)e^{-1}\approx5.207277\text{ points},\\ \text{Var}(X_{0.5}\mid X_0=9) &=\frac{1.2^2}{4}(1-e^{-2})\approx0.311279\text{ points}^2. \end{aligned}
The conditional standard deviation is about 0.557924 points. The forecast has moved toward 3, yet it remains well above 3 because the current displacement still matters. Replacing the conditional mean with θ\theta would discard information we have just observed.

The expected displacement halves after

h1/2=ln⁡2κ.h_{1/2}=\frac{\ln 2}{\kappa}.
Here that is 0.346574 years: the expected level falls from 9 to 6, halving its initial six-point gap above 3. This is a half-life of the expected signed displacement. It is neither an expected first-passage time to 6 nor a deadline by which a sample path must cross that level. Hitting-time questions require a separate calculation.
Synthetic OU spread starts at 9 points and has long-run mean 3. The conditional mean reaches 6 after 0.346574 years. Three seeded exact-grid paths fluctuate around the mean forecast.
Synthetic OU spread starts at 9 points and has long-run mean 3. The conditional mean reaches 6 after 0.346574 years. Three seeded exact-grid paths fluctuate around the mean forecast.
Original synthetic model. Three paths use seed 20261025 and exact transitions every 0.01 year. Straight connectors do not show all movement between observations.

What “stationary” adds

As the forecast horizon grows, the conditional mean approaches θ\theta and the conditional variance approaches σ2/(2κ)\sigma^2/(2\kappa). The invariant, or stationary, distribution is

N ⁣(θ,σ22κ).\mathcal{N}\!\left(\theta,\frac{\sigma^2}{2\kappa}\right).
For the example, it has mean 3 points, variance 0.36 points squared and standard deviation 0.6 points. Andrey Sarantsev's notes give this nonzero-mean OU model and its invariant normal law in §§19.3–19.5.
Starting at a known 9 does not make the process stationary from time zero. Its time-zero law is concentrated at 9; its subsequent distributions change. To construct the stationary process from the start, draw the initial state from the invariant normal law, independently of future Brownian increments. The future marginal distribution then remains the same, although successive levels remain dependent. In that stationary regime,
Corr(Xt,Xt+h)=e−κh.\text{Corr}(X_t,X_{t+h})=e^{-\kappa h}.
Two normal density curves for the same synthetic OU model. At half a year conditional on a starting level of 9, mean is 5.207277 and standard deviation 0.557924. The stationary curve has mean 3 and standard deviation 0.6. Both have unbounded support.
Two normal density curves for the same synthetic OU model. At half a year conditional on a starting level of 9, mean is 5.207277 and standard deviation 0.557924. The stationary curve has mean 3 and standard deviation 0.6. Both have unbounded support.
Original model densities. A fixed initial state produces a changing conditional law; the stationary law describes equilibrium initialization or the long-horizon limit.
A bounded variance is not a bounded state space. With positive σ\sigma and a positive horizon, the normal transition density assigns positive probability to levels below zero and beyond any finite band. This suits signed residuals but requires care for quantities that must remain nonnegative. Mean reversion also does not mean individual paths settle permanently at θ\theta.

Exact sampling, and the AR(1) connection

At equally spaced observation times, the OU process satisfies the exact recursion

Xn+1=θ(1−ϕ)+ϕXn+εn,ϕ=e−κΔ,εn∼iidN ⁣(0,σ22κ(1−ϕ2)).\begin{aligned} X_{n+1}&=\theta(1-\phi)+\phi X_n+\varepsilon_n,\\ \phi&=e^{-\kappa\Delta},\\ \varepsilon_n&\overset{\text{iid}}{\sim} \mathcal{N}\!\left(0,\frac{\sigma^2}{2\kappa}(1-\phi^2)\right). \end{aligned}
This is an AR(1) model with an intercept. It samples the continuous-time model exactly at the grid points, as in the transition exercise in Jun Yan's statistical-computing notes, §5.3.3. Omitting the intercept is valid for the centered state X−θX-\theta, but changes a general nonzero-mean model. A fitted AR coefficient must lie strictly between zero and one to map to this mean-reverting scalar OU model with finite positive κ\kappa.
An Euler step instead replaces ϕ\phi with 1−κΔ1-\kappa\Delta and the innovation variance with σ2Δ\sigma^2\Delta. That is an approximation. For our example, one Euler step of half a year gives mean 3 and variance 0.72, versus the exact 5.207277 and 0.311279. A coarse step can substantially distort both the speed and uncertainty of reversion; this model already provides a simple exact alternative.

In finance, fitting OU dynamics is still a modelling decision. The long-run level and speed may change, shocks may have heavier tails, and a residual may contain estimation error. Historical mean reversion supplies a conditional statistical forecast, not a guaranteed trade: costs, borrow, execution and exposure to model failure still matter. A short-rate model used for pricing also needs parameters under the appropriate pricing measure; historical residual estimates do not automatically supply them.

For the mathematical derivation, see the OU/Vasicek section of Mean-Reverting Diffusions. For residual modelling and the discrete regression mapping, read §§1–4 of The Ornstein-Uhlenbeck Model for Idiosyncratic Residuals. Both have public previews; full lessons require membership.

Sources

Last updated
  • mean reversion
  • stochastic processes
  • gaussian model
  • exact simulation
  • time series
← Back to the glossaryBack to top ↑