Lesson 14 of 15

Vasicek Interest Rate Model

Vasicek Interest Rate Model

The Vasicek model (1977) is the first equilibrium interest rate model. It describes how short rates evolve over time with mean reversion.

Stochastic Differential Equation

dr=κ(θr)dt+σdWdr = \kappa(\theta - r) \, dt + \sigma \, dW

Where:

  • rr = current short rate
  • κ\kappa = mean reversion speed
  • θ\theta = long-run mean (equilibrium rate)
  • σ\sigma = volatility
  • dWdW = Brownian motion increment (N(0,dt)\sim \mathcal{N}(0, dt))

Discrete-Time Approximation

For a small time step Δt\Delta t with a standard normal draw ΔW\Delta W:

rt+Δt=rt+κ(θrt)Δt+σΔtΔWr_{t+\Delta t} = r_t + \kappa(\theta - r_t)\Delta t + \sigma\sqrt{\Delta t} \cdot \Delta W

Analytical Zero-Coupon Bond Price

The Vasicek model has a closed-form bond price:

P(0,T)=A(T)eB(T)r0P(0,T) = A(T) \cdot e^{-B(T) \cdot r_0}

B(T)=1eκTκB(T) = \frac{1 - e^{-\kappa T}}{\kappa}

A(T)=exp[(θσ22κ2)(B(T)T)σ2B(T)24κ]A(T) = \exp\left[\left(\theta - \frac{\sigma^2}{2\kappa^2}\right)(B(T) - T) - \frac{\sigma^2 B(T)^2}{4\kappa}\right]

Use math.exp() and math.sqrt() for implementation.

Python runtime loading...
Loading...
Click "Run" to execute your code.