Cox-Ingersoll-Ross

Overview

The Cox-Ingersoll-Ross (1985) model replaces Vasicek’s constant volatility with a square-root diffusion, keeping the short rate non-negative and making volatility increase with the rate level. Bond prices remain exponential-affine, bond options have a closed form in terms of the noncentral chi-square distribution, and the exact transition law (a scaled noncentral chi-square) allows exact Monte Carlo sampling.

Dynamics

Under the risk-neutral measure,

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

The origin is unattainable when the Feller condition holds:

\[2\kappa\theta \geq \sigma^2\]

Conditional on \(r(s)\), the transition is a scaled noncentral chi-square: for \(\Delta = t - s\),

\[r(t) = c\, X, \qquad X \sim \chi^2_d(\lambda), \qquad c = \frac{\sigma^2\left(1 - e^{-\kappa\Delta}\right)}{4\kappa}, \quad d = \frac{4\kappa\theta}{\sigma^2}, \quad \lambda = \frac{r(s)\, e^{-\kappa\Delta}}{c}\]

with conditional moments

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

Bond pricing

With \(h = \sqrt{\kappa^2 + 2\sigma^2}\) and \(\tau = T - t\):

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

Bond options

A European call with expiry \(T\) and strike \(K\) on a bond maturing at \(S\) prices in terms of the noncentral chi-square CDF \(\chi^2(\cdot\,; d, \lambda)\):

\[\mathrm{ZBC}(0, T, S, K) = P(0, S)\, \chi^2\!\left(2\bar r\left[\rho + \psi + B(\tau_S)\right]; \frac{4\kappa\theta}{\sigma^2}, \frac{2\rho^2 r_0 e^{hT}}{\rho + \psi + B(\tau_S)}\right) - K P(0, T)\, \chi^2\!\left(2\bar r\left[\rho + \psi\right]; \frac{4\kappa\theta}{\sigma^2}, \frac{2\rho^2 r_0 e^{hT}}{\rho + \psi}\right)\]

with \(\tau_S = S - T\) and

\[\rho = \frac{2h}{\sigma^2\left(e^{hT} - 1\right)}, \qquad \psi = \frac{\kappa + h}{\sigma^2}, \qquad \bar r = \frac{\ln\left(A(\tau_S)/K\right)}{B(\tau_S)}\]

where \(\bar r\) is the critical rate at which the bond forward price equals the strike. The put follows from put-call parity.

Simulation

simulate samples the exact noncentral chi-square transition; paths are non-negative by construction and exact at the grid points.

Parameters

Parameter

Meaning

Constraint

\(\kappa\)

speed of mean reversion

\(\kappa > 0\)

\(\theta\)

long-run mean level

\(\theta > 0\)

\(\sigma\)

square-root diffusion coefficient

\(\sigma > 0\)

\(r_0\)

initial short rate (optional default state)

\(r_0 > 0\)

A UserWarning is emitted at construction when the Feller condition fails.

Usage

from interest_rate_models import get_model

model = get_model("cir", kappa=0.9, theta=0.05, sigma=0.15, r0=0.04)
model.bond_price(0.0, 5.0)
model.bond_option(1.0, 3.0, strike=0.9, kind="call")
times, paths = model.simulate(T=5.0, n_steps=500, n_paths=10_000, seed=42)
params = model.calibrate(curve, r0=0.03)

References

  • Cox, J., Ingersoll, J., Ross, S. (1985). “A theory of the term structure of interest rates”, Econometrica, 53(2), 385-407.

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