Ornstein-Uhlenbeck Process
An Ornstein-Uhlenbeck process (OU process) is a random process that is pulled back toward a fixed level, with a pull that grows with its distance from that level. It is the standard model of mean reversion. The process follows
Here is the long-run level, is the speed of reversion per unit time, is the volatility, and is a Wiener process. The drift is positive below and negative above it, while the noise has the same size at every level. Given , the solution is
So is normal, with mean and variance
As the distribution tends to the stationary distribution . The expected gap halves every units of time, the half-life. Sampled at a fixed spacing , the process is exactly an AR(1) process with coefficient . In finance the OU process models interest rates and spreads between related prices. The Vasicek model uses it for the short rate, the interest rate on a very short loan. Because is normal, a Vasicek rate can go negative. 7.6 Geometric Brownian Motion has no pull toward a level, so its shocks are permanent and the variance of grows without bound. As with held fixed, the OU process becomes a generalized Wiener process.
Not Taught in Lecture
This whole note goes beyond IEOR 221, which models stock prices with geometric Brownian motion only. The OU process is the basic model for interest rates and spreads, and it is the starting point of short-rate models of bond prices.
Intuition
A short-term interest rate moves every day. Over decades, though, it does not drift off to or to . It wanders around a normal level and keeps returning toward it. The price spread between two closely related stocks behaves the same way. A generalized Wiener process cannot describe this. Its standard deviation grows like without limit, so over a long horizon it can end far from where it started.
The fix is a drift that points back toward a level and grows with the distance. Take and a pull of per year. At a rate of the drift is points per year. At it is , at it is , and at it is . Without noise, the gap shrinks at a rate equal to times the gap, so it decays like . A gap of points falls to points after years.
Now add the shock . The shocks push the process away from , and the pull drags it back. The spread of possible values grows at first and then stops growing, because a larger gap meets a stronger pull. The variance settles where the noise adds as much variance per unit time as the pull removes. That level is .
\usepackage{tikz}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[x=2cm,y=0.55cm,>=latex]
\draw[->] (0,0) -- (5.3,0) node[right] {$t$};
\draw[->] (0,0) -- (0,10.4) node[above] {$X_t$};
\foreach \s in {1,2,3,4,5} \draw (\s,0.15) -- (\s,-0.15) node[below] {$\s$};
\draw (0.03,9) -- (-0.03,9) node[left] {$X_0 = 9$};
\draw (0.03,3) -- (-0.03,3) node[left] {$\theta = 3$};
\draw[thick,cold] (0.00,9.00) -- (0.05,8.50) -- (0.10,7.88) -- (0.15,7.58) -- (0.20,7.47) -- (0.25,7.55) -- (0.30,7.35) -- (0.35,7.00) -- (0.40,6.60) -- (0.45,6.62) -- (0.50,6.87) -- (0.55,6.75) -- (0.60,6.24) -- (0.65,5.84) -- (0.70,6.12) -- (0.75,6.02) -- (0.80,5.42) -- (0.85,5.28) -- (0.90,4.86) -- (0.95,4.61) -- (1.00,4.40) -- (1.05,4.14) -- (1.10,4.23) -- (1.15,4.16) -- (1.20,3.95) -- (1.25,4.01) -- (1.30,4.18) -- (1.35,3.69) -- (1.40,3.59) -- (1.45,3.30) -- (1.50,3.24) -- (1.55,2.89) -- (1.60,2.90) -- (1.65,2.90) -- (1.70,2.82) -- (1.75,2.56) -- (1.80,2.48) -- (1.85,2.22) -- (1.90,1.90) -- (1.95,2.01) -- (2.00,1.77) -- (2.05,2.14) -- (2.10,2.37) -- (2.15,1.87) -- (2.20,2.00) -- (2.25,1.76) -- (2.30,1.83) -- (2.35,1.90) -- (2.40,1.43) -- (2.45,1.45) -- (2.50,1.46) -- (2.55,1.78) -- (2.60,1.53) -- (2.65,1.80) -- (2.70,1.57) -- (2.75,1.55) -- (2.80,1.40) -- (2.85,1.86) -- (2.90,2.06) -- (2.95,2.75) -- (3.00,2.93) -- (3.05,3.15) -- (3.10,3.36) -- (3.15,3.19) -- (3.20,3.16) -- (3.25,3.51) -- (3.30,3.38) -- (3.35,3.41) -- (3.40,3.38) -- (3.45,3.52) -- (3.50,3.40) -- (3.55,3.34) -- (3.60,3.39) -- (3.65,3.40) -- (3.70,3.15) -- (3.75,3.38) -- (3.80,3.02) -- (3.85,2.70) -- (3.90,2.38) -- (3.95,2.67) -- (4.00,2.59) -- (4.05,2.35) -- (4.10,2.09) -- (4.15,2.24) -- (4.20,2.00) -- (4.25,1.72) -- (4.30,1.94) -- (4.35,1.68) -- (4.40,1.66) -- (4.45,1.72) -- (4.50,1.67) -- (4.55,1.72) -- (4.60,2.13) -- (4.65,2.04) -- (4.70,1.76) -- (4.75,1.34) -- (4.80,1.37) -- (4.85,1.35) -- (4.90,1.50) -- (4.95,1.45) -- (5.00,1.40);
\draw[thick,cold] (0.00,9.00) -- (0.05,8.52) -- (0.10,8.11) -- (0.15,7.91) -- (0.20,7.57) -- (0.25,7.37) -- (0.30,7.66) -- (0.35,7.55) -- (0.40,6.92) -- (0.45,7.18) -- (0.50,7.07) -- (0.55,6.62) -- (0.60,6.68) -- (0.65,6.51) -- (0.70,6.18) -- (0.75,5.86) -- (0.80,5.46) -- (0.85,5.35) -- (0.90,5.52) -- (0.95,5.31) -- (1.00,5.30) -- (1.05,5.68) -- (1.10,5.23) -- (1.15,5.19) -- (1.20,5.01) -- (1.25,4.63) -- (1.30,4.28) -- (1.35,4.22) -- (1.40,4.27) -- (1.45,4.07) -- (1.50,4.03) -- (1.55,4.17) -- (1.60,4.19) -- (1.65,4.36) -- (1.70,4.41) -- (1.75,4.47) -- (1.80,4.88) -- (1.85,4.95) -- (1.90,4.89) -- (1.95,4.98) -- (2.00,4.65) -- (2.05,4.48) -- (2.10,4.61) -- (2.15,4.70) -- (2.20,5.02) -- (2.25,4.93) -- (2.30,4.45) -- (2.35,4.89) -- (2.40,5.08) -- (2.45,4.70) -- (2.50,4.98) -- (2.55,4.89) -- (2.60,4.33) -- (2.65,4.15) -- (2.70,3.96) -- (2.75,4.33) -- (2.80,4.06) -- (2.85,3.94) -- (2.90,3.82) -- (2.95,3.68) -- (3.00,3.41) -- (3.05,3.45) -- (3.10,3.71) -- (3.15,3.84) -- (3.20,3.55) -- (3.25,3.23) -- (3.30,3.25) -- (3.35,3.05) -- (3.40,2.88) -- (3.45,2.45) -- (3.50,2.98) -- (3.55,3.23) -- (3.60,2.96) -- (3.65,3.20) -- (3.70,3.54) -- (3.75,2.89) -- (3.80,2.75) -- (3.85,2.66) -- (3.90,2.85) -- (3.95,2.82) -- (4.00,2.77) -- (4.05,2.77) -- (4.10,3.26) -- (4.15,3.82) -- (4.20,3.64) -- (4.25,3.37) -- (4.30,4.05) -- (4.35,3.74) -- (4.40,3.56) -- (4.45,3.54) -- (4.50,3.64) -- (4.55,3.88) -- (4.60,3.94) -- (4.65,3.66) -- (4.70,3.76) -- (4.75,3.79) -- (4.80,4.25) -- (4.85,4.18) -- (4.90,3.77) -- (4.95,3.46) -- (5.00,3.82);
\draw[thick,cold] (0.00,9.00) -- (0.05,8.57) -- (0.10,7.74) -- (0.15,7.36) -- (0.20,7.15) -- (0.25,7.26) -- (0.30,6.78) -- (0.35,6.77) -- (0.40,6.80) -- (0.45,6.43) -- (0.50,6.21) -- (0.55,6.52) -- (0.60,6.80) -- (0.65,6.84) -- (0.70,6.74) -- (0.75,6.85) -- (0.80,6.63) -- (0.85,6.43) -- (0.90,6.03) -- (0.95,5.89) -- (1.00,5.72) -- (1.05,6.32) -- (1.10,6.11) -- (1.15,6.29) -- (1.20,6.47) -- (1.25,6.25) -- (1.30,6.40) -- (1.35,5.67) -- (1.40,5.56) -- (1.45,5.66) -- (1.50,4.90) -- (1.55,4.51) -- (1.60,4.71) -- (1.65,4.56) -- (1.70,4.20) -- (1.75,4.04) -- (1.80,3.85) -- (1.85,3.99) -- (1.90,4.07) -- (1.95,3.94) -- (2.00,3.72) -- (2.05,3.67) -- (2.10,3.98) -- (2.15,4.03) -- (2.20,4.15) -- (2.25,4.05) -- (2.30,3.66) -- (2.35,3.44) -- (2.40,3.59) -- (2.45,3.59) -- (2.50,3.32) -- (2.55,2.88) -- (2.60,2.92) -- (2.65,2.83) -- (2.70,2.75) -- (2.75,2.68) -- (2.80,2.77) -- (2.85,2.86) -- (2.90,3.11) -- (2.95,3.35) -- (3.00,3.68) -- (3.05,3.86) -- (3.10,3.73) -- (3.15,3.68) -- (3.20,3.78) -- (3.25,3.66) -- (3.30,3.77) -- (3.35,4.03) -- (3.40,3.77) -- (3.45,3.27) -- (3.50,3.57) -- (3.55,3.55) -- (3.60,3.71) -- (3.65,3.32) -- (3.70,3.76) -- (3.75,3.92) -- (3.80,3.84) -- (3.85,3.71) -- (3.90,3.70) -- (3.95,3.62) -- (4.00,3.52) -- (4.05,3.20) -- (4.10,3.52) -- (4.15,3.49) -- (4.20,3.48) -- (4.25,3.48) -- (4.30,2.84) -- (4.35,2.99) -- (4.40,2.90) -- (4.45,2.83) -- (4.50,2.86) -- (4.55,2.61) -- (4.60,2.85) -- (4.65,2.68) -- (4.70,2.46) -- (4.75,2.26) -- (4.80,2.33) -- (4.85,2.56) -- (4.90,2.43) -- (4.95,2.06) -- (5.00,2.38);
\draw[very thick,hot] (0.00,9.000) -- (0.10,8.429) -- (0.20,7.912) -- (0.30,7.445) -- (0.40,7.022) -- (0.50,6.639) -- (0.60,6.293) -- (0.70,5.980) -- (0.80,5.696) -- (0.90,5.439) -- (1.00,5.207) -- (1.10,4.997) -- (1.20,4.807) -- (1.30,4.635) -- (1.40,4.480) -- (1.50,4.339) -- (1.60,4.211) -- (1.70,4.096) -- (1.80,3.992) -- (1.90,3.897) -- (2.00,3.812) -- (2.10,3.735) -- (2.20,3.665) -- (2.30,3.602) -- (2.40,3.544) -- (2.50,3.493) -- (2.60,3.446) -- (2.70,3.403) -- (2.80,3.365) -- (2.90,3.330) -- (3.00,3.299) -- (3.10,3.270) -- (3.20,3.245) -- (3.30,3.221) -- (3.40,3.200) -- (3.50,3.181) -- (3.60,3.164) -- (3.70,3.148) -- (3.80,3.134) -- (3.90,3.121) -- (4.00,3.110) -- (4.10,3.099) -- (4.20,3.090) -- (4.30,3.081) -- (4.40,3.074) -- (4.50,3.067) -- (4.60,3.060) -- (4.70,3.055) -- (4.80,3.049) -- (4.90,3.045) -- (5.00,3.040);
\draw[thick,dashed] (0,3) -- (5,3);
\draw[thick,mid,dotted] (0,1.30) -- (5,1.30);
\draw[thick,mid,dotted] (0,4.70) -- (5,4.70);
\draw[dotted] (0.693,0) -- (0.693,6);
\fill[hot] (0.693,6) circle (2.2pt);
\node[below] at (0.693,-0.1) {$t_{1/2}$};
\draw[hot] (1.55,7.25) -- (1.02,5.25);
\node[hot,above right] at (1.4,7.2) {mean $\theta + (X_0 - \theta)e^{-\kappa t}$};
\node[right] at (5.02,3) {$\theta$};
\node[mid,right] at (5.02,4.70) {$\theta + 2\sigma/\sqrt{2\kappa}$};
\node[mid,right] at (5.02,1.30) {$\theta - 2\sigma/\sqrt{2\kappa}$};
\end{tikzpicture}
\end{document}The figure shows three simulated paths with , , , and over five years, each in exact steps. The red curve is the mean. The dot marks the half-life , where the mean is , halfway from to . The dotted lines lie two stationary standard deviations, , above and below . After three years the mean is within of . From then on the paths move around inside the band, and the starting value no longer matters.
Mean-reverting means pulled back toward a level, which is also the mean of the long-run distribution. The process is named after Ornstein and Uhlenbeck, who used it in 1930 for the velocity of a particle slowed by friction. In the callout, the pull gives the drift and the factor in the mean. The noise gives the term . The balance between the two gives the stationary variance .
Properties
(Half-Life) The half-life depends on the speed alone, and the variance approaches its long-run value twice as fast as the mean.
The mean gives . Setting gives , with no role for , , or the starting gap. A speed of per year gives a half-life of years, and per year gives about weeks. Some authors quote instead, the time after which of the gap remains. From the variance formula, the gap between and decays like . After one half-life the variance has reached of its long-run value. The half-life describes the mean only. A single path can stay away from much longer, or cross it much sooner.
(Stationary Distribution) Started from , the process keeps that distribution forever, and its correlation over a lag is .
Over a short step the pull shrinks every gap by the factor . This multiplies the variance by , and the shock adds . So the variance of follows . The variance in the callout solves this equation with , and is its only constant solution. Suppose is drawn from the stationary distribution, independent of . Then the mean, the variance, and every joint distribution stay the same over time, so the process is stationary in the sense of 4.7 Stationarity. Two values a time apart then have covariance and correlation
These follow from the solution, which writes as plus noise independent of . A shock today still moves the expected value at time by the fraction of its size. In a Wiener process every shock stays in the path at full size.
(Exact AR(1) Steps) The sampled process has an exact AR(1) shock variance, and an AR(1) regression read in reverse gives the OU parameters.
Apply the solution over one step, from to , starting at . With , the step is
The shock is independent of the past, so the sampled values form an AR(1) process with mean and coefficient . That note writes the shock as , the symbol used here for the Wiener process. The condition gives , which meets the AR(1) stationarity condition . The AR(1) variance formula gives , the stationary variance again. The Euler step of 7.3 Ito Process uses in place of and for the shock variance. These are first-order approximations, close when is small and poor for coarse sampling. Read in reverse, an AR(1) fit gives the OU parameters
where is the standard deviation of the fitted shocks.
(Vasicek Short Rate) The Vasicek model gives closed-form bond prices, and its rate falls below zero with positive probability at every date.
In the Vasicek model, proposed by Oldřich Vasicek in 1977, the short rate follows . The model matches the fact that rates rise and fall but stay within a range over decades. It also gives closed-form prices for zero-coupon bonds, through the PDE in 7.8 Feynman-Kac Formula. Its known weakness comes from normality. At every date the probability of a negative rate is
Here is the standard normal CDF, written in 2.2c.3 Gaussian Distribution. In the long run the probability is . It is small when lies many stationary standard deviations above zero, and large when rates are low and volatile. The Cox-Ingersoll-Ross model multiplies the shock by , which keeps the rate from going below zero. Negative rates did occur in practice. The European Central Bank kept its deposit rate below zero from 2014 to 2022.
(Contrast With Random-Walk Models) GBM and the generalized Wiener process keep every shock forever, while the OU process forgets shocks at the rate .
Under GBM, is a generalized Wiener process. A shock to the log price is never undone, and grows without bound. This suits stock prices. A known pull of a stock price toward a fixed level would let traders profit by buying below the level and selling above it. The OU variance stops growing at . GBM noise is proportional to the price, while OU noise has the same size at every level. The generalized Wiener process is the limit of the OU process as , with held fixed so that the drift tends to . The mean then tends to and the variance to , the values for in 7.1 Generalized Wiener Process. Over horizons much shorter than , and the two processes look alike. For this reason a half-life of several years is hard to detect in a short sample.
Derivation
We want to solve . Without noise the gap decays like , so multiplying by should remove the pull. Apply Itô’s lemma to with and . The derivatives are , , and , so
The terms in cancel, so the right side does not depend on . The function is linear in , so the lemma adds no second-order term. Integrating from to gives
Multiplying by gives the solution in the callout.
The integrand does not depend on . By the property on deterministic integrands in 7.4 Ito Integral, the integral is normal with mean . By the Itô isometry its variance is
The other terms of the solution are not random, so they give the mean. As the factor tends to , which gives the stationary distribution. The same steps from to , starting at , give the AR(1) step in the properties.
Examples
(Easy) Half-Life of a Spread
Two stocks in the same industry trade close together. The price spread between them, in dollars, follows an OU process with , per year, and . A trader samples the spread once per trading day () or once per month ().
Find the half-life in years and in trading days, and the AR(1) coefficient at each sampling frequency. Compare each coefficient with the Euler value . The half-life is years, or trading days. For daily sampling the coefficient is and the Euler value is . For monthly sampling, , and the Euler value is . The two differ by for daily data and by for monthly data. Measured in daily steps, the half-life is steps, the same answer. The stationary standard deviation is 0.80/\sqrt{7} = \0.30$0.60\theta$0.3049.5$ trading days.
(Medium) Negative Rates in a Vasicek Model
The short rate is today. It follows a Vasicek model with , per year, and per year.
Find the expected rate and the probability of a negative rate after one year, after five years, and in the long run. , so the expected rate is . The variance is , a standard deviation of . So After five years, , so the expected rate is . The variance factor is , a standard deviation of . Then . In the long run the standard deviation is , and . Both the mean and the standard deviation grow over time. Their ratio rises from to to , so the probability falls. Even in the long run, the rate is negative about of the time.
After one year,
(Hard) Fitting an OU Process to Weekly Data
An analyst records the yield spread between two bond indices, in percentage points, every week for five years. A least-squares regression of each week’s spread on the previous week’s gives , with residual standard deviation .
Estimate , , , the half-life, and the stationary standard deviation. Then find the half-life if the slope were , , or , and judge how reliable the estimate is. Here . The parameter map from the properties gives For the volatility, , so percentage points per square root of a year. The half-life is years, or weeks. The stationary standard deviation is . The AR(1) formula gives the same value, . The Euler reading is about too low.
The half-life is very sensitive to the slope. A slope of gives and a half-life of weeks. A slope of gives weeks, and gives weeks. As the slope tends to , tends to and the half-life grows without bound. Five years of weekly data give observations. In a simulation of such samples with a true slope of , the fitted slopes had a standard deviation of and an average of . So the estimated half-life can be off by a factor of two or more, and it tends to come out too short.
See Also
- 7.6 Geometric Brownian Motion, the stock model with no pull toward a level.
- 7.1 Generalized Wiener Process, the limit of the OU process as .
- 2.5.2 AR(p) Process, the discrete-time model that the sampled OU process follows.
- 4.7 Stationarity, the property of the OU process started from its long-run distribution.
- 7.8 Feynman-Kac Formula, which turns Vasicek bond prices into a PDE.
- 7.5 Ito’s Lemma, used to solve the model.