Sub topic 18
Effective Duration and Convexity from Tree Values
This chapter assumes you can build a binomial interest rate tree, value a bond by backward induction, and value a callable or putable bond on the tree. It also assumes you know modified duration at a basic level. Here you learn how to turn tree values into duration and convexity measures, and why those measures differ from the closed-form ones.
Why tree-based measures are needed
Modified duration assumes the cash flows do not change when yields change. That holds for an option-free bond. For a callable bond, a drop in rates makes the issuer more likely to call, so the expected cash flows shorten. A formula built on promised cash flows cannot see this.
Effective duration solves this by revaluing the bond with a full model. You shift the benchmark curve, rebuild the valuation, and let the cash flows respond. It measures sensitivity to a change in the benchmark curve. Modified duration measures sensitivity to the bond's own yield to maturity.
The formulas
Let V0 be the bond's value at the current curve. Shift the curve down by Δy to get V−, and up by Δy to get V+.
- Effective duration = (V− − V+) / (2 × V0 × Δy)
- Effective convexity = (V− + V+ − 2 × V0) / (V0 × Δy²)
Effective duration is the slope of the price-yield relationship. Effective convexity is its curvature. The approximate percentage price change for a yield change Δy is:
ΔP/P ≈ −EffDur × Δy + ½ × EffConv × (Δy)²
Express Δy as a decimal, so 25 basis points is 0.0025.
The revaluation procedure
The steps below keep the OAS fixed and the curve shift parallel.
- Value the bond at the current curve, using the tree calibrated to that curve and the bond's OAS, to get V0.
- Shift the benchmark par or spot curve down by Δy. Rebuild the tree so it reprices the shifted benchmark bonds.
- Reprice the bond on the new tree, using the same OAS as in step 1, to get V−.
- Repeat with the curve shifted up by Δy to get V+.
- Apply the two formulas.
Worked example
Take a straight bond and a callable bond that are otherwise identical. Use Δy = 25 bp = 0.0025.
| Bond | V− | V0 | V+ |
|---|---|---|---|
| Straight | 102.50 | 100.00 | 97.60 |
| Callable | 98.60 | 97.50 | 96.20 |
For the straight bond:
- Duration = (102.50 − 97.60) / (2 × 100 × 0.0025) = 4.90 / 0.50 = 9.8
- Convexity = (102.50 + 97.60 − 200) / (100 × 0.0025²) = 0.10 / 0.000625 = 160
For the callable bond:
- Duration = (98.60 − 96.20) / (2 × 97.5 × 0.0025) = 2.40 / 0.4875 ≈ 4.92
- Convexity = (98.60 + 96.20 − 195) / (97.5 × 0.0025²) = −0.20 / 0.000609 ≈ −328
The callable bond has the lower duration and negative convexity. Now estimate the price change for a 100 bp fall in yields (Δy = −0.01):
- Straight: 9.8 × 0.01 + ½ × 160 × 0.0001 = 9.8% + 0.8% = 10.6%
- Callable: 4.92 × 0.01 + ½ × (−328) × 0.0001 = 4.92% − 1.64% ≈ 3.3%
The straight bond gains more than its duration alone predicts, because positive convexity adds to the gain. The callable bond gains less, because negative convexity subtracts from it.
Why callable bonds have negative convexity
When rates are high, the call option is far out of the money. The callable bond behaves like a straight bond, with similar duration and positive convexity. As rates fall toward the point where the bond would be called, its price rises more slowly. The call price acts as a ceiling. This is price compression, and it appears as negative convexity.
A putable bond is the mirror image. When rates rise, the put sets a floor under the price, so the bond falls less than a straight bond would. A putable bond therefore has duration no greater than its straight equivalent and convexity at least as high.
| Bond type | Effective duration vs. straight | Effective convexity vs. straight |
|---|---|---|
| Callable | Lower, especially when rates are low | Lower, can be negative |
| Putable | Lower, especially when rates are high | Higher |
The bounds are approximate. Duration and convexity depend on where the current rate sits relative to the exercise point.
Computing it in code
The function below reuses the tree valuation from the earlier chapter. Shifting every tree rate by Δy is a shortcut. A full implementation recalibrates the tree to the shifted curve and reapplies the OAS.
def value_bond(coupon, face, rates, call_price=None):
# rates[t][i] is the one-period rate at time t in state i, ordered from lowest to highest rate
values = [face] * (len(rates) + 1)
for t in range(len(rates) - 1, -1, -1):
new_values = []
for i, r in enumerate(rates[t]):
v = 0.5 * ((values[i] + coupon) + (values[i + 1] + coupon)) / (1 + r)
if call_price is not None:
v = min(v, call_price)
new_values.append(v)
values = new_values
return values[0]
def shift(rates, dy):
return [[r + dy for r in row] for row in rates]
def effective_measures(price_fn, dy):
v0, v_down, v_up = price_fn(0.0), price_fn(-dy), price_fn(dy)
duration = (v_down - v_up) / (2 * v0 * dy)
convexity = (v_down + v_up - 2 * v0) / (v0 * dy ** 2)
return duration, convexity
rates = [[0.03], [0.035, 0.025], [0.04, 0.03, 0.02]] # illustrative, not calibrated
dy = 0.0025
straight = effective_measures(lambda s: value_bond(5, 100, shift(rates, s)), dy)
callable_ = effective_measures(lambda s: value_bond(5, 100, shift(rates, s), call_price=100), dy)
print("straight:", straight)
print("callable:", callable_)Run it and compare the two lines. The callable bond should show lower duration and lower convexity than the straight bond.
Common errors
- Using the wrong sign order. The numerator of duration is V− − V+, with the down-shift value first. Reversing it gives a negative duration for an ordinary bond.
- Expressing Δy in percent. The formulas need a decimal. A 25 bp shift entered as 0.25 or 25 gives a result off by a factor of 100 or 10,000.
- Letting the OAS change. If you reprice at a different spread, you mix a spread change with a curve change. Hold the OAS constant in the shifted valuations.
- Forgetting to rebuild the tree. The tree must reprice the shifted benchmark. Shifting only the discount rates on the old tree gives a different, usually less accurate, answer.
- Using a large Δy. The formulas are finite-difference estimates. A very large shift picks up higher-order effects and an uneven option response. Small shifts, such as 10 to 50 bp, are standard.
- Reading effective duration as exposure to every curve move. It covers only parallel shifts. A bond can have the same effective duration as another and still react differently to a steepening.
Key rate duration
Effective duration assumes a parallel shift. Key rate duration measures sensitivity to a shift at one maturity, such as the 5-year point, with the rest of the curve held fixed. You revalue the bond after moving only that key rate. The key rate durations across all maturities approximately add up to the effective duration. This shows where on the curve a bond's risk sits, which matters for bonds with option features or uneven cash flows.
Summary of decisions
- Use effective duration and convexity for bonds with embedded options, or any bond whose cash flows depend on rates.
- Use modified duration for option-free bonds, where it should agree closely with effective duration.
- Use key rate durations when the curve may steepen, flatten, or change shape.
Exercise
A bond has V0 = 102.00. After a 50 bp parallel downward shift of the benchmark curve, its value is 104.00. After a 50 bp upward shift, its value is 100.10. Compute its effective duration and effective convexity.
Show answer
Δy = 0.0050. Duration = (104.00 − 100.10) / (2 × 102.00 × 0.0050) = 3.90 / 1.02 ≈ 3.82. Convexity = (104.00 + 100.10 − 204.00) / (102.00 × 0.0050²) = 0.10 / 0.00255 ≈ 39.2.
Exercise
A callable bond shows effective duration 4.9 and effective convexity −330. Estimate its percentage price change if the benchmark curve falls by 100 bp. Why is the result smaller than a straight bond with the same duration would give?
Show answer
ΔP/P ≈ 4.9 × 0.01 + ½ × (−330) × 0.0001 = 4.90% − 1.65% ≈ 3.25%. A straight bond with the same duration and positive convexity would gain at least 4.9%. The callable bond gains less because falling rates raise the chance of a call. The call price caps its value, which shows up as negative convexity.