Sub topic 18
Combining Duration and Convexity to Estimate Price Changes
This chapter assumes you can price a bond by discounting its cash flows. It also assumes you know modified duration (the first-order sensitivity of price to yield) and convexity (the curvature of the price-yield curve). Here you combine the two into one estimate of a bond's percentage price change, and you check that estimate against full repricing.
Why one measure is not enough
The price-yield curve of an option-free bond is convex, meaning it bows toward the origin. Modified duration is the slope of the tangent line at the current yield. A tangent is a straight line, so it is accurate for tiny yield moves and drifts away from the curve as the move grows.
Because the curve bends upward, the tangent always lies below it. This causes two predictable errors with duration alone:
- When yields rise, duration overstates the price fall.
- When yields fall, duration understates the price rise.
Convexity measures the bend, so it supplies the correction. For an option-free bond the correction is always positive, which helps the investor in both directions.
The formula
Let dy be the change in yield (0.01 means 100 basis points). The estimated percentage price change is:
ΔP/P ≈ −ModDur × dy + ½ × Convexity × dy²
The first term is the duration effect. It is linear in dy and has the opposite sign of the yield change. The second term is the convexity effect. It uses dy², so it is always positive when convexity is positive, whichever way yields move.
| Term | Yield rises 100 bp | Yield falls 100 bp |
|---|---|---|
| −ModDur × dy | negative | positive |
| ½ × Convexity × dy² | positive | positive |
Two details cause most errors on the exam:
- Enter dy as a decimal. A move of 50 bp is 0.005, and dy² is 0.000025.
- Use the convexity convention your source states. The formula above works with convexity in years², such as 68. Some sources define convexity with a different scaling, so check before you plug in a number.
Worked example with a real bond
Take a 3-year, 5% annual-pay bond priced at a 4% yield. Discounting gives a price of 102.7751. Applying the Macaulay, modified, and convexity formulas from earlier chapters gives:
- Macaulay duration ≈ 2.8615 years
- Modified duration = 2.8615 / 1.04 ≈ 2.7514
- Convexity ≈ 10.41
Now let yields rise by 100 bp, from 4% to 5%:
- Duration effect: −2.7514 × 0.01 = −2.7514%
- Convexity effect: ½ × 10.41 × 0.0001 = +0.0521%
- Combined estimate: −2.6993%
Repricing at 5% gives exactly 100.0000, so the true change is (100 − 102.7751) / 102.7751 = −2.7001%. The combined estimate misses by less than 0.001 percentage points. Duration alone misses by about 0.05 points.
The same bond with yields falling 100 bp gives a combined estimate of +2.8035%. The true change is +2.8042% (price 105.6572). Duration alone gives +2.7514%.
Checking the estimate in code
This script prices the bond, computes the risk measures, and compares both estimates against full repricing. It runs as shown.
def bond_price(face, coupon_rate, ytm, years, freq=1):
n = int(years * freq)
c = face * coupon_rate / freq
y = ytm / freq
return sum(c / (1 + y) ** t for t in range(1, n + 1)) + face / (1 + y) ** n
def risk_measures(face, coupon_rate, ytm, years, freq=1):
n = int(years * freq)
c = face * coupon_rate / freq
y = ytm / freq
cfs = [(t, c + (face if t == n else 0)) for t in range(1, n + 1)]
price = sum(cf / (1 + y) ** t for t, cf in cfs)
macaulay = sum(t * cf / (1 + y) ** t for t, cf in cfs) / price / freq
modified = macaulay / (1 + y)
convexity = sum(t * (t + 1) * cf / (1 + y) ** (t + 2) for t, cf in cfs) / price / freq ** 2
return price, macaulay, modified, convexity
def approx_pct_change(modified, convexity, dy):
return -modified * dy + 0.5 * convexity * dy ** 2
face, cpn, ytm, years = 100, 0.05, 0.04, 3
p0, mac, mod, conv = risk_measures(face, cpn, ytm, years)
print("dy duration-only dur+convexity actual")
for dy in (-0.01, -0.005, 0.005, 0.01, 0.02):
dur_only = -mod * dy
combined = approx_pct_change(mod, conv, dy)
actual = bond_price(face, cpn, ytm + dy, years) / p0 - 1
print(f"{dy:+.3f} {dur_only:+.5f} {combined:+.5f} {actual:+.5f}")Run it and look at the gap between each estimate and the actual column. The gap grows with the size of the yield move. The combined column stays much closer than duration alone, and the improvement is largest for the 200 bp case.
Using effective measures
For bonds with embedded options, cash flows change when rates change, so you cannot compute duration and convexity from fixed cash flows. Reprice the bond after a small parallel shift down and up in the benchmark curve and use effective measures:
def effective_measures(p0, p_down, p_up, dy):
"""p_down is the price after yields fall by dy, p_up after yields rise by dy."""
eff_duration = (p_down - p_up) / (2 * p0 * dy)
eff_convexity = (p_down + p_up - 2 * p0) / (p0 * dy ** 2)
return eff_duration, eff_convexity
# Illustrative prices for a callable bond with a 25 bp shift
print(effective_measures(100.0, 100.60, 99.00, 0.0025))You then insert effective duration and effective convexity into the same formula. A callable bond can have negative effective convexity near the call price. The convexity term then reduces the estimate in both directions. This is the main case where the "convexity always helps" rule fails.
Dollar version
Money duration and money convexity apply the same logic to a currency amount. Multiply the percentage estimate by the full price to get a currency change. For the bond above, a 100 bp rise gives an estimated change of −2.6993% × 102.7751 ≈ −2.774 per 100 of par. The actual change is −2.7751. For a position, scale this by the par amount held.
Common errors
- Forgetting the ½ in front of the convexity term.
- Using dy in basis points or percent instead of decimals, which inflates the convexity term by a factor of 10,000 or 100.
- Subtracting the convexity term when yields rise. It is always added, because dy² is positive.
- Applying Macaulay duration instead of modified duration. Macaulay is in years and does not give price sensitivity directly.
- Using the formula for a callable or prepayable bond with the standard (non-effective) measures.
Exercise
A bond has modified duration 7.2 and convexity 68. Yields rise by 50 bp. Estimate the percentage price change using duration alone and then using duration plus convexity. Explain why the second answer is less negative.
Show answer
Duration alone: −7.2 × 0.005 = −3.600%. Convexity term: ½ × 68 × 0.005² = 0.5 × 68 × 0.000025 = +0.085%. Combined: −3.600% + 0.085% = −3.515%. The second answer is less negative because the price-yield curve is convex. The tangent line used by duration lies below the true curve, so duration alone overstates the price decline when yields rise.
Exercise
The same bond's yield now falls by 50 bp. Estimate the percentage price change with duration plus convexity. Is the convexity term added or subtracted, and why?
Show answer
Duration term: −7.2 × (−0.005) = +3.600%. Convexity term: ½ × 68 × (−0.005)² = +0.085%. Combined: +3.685%. The convexity term is added because dy² is positive regardless of the direction of the yield change. It adds to gains when yields fall and reduces losses when yields rise.
Exercise
A callable bond has effective duration 4.0 and effective convexity −30. Yields fall by 100 bp. Estimate the percentage price change and say what the negative convexity tells you.
Show answer
Duration term: −4.0 × (−0.01) = +4.000%. Convexity term: ½ × (−30) × 0.0001 = −0.150%. Combined: +3.850%. Negative convexity means the price gain is smaller than duration alone predicts. The issuer is more likely to call the bond as yields fall, which caps the price rise.