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

Nelson-Siegel-Svensson yield-curve parametrization

MathFin.Models.Rates.NelsonSiegelSvenssonMSC 91G30JEL E43 source

The Nelson-Siegel (1987) and its Svensson (1994) four-term extension are closed-form exponential-basis parametrizations of the zero-coupon yield curve, fit by least squares to observed yields rather than recovered by bootstrapping (Models/Rates/YieldCurve.lean, Models/Rates/Bootstrapping.lean) from coupon-bond prices. The Svensson curve is

y(τ) = β₀ + β₁·s(τ/l₁) + β₂·(s(τ/l₁) - e^{-τ/l₁}) + β₃·(s(τ/l₂) - e^{-τ/l₂}),

where s(x) = (1 - e^{-x})/x is the (normalized) slope factor shared by the level/slope/curvature decomposition, and l₁, l₂ > 0 are decay parameters governing where the two curvature humps peak. Setting β₃ = 0 recovers the plain three-factor Nelson-Siegel curve.

This is a genuinely different object from bootstrapping: it is a closed form in four (Nelson-Siegel) or six (Svensson) parameters, fit across the whole curve at once, rather than a maturity-by-maturity recursive discount-factor recovery. (Only continuity on (0, ∞) is proved here; at τ = 0 the Lean definition takes Lean's x / 0 = 0 junk value, and the short end is stated as a limit.)

Main definitions

  • nssSlope: the Nelson-Siegel slope factor s(x) = (1 - e^{-x}) / x.
  • nssYield: the Nelson-Siegel-Svensson closed-form yield curve y(τ) = β₀ + β₁·s(τ/l₁) + β₂·(s(τ/l₁) - e^{-τ/l₁}) + β₃·(s(τ/l₂) - e^{-τ/l₂}).

Main results

  • continuousOn_nssYield — y is continuous on (0, ∞) (the economically meaningful domain: no coupon bond or discount factor is quoted at τ = 0).
  • tendsto_nssSlope_nhdsNE_zero — the core calculus fact underlying the curve's short end: s(x) → 1 as x → 0 (through nonzero values), obtained from HasDerivAt of x ↦ 1 - e^{-x} at 0 (the slope factor is literally a difference quotient of that function through the origin).
  • tendsto_nssYield_decay_atTop — vanishing-decay limit: at a fixed maturity τ ≠ 0, y → β₀ + β₁ as both decay constants l₁, l₂ → ∞ (the Nelson–Siegel and Svensson curvature terms vanish, the curve flattens to level plus slope).
  • tendsto_nssSlope_atTop — the slope factor's long end: s(x) → 0 as x → ∞.
  • tendsto_nssYield_nhdsNE_zero — short-end limit: y(τ) → β₀ + β₁ as τ → 0 (through nonzero values) (the two curvature terms vanish at the short end, leaving level plus slope).
  • tendsto_nssYield_atTop — long-end limit: y(τ) → β₀ as τ → ∞ (all three non-level terms decay away, leaving the level factor as the asymptotic long rate).

The slope factor is also the Vasicek rate loading per unit maturity, s(κτ) = vasicekBondB κ τ / τ; Models/Rates/VasicekYieldNelsonSiegel.lean writes the Vasicek zero yield in these factors.

References

  • C. R. Nelson, A. F. Siegel, Parsimonious Modeling of Yield Curves [NelsonSiegel1987].
  • L. E. O. Svensson, Estimating and Interpreting Forward Interest Rates: Sweden 1992–1994 [Svensson1994].

Tags

Nelson–Siegel, Svensson, yield curve fitting, level slope curvature, parametric yield curve, zero-coupon yield, MSC 91G30, JEL E43

Import neighbourhood

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

Declarations 10

defMathFin.nssSlopesource
ℝ → ℝ

The Nelson-Siegel slope factor s(x) = (1 - e^{-x}) / x, the normalized exponential building block shared by the slope and curvature terms of the Nelson-Siegel-Svensson curve.

defMathFin.nssYieldsource
ℝ → ℝ → ℝ → ℝ → ℝ → ℝ → ℝ → ℝ

The Nelson-Siegel-Svensson closed-form yield curve: y(τ) = β₀ + β₁·s(τ/l₁) + β₂·(s(τ/l₁) - e^{-τ/l₁}) + β₃·(s(τ/l₂) - e^{-τ/l₂}). Setting β₃ = 0 gives the plain three-factor Nelson-Siegel (1987) curve; the fourth term is Svensson's (1994) extension adding a second curvature hump at a distinct decay rate l₂.

theoremMathFin.continuousAt_nssSlopesource
∀ {x : ℝ}, x ≠ 0 → ContinuousAt nssSlope x

nssSlope is continuous away from 0 (an ordinary quotient of continuous functions with nonvanishing denominator).

theoremMathFin.continuousOn_nssYieldsource
∀ (β₀ β₁ β₂ β₃ l₁ l₂ : ℝ), l₁ ≠ 0 → l₂ ≠ 0 → ContinuousOn (nssYield β₀ β₁ β₂ β₃ l₁ l₂) (Set.Ioi 0)

The curve is continuous on (0, ∞), the economically meaningful domain for a yield curve (no instrument is quoted at τ = 0).

theoremMathFin.tendsto_nssSlope_nhdsNE_zerosource
Filter.Tendsto nssSlope (nhdsWithin 0 {0}ᶜ) (nhds 1)

Core calculus fact: the slope factor s(x) = (1-e^{-x})/x tends to 1 as x → 0 through nonzero values. This is the difference quotient of f(x) = 1 - e^{-x} through the origin, so it is exactly HasDerivAt f 1 0 read via hasDerivAt_iff_tendsto_slope.

theoremMathFin.tendsto_div_const_nhdsNE_zerosource
∀ {c : ℝ}, c ≠ 0 → Filter.Tendsto (fun x => x / c) (nhdsWithin 0 {0}ᶜ) (nhdsWithin 0 {0}ᶜ)

Dividing by a nonzero constant tends to 0 through nonzero values as the numerator tends to 0 through nonzero values (used to transport the 𝓝[≠] 0 short-end limit of nssSlope and exp along τ ↦ τ/l).

theoremMathFin.tendsto_nssYield_nhdsNE_zerosource
∀ (β₀ β₁ β₂ β₃ l₁ l₂ : ℝ), l₁ ≠ 0 → l₂ ≠ 0 → Filter.Tendsto (nssYield β₀ β₁ β₂ β₃ l₁ l₂) (nhdsWithin 0 {0}ᶜ) (nhds (β₀ + β₁))

Short-end limit: as τ → 0 (through nonzero values), the Svensson curve tends to β₀ + β₁. The slope and level stay (s(τ/lᵢ) → 1), both curvature terms vanish (s(τ/lᵢ) - e^{-τ/lᵢ} → 1 - 1 = 0), since τ/lᵢ → 0 and e^{-τ/lᵢ} → 1.

theoremMathFin.tendsto_nssYield_decay_atTopsource
∀ (β₀ β₁ β₂ β₃ : ℝ) {τ : ℝ}, τ ≠ 0 → Filter.Tendsto (fun l => nssYield β₀ β₁ β₂ β₃ l.1 l.2 τ) (Filter.atTop ×ˢ Filter.atTop) (nhds (β₀ + β₁))

Vanishing-decay limit: at a fixed maturity τ ≠ 0, as both decay constants l₁, l₂ tend to ∞, the Svensson curve tends to β₀ + β₁ — the flat level-plus-slope curve. Each argument τ/lᵢ tends to 0 through nonzero values, so s(τ/lᵢ) → 1 and e^{−τ/lᵢ} → 1: both curvature terms (the Nelson–Siegel β₂ term and Svensson's β₃ term) vanish. This is the short-end limit tendsto_nssYield_nhdsNE_zero read in the decay constants (τ/l is the only place τ and l enter). The value at τ = 0 is not this limit, which is why τ ≠ 0 is required.

theoremMathFin.tendsto_nssSlope_atTopsource
Filter.Tendsto nssSlope Filter.atTop (nhds 0)

Long end of the slope factor: s(x) = (1 − e^{−x})/x → 0 as x → ∞ (the numerator tends to 1, the denominator to ∞).

theoremMathFin.tendsto_nssYield_atTopsource
∀ (β₀ β₁ β₂ β₃ l₁ l₂ : ℝ), 0 < l₁ → 0 < l₂ → Filter.Tendsto (nssYield β₀ β₁ β₂ β₃ l₁ l₂) Filter.atTop (nhds β₀)

Long-end limit: as τ → ∞, the Svensson curve tends to β₀, the level factor — the slope and both curvature terms decay to 0 since s(τ/lᵢ) → 0 and e^{-τ/lᵢ} → 0, given l₁, l₂ > 0.