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

GSR (Gaussian short rate) with two-piece piecewise-constant volatility

MathFin.Models.Rates.GSRPiecewiseVolMSC 91G30MSC 60H05JEL E43 source

The GSR model (QuantLib's GsrProcess/one-factor Gsr model) generalizes Vasicek/ Hull-White by letting the diffusion coefficient be piecewise constant in calendar time rather than a single scalar — the feature actually exercised in cap/swaption calibration, where a term structure of volatility is bootstrapped bucket by bucket. Mean reversion is kept constant here, matching common GSR calibration practice (reversion is held fixed while volatility is bucketed); θ is likewise constant (the time-varying-drift generalization is Models/Rates/HullWhiteCalibration.lean's separate contribution and composes with this one in principle, but is not combined here).

Scope note: this file proves the two-piece case — volatility σ₁ on (0, T*], σ₂ on (T*, T], for a fixed breakpoint T* ∈ [0, T] — not the general finitely-many-pieces GSR. The obstruction to full generality is not conceptual (the argument below is already piece-count-agnostic in spirit: split, apply FTC on each piece, sum variances) but mechanical: each additional piece needs its own disjoint-union / interval-additivity bookkeeping, which is better done once as an induction over a list of breakpoints than hand-duplicated. Two pieces is the smallest case that is genuinely new (distinct from the constant-σ Vasicek bond price vasicekBondPrice_eq) and already demonstrates the mechanism in full.

Why this is still "the same Gaussian-moment substrate"

Even with σ piecewise constant, the integrated short rate's diffusion part ∫₀ᵀ σ(u)·g(u) dB_u (g the Vasicek integrated kernel of VasicekBondPrice.lean) is still the Wiener integral of a single deterministic L² integrand u ↦ σ(u)·g(u) — piecewise-constant σ times a bounded kernel is still bounded, hence L² on the finite-measure window. No new stochastic-integral machinery is needed: only a new (elementary) variance integral, computed by splitting the integration domain at T* and evaluating the antiderivative vasicekIntegratedKernelSqAntideriv of g² at the three points 0, T*, T (integral_vasicekIntegratedKernel_sq_eq_sub).

As in VasicekBondPrice, the integrated short rate is defined by its Wiener representation M(T) + ∫₀ᵀ σ(u)·g(u) dB_u (gsrIntegratedRate): that it is the integral of the solution of the GSR short-rate SDE (the SDE solution plus the time-order swap) is the modelling bridge, cited, not derived here. Everything downstream of the representation is derived.

Main definitions

  • gsrSigma: the two-piece piecewise-constant volatility, σ₁ on (-∞, T*] and σ₂ on (T*, ∞).
  • gsrKernel, gsrKernelLp: the Vasicek integrated kernel weighted by the piecewise volatility, and the same kernel as an element of L²((0, T]).
  • gsrBondV: the closed-form variance σ₁²·(F(T*) - F(0)) + σ₂²·(F(T) - F(T*)).
  • gsrBondVIoc: the variance over a window (a, T].
  • gsrIntegratedRate: the integrated short rate, defined by its Wiener representation.

Main results

  • gsrKernel_integral_sq_eq — the core calculus fact: the kernel's squared L² norm over (0,T] equals gsrBondV (κ > 0, 0 ≤ T* ≤ T).
  • gsrIntegratedRate_hasLaw_gaussian — the integrated short rate, in its Wiener representation, is Gaussian with this variance.
  • gsrBondPrice_eq — the exponential-Gaussian moment 𝔼_μ[exp(−∫₀ᵀ r_s ds)], the zero-coupon bond price when μ is read as the pricing measure: the Wiener bond-price lemma integral_exp_neg_add_mul_wienerIntegralLp at the GSR kernel.
  • gsrBondV_self, gsrIntegratedRate_self_ae — GSR with one volatility is Vasicek: at σ₁ = σ₂ = σ the variance is σ²·vasicekBondV and the integrated GSR rate is almost surely the integrated Vasicek rate vasicekIntegratedRate.

References

  • D. Brigo and F. Mercurio, Interest Rate Models --- Theory and Practice [BrigoMercurio2006], §3.3
  • The QuantLib contributors, QuantLib [QuantLib], Gsr model

Tags

Gaussian short rate, GSR model, piecewise-constant volatility, Hull–White, Vasicek model, bond price, Wiener integral, MSC 91G30, MSC 60H05, JEL E43

Import neighbourhood

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

Corpus entries

mf-gsr-two-piece-bond-price · interest_rates.json · full statement
GSR Zero-Coupon Bond Price with Two-Piece Volatility

The Gaussian short-rate (GSR) model with constant mean reversion κ > 0, constant level θ and a two-piece volatility: σ₁ on (0, T*] and σ₂ on (T*, T], one fixed breakpoint 0 ≤ T* ≤ T. The bond price E[exp(−∫₀ᵀ r_s ds)] equals exp(−M(T) + gsrBondV/2). M(T) is the Vasicek mean of the integrated rate. gsrBondV = σ₁²(F(T*) − F(0)) + σ₂²(F(T) − F(T*)), with F the antiderivative of the squared integrated kernel g(u) = (1 − e^{−κ(T−u)})/κ. Only the two-piece case is proved, not the general piecewise-constant GSR. The proof is the Wiener bond-price lemma applied to the kernel σ(u)·g(u). The short rate and its time integral are carried in their Wiener representations (integrals of deterministic kernels against the pre-Brownian driver B under μ); that they solve the short-rate SDE, and the time-order swap behind the integrated rate, are cited, not proved. The expectation is under the measure carrying B, read as the pricing measure.

Declarations 15

defMathFin.gsrSigmasource
ℝ → ℝ → ℝ → ℝ → ℝ

Two-piece piecewise-constant volatility: σ₁ on (-∞, T*], σ₂ on (T*, ∞).

theoremMathFin.gsrSigma_measurablesource
∀ (σ1 σ2 Tstar : ℝ), Measurable (gsrSigma σ1 σ2 Tstar)

gsrSigma is measurable: it is an ite on the measurable set {u | u ≤ Tstar} with constant branches.

defMathFin.gsrKernelsource
ℝ → ℝ → ℝ → ℝ → ℝ → ℝ → ℝ

The GSR kernel: the Vasicek integrated kernel g weighted by the piecewise volatility — the deterministic integrand of the diffusion part ∫₀ᵀ σ(u)g(u) dB_u.

theoremMathFin.gsrKernel_memLpsource
∀ {κ : ℝ}, 0 < κ → ∀ (σ1 σ2 Tstar : ℝ) (T : NNReal), MemLp (gsrKernel σ1 σ2 Tstar κ ↑T) 2 (volume.restrict (Set.Ioc 0 ↑T))

The GSR kernel is in L²((0, T]): |σ(u)| ≤ max |σ₁| |σ₂| and 0 ≤ g(u) ≤ 1/κ (for κ > 0), so the product is bounded by max |σ₁| |σ₂| / κ.

defMathFin.gsrKernelLpsource
{κ : ℝ} → 0 < κ → ℝ → ℝ → ℝ → (T : NNReal) → ↥(Lp ℝ 2 (volume.restrict (Set.Ioc 0 ↑T)))

The GSR kernel as an element of L²((0, T]).

defMathFin.gsrBondVsource
ℝ → ℝ → ℝ → ℝ → ℝ → ℝ

The GSR closed-form variance: σ₁²·(F(T*) - F(0)) + σ₂²·(F(T) - F(T*)), F = vasicekIntegratedKernelSqAntideriv κ T (the antiderivative of g²).

defMathFin.gsrBondVIocsource
ℝ → ℝ → ℝ → ℝ → ℝ → ℝ → ℝ

The GSR variance over a window (a, T]: σ₁²·(F(m) − F(a)) + σ₂²·(F(T) − F(m)) with m = max a T* the part of the window before the breakpoint ending at m (empty when a ≥ T*); gsrBondV is the window (0, T].

theoremMathFin.gsrBondVIoc_zerosource
∀ {Tstar : ℝ}, 0 ≤ Tstar → ∀ (κ σ1 σ2 T : ℝ), gsrBondVIoc κ σ1 σ2 Tstar 0 T = gsrBondV κ σ1 σ2 Tstar T
theoremMathFin.gsrKernel_integral_sq_Ioc_eqsource
∀ {κ : ℝ}, 0 < κ → ∀ (σ1 σ2 Tstar a T : ℝ), a ≤ T → Tstar ≤ T → ∫ (u : ℝ) in Set.Ioc a T, gsrKernel σ1 σ2 Tstar κ T u ^ 2 = gsrBondVIoc κ σ1 σ2 Tstar a T

The squared L² norm of the GSR kernel over a window (a, T], by splitting the window at max a T* (gsrKernel is exactly σ₁ · g on the part before T* and σ₂ · g after it, a case split on gsrSigma's own definition) and applying integral_vasicekIntegratedKernel_sq_eq_sub on each piece.

theoremMathFin.gsrKernel_integral_sq_eqsource
∀ {κ : ℝ}, 0 < κ → ∀ (σ1 σ2 Tstar T : ℝ), 0 ≤ Tstar → Tstar ≤ T → ∫ (u : ℝ) in Set.Ioc 0 T, gsrKernel σ1 σ2 Tstar κ T u ^ 2 = gsrBondV κ σ1 σ2 Tstar T

The core calculus fact: the (0,T]-window squared L² norm of the GSR kernel is the closed-form gsrBondV (gsrKernel_integral_sq_Ioc_eq on the window (0, T]).

defMathFin.gsrIntegratedRatesource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → {μ : Measure Ω} → {B : NNReal → Ω → ℝ} → IsPreBrownianReal B μ → ℝ → ℝ → ℝ → ℝ → {κ : ℝ} → 0 < κ → NNReal → NNReal → Ω → ℝ

The GSR integrated short rate, defined by its Wiener representation: deterministic mean (the Vasicek mean, unchanged — only the volatility axis is piecewise here) plus the Wiener integral of the piecewise-weighted kernel. That this is ∫₀ᵀ r_s ds for the solution of the GSR short-rate SDE is the modelling bridge (the SDE solution and the time-order swap), cited, not derived, as for vasicekIntegratedRate.

theoremMathFin.gsrIntegratedRate_hasLaw_gaussiansource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} (hB : IsPreBrownianReal B μ) (r₀ θ σ1 σ2 : ℝ) {κ : ℝ} (hκ : 0 < κ) (Tstar T : NNReal), ↑Tstar ≤ ↑T → HasLaw (gsrIntegratedRate hB r₀ θ σ1 σ2 hκ Tstar T) (gaussianReal (vasicekIntegratedMean r₀ θ κ ↑T) (gsrBondV κ σ1 σ2 ↑Tstar ↑T).toNNReal) μ

The GSR integrated short rate is Gaussian: N(M(T), gsrBondV κ σ₁ σ₂ T* T), M the (unchanged) Vasicek mean.

theoremMathFin.gsrBondPrice_eqsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} (hB : IsPreBrownianReal B μ) (r₀ θ σ1 σ2 : ℝ) {κ : ℝ} (hκ : 0 < κ) (Tstar T : NNReal), ↑Tstar ≤ ↑T → ∫ (ω : Ω), Real.exp (-gsrIntegratedRate hB r₀ θ σ1 σ2 hκ Tstar T ω) ∂μ = Real.exp (-vasicekIntegratedMean r₀ θ κ ↑T + gsrBondV κ σ1 σ2 ↑Tstar ↑T / 2)

The GSR zero-coupon bond price: the exponential-Gaussian moment 𝔼_μ[exp(−∫₀ᵀ r_s ds)] = exp(−M(T) + gsrBondV κ σ₁ σ₂ T* T / 2), with ∫₀ᵀ r_s ds the Wiener representation gsrIntegratedRate; it is P(0,T) when μ is read as the pricing measure. The Wiener bond-price lemma integral_exp_neg_add_mul_wienerIntegralLp at m = M(T), c = 1 and the GSR kernel, whose squared L²-norm is gsrBondV (gsrKernel_integral_sq_eq).

theoremMathFin.gsrBondV_selfsource
∀ (κ σ Tstar T : ℝ), gsrBondV κ σ σ Tstar T = σ ^ 2 * vasicekBondV κ T

The one-volatility GSR variance is Vasicek's: gsrBondV κ σ σ T* T = σ²·vasicekBondV κ T — with σ₁ = σ₂ the two antiderivative differences telescope to F(T) − F(0) = V(T).

theoremMathFin.gsrIntegratedRate_self_aesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {B : NNReal → Ω → ℝ} (hB : IsPreBrownianReal B μ) (r₀ θ σ : ℝ) {κ : ℝ} (hκ : 0 < κ) (Tstar T : NNReal), gsrIntegratedRate hB r₀ θ σ σ hκ Tstar T =ᵐ[μ] vasicekIntegratedRate hB r₀ θ σ hκ T

GSR with one volatility is Vasicek: at σ₁ = σ₂ = σ the GSR kernel is σ times the Vasicek integrated kernel, so by linearity of the Wiener integral the integrated GSR rate is almost surely the integrated Vasicek rate vasicekIntegratedRate (whatever the breakpoint).