Price a coupon or zero-coupon bond, measure Macaulay and modified duration, convexity and DV01, and compare exact repricing with the duration and convexity estimates.
Macaulay, modified and effective duration, convexity, DV01 and yield-shock repricing for coupon and zero-coupon bonds
Yield shock for repricing (bp)
Effective-measure bump h (bp)
Bond price (full, on a coupon date)–
Macaulay duration–
PV-weighted average time to cash flows
Modified duration · DV01–
Convexity–
Yield shock
1 · Exact repricing–
Change
2 · Duration only: −MD·Δy–
Estimate
Error vs exact
3 · Duration + convexity–
Estimate
Error vs exact
Analytical vs effective (finite-difference) measures
On an option-free bond, bumping its own yield reproduces modified duration and convexity. For callable bonds and MBS the effective measures, from a valuation model, are the ones to use.
Whiteboard working
Exact price vs duration tangent vs duration + convexity
Yield shocks from −300 bp to +300 bp
Exact priceDuration only (tangent)Duration + convexityBase / selected shock
The straight tangent lies below the curve on both sides: for an option-free bond, duration alone understates the price after a fall in yield and overstates the loss after a rise. The convexity term closes most of the gap.
Shock table
Where the value sits: PV weight of each payment
Cash-flow schedule
Σ(t × weight) is the Macaulay duration; the last column sums to the convexity numerator.
PriceP = Σ CFk ÷ (1 + y/m)k, with coupon per period F × c ÷ m and k = 1 … N·m. Settlement on a coupon date, so full price = clean price.
Macaulay durationDmac = Σ (k/m) × PVk ÷ P, in years. For a zero, Dmac = maturity; for a coupon bond it is shorter.
Modified duration and DV01MD = Dmac ÷ (1 + y/m). ΔP/P ≈ −MD × Δy. DV01 = MD × P × 0.0001: the rupee change for a 1 bp move.
Second-order estimateΔP/P ≈ −MD Δy + ½ CX (Δy)². The ½ belongs in the Taylor estimate, not in the definition of CX.
Effective measuresED = (P−h − P+h) ÷ (2P₀h); EC = (P−h + P+h − 2P₀) ÷ (P₀h²). Reprice the instrument at a parallel bump h.
Prof. V. Ravichandran · The Mountain Path Academy
How to use this tool: start with Bond A from the article, then change the coupon, yield, maturity or frequency and watch duration and convexity respond. Compare the three repricing answers for small and large shocks. The theory is in Macaulay Duration, Modified Duration & Convexity →