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,
The transition law is Gaussian: conditional on \(r(s)\), for \(t > s\),
Bond pricing¶
Zero-coupon bond prices are exponential-affine, with \(\tau = T - t\):
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
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.