Vasicek

Overview

The Vasicek (1977) model is the original mean-reverting short-rate model. The short rate follows an Ornstein-Uhlenbeck process, making the model Gaussian: bond prices, bond options, and caps/floors are closed-form, and Monte Carlo transitions can be sampled exactly. As an equilibrium model it implies the initial curve from its parameters; fitting a market curve is a least-squares approximation. Rates can go negative.

Dynamics

Under the risk-neutral measure,

\[dr(t) = \kappa\,(\theta - r(t))\,dt + \sigma\, dW(t)\]

The transition law is Gaussian: conditional on \(r(s)\), for \(t > s\),

\[\mathbb{E}[r(t) \mid r(s)] = \theta + (r(s) - \theta)\, e^{-\kappa (t-s)}, \qquad \operatorname{Var}[r(t) \mid r(s)] = \frac{\sigma^2}{2\kappa}\left(1 - e^{-2\kappa (t-s)}\right)\]

Bond pricing

Zero-coupon bond prices are exponential-affine, with \(\tau = T - t\):

\[P(t, T) = A(\tau)\, e^{-B(\tau)\, r(t)}\]
\[B(\tau) = \frac{1 - e^{-\kappa \tau}}{\kappa}, \qquad \ln A(\tau) = \left(\theta - \frac{\sigma^2}{2\kappa^2}\right)\left(B(\tau) - \tau\right) - \frac{\sigma^2 B(\tau)^2}{4\kappa}\]

The long-maturity zero rate tends to \(\theta - \sigma^2 / (2\kappa^2)\).

Bond options

A European call with expiry \(T\) and strike \(K\) on a zero-coupon bond maturing at \(S > T\) prices as

\[\mathrm{ZBC}(0, T, S, K) = P(0, S)\,\Phi(h) - K P(0, T)\,\Phi(h - \sigma_p)\]
\[\sigma_p = \frac{\sigma}{\kappa}\left(1 - e^{-\kappa (S-T)}\right)\sqrt{\frac{1 - e^{-2\kappa T}}{2\kappa}}, \qquad h = \frac{1}{\sigma_p}\ln\frac{P(0, S)}{P(0, T)\, K} + \frac{\sigma_p}{2}\]

The put follows from put-call parity, \(\mathrm{ZBP} = \mathrm{ZBC} - P(0,S) + K P(0,T)\). Caplets and floorlets are priced by the model-independent replication as puts and calls on zero-coupon bonds.

Simulation

simulate samples the exact Gaussian transition on a uniform grid — there is no discretization error at the grid points.

Parameters

Parameter

Meaning

Constraint

\(\kappa\)

speed of mean reversion

\(\kappa > 0\)

\(\theta\)

long-run mean level

—

\(\sigma\)

absolute (normal) volatility

\(\sigma > 0\)

\(r_0\)

initial short rate (optional default state)

—

Usage

from interest_rate_models import get_model

model = get_model("vasicek", kappa=0.86, theta=0.05, sigma=0.02, r0=0.03)
model.bond_price(0.0, 5.0)
model.bond_option(1.0, 3.0, strike=0.9, kind="call")
model.cap_price(strike=0.035, maturity=3.0, tenor=0.5)
times, paths = model.simulate(T=5.0, n_steps=500, n_paths=10_000, seed=42)
params = model.calibrate(curve, r0=0.03)   # least-squares fit to a DiscountCurve

References

  • Vasicek, O. (1977). “An equilibrium characterization of the term structure”, Journal of Financial Economics, 5(2), 177-188.

  • Brigo, D., Mercurio, F. (2006). Interest Rate Models — Theory and Practice, 2nd ed., Springer, ch. 3.