Sub topic 3
Bootstrapping spot rates from par rates
Bootstrapping turns a par curve, which is what the market quotes, into a spot curve, which is what you need to discount cash flows. This chapter assumes you know present value, how a coupon bond is priced from its yield to maturity, and what par value and coupon mean. It also assumes you have met spot rates and discount factors in the earlier chapters.
Why bootstrap
A par rate is the coupon rate at which a bond of a given maturity prices at exactly 100% of par. Par rates are easy to observe, because new government bonds and swaps are issued at or near par. But a par rate is a single yield applied to every cash flow of the bond. It hides the fact that a 1-year cash flow and a 3-year cash flow deserve different discount rates.
A spot rate is the yield on a zero-coupon bond for one maturity. It is the correct rate for discounting a single cash flow at that date. Bootstrapping recovers the spot rates from the par rates, one maturity at a time.
The core equation
Take annual-pay par bonds with par value 1. Let c_n be the par rate for maturity n and DF_k the discount factor for year k. A par bond is worth 1, so for maturity n:
1 = c_n × (DF_1 + ... + DF_(n-1)) + (1 + c_n) × DF_n
Every discount factor before year n is already known from earlier steps. The only unknown is DF_n, so you solve for it:
DF_n = (1 - c_n × sum of earlier DFs) / (1 + c_n)
Then convert to a spot rate:
S_n = DF_n^(-1/n) - 1
The one-year par bond has no earlier cash flows, so DF_1 = 1 / (1 + c_1) and S_1 = c_1. The 1-year par rate and the 1-year spot rate are always equal.
Worked example
The par rates are 2%, 3% and 4% for 1, 2 and 3 years, all annual pay.
Year 1. DF_1 = 1 / 1.02 = 0.980392, so S_1 = 2.000%.
Year 2. The earlier discount factors sum to 0.980392.
DF_2 = (1 - 0.03 × 0.980392) / 1.03 = 0.970588 / 1.03 = 0.942318
S_2 = 0.942318^(-1/2) - 1 = 3.015%
Year 3. The earlier discount factors sum to 0.980392 + 0.942318 = 1.922710.
DF_3 = (1 - 0.04 × 1.922710) / 1.04 = 0.923092 / 1.04 = 0.887588
S_3 = 0.887588^(-1/3) - 1 = 4.055%
| Maturity | Par rate | Discount factor | Spot rate |
|---|---|---|---|
| 1 | 2.00% | 0.980392 | 2.000% |
| 2 | 3.00% | 0.942318 | 3.015% |
| 3 | 4.00% | 0.887588 | 4.055% |
The spot rates sit above the par rates, and the gap widens with maturity. This happens because the curve slopes upward. A coupon bond's early coupons are discounted at lower spot rates than its final payment, so its single yield to maturity is an average that falls below the final spot rate. If the par curve were inverted, the spot curve would lie below it.
The same calculation in Python
par_rates = [0.02, 0.03, 0.04] # annual-pay par bonds, maturities 1 to 3 years
dfs = []
for n, c in enumerate(par_rates, start=1):
# a par bond is worth 1: c * (sum of earlier DFs) + (1 + c) * DF_n = 1
dfs.append((1 - c * sum(dfs)) / (1 + c))
spots = [df ** (-1 / n) - 1 for n, df in enumerate(dfs, start=1)]
print(spots)The loop keeps dfs as a growing list. On each pass sum(dfs) is the sum of the discount factors already solved, which matches the formula. The output is approximately [0.02, 0.03015, 0.04055].
Checking your answer
A good check is to price each par bond again, using the spot rates you just found. Each should come out at 1 (or 100).
spots = [0.02, 0.030151, 0.040549]
par_rates = [0.02, 0.03, 0.04]
for n, c in enumerate(par_rates, start=1):
flows = [c] * (n - 1) + [1 + c]
price = sum(cf / (1 + s) ** t for t, (cf, s) in enumerate(zip(flows, spots), start=1))
print(n, round(price, 5))Each line prints a price of about 1.0. If one does not, the usual cause is a discount factor that was not carried into the later sums.
Common errors
- Using the par rate as the discount rate for the last cash flow. The final payment of a 3-year par bond is discounted at the 3-year spot rate, not at the 3-year par rate.
- Forgetting the principal. The last cash flow is
1 + c_n, notc_n. - Dropping an earlier discount factor. Every maturity's equation uses all earlier discount factors, so one wrong value spoils every later spot rate.
- Taking
nroots incorrectly. The conversion isDF^(-1/n) - 1. UsingDF^(-1)without the root gives a total return, not an annual rate. - Mixing compounding conventions. The formulas above assume annual coupons and annual compounding. For semiannual bonds you solve in half-year steps, and the resulting rate is a per-period rate that you must annualize in a way that matches the market's convention.
Edge cases
Error propagation. Each discount factor depends on all earlier ones. A small pricing error at the short end carries into every longer maturity. Treat the short end of the curve with care.
Bonds that are not at par. If a bond trades at a price other than par, the equation changes to price = c × (sum of earlier DFs) + (1 + c) × DF_n. You can still bootstrap from it, but the left side is the market price instead of 1. The same method works with on-the-run Treasuries priced near par and with swaps, whose fixed rates are by construction par rates.
Negative or near-zero rates. The formulas still hold. A discount factor can exceed 1 if the spot rate is negative, which is not an error.
Where this leads
The spot curve is the base for the next chapter's implied forward rates, and later for arbitrage-free pricing and the binomial tree. In each case you take the discount factors from this step and combine them with other quantities.
Exercise
The 1-year par rate is 2% and the 2-year par rate is 3%, both annual pay. Find the 2-year discount factor and the 2-year spot rate, and explain why the spot rate is higher than 3%.
Show answer
DF1 = 1/1.02 = 0.980392. DF2 = (1 - 0.03 × 0.980392) / 1.03 = 0.942318. S_2 = 0.942318^(-1/2) - 1 = 3.015%. The spot rate is higher because the curve slopes upward. The first coupon is discounted at the lower 1-year rate, so for the bond to price at par, the final payment must be discounted at a rate above the 3% par rate.
Exercise
A 3-year par bond has a 4% coupon, and the discount factors for years 1 and 2 are 0.980392 and 0.942318. Show that the 3-year discount factor 0.887588 prices the bond at par.
Show answer
Price = 0.04 × 0.980392 + 0.04 × 0.942318 + 1.04 × 0.887588 = 0.039216 + 0.037693 + 0.923092 = 1.000001, which is 1 (par) apart from rounding.