Historical curve laboratory · · QuantLib / NSS / PCA

DV01 is a line.
Risk has a shape.

A parallel-rate hedge can miss a curve twist. Explore that blind spot, then move four points on a Treasury zero curve and reprice a hypothetical bond portfolio.

Read the Chinese research brief · Source-linked inputs, hypothetical bonds, reproducible results.

Next: give the hedge a budget → Compare constrained CVaR hedges with a sealed-year evaluation.

01 / The counterexample

Parallel DV01 ≈ zero. Curve risk remains.

A separate duration-neutral pair

Combined parallel DV01 · USD per basis point

A hypothetical long 10Y / short 2Y illustration, separate from the long-only portfolio below. Face exposures and financing assumptions matter.

2Y −25bp / 10Y +25bp

Full revaluation P&L · USD

A one-number parallel sensitivity cancels. The two legs still react differently to a twist.

02 / Move the curve

Four rates. One complete revaluation.

Long-only ladder: USD 2.5m face each in hypothetical 2Y, 5Y, 10Y and 30Y bonds, 4% annual coupons paid semiannually. These are model instruments, not traded securities.

Spot-rate shifts · basis points

1 bp = 0.01 percentage point. Shifts interpolate between keys and stay constant outside the endpoint keys.

Estimated Treasury zero curve

Base curveYour scenario

Percent, continuously compounded. The chart connects sampled tenors; cash flows use NSS rates at their actual discount times.

BASE MODEL VALUE · USD
FULL REVALUATION P&L
LINEAR DV01 ESTIMATE
FULL − LINEAR
BondModel value · USDDuration · years2Y DV015Y DV0110Y DV0130Y DV01Your P&L · USD

DV01 columns are USD loss per +1bp at each key. Full revaluation discounts every cash flow; the linear estimate omits curvature and cross-key interactions. Changing time, credit, liquidity, financing and reinvestment are outside this rate-only experiment.

03 / Use observed curve changes

Replay 756 historical curve moves.

99% HISTORICAL VaR · USD
99% EXPECTED SHORTFALL · USD
ES 95% RESAMPLE INTERVAL
WORST REPLAYED LOSS · USD

Current cash flows stay fixed while historical changes are applied to the valuation-date model curve. This is a historical scenario distribution, not a portfolio-return backtest. The interval uses 300 moving-block resamples of 20 observations; it measures sensitivity to this sample.

04 / Learn the curve's patterns

Fit before 2025. Evaluate on 2025.

PC1PC2PC3
Held-out reconstruction energy

PCA uses changes in basis points across eight tenors, without standardizing each tenor. The three patterns are learned; they are not assumed to be a parallel shift, slope and curvature.

The underlying source is a revised historical vintage. This split checks a research protocol; it does not establish historical publication-time availability.

05 / Inspect the evidence

Take the inputs and results with you.

Source: Federal Reserve Board staff research estimates of the off-the-run nominal Treasury curve, Gürkaynak–Sack–Wright. The frozen file was acquired through the pinned public mirror recorded in the source ledger. These are fitted estimates, not raw traded bond quotes or an official statistical release.

Primary method and data page · Upstream NSS implementation · luphord · QuantLib