Nelson-Siegel Model

The Nelson-Siegel Model is the three-factor curve of Nelson and Siegel (1987): a level, a slope and one hump, a parsimonious form that fits the usual shapes of the yield curve, upward-sloping, inverted and humped, with four parameters. Diebold and Li (2006) showed that its three factors read as the level, slope and curvature of the curve and are a good basis to forecast it.

The formula for the Nelson-Siegel Model builds the zero rate at a maturity of m years from the loadings of its factors. The slope loading \(L_{1}\) is 1 at the shortest maturity and decays to 0 at a speed set by the decay \(\tau_{1}\), and the curvature loading \(C_{1}\) is 0 at both ends and peaks in between:

\[L_{1} = \frac{1 - \exp\left(-\frac{m}{\tau_{1}}\right)}{\frac{m}{\tau_{1}}}\] \[C_{1} = L_{1} - \exp\left(-\frac{m}{\tau_{1}}\right)\]

The continuously compounded zero rate y(m) is the level plus each factor times its loading:

\[y(m) = \beta_{0} + \beta_{1} \cdot L_{1} + \beta_{2} \cdot C_{1}\]

Where \(\beta_{0}\) is the level, the zero rate at an infinite maturity, \(\beta_{1}\) the slope, so that the rate at the shortest maturity is \(\beta_{0} + \beta_{1}\), and \(\beta_{2}\) the curvature, a hump (or a trough when negative) that peaks at about 1.8 times \(\tau_{1}\) years. A negative \(\beta_{1}\) is an upward-sloping curve and a positive \(\beta_{1}\) an inverted one. With three factors the parameters are better identified than those of the Nelson-Siegel-Svensson Model, which makes them suited to tracking the level, slope and curvature over time, but a single hump can miss the shape of the long end.

A government yield curve is observed at a dozen maturities, each with its own noise. A parametric curve model describes the whole curve with a handful of parameters: it smooths out the noise of individual maturities, gives a yield for any maturity in between and turns the history of curves into a history of a few factors, the level, the slope and the curvature, which move with monetary policy and the economic cycle. The models here are fitted to continuously compounded zero-coupon rates, as central banks fit them, so their parameters are continuously compounded rates that compare with the published ones; the yields they give at chosen maturities are converted to annual compounding.

Also known as: NS, Nelson-Siegel curve, level slope curvature factors.

In the Finance Toolkit this is get_nelson_siegel_svensson with method="nelson_siegel", the same function as Nelson-Siegel-Svensson.

Example · 2026

Install the Finance Toolkit with pip install financetoolkit -U, then call get_nelson_siegel_svensson:

from financetoolkit import FixedIncome

fixedincome = FixedIncome(start_date='2026-10-19', end_date='2026-10-23')

fixedincome.get_nelson_siegel_svensson(method="nelson_siegel", countries='Germany')

Which returns:

References

  • Paper Nelson, C.R. and Siegel, A.F. (1987). “Parsimonious Modeling of Yield Curves.” The Journal of Business, 60(4), 473-489.
  • Paper Diebold, F.X. and Li, C. (2006). “Forecasting the Term Structure of Government Bond Yields.” Journal of Econometrics, 130(2), 337-364.
Share