Tutorials › Stochastic Calculus › The Ornstein-Uhlenbeck Transition Density

Diffusions and the Markov Property · Tutorial 348 of 600

The Ornstein-Uhlenbeck Transition Density

Derive the Ornstein–Uhlenbeck transition law from its explicit SDE solution, including the Gaussian density and its conditional moments.

Advanced 9 min read

What You'll Learn

  • Solve the Ornstein–Uhlenbeck SDE from a fixed value at a specified starting time
  • Use an integrating factor and Ito’s formula to obtain the explicit solution
  • Derive the conditional mean and variance from the stochastic integral
  • Write the transition density and state when it is nondegenerate
  • Distinguish the transition density from the point mass at zero elapsed time
  • Identify and correct the common error of using Brownian variance over the full interval

Mean Reversion and the Transition Law

The Ornstein–Uhlenbeck process is a diffusion whose drift pulls its state toward a fixed level. Its transition law describes how much of the starting value remains after a given time and how randomness accumulates along the way. Both features can be derived directly from the SDE by an integrating factor.

Work on a filtered probability space \((\Omega,\mathcal{F},(\mathcal{F}_t)_{t\ge0},\mathbb{P})\) carrying a standard Brownian motion \(B_t\) relative to the filtration. Fix parameters \(\kappa>0\), \(m\in\mathbb{R}\), and \(\sigma>0\), and a starting time \(s\ge0\). For \(t\ge s\), consider the Ornstein–Uhlenbeck SDE with fixed starting value \(X_s=x\):

$$ dX_t=\kappa(m-X_t)\,dt+\sigma\,dB_t,\qquad X_s=x. $$

Here \(\kappa\) is the rate of mean reversion, \(m\) is the long-run level, and \(\sigma\) is the diffusion coefficient. The drift at state \(z\) is \(\kappa(m-z)\); the diffusion coefficient is the constant \(\sigma\). The transition density at time \(t>s\) is the density, with respect to Lebesgue measure in \(y\), of the conditional law of \(X_t\) given \(X_s=x\).

Solving the SDE

Use the integrating factor \(e^{\kappa t}\). The stochastic integral that appears has integrand \(H_u=e^{\kappa u}\), which is deterministic, hence adapted and progressively measurable. On every finite interval \([s,T]\), it belongs to \(\mathcal{L}^2\), since \(\mathbb{E}\int_s^T H_u^2\,du=\int_s^T e^{2\kappa u}\,du<\infty\). Thus the Ito integral below is well-defined.

To justify the integrating-factor calculation, apply Ito’s formula to \(f(t,z)=e^{\kappa t}z\). Its derivatives are \(f_t(t,z)=\kappa e^{\kappa t}z\), \(f_z(t,z)=e^{\kappa t}\), and \(f_{zz}(t,z)=0\). Since the diffusion coefficient of \(X\) is \(\sigma\), its quadratic variation differential is \((dX_t)^2=\sigma^2dt\): the drift-times-drift and drift-times-diffusion terms vanish by \(dt\,dt=0\) and \(dt\,dB_t=0\), while \(dB_t\,dB_t=dt\). Ito’s formula, including its correction term, gives

$$ df(t,X_t)=f_t\,dt+f_z\,dX_t+\tfrac12 f_{zz}(dX_t)^2 =\kappa e^{\kappa t}X_t\,dt+e^{\kappa t}\bigl(\kappa(m-X_t)\,dt+\sigma\,dB_t\bigr)+\tfrac12(0)\sigma^2dt =\kappa m e^{\kappa t}\,dt+\sigma e^{\kappa t}\,dB_t. $$

Integrating from \(s\) to \(t\), and evaluating the ordinary integral, yields the explicit solution

$$ X_t=e^{-\kappa(t-s)}x+m\bigl(1-e^{-\kappa(t-s)}\bigr) +\sigma\int_s^t e^{-\kappa(t-u)}\,dB_u. $$

The integral here has deterministic integrand \(u\mapsto e^{-\kappa(t-u)}\), which is progressively measurable and square-integrable on \([s,t]\), because its expected squared-integrand integral is the finite number \(\int_s^t e^{-2\kappa(t-u)}\,du\). This formula gives a strong solution: it is constructed using the given Brownian motion, and its value at time \(t\) is measurable with respect to \(\mathcal{F}_t\).

Proposition: The displayed explicit solution is the unique solution of the SDE with \(X_s=x\), up to indistinguishability.

Proof. The Ito calculation above shows that the displayed process satisfies the SDE and the initial condition. If \(X\) and \(\widetilde X\) are two solutions with the same Brownian motion and initial value, their difference \(D_t=X_t-\widetilde X_t\) has no stochastic term and satisfies \(dD_t=-\kappa D_t\,dt\), with \(D_s=0\). Multiplying by \(e^{\kappa t}\), or integrating this ordinary differential equation, gives \(e^{\kappa t}D_t=e^{\kappa s}D_s=0\) for all \(t\ge s\). Hence \(X_t=\widetilde X_t\) for all \(t\ge s\), almost surely. \(\square\)

Conditional Mean, Variance, and Density

For fixed \(s<t\), the random part of the solution is a deterministic Brownian integral. Such an integral is centered Gaussian, with variance given by the Ito isometry. It is independent of \(\mathcal{F}_s\): for step-function integrands this follows from independence of Brownian increments after \(s\) from \(\mathcal{F}_s\), and general deterministic square-integrable integrands are limits in \(L^2\) of step-function integrands. The resulting conditional law is therefore Gaussian.

Theorem: For \(\kappa>0\), \(\sigma>0\), and \(t>s\), the solution started at \(X_s=x\) has conditional distribution \(N(M_{s,t}(x),V_{s,t})\), where \(M_{s,t}(x)=m+(x-m)e^{-\kappa(t-s)}\) and \(V_{s,t}=\dfrac{\sigma^2}{2\kappa}\bigl(1-e^{-2\kappa(t-s)}\bigr)\). Its transition density is \(p(s,x;t,y)=\dfrac{1}{\sqrt{2\pi V_{s,t}}}\exp\bigl(-\dfrac{(y-M_{s,t}(x))^2}{2V_{s,t}}\bigr)\).

Proof. Set \(h=t-s>0\). In the explicit solution, the nonrandom terms combine as \(e^{-\kappa h}x+m(1-e^{-\kappa h})=m+(x-m)e^{-\kappa h}\), which is the conditional mean because the stochastic integral has conditional mean zero. Its conditional variance is its ordinary variance, since it is independent of \(\mathcal{F}_s\). By the Ito isometry,

$$ \operatorname{Var}\left(\sigma\int_s^t e^{-\kappa(t-u)}\,dB_u\;\middle|\;\mathcal{F}_s\right) =\sigma^2\int_s^t e^{-2\kappa(t-u)}\,du =\frac{\sigma^2}{2\kappa}\left(1-e^{-2\kappa(t-s)}\right). $$

This variance is strictly positive because \(\sigma>0\), \(\kappa>0\), and \(t-s>0\). A Gaussian random variable with this mean and positive variance has the stated Lebesgue density. \(\square\)

The same calculation gives a transition kernel for every starting state \(x\). If \(X_s\) is instead random and \(\mathcal{F}_s\)-measurable, the conditional law given \(\mathcal{F}_s\) is the Gaussian law with mean \(m+(X_s-m)e^{-\kappa(t-s)}\) and the same variance \(V_{s,t}\). The formula is a statement about conditional laws, not a claim that \(X_t\) is independent of its starting state.

Worked Example: A Half-Life for the Starting Deviation

Take \(\kappa=2\), \(m=3\), \(\sigma=2\), \(x=1\), and elapsed time \(h=(\ln 2)/2\). Compute the transition law.

First, \(\kappa h=2(\ln 2)/2=\ln 2\), so \(e^{-\kappa h}=1/2\). Also \(2\kappa h=2\ln 2=\ln 4\), so \(e^{-2\kappa h}=1/4\). The conditional mean is

$$ M=3+(1-3)\frac12=3-1=2. $$

Since \(\sigma^2=4\) and \(2\kappa=4\), the conditional variance is

$$ V=\frac44\left(1-\frac14\right)=\frac34. $$

Thus \(X_{s+h}\), given \(X_s=1\), has law \(N(2,\tfrac34)\), with density \(\dfrac{1}{\sqrt{3\pi/2}}\exp\bigl(-\dfrac{(y-2)^2}{3/2}\bigr)\).

Check: the variance from the stochastic integral is \(4\int_s^{s+h}e^{-4(s+h-u)}\,du =4(1-e^{-4h})/4 =1-e^{-4h} =1-e^{-2\ln 2} =1-\tfrac14 =\tfrac34\), as required.

Worked Example: A Nonzero Long-Run Level

Take \(\kappa=1\), \(m=-1\), \(\sigma=\sqrt{2}\), \(x=2\), and elapsed time \(h=\ln 2\). Find the transition mean, variance, and density.

Here \(e^{-\kappa h}=e^{-\ln 2}=1/2\), and \(e^{-2\kappa h}=e^{-2\ln 2}=1/4\). Therefore

$$ M=-1+(2-(-1))\frac12=-1+\frac32=\frac12, \qquad V=\frac{2}{2}\left(1-\frac14\right)=\frac34. $$

The conditional density is \(\dfrac{1}{\sqrt{3\pi/2}}\exp\bigl(-\dfrac{(y-\tfrac12)^2}{3/2}\bigr)\).

Check: the solution’s deterministic part is \(e^{-h}x+m(1-e^{-h})=2\cdot\tfrac12+(-1)(1-\tfrac12)=1-\tfrac12=\tfrac12\). The variance integral is \(2\int_s^{s+h}e^{-2(s+h-u)}\,du =1-e^{-2h} =1-e^{-2\ln 2} =\tfrac34\). Both independently recover the transition parameters.

Worked Example: Evaluating the Density at a Point

Take \(\kappa=\tfrac12\), \(m=4\), \(\sigma=1\), \(x=0\), and \(h=2\ln 2\). Compute the density at \(y=1\).

We have \(\kappa h=\ln 2\), hence \(e^{-\kappa h}=1/2\); also \(2\kappa h=2\ln 2\), hence \(e^{-2\kappa h}=1/4\). The mean is \(4+(0-4)/2=2\). Because \(2\kappa=1\), the variance is \((1-1/4)/1=3/4\). Substituting \(y=1\) into the Gaussian density gives

$$ p(s,0;s+h,1) =\frac{1}{\sqrt{2\pi(3/4)}}\exp\left(-\frac{(1-2)^2}{2(3/4)}\right) =\sqrt{\frac{2}{3\pi}}\,e^{-2/3}. $$

Check: the exponent is \(-1/(3/2)=-2/3\), and the prefactor is \(1/\sqrt{3\pi/2}=\sqrt{2/(3\pi)}\). Directly computing the variance integral gives \(\int_s^{s+h}e^{-(s+h-u)}\,du=1-e^{-h}=1-e^{-2\ln2}=3/4\), matching the value used in the density.

Limiting Cases and a Common Error

At zero elapsed time, \(t=s\), the solution is exactly \(x\). Its conditional law is a point mass at \(x\), not a Lebesgue density; the displayed density formula is for \(t>s\). If \(\sigma=0\), the solution is deterministic and again has no nondegenerate Lebesgue density. The assumptions \(\kappa>0\) and \(\sigma>0\) ensure that for every positive elapsed time the variance in the theorem is positive. As \(t-s\) grows, the mean approaches \(m\), while the variance approaches \(\sigma^2/(2\kappa)\); this is the limiting Gaussian scale, not the variance at every finite time.

Common pitfall: using \(\sigma^2(t-s)\) for the variance. That is the variance of \(\sigma(B_t-B_s)\), where Brownian increments are not damped. In the Ornstein–Uhlenbeck solution, an increment from time \(u\) to \(u+du\) is weighted by \(e^{-\kappa(t-u)}\), so its contribution to the variance is weighted by the square of that factor. For example, when \(\kappa=2\), \(\sigma=2\), and \(h=(\ln2)/2\), the incorrect expression gives \(\sigma^2h=2\ln2\), whereas the correct variance is \(\tfrac34\). The correct value follows by integrating the squared weight: \(\sigma^2\int_s^t e^{-2\kappa(t-u)}du\).

It is useful to keep the roles of the two coefficients distinct. Mean reversion changes the conditional mean through the factor \(e^{-\kappa(t-s)}\) and damps the effect of earlier noise; the diffusion coefficient sets the scale of the accumulated randomness through \(\sigma^2\). The transition density records both effects in one Gaussian kernel.

Check Your Understanding

Use the transition formula and the explicit solution to justify each answer.

  1. For \(\kappa=1\), \(m=0\), \(\sigma=2\), and elapsed time \(h=\ln 2\), find the conditional mean and variance from starting value \(x=3\).
  2. For positive elapsed time, why is the transition law a Gaussian with a Lebesgue density when \(\sigma>0\)?
  3. At elapsed time zero, what is the conditional law, and why is it not represented by the stated density formula?
  4. In the explicit solution, identify the deterministic weight applied to a Brownian increment from time \(u\), and explain how its square enters the conditional variance.
  5. Suppose \(X_s\) is \(\mathcal{F}_s\)-measurable rather than fixed. State the conditional mean given \(\mathcal{F}_s\) and the conditional variance.