Government bond relative value across six markets
A research engine and live terminal for US, German, French, UK, Japanese and Polish yield curves - curve fitting, DV01-neutral trades, carry, roll-down and scenarios - with backtests that report what did not work.
- Curve fits judged out of sample
- 5,608
- Signals clearing a multiple-testing bar
- 1 of 36: the US swap spread
- Curve-slope mean reversion, out of sample
- Lost money in all six markets
- Browser engine vs Python
- 53 of 53 checks match
- Python
- JavaScript

Relative-value traders in government bonds look for points on a curve, or spreads between curves, that are cheap or rich once risk is accounted for. I built the tools for that - curve models, risk, trade construction, a scanner and a backtester - for six markets, and tested which of the classic signals would have made money after costs and out of sample.
The terminal below runs the same engine in your browser. Pick a market and a week, fit the curve with five models, compare it with any earlier week, then build a steepener, flattener, butterfly or cross-country spread at a target DV01 and see its carry, roll-down, key-rate risk and profit or loss under hypothetical, statistical and historical shocks. Every number is computed live from weekly official data; nothing is a static illustration.
Loading the terminal...
What I found #
| Question | Result |
|---|---|
| Which curve model fits best? | Out of sample (each maturity left out and predicted), Nelson-Siegel-Svensson: 6.3 bp in the US, 3.3 bp in France, 4.5 bp for Polish bonds. In Japan, where every maturity from 1 to 10 years is published, a cubic spline is best (2.6 bp). Nelson-Siegel is worst in the US, France and Japan. The smoothing spline adds the least day-to-day noise at unobserved maturities in all 12 market-regime windows tested. |
| What moves curves? | Level explains 80-90% of daily changes since 2000, slope 8-13%, curvature 1-3%. Level and slope keep the same shape across two-year windows; curvature does not, so a curvature trade estimated in one period can carry level or slope risk in the next. |
| Does fading curve and butterfly dislocations pay? | No. Fading extreme 2s10s slopes lost money out of sample in all six markets (walk-forward Sharpe ratios from -0.28 to -0.52). Butterflies and cross-country 10-year spreads were flat to negative after costs, weighting butterflies by principal components did not help, and Polish trades did not cover the bid/offer measured in the official fixing. |
| Did anything survive? | One of 36 walk-forward tests clears a multiple-testing bar: mean reversion of the US 10-year swap spread, 27 bp per unit of DV01 a year, Sharpe 0.50, t-statistic 3.8 (2004-2016, on discontinued LIBOR swap rates). Ten of the twelve results with a t-statistic beyond 2 are reliable losses. |
France versus Poland #
The case study compares two borrowers in different currencies under different central banks: France with much higher debt (about 120% of GDP against 77% in 2026, OECD estimates), Poland with the larger deficit (6.9% against 5.0% of GDP) and the faster-rising debt ratio. On 20 November 2026 the Polish 10-year yield was 136 bp above the French one, close to its five-year low of 130 bp. Hedged into euros at the short-rate differential, the Polish bond yielded only 5 bp more. Weekly Polish and French 10-year changes moved with a beta of 0.96 and a correlation of 0.65. None of the candidate trades - 2-, 5- and 10-year spreads and a curve box - earned a reliable return historically, and for the static versions the assumed cost of rolling Polish bonds decided the sign. The study lays out the evidence and what would have to be true for either side; it makes no call.
Data #
Every yield comes from an official publisher, and each is labelled in the terminal: the U.S. Treasury par curve, the Bundesbank and Bank of England fitted curves, the Banque de France constant-maturity OAT yields, Japan’s Ministry of Finance yields, and the BondSpot fixing of Polish government bonds, to which I fit a curve every week. Macro inputs come from the BIS, OECD, ECB and New York Fed. Conventions were checked in the data rather than assumed: the Bundesbank, Fed and ECB yields reproduce from their published parameters only with continuous compounding, and while Bank Rate sat at 5.25% the Bank of England’s one-month OIS rate averaged 5.19%, which fits continuous compounding of an overnight rate a few basis points below Bank Rate (an annual convention would read about 5.33%). Raw Polish fixings and vendor series (ICE swap rates, Moody’s yields) are not redistributed.
How it is built #
A Python package (firv) with curve models (Nelson-Siegel, Svensson, smoothing and cubic splines, bootstrapping), bond and swap analytics, key-rate risk, carry and roll-down, scenario revaluation, trade constructors with DV01, beta, regression and principal-component hedges, a relative-value scanner and a walk-forward backtester with transaction and roll costs. Trades are sized by yield DV01, as traders quote them; risk is aggregated on the zero curve. The terminal is a JavaScript port of the engine that matches the Python on all 53 reference values, and 36 Python tests cover the analytics and the data.
Limits #
- Backtests use constant-maturity yields, not individual bonds: repo specials, on-the-run premia and auction cycles are ignored, and transaction costs outside Poland are assumptions (shown at zero, one and two times).
- No free Treasury futures prices could be used, so the futures-basis module (conversion factors, net basis, implied repo) is analytics only.
- The Polish curve stops at about 10 years in recent years, because the fixing has had no longer fixed-rate bonds; the 10-year point is extrapolated by up to a year.
- Swap data are LIBOR swaps that end in 2016; UK swap spreads use the Bank of England’s SONIA OIS curve.