QQuant, Built

Act III · Derivatives (Q)

Part 19 of 43

Term-Structure Models

Master'sstarts at this level60 min of film 16 chaptersprerequisites: Part 5, Part 18

How do you price an option on an interest rate when the thing you discount with is the thing that is random?

In 1994 the Federal Reserve raised rates and bond portfolios built on a static curve lost billions. A model of the curve's motion is needed. The part goes up the ladder: short-rate models (Vasicek, Cox-Ingersoll-Ross) whose bond prices are exponential-affine, Hull-White fitted to today's curve, and Heath-Jarrow-Morton, where no arbitrage fixes the drift of every forward rate. Caps and swaptions are priced by changing numeraire; negative rates forced the market back to Bachelier's normal model. Bermudan swaptions, the multi-curve world after 2008, bond risk premia and the negative convexity of mortgages complete the desk.

What you need. Parts 5 and 18.

What you will be able to do

Undergraduate

  • Explain why a model of the whole curve is needed to price an interest-rate option.

Master's

  • Price zero-coupon bonds under Vasicek, CIR and Hull-White, and calibrate Hull-White to a curve.
  • Price caps, floors and swaptions with Black's and Bachelier's formulas under the right measure; explain the SABR smile for rates and the multi-curve framework.

PhD

  • Derive the HJM drift condition; set up the LIBOR and SOFR market models; price Bermudan swaptions by regression; treat the zero lower bound with a shadow rate.

Industry

  • Explain mortgage prepayment and negative convexity, and what convexity hedging does to the rates market.

Contents

Each chapter has a home level. Choose a track to see what to read and watch: Undergraduate 6 min · Master's 43 min · PhD 60 min · Industry 10 min.

  1. 0The bond massacreUndergraduate3 min
  2. 1Short-rate models: Vasicek and CIRMaster's3 min
  3. 2Affine term structuresMaster's4 min
  4. 3Hull-White: fitting today's curveMaster's4 min
  5. 4Heath-Jarrow-Morton: the drift conditionPhD3 min
  6. 5Caps, floors and swaptionsMaster's4 min
  7. 6Negative rates and BachelierMaster's3 min
  8. 7SABR for ratesMaster's4 min
  9. 8Market models: LIBOR and SOFRPhD3 min
  10. 9Bermudan swaptionsPhD5 min
  11. 10Multi-curve and collateralMaster's3 min
  12. 11Bond risk premiaMaster's3 min
  13. 12Mortgages and negative convexityMaster's5 min
  14. 13Rule 19: the options desk for ratesIndustry3 min
  15. For the researcher: the zero lower bound and the shadow ratePhD6 min
  16. Recap, desk questions, problemsAll tracks3 min

Also on this page: Lecture · Key results · Try it · Lab · Problems · Reading · 中文 · Build the film.

Lecture

The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film. A dashed box stands for a number the film computes when it is rendered (hover over it to see what is computed); the README's figures for each chapter, where it lists them, follow the chapter's text.

The bond massacreUndergraduate3 min

Part eighteen built the curve as a snapshot; now it moves, at random, and the options on it get prices.

February 1994. The Federal Reserve raised rates for the first time in five years, by a quarter of a point. Then six more times, to six percent by February 1995. The two-year yield rose points in 1994 and the ten-year . Bond prices fell across the world; that October a Fortune article called it the great bond massacre.

Orange County, California, shows how leverage amplifies rate risk. Its pools held about billion dollars of securities against billion of participant deposits in June 1994, according to the SEC, financed in part through reverse repos. Inverse floaters added exposure because their coupons fall as rates rise. Reported losses were one and a half to one point seven billion dollars; the county filed for bankruptcy on December sixth. Dividing that loss fraction by the saved five-year yield change gives a duration-equivalent of to years. This is a rough parallel-shift illustration, not a measured portfolio duration: the loss and balance-sheet dates differ, and funding costs, nonlinear exposures and liquidation effects also matter. Duration describes a local price response to a specified curve move. To price an option, we also need a joint model for future curves under a pricing measure. Historical path frequencies under the real-world measure answer a different question.

How we got here. In 1976 Fischer Black priced options on futures, the formula still used to quote caps and swaptions. In 1977 Oldrich Vasicek wrote the short rate as a mean-reverting random walk; in 1985 Cox, Ingersoll and Ross kept it positive; in 1986 Ho and Lee fitted a model to the whole curve. Farshid Jamshidian priced bond options in such models in 1989; Hull and White generalized Vasicek in 1990; Heath, Jarrow and Morton in 1992 modelled the entire forward curve at once. Then 1994 tested them all. In 1996 Duffie and Kan unified the affine models, and in 1997 the LIBOR market model made the market's own Black formulas consistent. In 2001 Longstaff and Schwartz gave callable products a simulation method; in 2002 SABR gave the smile a model; in 2005 Cochrane and Piazzesi found one factor that forecasts bond returns. Then the world changed: two curves after 2008, the European Central Bank's negative rates from 2014, a forward model for SOFR in 2019, and in 2020 options priced in absolute, Bachelier volatility.

The plan, in seven steps: short-rate models, fitted to data; Hull and White, fitted to today's curve; the HJM condition; the market's options and how they are quoted, including at negative rates; market models and callable swaptions; the curves after 2008 and what forecasts bond returns; and mortgages, the largest negatively convex market in the world.

In the House, the rates desk gets its option pricers: every one fitted to the curve built in Part eighteen, and every one checked against a second method: a closed form, a lattice, or a simulation that does not share its code.

1Short-rate models: Vasicek and CIRMaster's3 min

A short-rate model describes the instantaneous interest rate. Vasicek's mean-reverting Gaussian diffusion has pull a, long-run level b, and constant volatility. We must specify whether these are historical or pricing-measure parameters. Its exact transition is normal; equally spaced observations give an autoregression. Normal rates can be negative. CIR replaces constant noise with sigma times the square root of the rate. With positive parameters it stays nonnegative; it need not satisfy Feller to avoid negative values. Starting strictly above zero, the Feller condition, twice a b at least sigma squared, makes zero inaccessible. If that inequality fails, zero can be reached, with the standard CIR boundary behavior. That is a different claim from permitting negative rates.

Before fitting, the original example clips month-end bill discount yields at one basis point. The monthly three-month Treasury bill series is a proxy for the instantaneous rate, not the rate itself; its discount-yield quotation also differs from continuously compounded zero yields. This historical maximum-likelihood fit gives a Vasicek half-life of about years and a long-run level below two percent. The long low-rate regime influences that estimate. CIR gives a similar pull, with a fitted Feller ratio of . That is close to the boundary in parameter space; it does not measure a physical distance from zero, and parameter uncertainty may change the classification. These are descriptive full-sample fits, not option-market calibrations or live forecasts.

How far should we trust that half-life? Run the experiment. Take the fitted Vasicek as the truth, simulate two thousand histories of years each, and fit each one again. The middle nine tenths of the estimates run from about half the true pull to nearly three times it, and their median, , is well above the truth, . In percent of histories the estimate is more than double. On the real data, the interval for the half-life runs from about to years. The level of rates is visible in a few years of data; the speed of their pull needs centuries, because it is learned only from how often the rate comes back.

Now let each model run forward from today's bill rate for ten years. Vasicek's fan spreads quickly and settles around its long-run level; about percent of its paths dip below zero at some point. CIR's fan is squeezed near zero, where its noise dies away. Which is right? Europe and Japan have since shown that rates can go negative; the next chapters keep Gaussian models, and chapter six prices what happens below zero.

Pause on this: with a six-year half-life, how much should a ten-year yield react to a surprise in today's short rate?

2Affine term structuresMaster's4 min

From a short rate to a whole curve: affine term structures. A default-free zero pays one at maturity. Under the money-market pricing measure, its value is the expected exponential discount, subject to the usual integrability conditions. Feynman-Kac gives the displayed pricing equation, with terminal value one. Here the pricing drift is a times b minus r, and the variance is alpha plus beta r. For this admissible affine diffusion, try an exponential-affine price, with A and B zero at zero maturity. The drift and variance being affine is a sufficient structure for this solution; this is not a classification of every possible short-rate model. Matching constants and coefficients of r gives the two Riccati equations. For Vasicek, beta is zero, and B is one minus exponential minus a tau, divided by a. Minus B is the log-price sensitivity to the current short rate.

For this illustration only, put the historical-fit parameters into each model's bond-pricing formula, as if they were pricing parameters. No risk premium is thereby estimated. The three starting rates give rising or falling curves with little freedom to match the market. The solid Vasicek curves approach percent. The dashed CIR curves have their own long-yield limit, which need not be identical. Within each stationary model the effect of today's short rate decays with maturity. In Vasicek, the long yield is b minus sigma squared over twice a squared. Random discounting lowers this limit relative to b; it does not make the two models' limits equal. The next comparison separates historical estimation from pricing calibration.

All those curves at once: the yield surface over today's short rate and maturity. At the front edge, maturity near zero, the yield is the short rate itself, a straight diagonal. Toward the back the surface flattens out: at long maturities the short rate hardly matters. Every curve the model can ever produce is a slice of this sheet, which is its great limitation.

The House solves the Riccati equations numerically for any member of the family, with Vasicek and CIR as special cases. Run it, and the numerical solutions match both closed forms to six decimals.

Fit the same Vasicek family in two different ways. The historical bill-rate fit has long-run level percent. Plugging it into a pricing formula is an illustration that sets aside risk premia. Fitting month-end bond curves instead gives a pricing-measure level of percent. This is an imperfect one-factor least-squares fit, with root-mean-square yield error basis points. Under an equivalent change of measure the instantaneous diffusion coefficient stays the same, while the drift can change. With the convention d W Q equals d W P plus lambda d t, the historical drift minus the pricing drift equals sigma times lambda. The drift gap is not itself the market price of risk, nor the realized return earned by every bondholder. Bond expected excess returns also depend on each bond's diffusion exposure, and these estimates remain model dependent.

In this one-factor affine model, zero yields have positive loadings on the same state shock, so their instantaneous innovations are perfectly positively correlated. That statement does not cover every nonlinear one-factor model or every finite-horizon yield change. In the daily data, the two-year and ten-year yield changes have correlation , with less correlation at more distant maturities. A two-factor Gaussian model gives different maturity loadings to a slow and a fast state. Its fitted one-year versus thirty-year correlation is , against in this sample. These factors are analogous to level and slope; they are not literally the principal components from Part eighteen. A descriptive correlation fit does not establish a stable future law or a full option calibration.

Under the real-world measure the short rate returns to about two percent; under the pricing measure, to about eight. What does the gap pay for, and who earns it?

3Hull-White: fitting today's curveMaster's4 min

Vasicek's curve is whatever its three parameters allow; the market's curve is whatever it is. John Hull and Alan White, in 1990, let the target rate depend on time: one number for every future date. Split the short rate into a Gaussian part that starts at zero and a deterministic shift. Choose the shift so the model reprices every bond in today's curve: it is today's forward rate, plus a convexity term that grows with the horizon. Then every bond, at every future date and state, has a closed form, and so, by Jamshidian's trick in chapter five, do options on them.

What are a and sigma? The curve fixes the shift, not the volatility. One honest way to choose them: make the model's yields as volatile as the real ones. In the model an n-year yield moves by sigma times B over n for each unit shock to the short rate. Fitted to the daily moves of the Fed's curve over 2023 to 2025: sigma percent a year, and almost no mean reversion. The real volatilities have a hump at two to three years that one factor cannot make. A desk would instead calibrate to option prices; the House has no free option quotes, so it uses the curve's own history, and says so.

Fit the same two parameters in other three-year windows, and see how stable they are. In 2004 to 2006, and again since 2023, the volatility of yields falls with maturity, the shape the model is built for. But in 2010 to 2012, and 2019 to 2021, the Fed held the short rate near zero; short yields barely moved while long ones did, and volatility rose with maturity. No positive mean reversion can draw that. The fit runs to its boundary, and the parameter stops meaning anything. A desk recalibrates every day, and a parameter that jumps when the regime changes is a hedge that jumps with it.

Here is that shift against today's forward curve. Near today they agree. Further out the shift climbs above the forwards. Because the discount factor is a convex function of the rates, randomness alone raises bond prices; to reprice the market, the model's average rate must sit higher. With this little mean reversion, by thirty years the gap is several points: a warning that the calibrated model is extrapolating far beyond anything it was fitted to.

These twenty thousand Gaussian state and integrated-rate draws are exact at the sampled dates under the specified Hull-White model; they are not a continuous-path record. Averaging their discount factors reproduces the initial curve with maximum relative sample residual percent. The analytical initial-curve identity is exact, while this sample estimate has uncertainty. The shaded range is pointwise across paths. With weak mean reversion, shocks persist; percent of the simulated short rates are negative at year ten. This is a pricing-measure simulation from historical volatility proxies, not a real-world probability forecast or a test of market option fit.

Rates in Hull and White can go negative. In 1990 Fischer Black, Emanuel Derman and William Toy, and a year later Black and Piotr Karasinski, modelled the logarithm of the rate instead: it stays positive, and its volatility grows with its level. There are no closed forms, so the price comes from a lattice. Hull and White's trinomial tree: from each node the rate goes up, stays, or goes down, with probabilities that match the model's drift and variance. At the edges the branches turn inward, which is mean reversion in a picture. Shift each column until the tree reprices today's curve, and value any callable bond backwards from its maturity, node by node.

Any of these models reprices today's curve exactly. Why can its option prices still be wrong tomorrow?

4Heath-Jarrow-Morton: the drift conditionPhD3 min

Heath, Jarrow and Morton: modelling the whole forward curve at once. Short-rate models start from one rate and derive the curve. David Heath, Robert Jarrow and Andrew Morton, in 1992, started from the whole forward curve instead: every forward rate moves, driven by a few shared random shocks. A bond is the exponential of minus the integral of the forwards; apply Itô's formula. Under the pricing measure, a bond's expected return must be the short rate, like any traded asset. So the extra terms must cancel, for every maturity. Differentiate, and the drift of every forward rate is fixed by the volatilities: the volatility times its own integral. You choose how the curve wiggles; no arbitrage chooses how it drifts.

Set every fixed-maturity forward's volatility to the same constant sigma, as in the continuous-time Ho-Lee model. Under the money-market pricing measure its drift is sigma squared times T minus t. At T equal to t this fixed-maturity HJM drift is zero; the moving short rate also includes the slope along the forward curve. Integrating to time t gives today's forward for that same calendar maturity T, plus sigma squared times t times T minus half t. This is a pricing-measure expectation, not a real-world forecast. With sigma equal to one percentage point per square root year, the forward whose maturity was thirty years away today is expected two and a half percentage points higher after ten years, when twenty years remain. That is not a rolling thirty-year forward. The correction is required by the discounted-bond martingale condition.

For an illustrative deterministic volatility specification, take the first three principal components of Part eighteen's daily yield changes. Annualize their shock standard deviations, interpolate each yield loading, then differentiate maturity times that loading to obtain a forward loading. They resemble level, slope and curvature without being exact parallel shifts or rotations. HJM then determines the pricing drift from those forward volatilities. Differentiation and interpolation matter, so a yield-factor fit does not automatically validate the resulting forward model. These are historical volatility proxies, not an option-market calibration.

One simulated future: five years of forward curves, starting from today's at the front edge. Each slice across the back is a whole curve on one date. It shifts, tilts and bends, exactly the three ways Part eighteen measured, and nothing else: a three-factor model can only move in three directions at once.

These are four thousand simulated curves at year five. The shaded band is a pointwise five-to-ninety-five percentile range, not a band containing ninety percent of entire paths; the central curve is the median. Under the exact pricing model, a bond discounted by the money-market account has constant expectation. The displayed sample-mean ratios range from about 0.998 to 0.990 across maturities. Those are numerical diagnostics, not a proof that this implementation passes a specified tolerance. The saved output supplies no standard errors, and does not separate sampling error from maturity-grid, boundary and time-discretization bias. One would need uncertainty estimates and convergence checks before assigning the residuals to a particular cause. The theoretical HJM condition and its numerical implementation must be assessed separately.

The volatilities decide the drift. What goes wrong if a trader puts in a drift from their own forecast instead?

5Caps, floors and swaptionsMaster's4 min

A caplet fixes a floating rate at T and pays delta times the positive excess over the strike at T plus delta, per unit notional. This is the forward-looking fixing convention, not a compounded-in-arrears coupon. Under the payment-date forward measure that rate is a martingale. If its volatility is deterministic and proportional to the rate, positive forwards and strikes give Black's formula. If its volatility is absolute and deterministic, Bachelier applies and the forward may be negative. Both volatility parameters have units per square root year: normal volatility is an absolute rate change, while Black volatility is a fraction of the rate. A physically settled payer swaption is a call on the forward swap rate. Under its annuity measure, the corresponding distributional assumption gives the same quote formulas, multiplied by today's fixed-leg annuity. Cash settlement conventions require separate attention.

In a one-factor Hull-White model, zero-coupon bond prices are monotone in the Gaussian state. A receiver swaption starting at exercise is a call on a coupon bond with strike one. For this decomposition assume nonnegative coupon coefficients and a unique state where that bond equals par; negative fixed rates can violate those coupon assumptions. At the root, use each zero's price as its strike. Monotonicity puts all positive-weight components in the money on the same side. The positive part of the weighted sum then equals the weighted sum of positive parts: receiver calls on zeros, or payer puts. The decomposition is exact under those assumptions; numerical root finding still has tolerance.

One identity holds in every model. A payer swaption pays if the swap rate ends above the strike, a receiver if below. Hold a payer and sell a receiver at the same strike, and you are certain to enter the swap: it is a forward swap, worth the annuity times the gap between the forward rate and the strike. In the model, at three strikes, the differences match that line to the basis point. And a payer plus a receiver at the money, a straddle, cares nothing for the direction of rates, only for how far they move: it is how the market trades rate volatility itself.

Price these Hull-White caplets across strikes, then invert both quote formulas. The normal implied volatilities are nearly flat, averaging basis points per square root year. Gaussian short rates do not make every simple-compounded forward exactly normal: the bond-price ratio is an exponential of a Gaussian. The same prices produce Black volatilities from percent to percent across this strike range. The near-at-the-money, small-total-volatility rule is normal volatility approximately forward times Black volatility. It is an approximation, and does not extend unchanged to negative forwards or large expiries.

Brokers quote a cap with one number: the flat volatility that, used for all its caplets, gives the cap's price. But each caplet has its own volatility, and a model needs those. Suppose the caplet vols have the hump shape Riccardo Rebonato parametrized, rising for two years as uncertainty about policy builds, then falling. The flat vols quoted for caps of one to ten years are averages of it: smoother, and late to fall. Strip them, the way chapter four of Part eighteen bootstrapped the curve: the one-year cap fixes the first caplets, each longer cap the next ones. The hump comes back, as a staircase.

And swaptions: the grid by option expiry and swap length, the table every rates desk watches, here as the model prices it, at the money, in normal volatility. It is almost flat, between and basis points. Real grids are not: their shape is information the market prices and one factor cannot produce. A desk calibrates its model to the options it hedges, and accepts that it misprices the rest.

A caplet is quoted at twenty-five percent Black volatility with rates at four percent. Roughly what is that in basis points of normal volatility?

6Negative rates and BachelierMaster's3 min

For most of the history of finance, interest rates below zero were treated as impossible: why lend if you could hold cash? In June 2014 the European Central Bank cut its deposit rate below zero. It stayed negative for eight years, as low as percent, until July 2022. Banks paid to keep money at the central bank, and much of the euro area's government curve and many swap rates sat below zero with it. Denmark, Switzerland, Sweden and Japan went there too.

And not only the overnight rate. The ten-year yield on German government bonds first averaged a month below zero in , and reached percent in . An investor who bought then and held for ten years was guaranteed to get back less than they paid. Bonds of other countries followed, until in 2020 about eighteen trillion dollars of debt worldwide paid negative yields. Every model that assumed rates stay positive had to be retired or patched.

What does that do to the formulas? A one-year call on the rate, struck at zero, as the forward slides from two percent down to minus one. Bachelier's normal model prices it smoothly across zero. Black's lognormal model stops at the wall: the logarithm of a negative rate does not exist, and a lognormal rate can never get there. Desks first patched Black by shifting the rate by a constant; the lasting answer was to quote in Bachelier's normal volatility, basis points a year, as much of the interest rate option market now does.

Here is where the choice of model had a price. After 2009 many floating-rate loans promised that the rate used would never go below zero, or below one percent: the lender owned a floor. Value a five-year floor at zero percent. Under Bachelier, with rates at half a percent, it is worth about basis points of notional, more as rates fall. Under Black it is worth exactly nothing, because a lognormal rate cannot reach zero. Rates did reach zero, and below, and those floors paid for years.

Rates were not the only market to break through zero. On the twentieth of April 2020, with storage full, the expiring futures contract on West Texas crude oil settled at minus thirty-seven dollars and sixty-three cents a barrel. Options on it could not be valued in Black and Scholes, and that week CME Group switched those options to the Bachelier model. Louis Bachelier's 1900 thesis had priced options on French government bonds. A hundred and twenty years later, his was the model that still worked at and below zero.

In a Bachelier world a rate can reach minus five percent. What stops that in practice, and why is the stop weak?

7SABR for ratesMaster's4 min

SABR: the model every rates desk uses for the smile. SABR models a single forward and its stochastic volatility under that forward's pricing measure. The volatility is lognormal, and its Brownian shock has correlation rho with the rate shock. The model applies one expiry at a time; fitting each expiry separately does not by itself define a consistent joint model across expiries. With beta zero, the forward can be negative. The displayed normal implied-volatility expression is an asymptotic approximation, not an exact closed-form option price. At zero z the ratio z over x of z is interpreted by continuity as one. For a fractional beta, an unshifted power needs a nonnegative domain; shifted SABR is another way to accommodate negative rates, with a specified boundary. Long expiries and extreme strikes require explicit arbitrage checks.

Before choosing beta, look at sixty years of rate volatility, measured both ways. In basis points, it peaked at a year in , as Paul Volcker fought inflation, and reached in 2022. In percent of the rate, the picture turns over: the most volatile years were the recent ones, when yields were so low that ordinary moves were large fractions of them. Which picture is the stable one?

This chart asks a descriptive historical question: how did each year's realized ten-year Treasury-yield volatility co-move with that year's average yield? Both axes use logarithms. A zero slope describes constant absolute volatility in this regression; a slope of one describes constant relative volatility. Neither model requires observed annual dots to lie exactly on a line. The fitted slope is , closer to zero. The coefficients of variation are percent for absolute volatility and percent for relative volatility. This is a full-sample association across changing regimes under the historical measure. It does not identify SABR beta under a swap's annuity measure, and a Treasury yield is not that forward swap rate. A desk must also consider option quotes, hedge behavior, parameter stability and the chosen rate shift.

Each parameter has one job. Alpha sets the level of the smile, up and down. Rho tilts it: when volatility tends to rise as the rate falls, a negative rho, low strikes become dearer. And nu, the volatility of volatility, bends the wings up. A desk fits the three to each expiry's quotes every morning, and uses the fitted curve to price every strike in between, and every strike beyond.

This illustration matches one at-the-money normal-volatility target, ninety basis points, at a three-and-a-half-percent forward. For each beta we solve for alpha while keeping rho and nu fixed. It is not a calibration to an entire smile. Move the forward while holding those parameters fixed. Beta zero produces a flat normal backbone in this approximation; other betas give different shapes, including higher-order terms, even though all three agree at the starting point. A total price derivative includes vega times the assumed volatility response. That response depends on what is held fixed and how stochastic volatility co-moves with the rate; a frozen-parameter backbone is not a unique optimal hedge. Bartlett-style adjustments account for that joint behavior. The earlier historical Treasury regression offers descriptive context, but cannot choose the swaption's pricing-measure beta on its own.

The SABR implied-volatility approximation can fail at long expiries or extreme strikes. Strike curvature of a call price, after the appropriate discount or annuity normalization, gives a density under its pricing measure. At two years, the displayed central grid is nonnegative for these parameters. That alone does not prove that the global density is nonnegative and normalized. At ten years, the sampled low-strike curvature becomes negative, up to about percent in this grid. Negative curvature permits a negative-priced butterfly with nonnegative payoff under frictionless conventions. This is a defect of the approximation, not a negative probability in a valid exact model. Arbitrage-free SABR methods, including Hagan and coauthors' 2014 forward-equation approach, address this problem; the boundary treatment and numerical discretization still require checks.

SABR fits each expiry on its own. What can go wrong when a product depends on two expiries at once?

8Market models: LIBOR and SOFRPhD3 min

Market models: making the market's formulas consistent with each other. Short-rate models price caplets with their own formulas, which never quite match the market's Black quotes. In 1997 three groups of authors turned it around: take the market's forward rates themselves as the model's state, one for each period. Under the measure that pays at the end of its own period, each forward has no drift, so if it is lognormal, each caplet is exactly Black's formula. The market's quotes and the model agree by construction. To simulate all of them together you need one measure; under it, each forward picks up a drift from the change of numeraire. Then any product on the whole strip, a swaption, a Bermudan, can be priced by simulation, and the caplets give the check.

This separately named example fixes the reset and payment dates consistently: ten semiannual rates reset from half a year through five years and pay half a year later. Initial forwards come from the matching discount-factor ratios. The original demonstration's time origins are not used. With forty thousand paths, the largest relative deviation from the closed-form caplet prices is percent. The saved example also records a standard error for each price; these deviations are within about one and a half standard errors. We weight each payoff by its payment-date to terminal-bond ratio at its own reset. The terminal-measure drift shown assumes one shared Brownian factor; with multiple factors its pairwise products include correlations. Finite Euler steps retain discretization error, so Monte Carlo agreement is a diagnostic rather than proof of an exact simulation.

One factor makes every forward move together. Real forwards decorrelate with distance: the six-month rate five years out and the one ten years out are related, not identical. A swaption is an option on a weighted average of forwards, so its volatility depends on their correlation. Keep every caplet at ninety basis points and let the correlation fall off. The five-by-five swaption's volatility drops from to : an average of loosely related rates moves less. Caplets cannot see this; swaptions can, which is why a desk calibrates its market model to both. The formula is checked against a simulation.

An IBOR-style coupon normally fixes at the start of its accrual period. A compounded overnight coupon is known only at the end of its observation period, allowing for the contract's lookback, cutoff and payment lag. Lyashenko and Mercurio's forward market model extends a rate's evolution through that period. As more daily fixings become known, only the remaining uncertain portion contributes risk. A linear decay of the effective volatility is a useful specification in a simple model, not a universal theorem for every SOFR contract. Continued accrual-period uncertainty can add option time value under a matched model; it does not imply that every SOFR caplet is more valuable than every LIBOR caplet. The forward level, volatility, fixing and settlement conventions must also match.

Caplets fix each forward's volatility. Which market prices fix the correlations, and why does a Bermudan care?

9Bermudan swaptionsPhD5 min

Bermudan swaptions: the most traded exotic in rates. A Bermudan swaption is the right to enter a swap on any one of a schedule of dates. This one, a ten non-call one, lets its holder start receiving a fixed rate, today's par rate of percent, on any anniversary from year one to year nine, for the rest of the ten years. Issuers of callable bonds own this option, and often sell it on to dealers; investors in mortgages are short the same kind of option, granted to every borrower.

How do you price the right to choose? At each date the holder exercises if the swap is worth more than keeping the option alive. The value of keeping it is unknown, so estimate it the way Part sixteen did: regress the discounted value of what actually happens next on today's state, across simulated paths. And fit that rule on one set of Hull and White paths, then apply it to a fresh set, so the price cannot peek at the future.

The closed-form Europeans use one allowed exercise date each. The most valuable in this schedule is at year , worth basis points of notional. The independent-path Bermudan estimate is basis points, with the displayed two-standard-error sampling interval. In the exact optimal-stopping problem the Bermudan is worth at least every scheduled European; strict inequality requires useful exercise flexibility. A learned feasible policy has expected payoff no greater than the optimum, but a finite sample estimate can lie above or below that expectation. A small difference between the in-sample and independent-path estimates does not isolate or prove small look-ahead bias, because fitting error and sampling error also contribute.

In one Gaussian factor, a numerical grid provides a second pricing method. Under the terminal-bond measure the transition law between exercise dates is Gaussian, allowing numerical integration and a backward maximum over the exercise schedule. The transitions are exact in distribution; the finite state grid, interpolation and quadrature still introduce numerical error. The displayed comparison checks scheduled European prices against Jamshidian. Agreement on Europeans is valuable, but does not prove convergence of the Bermudan exercise boundary. The grid Bermudan is basis points and the independent-path policy estimate is . Their difference is small relative to the displayed Monte Carlo uncertainty. For a rigorous lower-bound claim, distinguish the feasible policy's expected payoff from its noisy estimate. More factors raise grid cost; simulation and other numerical methods offer alternatives.

This line is a sample summary of the learned exercise policy: at each date it records the largest swap rate among the simulated paths that exercised. It is not an analytically solved exercise boundary, and a polynomial regression can in principle create disjoint exercise regions. The broad economic pattern is still useful. Earlier exercise sacrifices more remaining optionality, so the receiver often waits for rates to fall further. Near the final exercise date, less continuation value remains. Establishing an actual boundary would require evaluating and checking the continuation and exercise functions on a state grid.

A ten-year fixed-coupon bond can give its issuer the right to repay at par on the allowed anniversaries. The coupon here is percent. Under this schedule and single-curve model, the investor owns the bullet bond and has sold the issuer a cancellation right represented by the receiver Bermudan. Coupon timing and exercise conventions must match. The example's callable price is , versus for the bullet. Computing yield to final maturity from those prices gives a -basis-point difference. That quoted yield assumes the final cash-flow schedule; it is not the holder's guaranteed realized yield if the bond is called. Agencies may swap callable funding with dealers, transferring embedded optionality subject to their actual contract terms.

Keep sigma fixed, vary mean reversion, and reprice the whole exercise schedule in this model family. The estimated premium relative to the most valuable scheduled European rises from to percent in this sweep. Mean reversion changes both cross-date dependence and the marginal option values, so this is not a controlled correlation-only experiment or a universal monotonicity theorem. Early-exercise flexibility depends on the joint dynamics across dates. Vanilla prices restrict those dynamics but do not, on their own, settle every exotic's value. The House chapter separately recalibrates each scenario to one identical fixed European before comparing prices.

The desk question: why is a Bermudan worth at least the most expensive European in its schedule?

10Multi-curve and collateralMaster's3 min

One curve becomes many: what 2008 did to the arithmetic of swaps. The TED spread compares three-month unsecured dollar bank funding with a three-month Treasury bill. It includes bank credit and funding liquidity, as well as the bill's safety, liquidity and quotation conventions; it is not a pure default probability. Its pre-2007 average in this saved sample is percent. It reached percent on October tenth, 2008. The March-2020 episode reached percent in this dataset. Central-bank facilities and changing market conditions coincided with the subsequent decline; this chart cannot isolate their causal contributions. These episodes motivate pricing index and collateral exposures separately, rather than treating unsecured bank rates as a universal risk-free discount curve.

The single-curve approximation used the same discount factors to infer forward rates and value cash flows. It was a convention and approximation, not an identity that a crisis could break. Bank credit, liquidity, tenor and funding differences became too large to ignore. A projection curve can encode each tenor's forward quotes, but its pseudo-discount factors need not be prices of tradable zero-coupon bonds. For a standard fully collateralized swap, project each floating coupon on the relevant index curve and discount using the collateral-consistent curve. Different accrual conventions also mean that three-month, six-month and overnight rates are not directly interchangeable even without a credit crisis.

How much does the second curve matter? Value a five-year swap both ways, with a quarter-point gap between LIBOR and the overnight rate. At the money, almost not at all: the par rates agree to of a basis point, because the projection does the work and the discounting only reweights it. But an old swap, struck when rates were low, receiving one and a half percent, changes value by per hundred between the two curves: dollars on a billion. Across a dealer's trillions, and every swap that clears, that was a revaluation large enough to change books and margin.

For a perfectly cash-collateralized idealization, with continuous margining, symmetric collateral remuneration, and the relevant replication assumptions, use the collateral rate to discount under a consistent pricing measure. Collateral does not make every contract risk-free in practice: thresholds, margin periods, default and funding terms matter. CVA, funding and other adjustments address specific remaining risks; they require a consistent framework so the same effect is not counted twice. In October 2020, major clearing houses switched cleared dollar-swap discounting and price-alignment interest to SOFR. A plain SOFR overnight-indexed swap with SOFR cash collateral can use a common projection and discount curve. This did not merge every dollar curve: term-rate conventions, tenor bases, cross-currency collateral and funding can still require separate treatment. Ask which index is paid and which rate remunerates the collateral.

A dollar swap collateralised in euros: which curve discounts it, and why might that differ from the dollar overnight curve?

11Bond risk premiaMaster's3 min

Bond risk premia: does the curve forecast what bonds will earn? Part eighteen split a long yield into the expected path of short rates and a term premium. Is the premium constant? Define the excess return: buy a bond, sell it a year later, and subtract what a one-year bill earned. If the premium were constant, the slope of the curve would forecast only future rates. Eugene Fama and Robert Bliss in 1987, and John Campbell and Robert Shiller in 1991, found the opposite: a steep curve forecasts high bond returns. In 2005 John Cochrane and Monika Piazzesi went further: a single combination of five forward rates forecast the excess returns of every maturity, explaining a third or more of their variation.

Regress a zero's one-year excess log return on its own forward spread, the last annual forward minus the one-year yield. A constant conditional expected excess return implies zero slope here. This is a test of that return restriction, which is not identical to every version of an expectations hypothesis stated in yield levels. On this full sample of public fitted curves, slopes run from to . The bars show plus or minus two Newey-West standard errors with twelve lags for overlapping annual outcomes. They summarize association, not causality or a live forecast. A slope near one links the forward spread to expected excess returns within this regression; it does not establish that all yield spreads are risk premia. The curves use a current data vintage and are smoothed estimates rather than directly investable bond prices.

A descriptive regression and a tradable forecast answer different questions. A regression fitted through the final date can summarize a historical relation, but it cannot certify performance on unseen returns. First define a one-year excess log return and the information available at each forecast date. Current-vintage fitted Treasury curves are useful for replication, but a live claim also needs a vintage and publication-lag audit. Fit coefficients, normalization and any neural network on training data. Select the model on validation data. Because the outcomes span twelve months, simply splitting on the forecast date leaves returns crossing the boundary; purge those observations or impose an embargo. Compare the forecast with an expanding historical mean that could actually have been known, rather than a test-period average. Record every specification tried, including seeds and tuning choices. Only then can an authorized, once-only sealed test be informative. This review does not open that test or report its scores. Even a positive out-of-sample R squared would not by itself establish market timing: a shifted forecast mean can beat the benchmark without useful month-to-month covariance. A trading claim also needs position rules, financing, turnover, costs and uncertainty from dependent observations.

The models that connect these premia to the economy are the macro-finance term-structure models. In 2003 Andrew Ang and Monika Piazzesi put inflation and real activity into the state of an affine model. The short rate follows something like a Taylor rule, and the price of risk moves with the state, so the premium varies through time. And it stays affine: every yield is in closed form, and every yield splits into expected rates and a premium, the decomposition the central banks publish.

A model forecasts bond returns out of sample, but only by getting their average right. Could you trade it, and what would you really be betting on?

12Mortgages and negative convexityMaster's5 min

Mortgages: the largest option in the bond market, and who is short it. The thirty-year fixed-rate mortgage, as Freddie Mac's weekly survey has recorded it since 1971: percent in , percent at the start of , and at the end of 2025. The American mortgage comes with an option: the borrower can repay at any time, with no penalty. When rates fall, they refinance. Pooled and guaranteed by Ginnie Mae, Fannie Mae and Freddie Mac, these loans become the agency mortgage-backed securities, one of the largest bond markets in the world, and their buyers are short that option.

How fast does a pool pay off? The prepayment curve, against the refinancing incentive: the loan's rate minus today's. With no incentive, a steady few percent a year, from people moving house. Once the saving covers the cost of refinancing, prepayments climb steeply, and then saturate, because some borrowers never refinance at all. This curve is stylised; desks fit theirs to the speeds of real pools.

This is a stylized six-and-a-half-percent pass-through, simulated with the stated prepayment rule across parallel rate shifts. The comparison bond is matched to its local duration at the base point. The ordinary fixed-cash-flow bond is convex. This pool has effective convexity under the example's bump definition. Lower rates accelerate prepayment and limit price appreciation; higher rates slow repayment and can extend duration. The result depends on coupon, rate level, prepayment assumptions and the spread held fixed. The shaded gap illustrates different curvature. It is not a pure option price, because the comparison bond does not have identical cash flows with only the prepayment right removed. A genuine option-value comparison needs a matched counterfactual and consistent discounting.

An option-adjusted spread is a model-dependent constant added to simulated discount rates to match a target price, while cash flows respond to rates and the assumed prepayment law. Solve a second spread with volatility set to zero. The deterministic run can still include refinancing and prepayment; it does not remove the borrower's option. For this synthetic pool and assumed price , the zero-volatility spread is basis points and the OAS is . Their -basis-point difference is often called an option-cost spread. It is a model and convention dependent volatility adjustment in yield units, not a dollar option value or a guaranteed excess return. No market mortgage option surface was used to calibrate this toy example.

Negative convexity can transmit mortgage risk to other rates markets. Rising rates can slow prepayments and lengthen a mortgage pool. An investor maintaining a duration hedge may then sell Treasuries or pay fixed in swaps. If many investors do this together, their flows can amplify a move; the size and even the net direction depend on other investors and positions. This is a possible feedback mechanism, not a causal estimate from this chart. The ten-year Treasury yield moved from to percent during the displayed summer-2003 interval. Contemporary accounts discuss convexity hedging alongside other causes. Servicing rights have different cash flows and exposures, so not every mortgage-market participant is short the same option in the same way.

The agency to-be-announced market uses standardized forward delivery, rather than an exchange-traded futures contract. The parties agree key security and settlement terms before particular pools are allocated. The seller gives pool information under the applicable forty-eight-hour notification calendar and good-delivery rules. Delivery flexibility creates an economic incentive to choose relatively cheap eligible collateral. A TBA quote also reflects financing, liquidity, expectations and delivery options; it is not a mathematical identity with the price of the worst individual pool. In a dollar roll, an investor sells for a nearer settlement and buys a similar exposure for later settlement. This changes entitlement to interim principal and interest and can change delivered pools, so it is not simply a repo loan. Specified pools can command pay-ups for desirable prepayment characteristics, conditional on coupon and market conditions.

The Federal Reserve's monetary-policy portfolio is a different holder from a duration-hedging dealer. Its agency MBS holdings reached about trillion dollars in April 2022 in this weekly series. Subsequent runoff depends on principal payments and reinvestment policy, including scheduled amortization as well as prepayments. Holdings end this sample at trillion. When outstanding mortgage coupons are low relative to refinancing rates, refinancing slows and runoff can be gradual. This chart alone does not estimate a convexity effect or explain the mortgage-Treasury spread. Changes in the Fed's purchases, rate volatility, liquidity, guarantee costs and lender margins can all affect market spreads; the series does not isolate their contributions.

An investor in mortgage bonds hedges duration every day, and rates end the year where they began. Why can they still have lost money?

13Rule 19: the options desk for ratesIndustry3 min

Before trusting a rates-option price, inspect several different diagnostics; these rows are not a blanket pass certificate. Hull-White has exact initial-curve fit analytically, and a sampled repricing residual numerically. HJM's discounted-bond ratios need standard errors and convergence checks that the original saved output does not supply. The separately dated market-model example compares caplet prices with Black and Bachelier and records standard errors. In the exact exercise problem a Bermudan is worth at least each scheduled European, while numerical estimates require tolerances. A learned policy must be evaluated without future information, on independent paths. Its expected feasible payoff is a lower bound; its sample estimate is noisy. Matching a few diagnostics cannot certify every product or every market regime.

The risk report uses symmetric one-basis-point bumps and finite-grid prices. For a billion dollars of notional, the base values are shown first. The Bermudan's parallel-curve sensitivity is about minus thousand dollars per basis point. Its sensitivity to Hull-White's instantaneous diffusion parameter sigma is about plus thousand dollars for a one-basis-point parameter bump. This is parameter vega, not a one-basis-point bump to every market swaption quote. Selling of the selected European matches this scalar sigma sensitivity locally; a receiver swap then addresses residual parallel delta. The hedge does not match every key-rate, smile, correlation or exercise-policy exposure. Its numerical sensitivities depend on the model, bump convention and grid.

Separate numerical uncertainty from model sensitivity. The baseline Monte Carlo estimate has a displayed interval of roughly basis points, conditional on its learned exercise rule; a second seed changes the estimate by . Now vary mean reversion and solve for a new volatility in each scenario so that the same fixed European, with identical strike, expiry and tenor, has the same target price. This is actual recalibration, not multiplying a Bermudan by a European price ratio. The recalibrated grid prices range from to basis points. Matching one hedge leaves other aspects of the dynamics unidentified. That range is evidence of model sensitivity in this chosen family, not a bound on fair value or a prescribed reserve. It does not fit a full option surface, and the grid still requires convergence checks. A reserve policy would additionally need governance, market evidence and the risks already covered by hedges.

The rates desk's second set of tools. Short-rate bonds and the Riccati system; Hull and White with its options and exact Gaussian state simulation; forward-curve and market models; Bermudan exercise by regression; normal quotes and SABR; and descriptive bond premia and mortgage pools. Rule nineteen: a rates option model must reproduce the curve and calibration instruments within documented numerical tolerances, and pass no-arbitrage diagnostics before pricing other claims. Evaluate a learned exercise policy on independent paths. Its expected value is a lower bound, while a finite Monte Carlo estimate still has sampling error. Compare exotic prices across plausible models calibrated to the same observable hedges. Their range is a model-risk scenario, not an automatic accounting reserve or a bound on the true price. This review adds no forecast trial and opens no sealed return test.

For the researcher: the zero lower bound and the shadow ratePhD6 min

For the researcher: Chapter 6 let rates go negative and switched to Bachelier. But from 2009 to 2015 American rates sat at zero for years, and Gaussian models put large probability on rates far below it. Here is the model that respects a floor, the approximation that makes it practical, and what the floor did to the Treasury curve.

Black's 1995 shadow-rate idea imposes a lower bound through an option-like payoff. Let a Gaussian shadow rate move freely, but set the observable short rate to the maximum of that state and a chosen floor. A zero floor is an idealization; storage, transactions, institutional constraints and policy can make the effective bound negative or variable. Bond prices still discount the actual floored rate under a pricing measure. Because the discount-rate function is nonlinear, the familiar exponential-affine bond formula no longer applies. One factor leads to a one-dimensional pricing PDE. We solve it numerically with finite boundaries and steps, not exactly. Multiple factors still admit higher-dimensional pricing equations; computational cost grows, making approximations or other numerical methods useful.

The Wu-Xia style approximation uses a Gaussian shadow-model forward calculation to approximate the floored model's forward rate. Its accuracy depends on the model and parameter region. The displayed forward is approximately the floor plus a normal-call expectation, with g of z equal to z Phi of z plus the standard normal density. Here sigma n is a conditional standard deviation at the horizon, not an annualized volatility quote. The mean a n is the unfloored Vasicek forward-measure mean, including its Gaussian convexity correction. Substituting that distribution into the floored model is the approximation. Holding the parameters and variance fixed, the derivative of g is Phi. The approximate forward's sensitivity to today's shadow state is Phi of z times exponential minus kappa n. This is a local derivative, not an exact formula for a large finite policy move.

Start with a regular short-rate pricing model. Its instantaneous forward for a maturity date equals the expected short rate at that date under the corresponding bond-forward measure. That measure is determined by the actual floored model. Write the short rate as the floor plus the positive part of the shadow rate minus the floor. If that shadow state were Gaussian under this measure, a normal-call expectation would give the displayed formula. The approximation replaces its generally non-Gaussian floored-model distribution with the unfloored Gaussian model's forward-measure mean and variance. The floor changes bond prices and therefore changes the measure tilt. Ignoring that effect creates model-dependent error, which need not grow monotonically with maturity. A one-factor numerical benchmark can measure it for the chosen parameters, but does not establish universal accuracy.

Compare the approximation with this one-factor finite-difference benchmark. Dashed lines show the unfloored shadow model's forwards, which may be negative. Solid lines come from numerical bond prices with the floor. The pricing equation is exact for the model, but its finite-grid solution and forward differentiation are approximate. Across the displayed state and maturity grid, the largest approximation-to-benchmark difference is about basis points. This measures agreement in this example, not the benchmark's total numerical error or the accuracy of a multi-factor market fit. The saved benchmark uses fixed finite boundaries and a daily time step, so independent grid and boundary convergence checks would be needed for stronger precision claims.

What is the floor worth? Subtract the shadow model's forward rate from the exact one. With the shadow rate at minus three percent, the floor adds two hundred basis points to the one-year forward, and still forty at ten years. Even with the shadow rate at plus one percent, ten to twenty. Black's reading: the right to hold cash rather than lend below the floor is an option held by every lender, and forward rates pay for it, most where the shadow rate is most likely to be beneath the floor.

The chosen one-factor model predicts reduced local sensitivity near its floor. The plotted response compares the one-year and ten-year zero yields as the shadow state changes, with parameters held fixed. At a shadow rate near minus two and a half percent, that ratio is about a tenth of its higher-state reference in this numerical example. A zero yield is an average of forwards, so its derivative averages the forward sensitivities over maturity. These statements concern this pricing model and this state shock; they do not imply that all economic news affects only the shadow state, or that a long yield is unaffected by the bound.

Now a descriptive Treasury-curve comparison. Each year, regress the daily change in the one-year zero yield on the change in the ten-year zero yield. The average of those annual slopes is over 1990 to 2007. It falls to over 2010 to 2014, when short yields were low. This is consistent with a constrained short end, but the regression mixes shocks, policy regimes and changing risk premia; it does not identify the shadow-rate mechanism. The slope later recovers. Swanson and Williams's 2014 study used responses to macroeconomic news, a different design. Our unconditional daily co-movement regression does not reproduce their event-study estimates or establish that every maturity responded in the same way.

Three open questions. Estimated shadow rates differ by several points across models and samples, and whether they measure the stance of unconventional policy is disputed. Negative policy rates in Europe and Japan showed that the floor is not zero, and may move; models with an uncertain floor are young. And options near the bound depend on the whole distribution; joint fits of the curve and its options in shadow models are hard to make stable.

Pause and predict. With the shadow forward at minus one percent and its volatility at one percent, what is the forward rate? And how much does it move if the shadow rate falls another fifty basis points?

With a zero floor, z is minus one. The normal-call expectation gives eight point three three basis points. The local derivative predicts a decline of six point three five basis points for a fifty-basis-point drop in today's shadow state, using the given loading of point eight. For the actual finite move, the horizon mean becomes minus one point four percent while its variance stays fixed. Recomputing the formula gives three point six seven basis points, a decline of four point six six. The local approximation and the finite change differ because the sensitivity itself falls as the state moves deeper below the floor.

Recap, desk questions, problemsAll tracks3 min

Part nineteen in thirteen lines. In 1994 leverage amplified a bond-market loss. Vasicek and CIR made the short rate random. Historical fits and pricing fits use different probability measures, and mean reversion is hard to estimate. Affine models turn bond pricing into Riccati equations; a second factor can decorrelate curve changes. Hull and White fit the initial discount curve, while HJM fixes the forward drift under a pricing measure. Black and Bachelier provide quote conventions; the unshifted Black formula requires positive forwards and strikes. SABR models smiles, with an asymptotic formula that needs arbitrage checks. Market models tie caplet marginal laws to a joint rate model. A Bermudan is worth at least its best scheduled European in the exact model, and independent-path evaluation avoids using future exercise information. Numerical errors still require tolerances. Collateral and tenor bases motivate multiple curves. Descriptive bond-return regressions motivate a forecast protocol; no sealed test is opened here. Mortgage investors bear prepayment risk and can have negative convexity.

Four desk questions. A Bermudan is worth at least its best scheduled European because that rule is available to its holder. Strictly greater value needs a useful extra exercise choice. Twenty-five percent Black volatility at a four-percent forward is about one hundred basis points per square root year in normal terms, near the money and for small total volatility. A duration-hedged mortgage position can lose on a round trip because negative convexity responds to realized rate variation. A local constant-convexity approximation depends on squared rate increments, but carry, spread moves, changing prepayments, hedge instruments and transaction costs also affect total profit. Fitting today's curve fixes a shift, not all future dynamics. This example used historical volatility proxies, while an options desk needs relevant market calibration and checks beyond those instruments. Recalibrating tomorrow is an operational choice, not a mathematical requirement for the original model to remain internally consistent.

And ten problems: Vasicek's distribution and long yield, its Riccati equation, the Ho-Lee drift, the Hull-White shift, an at-the-money caplet, Jamshidian's decomposition, the bias of a fitted exercise rule, and the life of a prepaying pool. Two are qualifying-exam problems: Wu and Xia's call formula, and the dead short end. Solutions, in English and Chinese, are in the notes.

Where this comes back. In Part twenty a default intensity behaves exactly like a short rate, and survival is discounting. Part twenty-one takes up collateral, funding and the valuation adjustments. Part twenty-two builds the macro desk: the basis trade, inflation and currencies. Parts twenty-six and twenty-seven return to forecasting returns, and to testing forecasts honestly. And the finale stress-tests every rates model on the House's worst days.

The textbooks this part follows, and the papers it draws on, from Bachelier's thesis in 1900 to the forward market model for SOFR. Every number on screen was computed from public data: the Fed's fitted curve, FRED, Freddie Mac's survey, and the SEC's record of Orange County.

That completes the rates desk's models: the curve as a random process, and prices for the options on it. Next, Part twenty: credit. A bond that can default, a spread that measures the chance, and the instruments that trade it.

Where it goes next. The same intensity mathematics prices default in Part 20; swap exposures drive XVA in Part 21.

Key results

The part's results in one place, for revision.

Vasicek\[dr=a(b-r)\,dt+\sigma\,dW,\qquad P(0,T)=e^{A(T)-B(T)r_0},\quad B(T)=\frac{1-e^{-aT}}{a}\]
HJM drift\[\alpha(t,T)=\sigma(t,T)\int_t^T\sigma(t,u)\,du\]
Bachelier\[C=A\Bigl[(F-K)\,N(d)+\sigma_n\sqrt T\,\varphi(d)\Bigr],\qquad d=\frac{F-K}{\sigma_n\sqrt T}\]
Swap rate\[S_{0}=\frac{P(0,T_0)-P(0,T_n)}{\sum_{i=1}^{n}\delta_i\,P(0,T_i)}\]

Try it

Lab 19 · One short rate, a whole yield curve

Simulate Vasicek's short rate, price zero-coupon bonds as the average of exp(-integral of r), and check them against the affine formula. Then read the curve's shapes off the model: normal, inverted, humped.

Figure produced by Lab 19: One short rate, a whole yield curve
Produced by the lab below, seed 0, in 0.8 s. Simulated data.
python -m videos.quant.labs 19 needs numpy, scipy, matplotlib, numba · download lab19.py · source on GitHub
1-year zero             formula 0.98376   Monte Carlo 0.98375 +- 0.00008   yield 1.64%
2-year zero             formula 0.95889   Monte Carlo 0.95892 +- 0.00018   yield 2.10%
5-year zero             formula 0.86567   Monte Carlo 0.86573 +- 0.00044   yield 2.89%
10-year zero            formula 0.71292   Monte Carlo 0.71284 +- 0.00063   yield 3.38%
Yield as T -> infinity  3.971%   (b minus the convexity term sigma^2 / 2a^2)

Under Q the bond price is the expected discount factor; the model's whole curve follows from r0.
The code (53 lines; it asserts its own result)
"""Lab 19: a short-rate model prices every bond: Vasicek by formula and by simulation."""

import numpy as np

from videos.quant import labs
from explainer.quant.house import sim, termstructure

TITLE = "One short rate, a whole yield curve"
GOAL = ("Simulate Vasicek's short rate, price zero-coupon bonds as the average of exp(-integral of r), and check "
        "them against the affine formula. Then read the curve's shapes off the model: normal, inverted, humped.")
TASKS = [
    "Switch to CIR (sim.cir_exact, termstructure.cir_zcb). What can the short rate no longer do?",
    "The long yield sits below b. Derive the gap sigma^2 / (2 a^2) and check it at T = 100.",
    "Build a termstructure.HullWhite on a bootstrapped curve and price a caplet with hw.caplet.",
]


def run(seed=0):
    a, b, sigma, r0 = 0.5, 0.04, 0.012, 0.01
    T, n, n_paths = 10.0, 2000, 20000
    r = sim.ou_exact(r0, a, b, sigma, T, n, n_paths, seed=seed)
    dt = T / n
    integral = np.cumsum(0.5 * (r[:, 1:] + r[:, :-1]) * dt, axis=1)  # trapezoid rule along each path
    lab, worst = labs.Lab(), 0.0
    for years in (1, 2, 5, 10):
        i = int(years / dt) - 1
        disc = np.exp(-integral[:, i])
        mc, se = disc.mean(), disc.std() / np.sqrt(n_paths)
        exact = float(termstructure.vasicek_zcb(r0, a, b, sigma, years))
        worst = max(worst, abs(mc - exact) / se)
        lab.row(f"{years}-year zero", f"formula {exact:.5f}   Monte Carlo {mc:.5f} +- {1.96 * se:.5f}   "
                                      f"yield {-100 * np.log(exact) / years:.2f}%")
    long_yield = b - sigma ** 2 / (2 * a ** 2)
    lab.row("Yield as T -> infinity", f"{100 * long_yield:.3f}%   (b minus the convexity term sigma^2 / 2a^2)")
    lab.note = "Under Q the bond price is the expected discount factor; the model's whole curve follows from r0."
    assert worst < 3.5

    mats = np.linspace(0.25, 30, 120)
    fig, ax = labs.figure(2, size=(11, 4.2))
    t = np.linspace(0, T, n + 1)
    for path in r[:25]:
        ax[0].plot(t, 100 * path, color=labs.SPOT, lw=0.6, alpha=0.6)
    ax[0].axhline(100 * b, color=labs.P, ls="--", lw=1)
    ax[0].set(title="Vasicek short-rate paths pulled toward b = 4%", xlabel="years", ylabel="short rate, %")
    for start, c, name in ((0.01, labs.GAIN, "r0 = 1%: normal"), (0.0385, labs.P, "r0 = 3.85%: humped"),
                           (0.07, labs.LOSS, "r0 = 7%: inverted")):
        ylds = -np.log(termstructure.vasicek_zcb(start, a, b, sigma, mats)) / mats
        ax[1].plot(mats, 100 * ylds, color=c, label=name)
    ax[1].axhline(100 * long_yield, color=labs.MUTED, ls=":", lw=1)
    ax[1].set(title="The curves the model can draw", xlabel="maturity, years", ylabel="zero yield, %")
    ax[1].legend(fontsize=8)
    lab.fig = fig
    return lab

Now change it

  1. Switch to CIR (sim.cir_exact, termstructure.cir_zcb). What can the short rate no longer do?
  2. The long yield sits below b. Derive the gap sigma^2 / (2 a^2) and check it at T = 100.
  3. Build a termstructure.HullWhite on a bootstrapped curve and price a caplet with hw.caplet.

Problems, with solutions

Try each problem before opening its solution; the last two of each set are at qualifying-exam level.

Desk questions, with solutions

Desk answers

  1. A Bermudan permits each scheduled European's exercise policy, giving an inequality for optimal model values. A finite learned-policy estimate is noisy and may not obey that inequality exactly. Strict extra value requires useful flexibility.
  2. Near ATM with small total volatility, sigma_N ≈ F sigma_B = 0.04 × 0.25 = 0.01: 100 bp per square root year. This is approximate. Exact ATM conversion satisfies sigma_N sqrt(T/(2 pi)) = F[2 Phi(sigma_B sqrt(T)/2)-1] for common annuity and conventions.
  3. Negative convexity can cause losses even if rates return to their starting level. Under local constant convexity and ideal linear hedging, relative convexity PnL is approximately 0.5 C sum((delta y)^2). Total PnL also includes carry, spreads, changing prepayments, hedge basis and transaction costs; it is not a guaranteed annual loss formula.
  4. An exact initial-curve fit fixes a deterministic shift, not all future dynamics, smile or cross-date dependence. This example uses historical volatility proxies; a desk needs relevant option calibration. Daily re-fitting is an operational choice, not a condition for internal consistency of the original model.

Problems, with worked solutions

Ten worked problems

  1. Vasicek. Under the pricing-measure Vasicek model with \(a>0\), derive the Gaussian transition and long yield \(b-\sigma^2/(2a^2)\).

    Solution

    For a>0, r_T=b+(r_0-b)e^(-aT)+sigma integral_0^T e^(-a(T-s))dW_s, giving mean b+(r_0-b)e^(-aT) and variance sigma²(1-e^(-2aT))/(2a). When these are pricing-measure parameters, the long zero yield is b-sigma²/(2a²).

  2. Riccati. Solve the Riccati equation \(B' = 1 - aB\), \(B(0) = 0\), and show that a Vasicek zero is \(e^{A(T) - B(T) r_0}\) with \(B(T) = (1 - e^{-aT})/a\).

    Solution

    With pricing drift a(b-r) and terminal bond value one, substitute P=exp(A(tau)-B(tau)r) into the pricing PDE. A(0)=B(0)=0, 'B'=1-aB and 'A'=-abB+sigma²B²/2. Thus B=(1-e^(-a tau))/a; A is the log prefactor, not its exponential.

  3. Ho–Lee. In HJM with constant volatility \(\sigma\) (Ho–Lee), show that the drift of \(f(t, T)\) is \(\sigma^2 (T - t)\). What does it do to the forward curve over time?

    Solution

    For t<=T, f(t,T)=f(0,T)+sigma² t(T-t/2)+sigma W_t under the money-market pricing measure. The drift correction steepens the expected fixed-calendar-maturity curve; individual realized curves need not rise, and rolling tenors require the maturity-shift term.

  4. Hull–White shift. For Hull–White with \(x_0=0\), derive the shift \(\varphi(t)=f^M(0,t)+\sigma^2(1-e^{-at})^2/(2a^2)\).

    Solution

    Assume x_0=0, dx=-a x dt+sigma dW. Gaussian integration gives P(0,T)=exp(-integral phi+V(0,T)/2). Matching the initial curve and differentiating yields phi(T)=f^M(0,T)+sigma²(1-e^(-aT))²/(2a²).

  5. ATM caplet. Show that an at-the-money Bachelier call is worth \(\sigma_N\sqrt{T/(2\pi)}\) per unit of annuity. Price a 1-year ATM caplet on 1 of notional, quarterly, at 100 bp normal vol and a discount factor of 0.96.

    Solution

    Bachelier's price per annuity is sigma_N sqrt(T/(2 pi)). For notional one, delta=.25, discount factor .96, expiry one and normal volatility .01, price is .25 × .96 × .01 / sqrt(2 pi) = .00095746, or 9.575 bp of notional. Fixing and payment dates differ.

  6. Jamshidian. Prove Jamshidian's decomposition for nonnegative coupon weights, monotone zero prices and an existing unique par root.

    Solution

    For nonnegative weights and monotone zero prices with a unique root, choose x* so sum c_i P_i(x*)=1, and K_i=P_i(x*). All components change moneyness at the same state, so `(sum c_i P_i-1)+ = sum c_i(P_i-K_i)+'. This is a receiver's bond call; payer orientation gives puts. Without the weight/root assumptions this argument need not apply.

  7. Exercise-rule bias. Explain look-ahead in same-path exercise evaluation, the separate approximation error, and why independent policy evaluation gives an expected lower bound with sampling noise.

    Solution

    Same-path fitting permits look-ahead, which can bias an evaluation upward relative to a feasible rule. Policy approximation can bias value downward relative to the optimum; the combined estimator has no general upper-bound guarantee. Independent evaluation of a fixed feasible policy has expected payoff at most optimal value. Its finite Monte Carlo estimate has sampling error; conditional standard errors do not capture all training-policy uncertainty.

  8. Prepayment life. With continuous survival \(S(t)=(1-c)^t\), no amortization and no final maturity, compute \(\int_0^\infty S(t)dt\). How does annual discrete prepayment differ?

    Solution

    With continuous interpolation S(t)=(1-c)^t=exp(-h t), h=-ln(1-c), and no amortization or maturity, E[tau]=integral S dt=1/h: 16.16 years for 6%, 1.673 for 45%. Annual end-of-year geometric repayment instead has mean 1/c. With maturity T, the continuous expected life is (1-e^(-hT))/h. Different constant speeds alone do not prove negative convexity; rate-dependent prepayments create that mechanism.

  9. Normal floor payoff. (qual) If \(s_n \sim N(a_n, \sigma_n^2)\) under the forward measure, show \(\mathbb E[\max(s_n, r)] = r + \sigma_n g((a_n - r)/\sigma_n)\) with \(g(z) = z\Phi(z) + \varphi(z)\), and that \(g' = \Phi\).

    Solution

    If s~N(a,sigma_n²) under the relevant measure, E[max(s,r_min)]=r_min+sigma_n[phi(z)+z Phi(z)], z=(a-r_min)/sigma_n. Integration of the normal tail proves the formula, and 'g'(z)=Phi(z)'. Using unfloored-model moments for the floored model's forward measure is an additional approximation.

  10. Sensitivity. (qual) In the one-factor shadow model, show \(\partial f(n)/\partial s_t \approx \Phi(z_n)e^{-\kappa n}\) and explain why the 1-year yield's response to news collapses near the floor while the 10-year's does not.

    Solution

    Holding parameters and horizon variance fixed, partial f(n)/partial s≈Phi(z_n)e^(-kappa n). Yield sensitivity averages this over maturity. With zero floor, a=-1% and sigma_n=1%, f=8.332 bp. A -50 bp' move in today's state with loading .8gives local change **−6.346 bp**. Recompute ata=-1.4%: f_new=3.667 bp`, an actual approximate-formula change −4.665 bp. A finite move is not its first-order derivative.

Reading and notes

The part's papers

from READING.md

  • Vasicek, O. (1977). "An equilibrium characterization of the term structure." JFE.
  • Cox, J., Ingersoll, J., Ross, S. (1985). "A theory of the term structure of interest rates." Econometrica.
  • Ho, T., Lee, S.-B. (1986). "Term structure movements and pricing interest rate contingent claims." Journal of Finance.
  • Schwartz, E., Torous, W. (1989). "Prepayment and the valuation of mortgage-backed securities." Journal of Finance.
  • Hull, J., White, A. (1990). "Pricing interest-rate-derivative securities." RFS.
  • Black, F., Derman, E., Toy, W. (1990). "A one-factor model of interest rates and its application to Treasury bond options." FAJ.
  • Black, F., Karasinski, P. (1991). "Bond and option pricing when short rates are lognormal." FAJ.
  • Heath, D., Jarrow, R., Morton, A. (1992). "Bond pricing and the term structure of interest rates." Econometrica.
  • Black, F. (1995). "Interest rates as options." Journal of Finance.
  • Jorion, P. (1995). Big Bets Gone Bad: Derivatives and Bankruptcy in Orange County.
  • Duffie, D., Kan, R. (1996). "A yield-factor model of interest rates." Mathematical Finance.
  • Brace, A., Gatarek, D., Musiela, M. (1997). "The market model of interest rate dynamics." Mathematical Finance.
  • Jamshidian, F. (1997). "LIBOR and swap market models and measures." Finance and Stochastics.
  • Miltersen, K., Sandmann, K., Sondermann, D. (1997). "Closed form solutions for term structure derivatives with log-normal interest rates." Journal of Finance.
  • Dai, Q., Singleton, K. (2000). "Specification analysis of affine term structure models." Journal of Finance.
  • Duffee, G. (2002). "Term premia and interest rate forecasts in affine models." Journal of Finance.
  • Ang, A., Piazzesi, M. (2003). "A no-arbitrage vector autoregression of term structure dynamics with macroeconomic and latent variables." J. Monetary Economics.
  • Cochrane, J., Piazzesi, M. (2005). "Bond risk premia." AER.
  • Ludvigson, S., Ng, S. (2009). "Macro factors in bond risk premia." RFS.
  • Mercurio, F. (2009). "Interest rates and the credit crunch: new formulas and market models." Bloomberg WP.
  • Piterbarg, V. (2010). "Funding beyond discounting: collateral agreements and derivatives pricing." Risk.
  • Joslin, S., Singleton, K., Zhu, H. (2011). "A new perspective on Gaussian dynamic term structure models." RFS.
  • Hanson, S. (2014). "Mortgage convexity." JFE.
  • Wu, J. C., Xia, F. D. (2016). "Measuring the macroeconomic impact of monetary policy at the zero lower bound." JMCB.
  • Lyashenko, A., Mercurio, F. (2019). "Looking forward to backward-looking rates: a modeling framework for term rates replacing LIBOR." Working paper.
  • Bianchi, D., Büchner, M., Tamoni, A. (2021). "Bond risk premiums with machine learning." RFS.

Papers and sources

Papers, chapter by chapter

  • Hook: SEC administrative proceedings on the Orange County investment pools (1996); FOMC statements (1994).
  • ch. 1–2: Vasicek (1977); Cox, Ingersoll and Ross (1985); Feller (1951); Phillips and Yu (2005); Duffie and Kan (1996); Dai and Singleton (2000).
  • ch. 3–4: Ho and Lee (1986); Hull and White (1990, 1994); Black, Derman and Toy (1990); Black and Karasinski (1991); Heath, Jarrow and Morton (1992).
  • ch. 5–7: Bachelier (1900); Black (1976); Jamshidian (1989); Rebonato (2004); Hagan, Kumar, Lesniewski and Woodward (2002, 2014); Bartlett (2006); CME Group notices (April 2020).
  • ch. 8–9: Brace, Gatarek and Musiela (1997); Jamshidian (1997); Miltersen, Sandmann and Sondermann (1997); Lyashenko and Mercurio (2019); Longstaff and Schwartz (2001).
  • ch. 10: Piterbarg (2010); LCH and CME notices on the SOFR discounting switch (October 2020).
  • ch. 11: Fama and Bliss (1987); Campbell and Shiller (1991); Cochrane and Piazzesi (2005); Ang and Piazzesi (2003); Adrian, Crump and Moench (2013); Bianchi, Büchner and Tamoni (2021).
  • ch. 12: SIFMA good-delivery guidelines; Federal Reserve H.4.1.
Textbook audit
Textbook Chapters Where
Brigo and Mercurio, Interest Rate Models: Theory and Practice (2nd ed.) 1–2 (definitions, numeraires), 3 (one-factor short-rate models: Vasicek, CIR, Hull–White, BK), 4 (two-factor G2++), 5 (HJM), 6 (LIBOR and swap market models), 8 (cap and swaption calibration), 13 (callables, Bermudans) ch. 1–5, 8–9
Andersen and Piterbarg, Interest Rate Modeling, vols. II–III 10–12 (one-factor and Gaussian models), 14–15 (market models), 16 (SABR, smile), 18–19 (callable LIBOR exotics, Bermudans) ch. 3–9
Rebonato, Volatility and Correlation caplet vol shapes (abcd), correlation and swaption vols ch. 5, 8
James and Webber, Interest Rate Modelling affine models, empirical term structure, MBS ch. 2, 11–12
Data, scope and reproducibilityData boundary and examples

The original compute.py, House algorithms and global data/experiment registries are unchanged. Only 22 permitted original descriptive examples were normally restored. Active scenes refuse premia, premia_acm and envelope: those legacy paths register or load forecast experiments involving sealed returns. This pass adds no market trial and opens no sealed strategy-return payload. Historical trial counts stay 315 through Part 19 and 23,562 globally.

Two separately named, fixed-seed numerical examples correct presentation problems without changing the original algorithms or their caches:

  • market_model_example.py uses caplet resets at 0.5–5 years and payments at 1–5.5 years, with matching initial forward ratios. It samples each reset payoff with the payment/terminal bond ratio at that reset. The original demonstration mixed initial accrual and option-expiry time origins. The new example records individual Monte Carlo standard errors. Maximum deviations are 1.275% for Black and 0.719% for Bachelier, respectively 1.333 and 0.950 standard errors; finite Euler bias remains possible. Unbounded normal simple forwards are a local numerical approximation: positive bond ratios require L > -1/delta, and the example rejects paths that violate this domain. A finite successful sample does not certify global admissibility. Zero-volatility ATM values are zero.
  • reserve_example.py solves a new volatility for each mean-reversion scenario to match the same European: 2-year expiry into an 8-year receiver swap at the same strike and target price. Maximum hedge-pricing error is below 1e-9 of notional. Numerical Bermudan grid prices range from 439.7 to 518.1 bp. This replaces post-hoc ratio rescaling. Matching one synthetic hedge is not fitting a market option surface; the range is a sensitivity scenario, not a fair-value bound, confidence interval or automatic accounting reserve.

Sources are the pinned Federal Reserve fitted Treasury curve (GSW), FRED and cited public records. Full-sample descriptive yield and return regressions are distinct from sealed forecast-return experiments. Current-vintage smoothed curves are not directly investable prices and do not establish point-in-time forecast performance. No data-manifest refresh is used. The legacy NY Fed ACM comparison is excluded because it depends on the blocked forecast payload.

Chapter notesChapters
  1. Opening: the bond massacre. The Fed's 1994 tightening and Orange County illustrate leverage and nonlinear rate exposure. The SEC's June-1994 balance sheet has $19.8bn securities, $7.2bn participant deposits and $12.6bn reverse repos. Dividing a reported $1.5–1.7bn loss fraction by a five-year yield change is a rough duration-equivalent, not a measured portfolio duration: dates, funding and nonlinear exposures differ.
  2. Short-rate models. Vasicek's Gaussian transition and CIR's nonnegative diffusion. Feller makes zero inaccessible when the initial state is positive; its failure does not permit negative CIR rates. The original monthly bill proxy is clipped at one basis point before both fits. Bill discount yields differ from instantaneous continuously compounded rates. Historical fits, parameter uncertainty, re-estimation bias and sampled fans are descriptive.
  3. Affine term structures. Pricing-measure Feynman–Kac and Riccati equations, admissible state spaces, Vasicek/CIR limits and a two-factor Gaussian model. Using historical parameters in pricing formulas is explicitly illustrative. A drift gap equals diffusion loading times the market price of risk under a stated sign convention. Perfect positive instantaneous correlation applies to the positive loadings of this one-factor affine model, not every nonlinear one-factor model. The two factors resemble, but are not literally, empirical principal components.
  4. Hull–White. With x_0=0, a deterministic shift fits the initial curve analytically. The drift intercept is not itself the mean-reversion target. This example fits historical yield-volatility proxies, not option-market quotes. Boundary fits in low-rate windows expose model misspecification. Gaussian state and integral simulation can be exact at sampled dates, while sample repricing still has uncertainty.
  5. HJM. The money-market pricing-measure drift is fixed by forward volatility; in rolling-maturity coordinates a curve-slope term also enters. Ho–Lee's displayed expectation refers to a fixed calendar maturity, not a rolling 30-year forward. Empirical yield loadings are differentiated into illustrative forward volatilities. Saved bond-pricing ratios around 0.998–0.990 are diagnostics: no standard errors or convergence study justify declaring a numerical pass. Shaded percentile bands are pointwise, not simultaneous path coverage.
  6. Caps, floors and swaptions. Fixing/payment dates, payment-date and annuity numeraires, Black and Bachelier quote assumptions, parity and cap stripping. Volatility has square-root-time units. Hull–White simple forwards are not exactly normal merely because short rates are Gaussian. Jamshidian assumes positive coupon weights, monotone component prices and an existing unique root; negative fixed coupons need separate treatment.
  7. Negative rates. ECB deposit rates were negative from 11 June 2014 through 26 July 2022; German monthly government yields also went negative. Unshifted Black requires positive forward and strike. Normal or suitably shifted models can accommodate negatives. CME's April-2020 Bachelier switch concerns specified energy options, not a universal rates-market transition.
  8. SABR. Stochastic volatility, level/skew/curvature and backbone hedges. Each backbone example solves alpha to match one identical ATM normal-vol target; it does not fit an entire smile. The implied-volatility formula is asymptotic. A historical Treasury realized-volatility slope near 0.3 does not identify pricing-measure SABR beta for a swap forward. Fractional unshifted powers need a suitable domain; shifts and boundary conventions matter. A nonnegative central density plot does not establish global normalization; negative strike curvature at sampled strikes reveals butterfly arbitrage in the approximation.
  9. Market models. Forward-measure caplet marginals and a common terminal measure. The displayed drift is a one-factor formula; multiple factors require correlations. The corrected dated example is separate from the original House implementation. A frozen-weight swaption-volatility calculation is an approximation. A generalized forward market model handles remaining uncertainty during compounded overnight accrual; linear decay is a model specification, and SOFR caplets are not unconditionally more valuable than IBOR caplets.
  10. Bermudan swaptions. An optimal Bermudan is at least its best scheduled European; strict inequality is conditional. Independent-path evaluation estimates a feasible policy's expected lower-bound value, with sampling error. A small in/out-sample difference does not isolate look-ahead bias. The plotted exercise line is a sample maximum among exercised paths, not an exact boundary. A finite Gaussian grid has quadrature, interpolation and boundary error despite exact transition distributions. Callable bonds use the issuer's embedded exercise right.
  11. Multi-curve and collateral. TED reflects more than pure bank default risk. Separate projection and discount curves encode index, tenor and collateral conventions; projection pseudo-discount factors need not be traded bond prices. Collateral-rate discounting assumes a consistent measure and idealized collateral mechanics. A standard SOFR OIS with SOFR cash collateral can use one curve; tenor, funding and cross-currency bases persist.
  12. Bond premia. Public-curve Fama–Bliss regressions use overlapping annual log returns and 12-lag Newey–West standard errors. Their full-sample association is not a causal result or live trading score. Cochrane–Piazzesi motivates the research question; the active lesson gives a validation protocol covering publication lags, purging overlapping targets, training-only fitting, feasible benchmarks, every specification tried, costs and uncertainty. No sealed forecast is evaluated. Macro-finance models connect states and risk prices.
  13. Mortgages. A stylized prepayment S-curve and pass-through can produce negative effective convexity. A duration-matched bond's shaded price gap is not a pure option value. The zero-volatility/OAS difference is a model-dependent spread adjustment, not a dollar option price; zero volatility does not remove prepayment. Hedging flows can amplify moves, but the 2003 chart does not identify a causal contribution. Servicing exposures differ from pool exposures. TBA is a standardized forward-delivery market; delivery incentives do not make its quote equal to a worst pool's price. Dollar rolls transfer interim cash-flow entitlements and are not simply repos.
  14. The House. Separate theoretical restrictions, numerical diagnostics and market calibration. The risk table uses symmetric curve bumps and a bump to the Hull–White diffusion parameter sigma; this parameter sensitivity differs from market quote vega. One fixed European is actually recalibrated before comparing model sensitivities. A reserve policy needs evidence and governance beyond a chosen price range.
  15. Research: the floor and shadow rate. A one-factor floored Gaussian model, a finite-difference benchmark and a Wu–Xia-style Gaussian forward approximation. The floored model changes the forward-measure tilt, so the substitution is approximate. Higher-dimensional pricing equations remain possible but more costly. Daily yield co-movement is not an event-study replication. Local sensitivity and a finite shock are worked separately.
  16. Recap, desk questions and problems. The closing material consolidates assumptions, numerical error, measure changes and model risk. The manifest has 16 scenes: the opening, 13 numbered chapters, Research and Outro; Research precedes Outro.

中文讲义

本讲的中文说明、交易台问题与习题解答(与英文版对应)。

导言量化金融,从零搭建 — 第19部分:期限结构模型

本部分承接第18部分的贴现曲线,为利率曲线建立随机动态并定价期权。全系列43部分;章节与文献见系列计划、教学大纲及阅读地图。

科学与双语复核、当前源码的端点帧和动画视觉验收已完成。完整成片配音的连续听审仍待完成。旁白约60分钟,动画和停顿另计。

Chapter notes章节与解释边界
  • 开场与1994年。 美联储紧缩和橙县说明杠杆及非线性暴露。证交会1994年六月数据为198亿美元证券、72亿美元参与者存款及126亿美元逆回购。损失比例除以五年期收益率变化,只给出粗略久期等价量;日期、融资与非线性均不同,不能当作测得组合久期。
  • 短率。 Vasicek高斯转移;CIR非负扩散。正初值下Feller使零不可达,不满足时也不会允许负利率。原月末国库券贴现收益率先截在一基点,再拟合两个模型;它只是瞬时连续复利短率的代理。历史拟合、均值回归估计不确定度、重估偏差及路径扇均为描述性。
  • 仿射模型。 定价测度下Feynman–Kac和Riccati、可行状态空间及不同模型的长期极限。历史参数代入定价公式只作示意。漂移差等于扩散载荷乘风险价格,须说明符号约定。一因子完全正瞬时相关仅适用于这里的正仿射载荷,不是所有非线性模型定理。双因子类似水平与斜率,并非经验主成分本身。
  • Hull–White。 在x_0=0条件下,确定性平移解析拟合初始曲线。漂移截距不同于回归目标。示例拟合历史收益率波动代理,并非市场期权报价;低利率时期边界拟合暴露模型限制。采样日期的高斯状态与积分可精确模拟,均值重定价仍有抽样误差。
  • HJM。 货币市场定价测度漂移由远期波动决定;滚动期限坐标还含曲线斜率项。Ho–Lee期望针对固定日历到期日,不是滚动三十年远期。历史收益率载荷经求导构成示意远期波动。已存0.998至0.990价格比缺少标准误和收敛检验,不能宣布数值通过。分位阴影为逐点范围,不是完整路径覆盖。
  • 上限、下限与互换期权。 区分定息与付款日、付款日与年金计价物、Black/Bachelier分布假设、平价和波动率剥离。波动率使用根号时间单位。高斯短率不使单利远期严格正态。Jamshidian需要非负息票权重、单调零息价格及唯一存在的根;负息票须另行检查。
  • 负利率。 欧洲央行存款利率从2014年六月十一日至2022年七月二十六日为负,德国月度国债收益率也曾为负。未平移Black要求正远期和执行价;正态或适当平移模型可容纳负数。CME在2020年的切换针对指定能源期权,并非所有利率市场统一转型。
  • SABR。 随机波动、水平、偏斜、曲率及骨架对冲。每个骨架示例求alpha匹配同一平值正态波动目标,并非拟合整个微笑。隐含波动公式为渐近近似。历史国债实现波动斜率约0.3不能识别互换远期定价测度beta。分数幂需适当定义域,平移和边界重要。中央密度非负不证明全局归一化;采样执行价负曲率揭示近似的蝶式套利。
  • 市场模型。 各远期测度下边际与共同终端测度。一因子漂移推广至多因子时须包括相关系数。日期一致的示例与旧House实现分开。固定权重互换波动公式仍为近似。广义远期市场模型描述隔夜复利期间剩余风险,线性衰减只是设定,SOFR上限单元并非无条件更贵。
  • 百慕大。 最优价值至少等于表内最贵欧式,严格更贵有条件。独立路径估值给出可行策略期望下界的带噪声估计;样本内外差很小不能单独识别前瞻偏差。已行权路径的最高利率只是边界摘要。高斯网格即便使用精确转移分布,也有求积、插值及边界误差。可赎回债含发行人行权权利。
  • 多曲线与抵押。 TED不只反映违约风险。投影与贴现曲线体现指数、期限和抵押安排,伪贴现因子不必是可交易债券价格。抵押利率贴现需要一致测度和理想化抵押假设。SOFR现金抵押的普通SOFR隔夜指数互换可共用一条曲线,但期限、融资及跨币种基差仍存在。
  • 债券溢价。 公开曲线Fama–Bliss回归使用重叠年度对数收益和十二阶Newey–West标准误。全样本相关并非因果或实时交易成绩。Cochrane–Piazzesi引出预测问题,验证方案涵盖发布滞后、重叠目标剔除、训练拟合、可行基准、全部尝试、成本与不确定度。不评估封存预测。宏观金融模型连接状态与风险价格。
  • 抵押贷款。 示意提前还款规则可产生负有效凸性。与久期匹配债券的阴影差不是纯期权价值。零波动利差减OAS是依赖模型的收益率调整,不是美元期权价;关掉波动并未取消提前还款。对冲流可能放大行情,但2003年图不能识别因果贡献。服务权暴露不同。TBA是标准化远期交割,报价不等于最差单池价格;美元滚动改变期间本息归属,不是简单回购。
  • House与研究。 区分理论限制、数值诊断和市场校准;风险表采用对称曲线冲击和Hull–White扩散参数sigma冲击,参数敏感度不同于市场报价vega;同一固定欧式须实际重新校准后再比模型敏感度。影子利率采用一因子有限差分基准及Wu–Xia式高斯近似,下限改变远期测度倾斜,近似误差依赖模型。多因子方程仍可建立,但成本更高。日度收益率共变并非新闻事件研究。研究场景先于回顾,清单共16个场景。
Desk questions, with solutions交易台解答
  1. 百慕大可采用表内任何欧式行权规则,因此精确最优价值至少等于每个欧式。有限策略估计有噪声,严格多出的价值需要灵活性有用。
  2. 近平值、小总波动时,正态波动约为远期乘Black波动,即.04 × .25 = .01,每根号年100基点。这是近似。同一年金与惯例下,精确平值转换满足sigma_N sqrt(T/(2 pi))=F[2 Phi(sigma_B sqrt(T)/2)-1]。
  3. 负凸性仓位即便利率返回起点,仍可能因实现变动亏损。局部常凸性、理想线性对冲下,相对凸性损益约0.5 C sum((delta y)^2);总损益还含持有收益、利差、提前还款、对冲基差和成本,并非保证年度亏损公式。
  4. 当前曲线的精确拟合只确定平移项,不能确定全部未来动态、微笑和跨期依赖。本例用历史波动代理,交易台须按相关期权校准;次日重拟合是操作选择,而非原模型内部一致的必要条件。
Problems, with worked solutions十道习题解答
  1. a>0时,r_T=b+(r_0-b)e^(-aT)+sigma integral_0^T e^(-a(T-s))dW_s,均值为前两项,方差sigma²(1-e^(-2aT))/(2a)。若为定价测度参数,长期零息收益率为b-sigma²/(2a²)。
  2. 定价漂移为a(b-r)、债券终值一。代入P=exp(A-B r),有A(0)=B(0)=0、B'=1-aB、A'=-abB+sigma²B²/2,故B=(1-e^(-a tau))/a。这里A是对数前因子。
  3. t<=T下,f(t,T)=f(0,T)+sigma² t(T-t/2)+sigma W_t。这是货币市场定价测度的固定日历到期日表达式;期望修正随T变陡,不表示每条实际路径上升,滚动期限还须加期限移动项。
  4. x_0=0、dx=-a x dt+sigma dW时,高斯积分给出P(0,T)=exp(-integral phi+V/2)。匹配曲线并求导,得到phi(T)=f^M(0,T)+sigma²(1-e^(-aT))²/(2a²)。
  5. 平值Bachelier每单位年金价格为sigma_N sqrt(T/(2 pi))。单位本金、.25计息、.96贴现、到期一年、波动.01,价格.00095746,即本金的9.575基点;定息与付款日期不同。
  6. 非负息票、单调零息价及唯一存在的根下,取sum c_i P_i(x*)=1和K_i=P_i(x*)。所有分量在同一状态改变价内性,故(sum c_i P_i-1)+=sum c_i(P_i-K_i)+。接收方为债券看涨,支付方为看跌;缺少这些条件则推导未必成立。
  7. 同路径拟合可使用未来信息,使评估相对可行策略向上偏;策略近似又可使价值相对最优向下偏,综合估计一般不构成上界。独立评估固定可行策略时,期望支付不超过最优值;有限蒙特卡洛估计仍有抽样误差,条件标准误不包含所有训练策略不确定性。
  8. 连续插值生存率S(t)=(1-c)^t=exp(-h t),h=-ln(1-c)。无摊还及终止期限时,平均寿命1/h,6%为16.16年,45%为1.673年。若每年末离散偿付,几何分布均值为1/c。期限T截断后,连续均值为(1-e^(-hT))/h。不同常数速度本身不证明负凸性,关键是提前还款随利率变化。
  9. 对适当测度下s~N(a,sigma_n²),正态尾积分给出E[max(s,r_min)]=r_min+sigma_n[phi(z)+z Phi(z)],z=(a-r_min)/sigma_n;求导得g'=Phi。用无下限模型矩代替受限模型远期测度矩,是额外近似。
  10. 固定参数及期限方差,partial f(n)/partial s≈Phi(z_n)e^(-kappa n),收益率导数须沿期限平均。零下限、均值−1%、期限标准差1%时,远期为8.332基点。当前状态下降50基点、载荷.8,局部变化为−6.346基点;在新均值−1.4%重算,远期3.667基点,有限变化−4.665基点。有限移动不能等同一阶导数。
Data, scope and reproducibility数据边界与独立示例

原compute.py、House算法及全局数据与试验登记均保持不变,只正常恢复22项允许的描述性示例。当前场景拒绝载入premia、premia_acm、envelope,因为旧路径会登记或载入涉及封存收益的预测试验。本轮不新增市场试验,不打开封存策略收益,不刷新数据清单。第19部分累计315次、全局23,562次保持原值。公开曲线上的全样本描述性回归,不等于封存预测表现;当前版本的平滑曲线也不是可直接交易的价格。

另行命名的market_model_example.py使用一致日期:半年至五年定息,再过半年付款,初始远期由匹配日期贴现比计算;各自定息时按付款债券与终端债券比值加权。Black与Bachelier最大偏差分别为1.275%和0.719%,约1.333与0.950个标准误,有限Euler离散误差仍可能存在。无界正态单利远期只是局部数值近似,正债券比值要求L > -1/delta;示例拒绝越界路径,有限样本未越界不代表全局可行性。零波动平值价格为零。旧算法与缓存没有改写。

reserve_example.py对每个均值回归情景重新求波动率,匹配同一执行价、两年到期、其后八年期限的接收方欧式及同一目标价格。对冲工具误差小于名义本金的1e-9;百慕大网格价格为439.7至518.1基点。这是真正重新校准,不是按价格比缩放。匹配一个合成对冲并非校准完整市场期权曲面;范围只是敏感度情景,不是公允价值界限、置信区间或自动会计准备金。

Build the film

python -m videos.quant.quant19.compute      # the part's numbers, into .cache/quant19
python tools/make.py quant19                # the narrated film, English and Chinese
EXPLAINER_TTS=silent python tools/qa_scene.py quant19 Hook   # one chapter, silent, with a contact sheet

Scenes: videos/quant/quant19. Setup: see the course page. Source of these notes: the part's README and the scenes' narration.