TL;DR
The Ornstein–Uhlenbeck (OU) process is a random path that is pulled back toward a fixed level as it moves. It is noise with a memory of where it started, but that memory fades. It solves the problem that a plain random walk spreads out without limit, while many real quantities fluctuate around a typical value and stay near it.
Builds on: Stochastic Differential Equation · Leads to: Itô calculus applications such as diffusion models
Note: this lesson explains a mathematical model. It is education, not financial or investment advice.
Where it's used
Interest rates. The Vasicek model of 1977 describes a short-term interest rate as an OU process. Rates move at random but are assumed to be pulled toward a long-run level set by the economy, so a very high rate tends to come down over time.
Particles in a fluid. A small particle in a viscous liquid is kicked by molecules at random, and friction pulls its velocity back toward zero. The velocity of such a particle is an OU process. This was the physical problem that the original 1930 paper by Leonard Ornstein and George Uhlenbeck set out to describe.
Pairs trading. Two stocks that move together can have a price gap that wanders but tends to return to zero. Analysts model that gap as an OU process to estimate how long a gap usually lasts. This is a statistical description, and it does not guarantee that the gap will close.
Physical and biological noise. Quantities that have a set point with random disturbance, such as the temperature of a room with a thermostat or a population near a carrying capacity, are often modelled with the same pull-back structure.
How it works
Take a value that starts at 2 and is pulled toward 0. Each unit of time it moves back by a fixed fraction of its distance from 0, and it is also shoved by noise. We keep the pull simple: the rate is 1, so the value moves back by 1 times its distance per unit time.
- Start at . The target level is . The pull strength is .
- Measure the gap from the target: . The pull on the value is proportional to this gap, so a big gap gives a big pull. Check: at a gap of 4 the pull would be twice as strong.
- Over a short step , the drift moves the value by . With and a step of 0.1, the drift is . Check: the value moves toward 0, not away.
- Add the noise. A random kick of size is added, with . The kick is random, with mean zero. Check: the kicks cancel on average, so the drift sets the average direction.
- Repeat over many steps. The value keeps getting pulled back toward 0 while the kicks keep it wandering. Over time the gap settles into a stable spread around 0 rather than growing.
The picture is a ball on a spring that is being shaken at random. The spring pulls the ball back, the shaking pushes it away, and the ball ends up in a cloud around the spring's rest point.
- theta = 1
- theta = 2
The math
The OU process is the solution of the stochastic differential equation
where is the long-run level, is the speed of the pull, is the noise size and is the increment of a Brownian motion. The first term is the drift from step 3, and the second is the noise from step 4. Without the noise term, the equation is an ordinary differential equation whose solution decays exponentially toward , and that is the deterministic core of the process.
Step 3 in symbols: the drift term
The drift is linear in the gap. It is positive when is below and negative when it is above, so it always points toward . Its size is proportional to the gap, which is the feature that makes the process mean-reverting.
Steps 4 and 5 in symbols: the solution
Solving the equation gives the value at time as
The first two terms are the deterministic part, a path that decays exponentially toward from the start. The integral is the accumulated noise, with each old kick weighted by , so recent kicks count more than old ones. This weight is the formal memory that fades.
The mean and variance
Because the integral of noise has mean zero, the mean and variance follow directly:
The mean decays exponentially toward , as the exponential in the formula shows. The variance starts at 0 and grows toward a limit.
The stationary distribution
As becomes large, goes to 0. The mean tends to and the variance to . The value is then normally distributed, , so the process has a stable Gaussian cloud around . A larger pull makes the cloud narrower; more noise makes it wider.
Worked examples
Take , , , and look at .
- Mean: .
- Half-life check: the mean halves when , that is when .
- At the mean is . Check: is half of 1.
- Interpretation: after one unit of time the average value is about 37 percent of the start, and after about 0.69 units it is half of the start. The pull is strong enough to halve the gap in under one unit.
Take , , , , and look at .
- Mean: .
- Variance: .
- Standard deviation: .
- Stationary check: as grows, the variance tends to .
- Interpretation: half a time unit later, the typical value is about . The gap of 2 has shrunk to about 0.74, and the noise has spread the value over a band that is still growing toward its final width.
Suppose the gap between two related prices has a half-life of 10 days, which means , so per day. The gap today is 2.0 units above its long-run mean of 0. How much of the gap is left in expectation after 30 days?
- Compute the pull: .
- Compute the decay: .
- Expected gap: units. Check: 30 days is 3 half-lives, and .
- Interpretation: on average, about one eighth of the gap is left after three half-lives. This is a model-based expectation, not a promise that the gap will close on schedule.
Try it: the gap has a half-life of 5 days. What fraction of the starting gap is left in expectation after 15 days? Answer: 15 days is 3 half-lives, so , that is 12.5 percent.
Common mistakes and tradeoffs
It is tempting to think an OU process is just noise around a mean with no memory. In fact it has memory: the mean at time depends on , and the effect of decays as . The starting point is forgotten only gradually.
It is also tempting to think a larger pull makes the noise larger. In fact a larger narrows the long-run spread, because the stationary variance is . Faster pull means the value spends less time far from the mean.
Use an OU process when a quantity is expected to return to a level, and when a Gaussian stationary spread is a sensible model. Do not use it for quantities with a trend or for prices that can move to new levels permanently, because a plain random walk or a model with drift describes those better. Alternatives include the random walk when there is no pull, geometric Brownian motion when the noise should scale with the level, and jump processes when the path has sudden moves.
History
In 1930 Leonard Ornstein and George Uhlenbeck published a paper on the theory of Brownian motion. Brownian motion, the random jiggling of small particles, had been described by physicists decades earlier, but the random walk model did not capture the way a particle's velocity is damped by friction. Ornstein and Uhlenbeck wrote down a model in which the velocity is pulled back toward zero and kicked by random molecular impacts, and they showed it reproduced the observed behaviour. The model was later used in finance, particularly for interest rates, where it gave a simple, tractable pull toward a long-run level. The idea caught on because it is one of the few continuous models that is both realistic about noise and solvable in closed form.
Recap
- The OU process is noise that is pulled back toward a fixed level at a rate . It is a continuous-time version of a Markov chain: its next move depends only on where it is now.
- Its equation is , and the drift is proportional to the gap from .
- The mean decays as , and the variance tends to .
- The long-run distribution is a Gaussian cloud around , narrower for larger and wider for larger .
- Next, read Itô calculus, which is needed to solve the equation rigorously, and diffusion models, which use noise processes of this kind.
Check yourself
QuestionAn OU process has theta = 1 and mu = 0. Starting at X_0 = 3, what is the expected value at time 2?Show answer
. The expected value has decayed toward 0.
QuestionFor an OU process with sigma = 0.5 and theta = 2, what is the long-run variance, and what is the standard deviation?Show answer
The stationary variance is . The standard deviation is .
QuestionWhy does a larger theta give a narrower long-run spread, even though the same noise sigma is added?Show answer
A larger theta pulls the value back faster, so the value spends less time far from the mean. The stationary variance is , which falls as theta rises, so the balance between kicks and pull is struck closer to .
QuestionA standard random walk has no pull toward a level. Why is its spread after many steps larger than an OU process with the same noise?Show answer
A random walk keeps adding kicks without any pull back, so its variance grows with time and has no limit. The OU process pulls back each step, so its variance levels off at .
QuestionA gap has a half-life of 4 days. What fraction of the starting gap is left in expectation after 12 days?Show answer
12 days is 3 half-lives, so the expected fraction is , or 12.5 percent.