Skip to content
Stochastic Calculus / Diffusions, SDEs, and the Feynman-Kac Formula

Mean-Reverting Diffusions: OU, Vasicek, CIR, and the Feller Condition

Interest rate models in fixed income all belong to the same family: mean-reverting diffusions. The short rate is modelled as a process that is pulled back toward a long-run mean θ\theta at rate κ\kappa, with randomness added by a Brownian shock. The two workhorses are:
  • Vasicek/OU: drt=κ(θ−rt) dt+σ dWtdr_t = \kappa(\theta - r_t) \, dt + \sigma \, dW_t — rates are Gaussian, can go negative.
  • CIR: drt=κ(θ−rt) dt+σrt dWtdr_t = \kappa(\theta - r_t) \, dt + \sigma\sqrt{r_t} \, dW_t — rates stay non-negative when 2κθ≥σ22\kappa\theta \ge \sigma^2 (Feller condition).
The explicit solution for OU/Vasicek via the integrating factor eκte^{\kappa t} is the cleanest example of an exactly solvable SDE. The CIR process is the square of a Bessel process (from Local Martingales and the Bessel Process); its transition density is non-central chi-squared, giving an explicit bond-pricing formula via the Feynman-Kac PDE.
In the Black-Scholes world, the short rate rr is constant. Switching to Vasicek or CIR introduces rate risk into bond prices, allowing the term structure (yield curve) to be modelled dynamically. Zero-coupon bond prices P(t,T)=EQ[e−∫tTrs ds∣Ft]P(t,T) = \mathbb{E}^{\mathbb{Q}}[e^{-\int_t^T r_s \, ds}|\mathcal{F}_t] become functions of rtr_t alone (Markov property), and the Feynman-Kac PDE gives closed-form affine expressions P(t,T)=A(t,T)e−B(t,T)rtP(t,T) = A(t,T)e^{-B(t,T)r_t}.
Learning objectives. By the end of this note you should be able to:
  • Derive the explicit solution for the OU/Vasicek SDE via the integrating factor.
  • State the mean, variance, and stationary distribution of the OU process.
  • State the Feller condition for CIR and explain its connection to the Bessel process.
  • Write the Feynman-Kac PDE for Vasicek bond prices and state the affine solution form.
  • Interpret the CIR non-central chi-squared transition density.

In this lesson

  1. The OU/Vasicek Process
  2. The CIR Process
  3. Bond Pricing via Feynman-Kac
  4. Simulation

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or explore the curriculum.