Duration and Convexity¶
Duration and convexity are fundamental measures of interest rate sensitivity for fixed-income portfolios. They quantify how bond prices respond to yield changes, serving as the interest rate analogs of delta and gamma in equity options.
Motivation¶
The Problem¶
How does a bond price change when interest rates move?
For a zero-coupon bond:
Taking differentials:
So:
The time to maturity \(T\) measures sensitivity. For coupon bonds, this generalizes to duration.
Macaulay Duration¶
Definition¶
Macaulay duration is the weighted average time to receive cashflows:
where: - \(c_i\): cashflow at time \(t_i\) - \(y\): continuously compounded yield - \(P\): bond price
Interpretation¶
Macaulay duration answers: "What is the effective maturity of this bond, accounting for all cashflows?"
For a zero-coupon bond: \(D_{\text{Mac}} = T\) (maturity)
For a coupon bond: \(D_{\text{Mac}} < T\) (earlier cashflows reduce effective maturity)
Example¶
A 3-year bond with 5% annual coupons, par value 100, priced at par (y = 5%):
| Year | Cashflow | PV | Weight | Contribution |
|---|---|---|---|---|
| 1 | 5 | 4.76 | 4.76% | 0.0476 |
| 2 | 5 | 4.54 | 4.54% | 0.0907 |
| 3 | 105 | 90.70 | 90.70% | 2.7211 |
| Total | 100 | 2.86 years |
Modified Duration¶
Definition¶
Modified duration directly measures price sensitivity:
For continuously compounded yields:
For annually compounded yields (\(y_a\)):
Price Sensitivity Formula¶
This linear approximation works well for small yield changes.
Example¶
If \(D_{\text{mod}} = 5\) and yields increase by 50 bps (0.5%):
A $1M bond portfolio loses approximately $25,000.
Dollar Duration (DV01)¶
Definition¶
Dollar duration (or DV01, PV01) is the absolute price change per 1 basis point yield change:
Interpretation¶
DV01 answers: "How many dollars do I gain/lose per basis point?"
Example¶
A $10M position with \(D_{\text{mod}} = 7\):
A 10 bp rate increase costs $70,000.
Convexity¶
Motivation¶
Duration provides a linear approximation. For large yield changes, the curvature of the price-yield relationship matters.
Definition¶
Convexity is the second derivative of price with respect to yield:
For a bond with cashflows \(c_i\) at times \(t_i\):
Second-Order Approximation¶
Including convexity:
Convexity Effect¶
Since \(C > 0\) for standard bonds: - When yields rise, price falls less than duration predicts - When yields fall, price rises more than duration predicts
Convexity is always beneficial for long bond positions!
Duration of a Portfolio¶
Linearity¶
Portfolio duration is the weighted average of component durations:
where \(w_i = \frac{P_i}{\sum_j P_j}\) is the weight of bond \(i\).
Dollar Duration Additivity¶
Total DV01 is the sum of component DV01s:
Key Rate Duration¶
Motivation¶
Duration assumes parallel shifts in the yield curve. In reality, curves steepen, flatten, or twist.
Definition¶
Key rate duration (KRD) measures sensitivity to a shift at a specific maturity:
where \(y_k\) is the yield at key rate \(k\).
Example Key Rates¶
Typical key rates: 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y
Decomposition¶
The sum of key rate durations equals modified duration (for parallel shift).
Duration of Interest Rate Derivatives¶
Zero-Coupon Bond¶
Floating Rate Note¶
A floater reprices at par at each reset, so effective duration is short.
Interest Rate Swap¶
Payer swap (pay fixed, receive floating):
The floating leg has near-zero duration.
Caps and Floors¶
Duration depends on delta:
For deep ITM caps, duration approaches that of a floater.
Duration Hedging¶
Immunization¶
To protect against parallel yield shifts:
Setting \(D_{\text{target}} = 0\) creates a duration-neutral position.
Hedge Ratio¶
To hedge a position with duration \(D_A\) using an instrument with duration \(D_B\):
Example¶
Hedge a $10M bond portfolio (\(D = 6\)) with 10-year Treasury futures (\(D = 8\), price $100K per contract):
Convexity Hedging¶
Why Hedge Convexity?¶
Duration hedging leaves residual risk from large rate moves. Convexity mismatch creates P&L.
Convexity Matching¶
For full immunization:
Requires at least two hedging instruments.
Convexity Trading¶
- Long convexity: Profits from rate volatility (long options)
- Short convexity: Loses from rate volatility (short options)
Selling convexity (e.g., writing swaptions) generates premium but loses on large moves.
Effective Duration for Non-Linear Instruments¶
Definition¶
For instruments without analytical duration, use numerical effective duration:
Effective Convexity¶
Applications¶
Effective duration is essential for: - Mortgage-backed securities (prepayment optionality) - Callable bonds - Structured products
Duration and Bond Portfolio Management¶
Tracking Error¶
The difference between portfolio and benchmark duration creates tracking error:
Duration Targeting¶
Active managers express views via duration: - Long duration: Expect rates to fall - Short duration: Expect rates to rise
Barbell vs. Bullet¶
| Strategy | Structure | Duration | Convexity |
|---|---|---|---|
| Bullet | Concentrated at target maturity | \(D\) | Lower |
| Barbell | Short and long ends | \(D\) | Higher |
Same duration, different convexity profiles.
Limitations of Duration¶
Non-Parallel Shifts¶
Duration assumes parallel curve moves. Real curves: - Steepen/flatten - Butterfly (concave/convex) - Twist
Solution: Key rate durations, principal component analysis
Large Yield Changes¶
Linear approximation fails for large moves.
Solution: Include convexity, use full repricing
Optionality¶
Callable bonds, MBS have negative convexity when rates fall.
Solution: Effective duration, option-adjusted duration
Key Takeaways¶
- Macaulay duration: Weighted average time to cashflows
- Modified duration: \(-\frac{1}{P}\frac{dP}{dy}\), measures price sensitivity
- DV01: Dollar change per basis point
- Convexity: Second derivative; positive for standard bonds
- Price change: \(\frac{\Delta P}{P} \approx -D \cdot \Delta y + \frac{1}{2}C \cdot (\Delta y)^2\)
- Key rate duration: Sensitivity to specific curve points
- Duration hedging: Match portfolio duration to target
- Convexity: Always beneficial for long positions
Further Reading¶
- Fabozzi, Fixed Income Analysis, Chapters on Duration
- Tuckman & Serrat, Fixed Income Securities, Chapters 4-6
- Hull, Options, Futures, and Other Derivatives, Chapter 4
Exercises¶
Exercise 1. A 5-year bond pays a 6\% annual coupon on a face value of $100 and is priced to yield 5\% (continuously compounded). Compute the Macaulay duration, modified duration, and convexity. Using the second-order approximation, estimate the percentage price change for a 100 bp increase in yield. Compare with the exact repriced value.
Solution to Exercise 1
Given: 5-year bond, 6% annual coupon, face value $100, continuously compounded yield \(y = 5\%\).
Step 1: Bond price.
Step 2: Macaulay duration.
Step 3: Modified duration. For continuously compounded yields, \(D_{\text{mod}} = D_{\text{Mac}} = 4.476\) years.
Step 4: Convexity.
Step 5: Price change for +100 bps (\(\Delta y = 0.01\)).
Second-order approximation:
Exact repriced value at \(y = 6\%\):
Exact change: \(99.2311 - 103.768 = -4.537\), or \(-4.372\%\).
The second-order approximation (\(-4.369\%\)) is very close to the exact result (\(-4.372\%\)), with an error of only 0.003%.
Exercise 2. Prove that for a zero-coupon bond with maturity \(T\) and continuously compounded yield \(y\), the Macaulay duration equals \(T\), the modified duration equals \(T\), and the convexity equals \(T^2\). Explain intuitively why a zero-coupon bond has the highest duration among all bonds with the same maturity.
Solution to Exercise 2
For a zero-coupon bond with maturity \(T\): \(P = e^{-yT}\). There is a single cashflow of 1 at time \(T\).
Macaulay duration:
Modified duration (continuously compounded):
Convexity:
Intuition for highest duration: Consider a coupon bond and a zero-coupon bond with the same maturity \(T\). The coupon bond pays intermediate cashflows at \(t_1 < t_2 < \cdots < T\), so its weighted average time:
because the weights are positive and some cashflows arrive before \(T\). The zero-coupon bond has all its weight at \(T\), giving \(D_{\text{Mac}} = T\).
Therefore, among all bonds with maturity \(T\) (and positive coupons), the zero-coupon bond has the maximum duration of \(T\). Any coupon payment before maturity reduces the effective maturity by pulling the weighted average closer to the present. This means zero-coupon bonds are the most sensitive to yield changes among bonds of the same maturity.
Exercise 3. A portfolio consists of two bonds: Bond A with market value $5M and modified duration 3.2, and Bond B with market value $8M and modified duration 7.5. Compute the portfolio's modified duration and DV01. A trader wants to reduce the portfolio duration to 4.0 by selling Bond B and reinvesting in a money market fund (duration \(\approx 0\)). How much of Bond B must be sold?
Solution to Exercise 3
Portfolio modified duration:
Portfolio DV01:
(Equivalently: DV01\(_A\) + DV01\(_B\) = \(3.2 \times 5M \times 0.0001 + 7.5 \times 8M \times 0.0001 = 1600 + 6000 = \$7{,}600\).)
To reduce portfolio duration to 4.0:
Let \(x\) be the amount of Bond B sold (and reinvested in money market at duration 0). After selling \(x\) of Bond B:
- Bond A: $5M, duration 3.2
- Bond B: $(8M \(-\) \(x\)), duration 7.5
- Money market: $\(x\), duration 0
- Total: $13M (unchanged)
New portfolio duration:
The trader must sell $3.2M of Bond B and reinvest in the money market fund.
Exercise 4. Consider two portfolios with the same modified duration of 6 years: a "bullet" portfolio consisting of a single 6-year zero-coupon bond, and a "barbell" portfolio consisting of equal market-value positions in 2-year and 10-year zero-coupon bonds. Compute the convexity of each portfolio. Which portfolio benefits more from a large rate move, and why?
Solution to Exercise 4
Bullet portfolio: A single 6-year zero-coupon bond.
Barbell portfolio: Equal market-value positions ($0.50 each per $1 total) in 2-year and 10-year zero-coupon bonds.
Duration:
Convexity (since convexity is \(T^2\) for zero-coupon bonds):
Comparison: \(C_{\text{barbell}} = 52 > 36 = C_{\text{bullet}}\).
Which benefits more from a large rate move? The barbell portfolio benefits more. Using the second-order approximation:
Both portfolios have the same duration (first-order effect), so the difference in percentage price change is:
This is always positive regardless of the direction of the rate move. For a 100 bp move: \(8 \times (0.01)^2 = 0.0008 = 0.08\%\) advantage for the barbell.
Why: The barbell has higher convexity because it spreads its cashflows across a wider range of maturities. The \(T^2\) weighting in convexity means extreme maturities contribute disproportionately. The barbell gains more from rate decreases (the 10Y bond rallies sharply) and loses less from rate increases (the 2Y bond is less affected), compared to the bullet. Higher convexity is always beneficial for a long position, assuming no cost difference.
Exercise 5. A $50M bond portfolio has modified duration 5.5 and convexity 42. Treasury bond futures have a modified duration of 6.8, priced at $98,000 per contract. (a) How many futures contracts are needed to duration-hedge the portfolio? (b) If yields subsequently move by \(-75\) bps, compute the portfolio P\&L using both the linear (duration-only) and quadratic (duration + convexity) approximations.
Solution to Exercise 5
Given: Portfolio: $50M, \(D = 5.5\), \(C = 42\). Futures: \(D_f = 6.8\), price $98,000/contract.
(a) Number of futures contracts for duration hedge:
Round to \(-413\) contracts (short 413 futures).
(b) P&L for \(\Delta y = -0.0075\) (\(-75\) bps):
Linear approximation (duration only):
But the portfolio is hedged with short futures, whose P&L (from the portfolio holder's perspective) is:
Net P&L (linear): \(\approx 2{,}062{,}500 - 2{,}063{,}142 \approx -\$642\) (approximately zero, as expected from a duration hedge).
Quadratic approximation (duration + convexity) for the portfolio alone (unhedged):
The convexity term adds $59,063 of additional gain. Since rates fell, the convexity effect (always positive for long positions) increases the bond portfolio's gain beyond what duration alone predicts. If the futures have lower convexity, this creates a positive convexity P&L for the hedged portfolio.
Exercise 6. A callable bond has an effective duration of 3.2 at a yield of 5\%, computed via the numerical formula with \(\Delta y = 25\) bps. If the bond price is $102.50 at 5\%, $103.80 at 4.75\%, and $101.35 at 5.25\%, verify the effective duration calculation. Compute the effective convexity. Is the convexity positive or negative, and what does this imply about the callable bond's price behavior?
Solution to Exercise 6
Given: Callable bond price at \(y = 5\%\): \(P = 102.50\), at \(y = 4.75\%\): \(P^- = 103.80\), at \(y = 5.25\%\): \(P^+ = 101.35\), \(\Delta y = 0.0025\).
Effective duration:
Wait --- effective duration should be positive. The formula has a negative sign to convert the negative \(dP/dy\) relationship into a positive number:
This matches the stated effective duration of 3.2 only if we use the signed formula. Let me recheck: the problem says \(D_{\text{eff}} = 3.2\). With the given prices, we get 4.78. The problem asks us to "verify" with \(\Delta y = 25\) bps, and the answer is:
(The stated value of 3.2 may refer to a different \(\Delta y\) or different prices; the numerical formula with the given data yields 4.78.)
Effective convexity:
Wait, let me recheck: \(P^+ + P^- = 101.35 + 103.80 = 205.15\) and \(2P = 205.00\), so the numerator is \(0.15 > 0\).
The effective convexity is positive (\(C_{\text{eff}} \approx 234\)).
However, for a callable bond near or below the call price, we would typically expect negative convexity. If the prices were instead such that the upward price move (\(P^-\) for yield decrease) were limited by the call feature, we might see \(P^- + P^+ < 2P\), giving negative convexity. With the given data, the convexity is positive, meaning the bond is not yet significantly affected by the call feature at this yield level (i.e., the call is out of the money).
Implications: Positive convexity means the callable bond behaves similarly to a non-callable bond in this yield range --- it gains more from rate decreases than it loses from rate increases. If rates were to fall further toward the call level, the convexity would turn negative, and the price would be capped near the call price.
Exercise 7. The tracking error of a portfolio relative to a benchmark is approximately \(|D_{\text{port}} - D_{\text{bench}}| \times \sigma_y\). If the benchmark has a duration of 6.0 years and annual yield volatility is 80 bps, what portfolio duration range keeps the annualized tracking error below 50 bps? Discuss why duration matching alone is insufficient for managing risk against a benchmark with a different convexity profile.
Solution to Exercise 7
Given: \(D_{\text{bench}} = 6.0\), \(\sigma_y = 80\) bps \(= 0.0080\).
Tracking error constraint:
Therefore:
The portfolio duration must be within [5.375, 6.625] years to keep annualized tracking error below 50 bps.
Why duration matching alone is insufficient:
Duration matching neutralizes the portfolio's exposure to parallel yield shifts (the first principal component). However, if the portfolio and benchmark have different convexity profiles, residual risk arises from:
-
Large yield moves: The second-order term \(\frac{1}{2}(C_{\text{port}} - C_{\text{bench}})(\Delta y)^2\) creates tracking error even when durations match. If the portfolio is a barbell and the benchmark is a bullet (both with duration 6), the portfolio has higher convexity and outperforms in volatile markets but underperforms when rates are stable (due to the cost of carrying the convexity, e.g., lower yield).
-
Non-parallel curve moves: Duration matching protects only against level shifts. If the portfolio and benchmark have different key rate duration profiles (e.g., the portfolio concentrates exposure at the 2Y and 30Y points while the benchmark concentrates at the 10Y point), a curve steepening or butterfly move creates tracking error that duration matching cannot prevent.
-
Convexity mismatch and options: If the benchmark contains callable bonds (negative convexity) and the portfolio contains non-callable bonds (positive convexity), the two will respond very differently to rate moves even with matched durations.
To properly manage tracking error, one should match both duration and convexity (or, better, match the full key rate duration profile), and consider higher-order risk measures when the portfolio contains optionality.