Vasicek-Fong Exponential Spline
The Vasicek-Fong Exponential Spline writes the discount function as a sum of exponentials. Vasicek and Fong (1982) observed that a discount function decays roughly exponentially with maturity, so polynomial splines in time fit it poorly and give forward rates that swing at the long end; they fitted splines in an exponential transform of maturity instead, which keeps the forward rates stable.
The formula for the Vasicek-Fong Exponential Spline is as follows:
\[d_{t} = \sum_{k=1}^{9} a_{k} \cdot \exp\left(-k \cdot \kappa \cdot t\right)\] \[\sum_{k=1}^{9} a_{k} = 1\]Where t is the maturity in years, kappa the decay rate, fitted with the coefficients, and \(a_{k}\) the coefficients of the nine exponentials, which add up to 1 so that \(d (0) = 1\). The slowest exponential governs the long end, so the forward rates tend to kappa at long maturities rather than swing. With nine free parameters it follows the prices more closely than the parametric models and leaves smaller residuals, but some of the bond-specific deviations then end up in the curve.
A constant maturity curve is quoted at a dozen maturities. Fitting the curve to the roughly 330 Treasury notes and bonds themselves gives the term structure that what trades implies, at every maturity, and measures each bond against it: a bond priced above the curve is rich, one priced below it cheap, the basis of relative value trading. The curve is a discount function d(t), the value today of 1 paid t years from now, and the methods differ in the shape they give it, from a parametric curve with a handful of parameters to a spline that follows the prices more closely.
The fit is the same for every discount function. Each bond’s price on the curve is its coupons and principal discounted with it:
\[\text{Model Price}_{i} = \sum \left(\text{CF}_{i,k} \cdot d(t_{i,k})\right)\]The parameters of the discount function minimise the weighted squared differences between these prices and the market prices, with weights inversely proportional to duration, as Gürkaynak, Sack and Wright (2007) fit the Federal Reserve’s Treasury curve:
\[\text{Objective} = \sum_{i=1}^{N} w_{i} \cdot (\text{Model Price}_{i} - P_{i})^{2}\] \[w_{i} = \frac{1}{D_{i}}\]Where \(P_{i}\) is the market price plus the accrued interest of bond i, \(\text{CF}_{i , k}\) its coupons and principal at times \(t_{i , k}\) in years, \(D_{i}\) its modified duration and N the number of bonds. A price error is about the duration times the price times the yield error, so the weights reduce the weight of the long bonds’ larger price errors, while still giving a basis point of a long bond more weight than one of a short bond (equal weight in yield would need weights of \(1 / D_{i}^{2}\)). The zero rates of the fitted curve are given annually compounded, while the parametric models are fitted on continuously compounded rates, so their parameters compare with the Federal Reserve’s; the instantaneous forward rate is continuously compounded, and the yields of the bonds are bond-equivalent, compounded twice a year, as the Treasury quotes them. A residual is the gap between a bond’s market price or yield and that on the curve: a positive price residual (a negative yield residual) marks a rich bond, a negative price residual a cheap one. Residuals reflect more than mispricing, such as the liquidity of the most recently issued bonds and the demand for particular bonds in the repo market.
Also known as: exponential spline, exponential splines fitting.
In the Finance Toolkit this is get_fitted_bond_curve with method="exponential_spline", the same function as Fitted Bond Curve.
Example
Install the Finance Toolkit with pip install financetoolkit -U, then call get_fitted_bond_curve:
from financetoolkit import FixedIncome
fixedincome = FixedIncome()
fixedincome.get_fitted_bond_curve(method="exponential_spline", date="2026-11-05")
| Parameter | Type | Description | Example |
|---|---|---|---|
method | str | The discount function. Options are: “svensson” (Svensson Model, the Nelson-Siegel-Svensson zero rate), “nelson_siegel” (Nelson-Siegel Model, the Nelson-Siegel zero rate), “exponential_spline” (Vasicek-Fong Exponential Spline, a sum of exponentials), “cubic_spline” (McCulloch Cubic Spline, a cubic B-spline). Defaults to “svensson”. | "svensson" |
maturities | float | str | list | None | The maturities to return the curve at, in years or as labels such as ‘6M’ (a list or a comma-separated string). Defaults to None, 6 months and 1, 2, 3, 5, 7, 10, 20 and 30 years. | ["3M", "6M"] |
date | str | None | The day of the prices (YYYY-MM-DD); a weekend or holiday uses the business day before it. Defaults to None, the latest day with prices. | "2025-03-31" |
residuals | bool | Whether to return every bond with its price and yield on the curve and its residuals instead of the curve. Defaults to False. | False |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the class. | 2 |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
Which returns:
| Maturity | Zero Rate | Discount Factor | Instantaneous Forward Rate |
|---|---|---|---|
| 0.5 | 0.0431 | 0.9791 | 0.0432 |
| 1.0 | 0.0441 | 0.9577 | 0.0450 |
| 2.0 | 0.0454 | 0.9151 | 0.0456 |
| 3.0 | 0.0458 | 0.8742 | 0.0459 |
| 5.0 | 0.0468 | 0.7954 | 0.0484 |
| 7.0 | 0.0477 | 0.7218 | 0.0486 |
| 10.0 | 0.0488 | 0.6212 | 0.0529 |
| 20.0 | 0.0555 | 0.3393 | 0.0562 |
| 30.0 | 0.0545 | 0.2032 | 0.0536 |
9 rows
References
- Paper Vasicek, O.A. and Fong, H.G. (1982). “Term Structure Modeling Using Exponential Splines.” The Journal of Finance, 37(2), 339-348.
- Paper Gürkaynak, R.S., Sack, B. and Wright, J.H. (2007). “The U.S. Treasury Yield Curve: 1961 to the Present.” Journal of Monetary Economics, 54(8), 2291-2304.
- Library Shares similar logic as QuantLib’s ExponentialSplinesFitting (Vasicek-Fong Exponential Spline)