Above: what it imports. Below: what imports it.
mf-cir-bond-loading-riccati · interest_rates.json · full statement
CIR Affine Loading B(T) Solves the Riccati Equation
For the Cox–Ingersoll–Ross short rate dr = κ(θ − r)dt + σ√r dW, in the affine form P(0,T) = exp(A(T) − B(T)·r₀) of its bond price, the closed-form rate loading B(T) = 2(e^{γT} − 1)/((γ + κ)(e^{γT} − 1) + 2γ), γ = √(κ² + 2σ²), solves the Riccati equation B'(T) = 1 − κB(T) − ½σ²B(T)² with B(0) = 0, at every real T, whenever κ² + 2σ² > 0. Only this equation is verified: the bond price itself is not derived.
mf-cir-bond-level-loading · interest_rates.json · full statement
CIR Affine Loading A(T) Solves A' = −κθB
For the Cox–Ingersoll–Ross short rate, in the affine form P(0,T) = exp(A(T) − B(T)·r₀) of its bond price, the closed-form level loading A(T) = (2κθ/σ²)·log(2γe^{(κ+γ)T/2} / ((γ + κ)(e^{γT} − 1) + 2γ)), γ = √(κ² + 2σ²), satisfies A(0) = 0 and A'(T) = −κθB(T) at every real T, whenever σ ≠ 0. Only this equation is verified: the bond price itself is not derived.