Interactive model — experiment with these parameters in sItô

The Ornstein–Uhlenbeck process

$$ dX_t = \theta(\mu - X_t)\,dt + \sigma\,dW_t $$

relaxes exponentially toward $\mu$ with half-life $\frac{\ln 2}{\theta}$ and settles into a Gaussian stationary distribution of mean $\mu$ and variance $\frac{\sigma^2}{2\theta}$ [1, 2].

Exact moments and relaxation

Integrating from $X_0 = x_0$ gives $X_t = \mu + (x_0 - \mu)e^{-\theta t} + \sigma\int_0^t e^{-\theta(t - s)}\,dW_s$, so at every time $t \ge 0$:

$$ \begin{aligned} \mathbb{E}[X_t] &= \mu + (x_0 - \mu)\,e^{-\theta t}, \\ \operatorname{Var}[X_t] &= \frac{\sigma^2}{2\theta}\bigl(1 - e^{-2\theta t}\bigr). \end{aligned} $$

In the stationary limit ($t \to \infty$), $X_\infty \sim \mathcal{N}\bigl(\mu, \frac{\sigma^2}{2\theta}\bigr)$ with lag-$\tau$ autocorrelation $e^{-\theta\tau}$ and half-life $\frac{\ln 2}{\theta}$. For $\theta = 2$, $\mu = 0$, and $\sigma = 0.5$, the stationary variance is $0.0625$ (standard deviation $0.25$) and the half-life is $0.347$.

Path fan of Ornstein–Uhlenbeck process decaying exponentially from x₀ = 2 toward 0 with widening bands Path fan of Ornstein–Uhlenbeck process decaying exponentially from x₀ = 2 toward 0 with widening bands
Ensemble relaxation from $x_0 = 2$ ($\theta = 2$, $\mu = 0$, $\sigma = 0.5$): the conditional mean decays as $2e^{-2t}$ to $0.267$ by $t = 1$ while diffusive spread builds around it. Open OU relaxation run in sItô ↗
Variance(x) curve rising smoothly from 0 and saturating near the stationary variance 0.0625 Variance(x) curve rising smoothly from 0 and saturating near the stationary variance 0.0625
Time evolution of $\operatorname{Var}(x_t)$: starting at zero variance, trajectories diffuse until mean reversion saturates the variance at $\sigma^2/(2\theta) = 0.0625$ ($0.0618$ observed at $t = 1$). Inspect variance saturation in sItô ↗

Run this in sItô

Open sItô with this model pre-loaded to inspect the path distribution, summary statistics, and parameter sensitivities—or change any setting and rerun:

Run ($\theta = 2, \mu = 0, \sigma = 0.5$)Exact mean (simulated)Exact variance (simulated)
$x_0 = 2$, $T = 1$ ($\Delta = 0.01$)0.2707 ($\approx 0.267$)0.0614 ($\approx 0.062$)
$x_0 = 0$, $T = 5$ ($2 \times 10^3$ paths)0 ($\approx 0$)0.0625 ($\approx 0.0625$, SE $2 \times 10^{-3}$)

In the $T = 1$ run, the $2\%$ shortfall in the simulated mean comes from the Euler decay factor $(1 - \theta\Delta)^{100} = 0.2652$ replacing $e^{-2} = 0.2707$.

Applications across models

For interest rates, the Ornstein–Uhlenbeck SDE is the Vasicek short-rate model, pulling rates toward $\mu$ while allowing negative values. With large $\theta$ and $\sigma$ scaled to hold $\frac{\sigma^2}{2\theta}$ fixed, it also models credit spreads, basis trades, and log commodity prices. When $\theta\Delta$ grows large, explicit Euler inflates stationary variance as analyzed in Euler on a stiff mean reversion. The underlying simulation pipeline is described in Compiling parametric SDEs into fast Monte Carlo simulations.

Related notes: Short-rate models compared, Commodity prices.