10 · Fixed Income · Curve Construction

Yield Curve
Construction.

A Python library that builds zero-coupon curves from market quotes and compares seven interpolation methods on the EURIBOR 6M curve and on 181 days of US Treasury par yields. The methods agree to within a basis point on zero rates, but not on forwards: forward total variation ranges from 90 to 165 bp, and the 20–30 year Treasury forward ends anywhere between 4.2% and 5.0%. The main lesson: every method reprices the quotes exactly, yet the same 3.5-year cash flow is hedged by different instruments depending on the interpolation.

Context Personal study — September 2026
Data EURIBOR 6M zero curve, 15 pillars (12/02/2025) · US Treasury par yields, 14 tenors, 181 dates (2026)
Methods Raw, linear, cubic, PCHIP, monotone convex, Nelson–Siegel, Svensson
Tools Sequential and simultaneous bootstrap · key-rate risk · PCA

The curve every other model depends on.

Every pricing model starts from a discount curve. Black-Scholes and Heston need \(r(T)\) to discount and to build the forward; a Monte Carlo simulation needs the instantaneous forward curve as its drift; a short-rate model such as Hull-White is fitted to it exactly. Yet the market never quotes this curve directly: it quotes a finite set of deposits, FRAs, swaps and bonds.

Building the curve therefore involves two steps: bootstrapping, which finds the discount factors that reprice the quoted instruments, and interpolation, which decides what happens between them. The first step is pinned down by the market. The second is a modelling choice, and it is the subject of most of this study.

The central idea is that an interpolation must be judged on the forward curve, not on the zero curve. Forwards are derivatives of the log discount factor: two zero curves that differ by less than a basis point can have forward curves with steps, saw-teeth or oscillations of 20 bp.

The study compares seven methods on four criteria: exactness at the pillars, smoothness of the forward, locality (does a 2-year quote move the 4-year forward?) and the stability of the hedge ratios they imply.

One function, every quantity.

Everything is derived from a single function, the integrated forward \(y(T)\), which is minus the log of the discount factor. Zero rates are continuously compounded:

Discount factor and zero rate
\[ P(0,T)=e^{-y(T)}, \qquad y(T)=r(T)\,T \]

The instantaneous forward is the derivative of \(y\). It also shows why forwards are so sensitive to the interpolation: they depend on the slope of the zero curve, amplified by the maturity.

Instantaneous forward
\[ f(0,T)=y'(T)=r(T)+T\,r'(T) \]

Between two pillars \(t_{i-1}\lt t_i\), the only forward information the data contain is the discrete forward. Every exact interpolation must reproduce it on average over the segment:

Discrete forward
\[ f^d_i=\frac{r_i\,t_i-r_{i-1}\,t_{i-1}}{t_i-t_{i-1}} =\frac{1}{t_i-t_{i-1}}\int_{t_{i-1}}^{t_i}f(0,s)\,ds \]

Market quotes use other conventions and are converted to continuous compounding, with \(m\) the compounding frequency:

Compounding conversions
\[ r=\frac{\ln(1+R_{\mathrm{s}}T)}{T}\ \ (\text{simple}), \qquad r=m\,\ln\!\Big(1+\frac{R_m}{m}\Big)\ \ (m\text{ times a year}) \]

In a single-curve framework, where the same curve discounts and projects, the three instrument types have simple pricing equations. For a swap, the floating leg is worth \(1-P(0,T)\), so the par rate is the ratio of this value to the annuity:

Deposit Simple rate \(R\): \(1+R\,T=1/P(0,T)\).
FRA Simple forward on \([T_1,T_2]\): \(1+R\,(T_2-T_1)=P(0,T_1)/P(0,T_2)\).
Swap / bond Par rate \(S=\dfrac{1-P(0,T)}{A(T)}\), with annuity \(A(T)=\sum_i\delta_i\,P(0,t_i)\). A bond at par satisfies the same equation.

Fifteen pillars, rounded to the basis point.

The main data set is the EURIBOR 6M zero-coupon curve of 12 February 2025, the same curve used to discount the CAC40 options of the Heston calibration: 15 pillars from one week to five years, rounded to the basis point.

Maturity (y) 0.020.250.5 0.7511.5 234 5
Zero rate (%) 2.682.642.51 2.392.332.26 2.242.262.28 2.30
Discrete forward (%) 2.682.642.38 2.152.152.16 2.172.312.35 2.39

Selected pillars of the EURIBOR 6M curve (the full set also has 1.25, 1.75, 2.5, 3.5 and 4.5 years). The discrete forward is on the segment ending at the pillar.

The curve is inverted up to two years, pricing in ECB rate cuts, then slightly upward sloping. The discrete forwards are much more irregular than the zero rates, between 2.08% and 2.68%. The reason is the rounding: an error of \(\pm\frac12\) bp on each zero rate becomes, on the forward,

Rounding amplification
\[ |\delta f^d_i|\le\frac{1}{2}\,\frac{t_i+t_{i-1}}{t_i-t_{i-1}}\ \text{bp} \]

On the last segment, from 4.5 to 5 years, the bound is \(\frac12\times9.5/0.5=9.5\) bp. The forward curve inherits this noise whatever the method, which is the first reason to judge the interpolation on forwards.

EURIBOR 6M zero rates at the pillars and discrete forwards as a step function
EURIBOR 6M zero rates (points) and discrete forwards (steps), 12/02/2025.

A second data set tests the bootstrap on real quotes: the daily US Treasury par yield curve, 14 tenors from 1 month to 30 years, on 181 dates from January to September 2026.

Seven ways to fill the gaps.

Every method is written in terms of \(y(T)\) and exposes \(P\), \(r\) and \(f\). Outside the pillars the conventions are the same for all exact methods: flat zero rate before the first pillar, flat instantaneous forward after the last one.

Method Interpolated quantity Forward curve Local Exact
Raw\(\ln P\) linearPiecewise constantYesYes
Linear zero\(r\) linearDiscontinuous (saw-tooth)YesYes
Cubic spline\(r\), natural spline\(C^1\), oscillatesNoYes
PCHIP\(r\), monotone Hermite\(C^0\)AlmostYes
Monotone convex\(f\) (Hagan–West)\(C^0\), controlledAlmostYes
Nelson–SiegelParametric, 4 parametersSmoothNoNo
SvenssonParametric, 6 parametersSmoothNoNo

Local: moving one pillar only changes the curve near that pillar. Exact: the curve goes through every pillar.

01

Raw (log-linear discount factors)

\(y\) is linear between pillars, so the forward is constant on each segment and equal to the discrete forward \(f^d_i\). It is the market standard for risk: perfectly local, linear in the inputs, and forwards are positive whenever the discrete forwards are. Its drawback is a step forward curve.

Local · linear
02

Linear on zero rates

The most intuitive choice. Since \(f=r+T\,r'\) and \(r'\) jumps at every pillar, the forward jumps too, by up to 18 bp here, with a saw-tooth shape that grows with \(T\).

Saw-tooth forwards
03

Cubic spline and PCHIP on zero rates

The natural cubic spline is \(C^2\) on \(r\) but global: its coefficients solve a tridiagonal system over all pillars, so one quote moves the whole curve. PCHIP (Fritsch–Carlson) uses local harmonic-mean slopes and never overshoots the zero rates, but its forward is only continuous and is not controlled.

Smooth zeros
04

Monotone convex (Hagan–West, 2006)

Interpolates the forward directly. Node forwards are distance-weighted averages of the neighbouring discrete forwards, with \(\tau_0=0\):

\[ f_i=\frac{\tau_i-\tau_{i-1}}{\tau_{i+1}-\tau_{i-1}}\,f^d_{i+1} +\frac{\tau_{i+1}-\tau_i}{\tau_{i+1}-\tau_{i-1}}\,f^d_i, \qquad f_0=f^d_1-\tfrac12\big(f_1-f^d_1\big) \]

On each segment, with \(x=(T-\tau_{i-1})/(\tau_i-\tau_{i-1})\), the forward is \(f^d_i+g(x)\), where \(g\) starts at \(g_0=f_{i-1}-f^d_i\) and ends at \(g_1=f_i-f^d_i\). In the basic region,

\[ g(x)=g_0\,(1-4x+3x^2)+g_1\,(-2x+3x^2), \qquad \int_0^1 g(x)\,dx=0 \]

The zero integral is what makes the method exact: the average forward on the segment is \(f^d_i\), so every pillar is repriced. When the cubic would overshoot, three other regions replace it with flat and quadratic pieces, which keeps the forward monotone where the data are.

Market standard for pricing
05

Nelson–Siegel and Svensson

Parametric curves, fitted by least squares on the zero rates:

\[ r(T)=\beta_0+\beta_1 L_1\!\Big(\tfrac{T}{\lambda_1}\Big)+\beta_2 L_2\!\Big(\tfrac{T}{\lambda_1}\Big)+\beta_3 L_2\!\Big(\tfrac{T}{\lambda_2}\Big), \quad L_1(x)=\frac{1-e^{-x}}{x},\ \ L_2(x)=L_1(x)-e^{-x} \]

with \(\beta_3=0\) for Nelson–Siegel. Given the decays \(\lambda\), the betas are linear, so they are solved by least squares and the \(\lambda\) by a 1D (Nelson–Siegel) or 2D (Svensson) search. Used by central banks for smoothing, not for pricing: they do not reprice the inputs.

Level · slope · curvature
Instantaneous forward curves of the seven interpolation methods against the discrete forwards
Instantaneous forward curve of each method (colour) against the discrete forwards (grey steps). On zero rates the exact methods differ by a fraction of a basis point.

Measuring what the eye sees on forwards.

Each method is scored on the EURIBOR curve with five metrics, computed on a grid of 5,001 points on \([0,5]\) years:

Pillar error Largest gap between the curve and the input zero rates.
Forward jump Largest discontinuity of \(f\) at an inner pillar.
Total variation \(\sum_k|f(T_{k+1})-f(T_k)|\): how much the forward oscillates. The discrete forwards themselves give the reference, 95 bp.
Locality The 2-year zero rate is bumped by +1 bp; largest forward change outside \([1.5,3]\) years.
Method Pillar error (bp) Fwd jump (bp) Total var. (bp) Fwd min (%) Fwd max (%) Bump: max \(|\Delta f|\) (bp) Bump: far (bp) µs / point
Raw0.0025.6595.02.0802.6808.000.000.016
Linear zero0.0018.00165.42.0302.6808.990.000.018
Cubic spline0.000.00115.92.0632.6809.461.830.024
PCHIP0.000.00118.72.0582.68010.270.000.023
Monotone convex0.000.00112.22.0612.6829.760.000.168
Nelson–Siegel5.070.0096.02.1282.7320.740.740.034
Svensson0.650.0089.62.1032.6990.650.650.052

EURIBOR 6M curve, 12/02/2025. Discrete forwards range from 2.08% to 2.68%.

Among the methods with a continuous forward, monotone convex has the lowest total variation (112 bp, against 116 for the cubic spline, 119 for PCHIP). Linear zero is by far the worst (165 bp): its saw-tooth adds 70 bp of variation that the data do not contain. The continuous methods all undershoot the lowest discrete forward slightly (about 2 bp below 2.08%), since a continuous curve with the right average on a low segment must dip below it.

On locality, raw, linear, PCHIP and monotone convex keep the effect of the 2-year bump inside \([1.5,3]\) years. The natural cubic spline leaks up to 1.8 bp of forward change elsewhere, with alternating signs, and the parametric curves spread it over the whole curve because they refit every parameter.

Forward curve response of each method to a one basis point bump of the 2-year zero rate
Forward change after a +1 bp bump of the 2-year zero rate. The shaded area is \([1.5,3]\) years.

The parametric fits confirm the trade-off between smoothness and exactness. Nelson–Siegel misses the short end by up to 5.1 bp (at 3 months); the two extra Svensson parameters bring the error below 0.7 bp everywhere.

Model \(\beta_0\) \(\beta_1\) \(\beta_2\) \(\lambda_1\) \(\beta_3\) \(\lambda_2\) Max error (bp)
Nelson–Siegel2.556%0.176%−1.329%1.148——5.07
Svensson2.379%0.291%0.781%0.197−0.883%0.6960.65

Fitted parameters. \(\beta_0\) is the long-run level, \(\beta_0+\beta_1\) the short rate.

From quotes to a curve.

One pillar is placed at each instrument's maturity, and the unknowns are the zero rates \(z_1,\dots,z_n\) at the pillars. The curve must solve, for every instrument,

Bootstrap equations
\[ \mathrm{quote}_i^{\mathrm{model}}(z_1,\dots,z_n)=\mathrm{quote}_i^{\mathrm{mkt}}, \qquad i=1,\dots,n \]
01

Sequential

With raw interpolation, the curve up to \(T_k\) only depends on \(z_1,\dots,z_k\). The system is triangular and each instrument is solved in turn by a Brent root search on \([-50\%,100\%]\).

Raw
02

Simultaneous

With a non-local method (splines, monotone convex), a new pillar also moves the curve before the previous ones. The \(n\) equations are solved together with a Powell hybrid method (scipy.optimize.root), starting from the sequential raw solution.

All other exact methods

Round trip test. Nine quotes are generated from the monotone convex EURIBOR curve: 1M, 3M and 6M deposits, a 6×12 FRA, a 1.5-year semi-annual swap and 2 to 5-year annual swaps. The curve is then rebuilt from these nine quotes only and compared with the 15-pillar reference.

Method Solver Max residual (bp) Time (ms) Max zero error (bp) Max forward error (bp)
RawSequential0.07.82.1613.10
Linear zeroSimultaneous0.014.03.0414.48
Cubic splineSimultaneous0.017.51.005.37
PCHIPSimultaneous0.017.81.677.37
Monotone convexSimultaneous0.047.40.835.84

Curves bootstrapped from 9 quotes, compared with the 15-pillar reference curve on \([0.01,5]\) years.

Every method reprices the nine quotes to machine precision, yet the curves differ between the pillars: zero rates are recovered within 0.8 to 3.0 bp, forwards only within 5 to 14 bp. The market pins down the instruments, not what happens between them. Monotone convex is closest on zero rates, and the smooth methods (cubic, monotone convex) are 2 to 3 times closer on forwards than raw and linear.

Forward curves bootstrapped from nine quotes against the fifteen pillar reference, for each exact method
Round trip: forward of the curve bootstrapped from 9 quotes (colour) against the reference built on 15 pillars (grey).

US Treasuries: where long forwards come from.

The bootstrap is then run on real quotes: the US Treasury par yield curve of 21 September 2026, 14 tenors from 1 month to 30 years. Bills up to 6 months are treated as simple-rate zero coupons, the 1-year bill as a semi-annual zero coupon, and notes and bonds as semi-annual par bonds.

Tenor 1M3M6M 1Y2Y5Y 10Y20Y30Y
Quote (%) 3.964.174.27 4.454.764.83 4.965.335.29
Zero rate (%) 3.954.154.23 4.404.714.78 4.925.405.27

Selected tenors (the full set also has 1.5, 2, 4 months, 3 and 7 years) and continuously compounded zero rates of the monotone convex curve.

All three methods tested reprice the 14 quotes with a maximum residual of \(3.5\times10^{-13}\) bp, in 15 ms (raw), 71 ms (cubic spline) and 111 ms (monotone convex). But with sparse long-end quotes (10, 20, 30 years), the forward curves diverge:

Raw 5.88% on 10–20 years, then 5.04% on 20–30 years: an 84 bp drop at 20 years.
Monotone convex Peaks at 6.1% around 14 years, then decreases to about 4.8% at 30 years.
Cubic spline Peaks at 6.2% around 17 years, then dives to 4.2% at 30 years, below every quote.

On 10–20 years, the forward at both ends is below the segment's average forward (5.88%), so every continuous method must rise above it in the middle. The 30-year forward ranges from 4.2% to 5.0% depending on the method, although all three curves reprice the same quotes. Long-dated forwards, which drive long-dated exotics, are largely a product of the interpolation choice.

US Treasury quoted yields with the bootstrapped zero curve, and the forward curves of three methods
Left: quoted yields, bootstrapped zero curve and par yields implied by the curve. Right: instantaneous forwards of three methods on the same quotes.

Three factors drive the whole curve.

The Treasury curve is bootstrapped (monotone convex) on each of the 181 dates, in 20.8 seconds. Daily zero-rate changes on 10 maturities, from 3 months to 30 years, are decomposed into principal components: the eigenvectors \(e_k\) of their covariance matrix \(\Sigma\), ranked by eigenvalue.

Principal components
\[ \Sigma\,e_k=\lambda_k\,e_k, \qquad \text{explained variance}_k=\frac{\lambda_k}{\sum_j\lambda_j} \]
Component Shape Explained variance Cumulative
PC1Level: same sign everywhere, largest around 5 years79.6%79.6%
PC2Slope: short end up, long end down13.2%92.8%
PC3Curvature: both ends against the 2–5 year belly2.7%95.5%
PC4—1.4%96.9%

Daily changes of the Treasury zero curve, January to September 2026.

Three factors explain 95.5% of the daily moves. This is the classic level–slope–curvature decomposition of Litterman and Scheinkman, and the reason why multi-factor short-rate models need two or three factors to reproduce realistic curve dynamics.

Loadings of the first three principal components and history of four zero rates
Left: loadings of the first three components. Right: 3-month, 2, 10 and 30-year zero rates through 2026.

Same price, different hedge.

A zero-coupon bond paying €1,000,000 in 3.5 years, between the 3 and 4-year swap pillars, is priced on the curve bootstrapped from the nine EURIBOR quotes. Each quote is bumped by +1 bp in turn, the curve is re-bootstrapped and the bond repriced. The result is the bond's sensitivity to each hedging instrument:

Key-rate sensitivity
\[ \mathrm{KR}_j=V\big(\mathrm{quote}_j+1\,\mathrm{bp}\big)-V \]
Method Depo 6M FRA 6×12 Swap 1.5Y Swap 2Y Swap 3Y Swap 4Y Swap 5Y Sum Parallel
Raw1.051.050.004.19−135.35−186.940.00−315.99−315.93
Linear zero1.071.070.004.28−158.84−163.580.00−316.01−315.94
Cubic spline2.115.07−30.0263.92−197.98−184.7824.20−316.23−316.17
PCHIP1.041.040.0031.43−165.38−201.4616.48−316.84−315.94
Monotone convex1.051.050.0015.87−186.33−238.8328.99−378.22−315.94

Sensitivity in euros to a +1 bp bump of each quote. The 1M and 3M deposits are zero for every method except the cubic spline (−0.43 and +1.67).

The parallel sensitivity is the same for every method, −€316 per bp. This is close to \(N\cdot T\cdot P(0,3.5)\cdot10^{-4}\approx\) €323; the difference comes from bumping par swap rates rather than zero rates. Its split across instruments, however, depends on the method:

Raw / linear The bond is hedged by the 3 and 4-year swaps only, plus a small annuity effect on shorter instruments.
Cubic spline Risk leaks onto the 1.5, 2 and 5-year swaps with alternating signs (+€64 on the 2-year swap for a bond maturing in 3.5 years).
Monotone convex The key rates do not add up to the parallel sensitivity: −€378 against −€316.

The last point is not a numerical error. Between 2 and 5 years the EURIBOR rates rise by exactly 2 bp a year, so the discrete forwards are nearly equal and the monotone convex corrections \(g_0,g_1\) are only about 2 bp. A 1 bp bump moves them across the boundaries of the Hagan–West regions: the curve stays continuous in its inputs but becomes strongly non-linear, and the sensitivity depends on the size and sign of the bump.

Method Quote bumped +1 bp +0.1 bp −0.1 bp −1 bp
RawSwap 3Y−135.35−135.35−135.35−135.35
RawSwap 4Y−186.94−186.94−186.94−186.94
PCHIPSwap 3Y−165.38−177.47−180.53−195.27
PCHIPSwap 4Y−201.46−186.01−182.83−170.35
Monotone convexSwap 3Y−186.33−152.68−152.68−110.68
Monotone convexSwap 4Y−238.83−210.86−210.86−140.57

Bond sensitivity per basis point (€) for different bump sizes.

Practical consequence. With raw interpolation the sensitivity does not depend on the bump, since the curve is linear in the pillar rates. PCHIP is mildly non-linear (−€165 to −€195 on the 3-year swap); monotone convex strongly so (−€111 to −€186 on the 3-year swap, −€141 to −€239 on the 4-year swap). Key-rate risk must then be reported with a documented bump size, and a local, linear method such as raw is often preferred for the risk engine. A hedge computed with one interpolation is not a hedge under another.

One object for every pricer.

The code is a small Python package, Fixed_Income_Models, built around four single-responsibility modules:

interpolation.py The seven interpolators. Each exposes \(y(T)\), \(r(T)\) and \(f(0,T)\), with the same extrapolation rules.
YieldCurve Discount factors, zero rates in any compounding, simple and instantaneous forwards, annuities, par rates, parallel shifts and key-rate bumps.
instruments.py ZeroCouponRate, Deposit, FRA, Swap, ParBond: each returns the quote implied by a curve.
Bootstrapper Sequential or simultaneous solve, with a residual report per instrument.

A YieldCurve is callable: curve(T) returns \(r(T)\), so it can be passed directly as the zc_rate argument of the Black-Scholes and Heston pricers. On the monotone convex EURIBOR curve:

Quantity Formula Value
Zero rate, 2 years\(r(2)\)2.2400% (annual: 2.2653%)
Discount factor, 2 years\(P(0,2)\)0.956189
FRA 1y × 1.5y\(\frac{P(0,1)/P(0,1.5)-1}{0.5}\)2.1313%
Instantaneous forward, 2 years\(f(0,2)\)2.2100%
5-year annual par swap\((1-P(0,5))/A(5)\)2.3253%
Monte Carlo drift on [1, 1.5]\(\int_1^{1.5}f(0,s)\,ds\)0.010600

Outputs of the YieldCurve object.

The Monte Carlo drift uses the identity \(\int_{t_1}^{t_2}f(0,s)\,ds=y(t_2)-y(t_1)\), so a path simulation is exactly consistent with the discount curve on any time grid, whatever the interpolation.

What the library does not do yet.

01

Single-curve framework

The same curve discounts and projects. Since 2008, swaps are discounted on an OIS curve (€STR, SOFR) and each floating tenor (EURIBOR 3M, 6M) has its own projection curve; the tenor basis between them is several basis points.

Multi-curve
02

No market conventions

Times are plain year fractions: no day-count conventions, business-day calendars or settlement lags. Treasury bills use a simplified yield convention.

Conventions
03

Input assumptions

The EURIBOR data are assumed to be continuously compounded zero rates, rounded to 1 bp, which bounds the precision of every forward (section 03).

Data
04

No futures

Rate futures, the most liquid instruments between 3 months and 2 years, are not supported. They need a convexity adjustment, which depends on a volatility model.

Instruments
05

Non-linear risk with monotone convex

When discrete forwards are nearly equal, key-rate sensitivities vary by up to a factor 1.7 with the bump size. Risk should be computed with a fixed, documented bump, or on a raw curve.

Risk

Choosing a method is choosing a model.

Forwards Methods that agree within 1 bp on zero rates produce step, saw-tooth or oscillating forwards; total variation ranges from 90 to 165 bp on the same data.
Pricing Monotone convex: exact, continuous forward, local, lowest forward variation of the continuous methods (112 bp) and closest round-trip zero curve (0.83 bp).
Risk Raw: local and linear, so key rates add up and do not depend on the bump. Cubic splines leak risk onto distant instruments and should not be used for hedging.
Next steps Multi-curve bootstrap (€STR discounting, EURIBOR projection), futures with convexity adjustment, then a Hull-White model with \(\theta(t)\) fitted to the instantaneous forward curve to price callable and path-dependent products.
The market only determines the instruments it quotes. Everything between them, and in particular long-dated forwards and the split of a hedge across instruments, comes from the interpolation. The method should therefore be fixed once, documented, and used consistently for pricing and risk.