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.