MathFin
Map / Valuation · Interest rates / MathFin.Models.Rates.AffineTermStructurePDE

Affine bond prices solve the term-structure PDE

MathFin.Models.Rates.AffineTermStructurePDEMSC 91G30MSC 35K10JEL E43 source

In a one-factor affine short-rate model dr = κ(θ − r) dt + √(α + β r) dW, bond prices take the form P = exp(A(τ) − B(τ)·r) in the time to maturity τ, with loadings solving the Riccati system

B' = 1 − κB − ½βB², A' = −κθB + ½αB², A(0) = B(0) = 0

(Duffie–Kan; that general statement is not proved here). affineBondPrice_solves_pde proves the step from the Riccati system to the pricing equation: whenever A and B satisfy the two equations at τ, the function u(τ, r) = exp(A(τ) − B(τ)·r) satisfies, at (τ, r), the term-structure PDE

−∂_τ u + κ(θ − r)·∂_r u + ½(α + β r)·∂²_r u − r·u = 0.

Two models are instances:

  • Cox–Ingersoll–Ross, (α, β) = (0, σ²): the closed-form loadings cirBondA, cirBondB of Models/Rates/CIRRiccati.lean solve their Riccati equations there, so exp(A − B·r) solves the CIR pricing PDE (cirBondPrice_solves_pde). That this closed form equals the expectation 𝔼[exp(−∫₀ᵀ r_s ds)] (Feynman–Kac for the CIR process) is not proved.
  • Vasicek, (α, β) = (σ², 0): the rate loading vasicekBondB solves B' = 1 − κB (hasDerivAt_vasicekBondB), the variance vasicekBondV has derivative B² (hasDerivAt_vasicekBondV), so log vasicekBondA solves A' = −κθB + ½σ²B² (hasDerivAt_log_vasicekBondA), and vasicekBondA·exp(−B·r) solves the Vasicek pricing PDE (vasicekBondPrice_solves_pde). Here the closed form is the expectation: vasicekBondPrice_affine (Models/Rates/VasicekBondPrice.lean) derives 𝔼[exp(−∫₀ᵀ r_s ds)] = vasicekBondA·exp(−B·r₀) from the Gaussian law of the integrated rate.

At zero volatility the two models coincide, and so do their rate loadings: cirBondB κ 0 = vasicekBondB κ for κ ≠ 0 (cirBondB_zero_vol).

Main results

  • affineBondPrice_solves_pde — the Riccati system implies the term-structure PDE.
  • cirBondPrice_solves_pde — the CIR closed form solves the CIR PDE, for σ ≠ 0.
  • hasDerivAt_vasicekBondB, hasDerivAt_vasicekBondV, hasDerivAt_log_vasicekBondA — the Vasicek loadings solve their Riccati equations, for κ ≠ 0.
  • vasicekBondPrice_solves_pde — the Vasicek affine price solves the Vasicek PDE, for κ ≠ 0.
  • cirBondB_zero_vol — the CIR rate loading at σ = 0 is the Vasicek rate loading.

References

  • D. Brigo and F. Mercurio, Interest Rate Models --- Theory and Practice [BrigoMercurio2006], §3.2.3
  • J. C. Cox, J. E. Ingersoll and S. A. Ross, A theory of the term structure of interest rates [CoxIngersollRoss1985]
  • D. Duffie and R. Kan, A yield-factor model of interest rates [DuffieKan1996]
  • O. Vasicek, An equilibrium characterization of the term structure [Vasicek1977]

Tags

term structure PDE, Riccati equation, affine short-rate model, Cox–Ingersoll–Ross, Vasicek model, bond pricing equation, MSC 91G30, MSC 35K10, JEL E43

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-affine-bond-pde-from-riccati · interest_rates.json · full statement
Riccati Loadings Make exp(A − B·r) Solve the Term-Structure PDE

For the one-factor affine short rate dr = κ(θ − r)dt + √(α + βr) dW: if loadings A and B satisfy the Riccati equations A'(τ) = −κθB(τ) + ½αB(τ)² and B'(τ) = 1 − κB(τ) − ½βB(τ)² at τ, then u(τ, r) = exp(A(τ) − B(τ)·r) satisfies the term-structure PDE −∂_τu + κ(θ − r)∂_ru + ½(α + βr)∂²_ru − r·u = 0 at (τ, r), with τ the time to maturity. Only this direction is proved: the entry does not show that u is the bond price E[exp(−∫r)], and no solution of the Riccati system is constructed here.

mf-cir-closed-form-bond-pde · interest_rates.json · full statement
CIR Closed-Form Bond Price Solves the CIR Term-Structure PDE

For the Cox–Ingersoll–Ross short rate dr = κ(θ − r)dt + σ√r dW with σ ≠ 0, the closed-form affine price u(τ, r) = exp(A(τ) − B(τ)·r), with γ = √(κ² + 2σ²), B(τ) = 2(e^{γτ} − 1)/((γ + κ)(e^{γτ} − 1) + 2γ) and A(τ) = (2κθ/σ²)·log(2γe^{(κ+γ)τ/2}/((γ + κ)(e^{γτ} − 1) + 2γ)), satisfies the CIR pricing PDE −∂_τu + κ(θ − r)∂_ru + ½σ²r∂²_ru − r·u = 0 at every (τ, r). That this closed form equals the bond price E[exp(−∫₀ᵀ r_s ds)] of the CIR process (Feynman–Kac) is not proved.

mf-vasicek-bond-price-pde · interest_rates.json · full statement
Vasicek Bond Price Solves the Vasicek Term-Structure PDE

For the Vasicek short rate with κ > 0, the bond price E[exp(−∫₀ᵀ r_s ds)] (short rate started at r₀, integrated rate in its Wiener representation, expectation under the measure carrying the Brownian motion) equals the affine form A(T)·exp(−B(T)·r₀), and that affine form satisfies the Vasicek pricing PDE −∂_τu + κ(θ − r)∂_ru + ½σ²∂²_ru − r·u = 0 at (τ, r) = (T, r₀). The PDE is checked on the closed form; it is not derived from the process by Itô's formula.

Declarations 8

theoremMathFin.affineBondPrice_solves_pdesource
∀ {κ θ α β : ℝ} {A B : ℝ → ℝ} {τ : ℝ}, HasDerivAt A (-(κ * θ) * B τ + α / 2 * B τ ^ 2) τ → HasDerivAt B (1 - κ * B τ - β / 2 * B τ ^ 2) τ → ∀ (r : ℝ), -deriv (fun t => Real.exp (A t - B t * r)) τ + κ * (θ - r) * deriv (fun x => Real.exp (A τ - B τ * x)) r + (α + β * r) / 2 * deriv (deriv fun x => Real.exp (A τ - B τ * x)) r - r * Real.exp (A τ - B τ * r) = 0

Affine bond prices solve the term-structure PDE (Duffie–Kan, one factor). If the loadings satisfy the Riccati equations A' = −κθB + ½αB² and B' = 1 − κB − ½βB² at τ, then u(τ, r) = exp(A(τ) − B(τ)·r) satisfies −∂_τ u + κ(θ − r)·∂_r u + ½(α + β r)·∂²_r u − r·u = 0 at (τ, r): the drift κ(θ − r) and the variance α + βr of the short rate dr = κ(θ − r)dt + √(α + βr) dW.

theoremMathFin.cirBondPrice_solves_pdesource
∀ (κ θ : ℝ) {σ : ℝ}, σ ≠ 0 → ∀ (τ r : ℝ), -deriv (fun t => Real.exp (cirBondA κ θ σ t - cirBondB κ σ t * r)) τ + κ * (θ - r) * deriv (fun x => Real.exp (cirBondA κ θ σ τ - cirBondB κ σ τ * x)) r + σ ^ 2 * r / 2 * deriv (deriv fun x => Real.exp (cirBondA κ θ σ τ - cirBondB κ σ τ * x)) r - r * Real.exp (cirBondA κ θ σ τ - cirBondB κ σ τ * r) = 0

The CIR closed form solves the CIR pricing PDE. For σ ≠ 0, the closed-form loadings cirBondA, cirBondB make u(τ, r) = exp(A(τ) − B(τ)·r) a solution of −∂_τ u + κ(θ − r)·∂_r u + ½σ² r·∂²_r u − r·u = 0 (the affine PDE with (α, β) = (0, σ²)). That u is the bond price 𝔼[exp(−∫₀ᵀ r_s ds)] of the CIR process is not proved.

theoremMathFin.hasDerivAt_vasicekBondBsource
∀ {κ : ℝ}, κ ≠ 0 → ∀ (T : ℝ), HasDerivAt (vasicekBondB κ) (1 - κ * vasicekBondB κ T) T

The Vasicek rate loading solves B' = 1 − κB (the CIR Riccati equation without its quadratic term), for κ ≠ 0: B(T) = (1 − e^{−κT})/κ has derivative e^{−κT}.

theoremMathFin.hasDerivAt_vasicekBondVsource
∀ {κ : ℝ}, κ ≠ 0 → ∀ (T : ℝ), HasDerivAt (vasicekBondV κ) (vasicekBondB κ T ^ 2) T

The Vasicek variance has derivative B²: V' = vasicekBondB², for κ ≠ 0, where V(T) = T/κ² − 2(1 − e^{−κT})/κ³ + (1 − e^{−2κT})/(2κ³) is vasicekBondV.

theoremMathFin.log_vasicekBondAsource
∀ (θ σ κ T : ℝ), Real.log (vasicekBondA θ σ κ T) = -(θ * (T - vasicekBondB κ T)) + σ ^ 2 * vasicekBondV κ T / 2

The Vasicek level loading in log form: log A(T) = −θ(T − B(T)) + σ²V(T)/2, where vasicekBondA is the exponential of that expression.

theoremMathFin.hasDerivAt_log_vasicekBondAsource
∀ (θ σ : ℝ) {κ : ℝ}, κ ≠ 0 → ∀ (T : ℝ), HasDerivAt (fun t => Real.log (vasicekBondA θ σ κ t)) (-(κ * θ) * vasicekBondB κ T + σ ^ 2 / 2 * vasicekBondB κ T ^ 2) T

The Vasicek level loading solves A' = −κθB + ½σ²B² (log form), for κ ≠ 0: the CIR level equation with the quadratic term moved from the rate loading to the level loading (constant variance σ² instead of σ² r).

theoremMathFin.vasicekBondPrice_solves_pdesource
∀ (θ σ : ℝ) {κ : ℝ}, κ ≠ 0 → ∀ (τ r : ℝ), -deriv (fun t => vasicekBondPrice θ σ κ t r) τ + κ * (θ - r) * deriv (vasicekBondPrice θ σ κ τ) r + σ ^ 2 / 2 * deriv (deriv (vasicekBondPrice θ σ κ τ)) r - r * vasicekBondPrice θ σ κ τ r = 0

The Vasicek affine price solves the Vasicek pricing PDE. For κ ≠ 0, u(τ, r) = vasicekBondA(τ)·exp(−vasicekBondB(τ)·r) satisfies −∂_τ u + κ(θ − r)·∂_r u + ½σ²·∂²_r u − r·u = 0 (the affine PDE with (α, β) = (σ², 0)). By vasicekBondPrice_affine, for κ > 0 and τ = T ≥ 0 this u is the bond price 𝔼[exp(−∫₀ᵀ r_s ds)] of the Vasicek short rate started at r.

theoremMathFin.cirBondB_zero_volsource
∀ {κ : ℝ}, κ ≠ 0 → ∀ (T : ℝ), cirBondB κ 0 T = vasicekBondB κ T

At zero volatility the CIR rate loading is the Vasicek rate loading: cirBondB κ 0 T = vasicekBondB κ T = (1 − e^{−κT})/κ for κ ≠ 0. Both models reduce to the deterministic short rate r' = κ(θ − r), and γ = √(κ²) = |κ|.