Skip to content
Projects / Phase 4.2 · Capstones

Treasury curve risk and hedge validation

This project asks a rates risk manager's question: should a long-duration bond book be hedged with a parallel (10-year DV01-matched) hedge or with a constrained key-rate hedge, and how often should the hedge be reset? The book and hedge bonds are hypothetical, valued on the Federal Reserve's fitted GSW Treasury curve (daily, 1961–2026). The study replicates GSW (2007), Litterman–Scheinkman (1991) and Ho (1992). It then replays 94 monthly hedge reviews with daily revaluation, P&L attribution, an append-only decision ledger, stress scenarios and labelled injected failures.

Background

Banks, pension funds and asset managers hold bond books whose value moves every day with Treasury yields. The first measure of that risk is DV01, the dollar change for a one-basis-point move, and the simplest hedge offsets it with a single bond. The yield curve rarely moves in parallel, though. It also steepens, flattens and bends, and a hedge matched only on total duration leaves that slope and curvature risk in the book.

Key-rate durations split the risk by maturity, so a hedge can match it point by point along the curve. Every adjustment costs money, positions drift as bonds age, and a bad curve input can turn a sound hedge into the wrong trade. Deciding how to hedge and how often to reset is everyday work on a rates desk.

Why build it

This capstone project is written for rates risk and rates quant roles, drawn from public job descriptions that ask for curve modelling, desk communication and position discussions in Python. It puts a head of rates risk’s question to a long-duration Treasury book: should it be hedged with one duration-matched bond or across key rates, and how often should the hedge be reset?

The learner values the book on the Federal Reserve’s fitted Treasury curve and replays years of month-end hedge reviews, explaining daily P&L and checking each decision against what happened next. It goes further than the usual yield curve hedging exercise by adding stress scenarios and testing what a corrupt curve does to the hedge.

Headline result

A hedge validation for a USD 1.1bn bond book. A key-rate hedge in 2/5/10/30-year bonds, reset only when net DV01 drifts beyond the 5% mandate, cut daily residual P&L volatility to USD 876k against USD 1,003k for a parallel duration hedge over 2019–2026.

Figures

  • Rolling 63-day standard deviation and cumulative curve-move P&L for four hedge policies on a Treasury book, 2019–2026
    A key-rate hedge left USD 876k daily residual sd against USD 1,003k for a 10-year duration hedge, at under a quarter of the cost.
  • Level, slope and curvature loadings of daily zero-yield changes by maturity, and each factor’s variance share by period
    Three factors explain 97.7–98.9% of curve moves in every period; the slope share rose to 13.6% in 2019–2026, the risk a parallel hedge leaves behind.
  • Scenario P&L of four hedge policies on 18 Sep 2026 positions under factor-shaped shocks and historical episodes
    The duration hedge loses USD 2.6m in a 50 bp steepener; key-rate hedges lose 1.9–3.8m on a level rise and 7.5–9.0m replaying Lehman.
  • Value gap between gate-off and clean runs for two hedge policies around a corrupt June 2021 curve
    Without the quality gate, a corrupt month-end curve produced hedges 27–60 times too small, leaving the book close to unhedged for a month.

Data used

  • Federal Reserve Gürkaynak–Sack–Wright fitted Treasury curve, 1961–2026
  • FRED effective fed funds rate and 2- and 10-year constant-maturity yields

Topics covered

  • Treasury yield curve hedging
  • Key-rate duration and DV01
  • Level, slope and curvature factors
  • Hedge rebalancing and transaction costs
  • Daily P&L attribution
  • Rates stress testing
  • Federal Reserve fitted Treasury curve data
  • Rates quant project

Members open the full write-up, notebook, tested code and data in the project reader.