Constrained hedging · QuantLib / sparse CVaR / HiGHS

Risk has a shape.
Give the hedge a budget.

Keep a $10m seven-year bond. Choose how much hedge face you can add. See the optimizer's trades, the risk it leaves behind, and what happens in a separate year.

A historical, hypothetical USD rate-risk experiment. 中文研究说明

01 / Freeze the instruments31 December 20247Y target; 2Y / 5Y / 10Y / 30Y hedges
02 / Fit the hedge
03 / Open the sealed year2025 changes · no refit
01 / Allocate scarce hedge capacity

How much gross face can you add?

The original $10m target stays in place. A separate optimization at each budget minimizes training 97.5% expected shortfall plus entry cost. Each hedge maturity is capped at $3m face; buys and sells are allowed.

UNHEDGED 2025 ES · USD
HEDGED 2025 ES · USD
ENTRY COST · USD
2025 ES REDUCTION · BEFORE COST

ES is the average loss in the worst 2.5% of this scenario sample, using exact empirical tail mass. Entry cost is paid once at 2bp of traded face. The net-of-entry scenario comparison adds that cost once; it is not charged every day.

The optimizer's trades

Hypothetical bondDirectionFace · USD

Target coupon: 3.5%; hedge coupons: 4%. All are semiannual model bonds. Short-sale proceeds are recorded at model value; funding, borrow availability, margin and collateral are excluded.

Every budget, the same research split

Training ES + entry2025 ES + entry

The 2025 curve is opened after the weights are fixed. Select budgets to inspect the tradeoff; evaluation results are not part of the optimization objective.

02 / Inspect what remains

Lower tail loss still leaves curve-shape exposure.

Position2Y DV01 · USD5Y DV01 · USD10Y DV01 · USD30Y DV01 · USD

DV01 is loss per +1bp at one key, with linearly interpolated zero-rate shifts. Negative values are gains under that local upward move. The optimizer uses full historical cash-flow revaluation rather than this linear approximation.

Stress the selected hedge yourself

Your stress · full revaluation P&L

Original target

Target + selected hedge · before entry cost

A hedge chosen for historical tail risk can perform worse for a particular custom twist. These controls reprice the fixed trades; they do not refit the hedge.

03 / Reproduce the decision

A solver answer you can check.

The source is the same pinned set of 2,499 Federal Reserve staff Treasury-curve estimates as the original laboratory. Inspect the frozen curve inputs and source ledger.

Both training and 2025 changes are applied to the fixed 2024-12-31 cash flows and base curve. This evaluates a scenario distribution, not realized returns or a trading backtest. The source vintage contains revisions and does not establish historical publication-time availability. Portfolio choice, budgets and cost assumptions are illustrative; tail estimates have sample uncertainty.