Money, Bonds and the Curve
Government bonds are called safe, and in 2022 long ones fell further than stocks. What is a bond's risk, and what moves the curve?
The part starts with money itself: reserves, the central bank's floor, quantitative easing and its reversal, the Taylor rule. Then the arithmetic every rates desk lives by: yields, forwards, bootstrapping a curve from par bonds, duration and convexity. Five decades of US curves are replayed and three motions explain almost all of them: level, slope and curvature. Swaps, Treasury futures and repo are the instruments; the expectations hypothesis and the term premium are the economics. The gilt crisis of September 2022 and Silicon Valley Bank in March 2023 are duration risk meeting leverage and deposits.
What you need. Compound interest; Part 3's discounting.
What you will be able to do
Undergraduate
- Compute a bond's price, yield, duration and convexity, and estimate its price change for a given move in yield.
- Bootstrap zero rates from par yields and compute forward rates.
Master's
- Fit a Nelson-Siegel-Svensson curve; hedge with key-rate durations; extract level, slope and curvature by principal components.
- Price a swap, find a Treasury future's cheapest-to-deliver, and separate expected short rates from the term premium.
PhD
- Explain why the curve's principal components look like level, slope and curvature: total positivity and the Gantmacher-Krein oscillation theorem.
Industry
- Explain the liability-driven-investment spiral of 2022 and the run on Silicon Valley Bank in terms of duration, leverage and funding.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Undergraduate 25 min · Master's 60 min · PhD 65 min · Industry 36 min.
- 0The safest assetUndergraduate3 min
- 1Money, reserves and the floorUndergraduate2 min
- 2QE and QT: the balance sheetUndergraduate2 min
- 3The Taylor ruleUndergraduate2 min
- 4Bonds, yields and forwardsUndergraduate3 min
- 5Bootstrapping a curveUndergraduate3 min
- 6Duration and convexityUndergraduate3 min
- 7Key rates and immunizationMaster's3 min
- 8Fitting the curve: Nelson-Siegel and SvenssonMaster's3 min
- 9Five decades of the curveUndergraduate3 min
- 10Level, slope and curvatureMaster's3 min
- 11Swaps and the negative swap spreadMaster's3 min
- 12Treasury futures and the cheapest to deliverMaster's3 min
- 13Repo, SOFR and the end of LIBORMaster's3 min
- 14Expectations and the term premiumMaster's3 min
- 15FOMC daysMaster's2 min
- 16Relative value: the butterflyIndustry3 min
- 17September 2022: gilts and LDIIndustry3 min
- 18March 2023: Silicon Valley BankIndustry3 min
- 19Rule 18: the rates deskIndustry1 min
- For the researcher: why level, slope and curvaturePhD5 min
- 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 safest assetUndergraduate3 min
Money, bonds and the curve. What a central bank actually sets, what a bond's price says about every future date, and how the whole curve of interest rates moves.
At the end of 2022, Silicon Valley Bank's holding company reported about ninety-one billion dollars of held-to-maturity securities, predominantly agency mortgage-backed bonds. Low credit risk does not remove interest-rate, prepayment or liquidity risk. Through 2022 the fitted six-year Treasury yield rose by percentage points. This line is a rough duration proxy: hold the year-end notional fixed and treat the reported six-point-two-year duration as a constant modified sensitivity. It is not the bank's actual daily valuation and omits convexity, changing holdings and mortgage-specific risk. The separate year-end 10-K figures report an unrealized held-to-maturity loss of billion dollars against billion of holding-company equity.
A securities default was not needed for this bank to fail. On March eighth, 2023, it announced the sale of about twenty-one billion dollars of available-for-sale securities and an after-tax loss of about one-point-eight billion. The next day depositors withdrew over forty billion dollars, and on the tenth the bank was closed. A question to carry through the part: how can low-credit-risk assets contribute to a bank's failure? Chapter six gives a sensitivity calculation, and chapter eighteen examines the balance sheet, funding and management failures.
How we got here. In 1938 Frederick Macaulay defined duration, the average time you wait for a bond's money. In 1952 the actuary Frank Redington showed how to immunize a pension fund against rates. In 1979 Paul Volcker's Fed let rates go where they had to, and the curve became the thing to model: Nelson and Siegel fitted it in 1987, and Litterman and Scheinkman found in 1991 that three factors move it. That year Salomon Brothers' bond desk was caught breaking the Treasury's auction rules; in 1993 John Taylor wrote down a rule for the policy rate; in 1994 Salomon's former arbitrage chief founded Long-Term Capital Management. In 2008 the Fed began paying interest on reserves, which changed how it sets rates. LIBOR's manipulation came out in 2012, and in 2017 a new benchmark, SOFR, was chosen to replace it. Then the plumbing broke, again and again: the repo spike of 2019, Britain's pension funds in 2022, Silicon Valley Bank in 2023. And in December 2025 the Fed stopped shrinking its balance sheet.
The plan, in eight steps: money and central-bank operating tools; bonds and a curve built from public quotes; duration, convexity and immunization; fitted curves, their history and principal components; the instruments a rates desk trades; model-dependent expectations and term premia; a relative-value exposure and its required validation design; and two crises from public records. No sealed butterfly return window is opened in this pass, and no completed strategy validation is claimed.
In the House, the rates desk opens. Its first tool is a curve builder that every later part prices off: credit, macro, and the firm's own funding. And its first rule is about how a rates position is measured.
1Money, reserves and the floorUndergraduate2 min
Start with the central bank's balance sheet. Assets include Treasuries, agency mortgage securities and loans. Liabilities include currency, reserve balances, reverse repos and the Treasury's account; capital and other items complete the identity. Buying a bond from a bank credits its reserve account. Buying from a nonbank normally credits a bank's reserves and the seller's bank deposit. These are different balance-sheet entries. Eligible institutions lend unsecured overnight funds in the federal funds market, where Federal Home Loan Banks are important lenders too. The FOMC sets a target range, normally at eight scheduled meetings a year, and can act between meetings. The effective rate is a market statistic, not a number mechanically fixed by the committee.
Before 2008 the Fed generally implemented policy with scarce reserves. A downward-sloping reserve-demand schedule illustrates why smaller supply changes could move overnight rates; Poole's 1968 analysis explains this operating problem. The drawn demand curve is a schematic, not a fitted estimate. With ample reserves, administered rates became central: interest on reserves began in 2008, and the overnight reverse-repo facility later broadened access to a safe investment rate. IORB is the name used since July 2021. Access restrictions, credit and dealer balance-sheet costs limit arbitrage. These are all saved weekly observations from 2009 through 2025. The funds-minus-reserve-rate spread ranges from minus twenty to plus fifteen basis points. This pooled scatter is descriptive; it neither estimates a stable demand curve nor guarantees a corridor.
Here are the saved weekly policy and market rates from 2007 through 2025. Before December 2008 the target was a point; afterward it was generally a quarter-point range. Interest on reserve balances and the ON RRP offering rate provide important incentives, with positions inside or near the target range changing over time. Effective federal funds and SOFR often track them, but they are different markets. SOFR can rise above IORB during repo-market stress, so the picture is not a hard arbitrage corridor. Weekly sampling can miss intraday and daily extremes. From March 2022 to July 2023 the target range rose five-and-a-quarter percentage points. Raising administered rates did not require a return to scarce reserves, although quantitative tightening also reduced the balance sheet during this period.
A puzzle before we move on. The funds rate has mostly traded a few basis points below interest on reserves. Why would anyone lend reserves for less than the Fed pays to hold them? Chapter thirteen's plumbing has the answer.
2QE and QT: the balance sheetUndergraduate2 min
Quantitative easing, and its reverse. An ample-reserves operating system can control overnight rates with administered prices. Asset purchases were one source of abundant reserves. In August 2008 the Fed's assets were under a trillion dollars. Successive purchase programs expanded them, followed by runoff beginning in 2017 and the repo-market disruption of September 2019. Purchases accelerated sharply in 2020; the saved weekly series peaks at trillion in April 2022. Pink shows reserve balances, a large liability category; teal shows ON RRP balances, held by eligible cash investors including money-market funds. The coloured areas overlap and omit other liabilities and capital. They are not a stacked accounting decomposition. Buying long bonds removes duration from private portfolios and can affect term premia, but the chart alone does not identify a causal yield effect.
The balance sheet identity includes capital as well as liabilities. Here the symbols mean assets, currency, reserve balances, overnight reverse repos, the Treasury account, other liabilities and capital. Rearranging their changes gives the reserve-balance identity. An asset decline does not determine the reserve decline by itself. If ON RRP falls while other items stay fixed, it offsets part of asset runoff. Treasury cash flows, currency demand and other balance-sheet movements can reinforce or offset that effect. This is accounting, not a causal model or a promise that the next dollar of runoff must remove one dollar of reserves.
Quantitative tightening began in June 2022 with limits on how much principal could run off without reinvestment. Between the saved April 2022 peak and November 2025 endpoints, assets fell trillion dollars, ON RRP fell trillion, and reserve balances fell trillion. The April starting point precedes the formal June runoff start. A smaller ON RRP balance leaves less of that buffer, but Treasury flows and other items still matter. On October twenty-ninth, 2025, the FOMC announced that aggregate securities runoff would end on December first. That is a dated policy decision, not evidence that reserves obey a one-for-one runoff rule.
Pause and predict: which other liabilities and reserve-distribution effects could tighten repo conditions as quantitative tightening proceeds? The accounting identity is the starting point, not the whole explanation.
3The Taylor ruleUndergraduate2 min
Taylor's 1993 rule is a conditional benchmark for a nominal policy rate. Add a neutral real rate to inflation, then add half the inflation gap and half the output gap, all measured in percentage points. With a two-percent neutral real rate and two-percent inflation target, the formula becomes one plus one-and-a-half times inflation plus half the output gap. Holding other terms fixed, a point more inflation raises the nominal-minus-current-inflation rate by half a point. This illustrates the Taylor principle. It is not a standalone theorem of stability: expectations, inertia, output responses and policy constraints matter. Potential output and the neutral real rate are unobserved. This retrospective chart uses a pinned revised CBO estimate and revised inflation data, not the real-time information available to each historical committee.
This is a retrospective comparison of quarterly average federal funds with two versions of the rule, using revised data. Their pre-2008 correlation is . Correlation does not establish that this specification was the committee's reaction function. In 2003 through 2005 the saved average rate lies percentage points below the GDP-deflator benchmark. That difference alone does not identify a cause of the housing boom. The benchmark turns negative in some post-crisis quarters. The Fed chose a near-zero target and other tools; negative nominal rates were not a mathematical impossibility. In the second quarter of 2022 this rule gives about thirteen percent against an actual quarterly average of about zero-point-eight percent. The Fed subsequently raised rates substantially. Using core PCE changes the benchmark, showing the sensitivity to inflation measure, neutral-rate assumptions and revised output gaps.
The formula is a plane over inflation and the output gap. Its complete displayed range is retained, including a fifteen-percent rate at the upper corner. Each dot is one quarter's actual average rate, with a stem to the conditional benchmark evaluated at that quarter's revised inputs. Distances from this plane are specification-dependent residuals, not measured policy mistakes. The neutral rate, inflation target, output-gap estimate, timing and reaction coefficients can all change the comparison. This full-sample retrospective picture does not prove that any alternative policy would have delivered a better outcome.
Pause and predict: name two assumptions or information vintages that could change this comparison, and one independent way to assess the outcomes of the actual policy.
4Bonds, yields and forwardsUndergraduate3 min
Consider a hypothetical ten-year bond with a four-percent annual coupon paid semiannually, valued on a regular coupon date with no accrued interest. The left panel shows all twenty two-dollar coupons; the separate right panel shows the full hundred-dollar principal. No bar is capped. Discount each dated payment using this illustrative curve. Its positive rates make the present values smaller here; negative rates need not do that. Using our simplified bootstrap from Treasury's published December thirty-first, 2025 par-curve points gives a model price of per hundred. This is not an observed quote for an identified Treasury security. The nominal semiannual yield to maturity is the single discount-rate root reproducing that price: percent. It is a nonlinear internal rate of return, not an arithmetic average of zero rates or a guaranteed realized holding return.
Let a positive discount factor for one unit at date t be Z of t, and define its continuously compounded zero yield by minus log Z divided by t. In a frictionless single-currency setting with matching credit and collateral terms and feasible borrowing and lending, ratios of discount factors determine a forward loan rate fixed today. That rate is not generally the future short rate's physical expectation. Taking logs gives the difference in zero-yield-times-maturity divided by the lending interval. At positive maturities where the curve is differentiable, the instantaneous forward equals the zero rate plus maturity times its derivative. It exceeds the zero there exactly when that derivative is positive. At piecewise interpolation knots the derivative can jump, so one-sided values or a numerical convention are needed.
These curves use December thirty-first, 2025 inputs. The blue dots are Treasury constant-maturity par-curve points, derived from indicative bid-side quotations, not necessarily yields on individual securities. The connecting par curve is our simplified construction. Violet shows zero rates from our short-node convention and coupon bootstrap; it does not reproduce Treasury's official monotone-convex methodology. Orange shows sampled finite-difference forwards. Differentiating a curve amplifies changes in its slope, and forwards contain risk-premium and convention effects as well as expectations. Linear interpolation of zero yield times maturity produces flat forwards between nodes. The displayed samples connect numerical values, including central-difference conventions near knots. The interior ten-to-twenty-year forward is percent, and the twenty-to-thirty-year one is , under this particular interpolation.
A rate quotation needs a compounding rule, day count, payment calendar and price convention. Those details depend on the contract. Fixed-rate Treasury notes and bonds normally pay semiannually with actual-over-actual conventions. Many dollar corporate bonds use thirty-over-three-sixty. Swap fixed-leg day counts depend on currency and product; a SOFR overnight-indexed swap commonly uses actual-over-three-sixty on both legs. SOFR compounding weights each fixing by its applicable calendar days. Treasury bills have bank-discount and investment-yield quotations, which should not be confused with the published CMT par curve. A four-percent nominal rate compounded semiannually corresponds to about three-point-nine-six percent continuously compounded. GSW model zero yields and Treasury bond-equivalent par rates use different conventions; changing the quote convention does not change a specified discount factor.
Pause and predict: continuously compounded zero rates are four percent at two years and four-and-a-half percent at three years. What continuously compounded one-year forward rate is locked for the third year under the matching discount-curve assumptions?
The one-year forward is five-and-a-half percent: three times four-and-a-half, minus two times four. This is a rate implied by discount-factor ratios, not a forecast of the realized short rate.
5Bootstrapping a curveUndergraduate3 min
An illustrative bootstrap from published par-curve points. Treasury publishes constant-maturity par-curve points derived from its own fitted curve. Our example builds a different simplified curve from those rounded points. At maturities up to one year it assumes the displayed semiannual-equivalent conversion to a single-payment discount factor. This is a modelling convention, not an exact reconstruction of Treasury bill prices. Beyond one year use a synthetic semiannual coupon bond priced at a hundred. For a two-year bond, the one-and-a-half-year coupon lies in the new interpolation interval and depends on the unknown two-year endpoint too. Linear interpolation of log discount factors fills such gaps, giving constant forwards away from nodes. The whole new interval is still controlled by one scalar endpoint, so a bracketed root solve can reprice the longer coupon bond. This does not establish that every published short point is an exactly repriced par instrument.
Here are fourteen published par-curve maturities on December thirty-first, 2025. They are not fourteen separately executable security quotes. At short nodes the conversion is imposed; at longer nodes the endpoint is solved using synthetic coupon cash flows and the chosen interpolation. Converting compounding conventions and changing coupon weights both affect the relation between zero and par rates. The saved tiny residual applies only to coupon nodes beyond one year. As a one-year semiannual par bond, the short-node approximation instead has a par-rate discrepancy of basis points on this date. The connected curve is one construction compatible with these choices, not a uniquely identified discount curve or a complete independent reproduction of Treasury's method.
The unchanged House routine makes its conventions visible. It directly converts short CMT inputs, then solves one longer-node endpoint at a time using the interpolated curve for coupon dates. It uses regular coupon schedules rather than full settlement-date and day-count logic. The ten-year synthetic par check returns the supplied ten-year input within numerical tolerance. That checks implementation consistency for this instrument; it does not validate the short-end approximation, interpolation between observations or executable market prices.
March eighth, 2023, gives a very different curve. The published ten-year minus two-year par-rate spread is basis points. The downward forward segments are rates implied by this discount-curve construction. They are compatible with expected future easing, but term premia and conventions mean they are not direct forecasts of the Fed's decisions. No historical ranking or causal recession claim follows from this one date. The white line is the separate GSW fitted zero-yield curve. On the displayed grid from two years out the difference reaches basis points. The methods use different instrument selections, short-end assumptions and fitting criteria. Agreement is a comparison, not proof of truth; disagreement can reveal those modelling choices. All finite displayed rates are retained without clipping.
Pause and predict: even if a curve fits every specified calibration instrument exactly, which interpolation, convention and risk assumptions remain unvalidated?
6Duration and convexityUndergraduate3 min
Macaulay's 1938 duration is the present-value-weighted mean payment time for specified fixed cash flows. Here every height is proportional to its complete present-value weight, normalized to sum to one for each bond; zero cash flows have no bar. The balance point is years for this ten-year, four-and-a-half-percent coupon bond at the same nominal yield. Coupons bring some value forward, so its Macaulay duration is below maturity. A zero-coupon bond has one positive payment. Its entire normalized weight is at maturity, so Macaulay duration equals ten years. Modified duration is a different derivative quantity and depends on the yield convention.
For fixed, nonnegative bullet-bond cash flows on a regular semiannual schedule, write price as a function of the nominal semiannual yield, with one plus half the yield positive. Differentiating gives modified duration: Macaulay duration divided by one plus half the yield. This is sensitivity to the specified yield coordinate, not automatically to every curve shape. The second derivative gives convexity. Positive convexity puts this fixed-cash-flow price above its tangent. The quadratic expansion is local; it does not guarantee accuracy for large moves, and embedded options can change cash flows and effective convexity. Duration times price times one basis point is a positive first-order gain for a yield fall; a rise has the opposite sign. Actual finite changes include higher orders. Positions require signed dollar exposures and consistent bump conventions before aggregation.
This fixed four-percent coupon bond has thirty years remaining and is at par when its nominal yield is four percent. The full saved zero-to-twelve-percent yield range is displayed, including every exact-price, tangent and quadratic value. Modified duration at the base yield is : a small one-percentage-point rise gives a first-order loss of about that percent. The exact positive-cash-flow price lies above the tangent. The quadratic correction is a local improvement, not a uniformly accurate formula; far away the linear approximation even becomes negative, which is not a physical bond price. A one-point rise produces an exact price loss of per hundred against the tangent's . A one-point fall gives . This comparison is with one bond's local tangent, not a theorem about the market prices of different bonds.
For a ten-year zero with four-percent annual compounding, the price is per hundred. Macaulay duration is ten and modified duration is , giving a first-order loss of about six-and-a-half cents for a one-basis-point rise. Return to the opening proxy: fix SVB Financial Group's year-end held-to-maturity notional, use six-point-two as an approximate modified sensitivity, and apply the -point change in the six-year fitted Treasury yield. The rough asset loss is billion dollars. The separate reported gross held-to-maturity fair-value gap was billion against holding-company book equity of . Comparing them highlights rate risk, but it is not a complete economic-equity calculation or an insolvency certificate. Taxes, the values of deposits and other assets, funding, prepayment and hedges also matter.
Pause and predict: two bonds share a yield and duration, but one has more convexity. Do those facts alone determine which costs more? Consider cash-flow scale, options, risk, carry and the pricing model.
7Key rates and immunizationMaster's3 min
A key-rate report specifies a local curve perturbation. Here each zero-rate key is lowered one basis point, with a triangular weight fading to zero at its neighbours. These are one-sided finite bump gains. Their sum approximates the ten-year note's parallel sensitivity; finite-bump convexity means it is not an exact derivative identity. Coupon dates distribute some risk across earlier keys. Buying units of the two-year note against one short ten-year note cancels this displayed aggregate key-bump sum by construction. That does not make the portfolio riskless or give it zero profit for every parallel move. It retains curve-shape, higher-order, carry and funding effects. Its direction benefits locally from short yields falling relative to long yields under the specified bumps.
Redington's static immunization conditions match present values, match duration with respect to a specified common yield shift, and give assets strictly greater convexity. With suitable smoothness this makes surplus locally nonnegative for small parallel shifts. It is not a general guarantee for every finite curve move. This particular fixed-cash-flow example is stronger: positive five- and thirty-year zero holdings have value weights sixty and forty percent, with mean maturity fifteen. Convexity of the exponential and Jensen's inequality give nonnegative surplus for any parallel shift in this special model. The full plotted parallel and twist values are retained. A twist is different. Our parameter b changes the five-year yield by b and the thirty-year yield by minus one-and-a-half b. For b equal to minus one percentage point, short rates fall one point and long rates rise one-and-a-half. The shortfall is dollars, percent of initial liability value. Neither the local theorem nor this special parallel-shift result removes twist risk.
The surface uses all values on the saved twenty-five-by-twenty-five shock grid, with interpolation between nodes. Its axes are the parallel parameter a, the twist parameter b defined earlier, and present-value surplus in dollars. Along zero twist, the special positive barbell has nonnegative parallel-shift surplus. With twists, regions of shortfall appear despite matched present value and duration. Matching a finite set of key-rate sensitivities can cancel selected first-order risks; it does not generally close the whole nonlinear shortfall surface. Exact matching of fixed dated asset and liability cash flows under the same credit, currency and discounting assumptions is a stronger condition. No universal worst curve move exists without specifying a shock set or size constraint.
On the specified displayed shock grid, which twist directions produce a shortfall? Explain why parallel immunization does not control them.
8Fitting the curve: Nelson-Siegel and SvenssonMaster's3 min
Fitting the whole curve with a handful of numbers. The earlier bootstrap is an interpolation and short-end approximation, not an exact fit to every market security. Nelson and Siegel proposed a low-dimensional smooth yield family. For positive time scales, beta zero is the long-maturity limit. The slope loading starts at one and decays, so beta zero plus beta one is the short-maturity limit. The hump vanishes at both ends and peaks at about one-point-seven-nine times its time scale, rather than exactly at tau. Svensson adds a second hump and time scale. Nelson-Siegel has four parameters in total; Svensson has six. Smoothness alone establishes neither a dynamic no-arbitrage model nor reliable forward-rate derivatives.
Here the two time scales are fixed at one-point-five and twelve years; only the four beta coefficients move. Start flat at four percent. A negative slope coefficient lowers the short end relative to the long end. Add a positive hump. A positive slope coefficient instead raises the short end above the long end. This is a schematic inversion, not a fit to a dated market curve. A negative hump makes a dip, and the second hump bends longer maturities. This restricted family approximates many observed shapes, but cannot represent every possible curve. The display retains the full calculated yields.
We fit six Svensson parameters by unweighted least squares to the House's derived zero-yield nodes, rather than directly to market bond prices. For December thirty-first, 2025, the root mean squared yield residual is basis points. For March eighth, 2023, it is . These are not average price errors. White dashes show the Fed staff's Gürkaynak-Sack-Wright curve. It uses off-the-run coupon Treasuries, excluding bills and the on-the-run and first-off-the-run issues. Its targets and conventions differ from our synthetic bootstrap. The historical file uses Nelson-Siegel before 1980 and Svensson thereafter. It is a revisable research estimate, not a record of curves available to traders in real time. All plotted samples are retained.
Conditional on positive taus, the four beta coefficients solve a linear least-squares problem. The implementation searches a restricted grid of time-scale pairs, then uses the best pair to seed a joint local nonlinear refinement. Here is the December 2025 result. This procedure does not certify a global optimum, identify every parameter precisely, or supply confidence intervals. A small residual is a statement about the chosen zero-yield targets and loss function.
The smooth curve misses derived zero-yield nodes. Which targets, conventions and fitting objective should you check?
Check instrument selection, coupon and compounding conventions, the short-end approximation, interpolation and yield-versus-price weighting. A residual alone does not diagnose bad quotes.
9Five decades of the curveUndergraduate3 min
This animation samples the saved month-end GSW estimates from January 1972 through December 2025. Only available maturities are drawn; missing long maturities are omitted. Red consistently means the ten-year zero yield is below the one-year yield. In the saved month-end sample, the ten-year maximum is percent in . This is not a daily record calculation. Yields subsequently declined over much of the following decades, with substantial reversals and several inversions. The month-end ten-year minimum is percent in 2020. The later rise and the 2022-to-2024 inversion follow. The animation moves quickly across month ends, with quarterly grey traces from the preceding two years; each saved month is not necessarily a separate visible video frame.
Nine selected snapshots compare different levels, slopes and curvature. They include the high-yield era, later lower-yield curves, the pandemic and the 2023 inversion. They are examples, not an exhaustive set of shapes a future model must generate. The last snapshot is December 2025. Recomputing the ten-year-minus-one-year definition from this same saved monthly panel gives inverted observations out of , or percent. This is a fraction of paired month ends, not a daily inversion frequency.
The full monthly ten-year-minus-one-year spread is plotted, including its trough below minus three hundred basis points. Grey bands mark the NBER contraction months after each peak through its trough; those dates are determined retrospectively. For each of seven selected peaks, find the first negative spread in the available thirty-six preceding calendar months. This rule produces leads of months to the peak. The first lookback is left-censored by the 1972 sample start, and the two early-eighties windows overlap. These seven selected outcomes are neither independent trials nor a forecast score. We have not tabulated all false positives, fixed a real-time decision rule, or evaluated an untouched forecast sample. Association alone does not identify a causal effect of inversion.
This landscape shows only the one-through-fifteen-year maturities. It uses every third saved month plus the final December 2025 observation, bilinearly interpolated onto a sixty-by-twelve rendering mesh. No missing maturity is filled in, and the date range stays within the sampled grid. The height is yield, with the full sampled range retained. Many slices share broad level, slope and bend movements. That motivates a statistical factor description; it does not establish stable future loadings or explain the economic causes of those movements.
What additional evidence would distinguish a useful real-time inversion forecast from a causal effect?
A forecast needs a fixed rule, all alarms, real-time data, untouched outcomes and uncertainty. A causal claim additionally needs a credible identification design beyond historical association.
10Level, slope and curvatureMaster's3 min
Take changes between consecutive available curve observations at nine selected maturities, in basis points, then subtract each maturity's sample mean. The covariance uses these centred changes without rescaling each maturity to unit variance. The unit direction with greatest variance solves a constrained quadratic maximization. It is the leading covariance eigenvector; its eigenvalue is the variance along that direction. Subsequent components are orthogonal and uncorrelated in this fitted sample, but need not be independent. Three components approximate a centred move; the other six supply a residual. Their variance shares describe this sample and weighting, rather than the fraction of dates predicted correctly.
These are full-sample loadings from December 1985 through 2025. Their signs are conventional; reversing a loading and score together changes nothing. The first loading is positive across maturities but is not perfectly flat. Its share of total nine-maturity change variance is percent. The second tilts the short end against the long end, with percent. The third, often called curvature, has a particularly large opposite loading at thirty years in this sample, and explains percent. Together they explain percent of fitted variance. The level, slope and curvature interpretation is associated with Litterman and Scheinkman's 1991 work. These are empirical coordinates, not universal invariant shapes or a tradable real-time fit.
The selected example is October twentieth, 1987, the observation with the largest absolute ten-year yield change in this restored sample. The nine observed yields fell by about thirty-four to seventy-six basis points; the thirty-year fall was much smaller than the ten-year fall. This illustration projects the raw daily change onto full-sample loadings, rather than using the demeaned scores of the covariance fit. The first projection captures much of the broad decline. Adding the second changes the slope. Adding the third still leaves a largest residual of basis points at the -year point. A high aggregate variance share does not guarantee a small error at every maturity on every day. This selected historical reconstruction is not an out-of-sample forecast.
Refit each ten-year window separately. Broad level and tilt patterns recur, but individual loadings and variance shares change. The plot aligns signs for comparison; signs themselves are arbitrary. The second component's variance share is larger in the two later windows than in 1996 through 2005. These descriptive comparisons do not establish that the policy lower bound caused the difference, or that only long yields moved. A hedge calibrated to one window need not neutralize the next window's components.
This path accumulates the mean-centred full-sample factor scores. The cache saves every fifth observation; each saved vertex is retained here. It is a walk of centred statistical coordinates, not the actual yield level or a portfolio wealth path. Because the mean was removed using the entire sample, the path cannot be interpreted as a real-time investment signal. These factor coordinates help express local exposures, but the plotted axes have different scales. Small curvature variance does not imply that a highly levered curvature position is safe. Hedging a flat parallel shift is also different from hedging the empirical first principal component.
Does zero aggregate DV01 also imply zero exposure to the fitted, non-flat first principal component?
No. Parallel neutrality sums DV01 weights; principal-component neutrality takes their dot product with the fitted loading. Three legs can target the first two fitted components locally, while retaining other risks.
11Swaps and the negative swap spreadMaster's3 min
A plain-vanilla single-currency interest rate swap exchanges fixed interest against a floating reference rate on a common notional. This modern example uses SOFR compounded in arrears and simplified annual payments. Principal is not exchanged, and matched-date interest payments can net. Collateral and variation margin can still create large liquidity needs. A fixed-rate asset holder can pay fixed to reduce duration, while a floating-rate borrower can pay fixed to reduce rate uncertainty. Receiving fixed can add duration for a liability hedge. Mortgages retain prepayment and basis risk, and loan or deposit rates need not match SOFR.
In the ideal single-curve model at a reset date, matched floating-rate projection and discounting make the unit-notional floating coupon leg worth one minus the terminal discount factor. Payment lags, spreads and partly fixed periods require adjustments. The fixed leg is K times its discounted accrual annuity. Equating legs gives the par rate. Using our Treasury-derived zero curve and annual unit accruals gives percent for ten years. This is synthetic textbook arithmetic, not an observed SOFR swap quote. Receiver value is K minus the current par rate, times the current annuity, per unit notional. Near par, a one-basis-point fall gives approximately A times ten to the minus four. Away from par, changes in the annuity also enter; real valuation needs the appropriate discount and projection conventions.
This historical panel uses LIBOR-referencing ICE swap rates, not today's SOFR swaps. The plotted data are weekly observations of swap yields minus same-maturity Treasury yields, with the full range retained. The available pre-2008 ten-year mean is basis points; its window begins in July 2000. Bank funding, Treasury liquidity, collateral and supply-demand effects all matter. The saved thirty-year persistence-rule date is . The ten-year date is . These are not the first isolated negative observations: the code looks forward over up to two hundred fifty observations and requires more than eighty percent negative readings. It is a retrospective description, not a real-time signal. The last saved daily thirty-year spread is basis points in October 2016. Negative spreads do not compare identical funding and cash-flow risks.
Buying the Treasury in repo and paying fixed on a swap is a position with risks, rather than a locked thirty-year arbitrage. The coupon stream, swap schedule and floating index differ, and repo funding must be rolled. Balance-sheet capacity, haircuts, margin and capital have costs. Swaps also use collateral and regulatory exposure; their cost is not zero. Jermann's 2020 model shows how frictions in holding bonds can support negative swap spreads in equilibrium. It does not establish that regulation alone caused every observed spread. Liability hedgers' demand to receive fixed can also lower long swap rates. Their choice trades duration exposure against financing, liquidity, collateral and basis risks.
One to try. Who is happy to receive fixed on a swap below the Treasury yield, and why?
A liability hedger may prefer receiving fixed without financing a Treasury position. The lower quoted rate comes with different funding, collateral, liquidity and basis exposures.
12Treasury futures and the cheapest to deliverMaster's3 min
Treasury futures are margined contracts with daily variation settlement and a delivery mechanism. The classic ten-year note contract calls for a hundred thousand dollars of face value. The December 2025 CBOT rule requires six-and-a-half to under eight years remaining, rounded down to quarters, with original term at most ten years. This illustration has rule-eligible notes with synthetic prices. The seller has quality and timing choices, subject to exchange rules. We isolate a carry-free quality-choice approximation rather than reproduce an exchange settlement price.
A conversion factor approximates the note's clean price per dollar at a six-percent nominal yield compounded semiannually, using the exchange's maturity-rounding convention. Here the House computes factors; an actual delivery requires the exchange's published factors and rules. Per hundred face, the invoice is the futures price times the factor, plus accrued interest. A hundred-thousand-dollar contract scales this by a thousand. Gross basis is clean cash price minus futures price times the factor. Funding, coupon carry and delivery timing are omitted here. Define the synthetic price F star as the minimum clean-price-to-factor ratio. At that price the selected note has zero gross basis and others are nonnegative. Minimizing gross basis at an arbitrary quoted futures price is not generally identical to minimizing that ratio. Neither rule alone captures full financed delivery economics.
The eleven grade-corrected notes use synthetic prices recovered from the original saved basis and price-factor identity. The curve is dated November twenty-eighth, 2025, while cash-flow times and accruals use December first. This mixed-date simplification omits the intervening carry and is not an executable quote. At the unshifted curve, the selected note has coupon percent and matures in . F star is , and other notes' gross bases reach about per hundred. All values are shown. The zero is imposed by the surrogate definition; it is not evidence of a market arbitrage.
Now shift the zero curve in ten-basis-point steps from minus four to plus four percentage points, and recompute the corrected basket. Every basis value is retained. Axis dots identify the selected note at each tested shock. The lowest-yield endpoint selects the shortest maturity and the highest-yield endpoint selects the longest in this basket; intermediate selections also occur. The five detected grid switches occur at ten-year yields of percent. These are grid readings, not exact switching thresholds. The factor's six-percent reference yield is not a universal switch point. Locally, away from a switch, sensitivity scales approximately with the selected bond's risk divided by its conversion factor. The minimum-price envelope changes slope when the deliverable changes. Funding, repo specialness and timing options would change a real contract's hedge.
In this saved model, the ten-year yield falls from seven to five percent. How does the selected note change? Is the same change guaranteed from every starting yield?
Here it moves to a shorter note after crossing the grid switches. A move that crosses no switch can retain its deliverable. Compute hedge sensitivity with the conversion factor and full delivery economics.
13Repo, SOFR and the end of LIBORMaster's3 min
Repo is one way to finance a bond position. A dealer sells eligible collateral for cash and agrees to repurchase it later. In this overnight example, the repurchase amount includes agreed interest; the repo quote annualizes it under a day-count convention. A haircut provides a collateral buffer, but counterparty, valuation, rollover and liquidity risks remain. In general-collateral repo, securities in an agreed basket are substitutable. A specific issue sought by short sellers may instead trade special, at a rate below general collateral. That lowers the owner's financing cost relative to GC; it is not a guaranteed extra return independent of price and financing conditions.
Federal Home Loan Banks have been major federal-funds lenders in the ample-reserves system. They can hold Federal Reserve accounts but do not earn interest on reserve balances. Eligible banks can borrow below their reserve remuneration and hold the funds at the Fed. The gross gap is not all profit. Balance-sheet capacity, regulatory charges, credit limits and market segmentation constrain competition. These frictions help explain a persistent spread, without implying a universal fixed gap or a risk-free unlimited trade.
LIBOR used panel-bank submissions about unsecured borrowing costs, with a trimmed average determining its settings. Manipulated submissions affected many loans and derivatives. On June twenty-seventh, 2012, Barclays agreed to penalties of two hundred million dollars to the CFTC, a hundred sixty million to the Justice Department, and fifty-nine-point-five million pounds to Britain's FSA. In 2017 the Alternative Reference Rates Committee selected SOFR. The New York Fed began publishing this transaction-based volume-weighted median of specified overnight Treasury repo segments in April 2018. It is secured and overnight, so it is not economically identical to term unsecured LIBOR. The dollar bank panel ended June thirtieth, 2023; the remaining synthetic dollar settings ended after their final publication on September thirtieth, 2024.
A compounded-in-arrears rate uses realized overnight fixings weighted by their calendar-day accruals. It becomes known near the end, subject to the contract's publication, lookback and payment rules. This retrospective example targets ninety-one days, but keeps complete fixing intervals, making some windows ninety-two or ninety-four days. It is not an exact standard quarterly contract schedule. A constant overnight rate also produces a small compounding uplift, rather than exact equality with its annualized simple quote. For start dates from March 2022 through July 2023, the realized period rate averages basis points above the start fixing. It uses future realized observations, not a forecast known then. The bill series is a bank-discount quote, with different conventions and liquidity; it cannot be read as a pure forecast of future SOFR or compared directly without conversion.
If you learn the rate only at the end of the quarter, how do you budget? And what did the market invent for that?
Forward-looking term SOFR can set eligible contracts in advance using derivatives markets. Advance averages or a fixed-rate hedge offer other trade-offs. None guarantees the future realized overnight rate.
14Expectations and the term premiumMaster's3 min
A long zero yield can be described approximately as an expected average short rate plus a term premium. Log yields and stochastic discounting add convexity terms, so the precise definition depends on the model. Under a specified log-linear expectations hypothesis with constant maturity-specific premia, the Campbell-Shiller regression has slope one. Its left side follows a bond as its remaining maturity rolls down; it is not simply tomorrow's constant-maturity ten-year yield. In the Fama-Bliss regression the forward-spread predictor has slope zero under the corresponding null. That does not mean the expected excess return or intercept is zero. These are joint hypotheses about expectations, premia, specification and measurement.
These are full-sample descriptive regressions on monthly yields derived from the pinned GSW fit, including a model-extrapolated short maturity. The Campbell-Shiller coefficients differ markedly from the slope-one benchmark; at ten years the saved estimate is . The left whiskers use conventional homoskedastic OLS standard errors, which do not correct serial dependence. The Fama-Bliss slopes are positive. Its annual returns overlap, and the displayed errors use twelve-lag Newey-West estimates. Twice a standard error is not a certified confidence interval here. These patterns challenge the joint null; time-varying premia are one interpretation, alongside expectation errors, specification and measurement issues. No out-of-sample trading performance is established.
Adrian, Crump and Moench's 2013 framework estimates an affine term-structure model through regressions. Here five principal components follow a vector autoregression. Bond excess returns are regressed on innovations and lagged state factors to estimate news exposure and predictability. A cross-sectional step estimates affine risk prices, with Gaussian and residual-variance corrections and rank assumptions. An estimated implementation need not enforce every no-arbitrage or specification restriction exactly. Price bonds using the fitted risk prices, then set those prices to zero in the same recursion. Their yield difference defines this example's term premium. The counterfactual yield contains a convexity adjustment; it is not simply an observed expectation. The NY Fed publishes a related model series, but its revised file no longer matches this repository's pinned vintage, so that numerical comparison is omitted.
In the House it is forty lines, and the heart of it is here: the excess returns, the regression on news and state, and the prices of risk.
This separately named example uses the original full-sample regression settings and unchanged House routines on the pinned Treasury curve. Blue is the zero-risk-price counterfactual yield; pink is the model's residual term premium. Its in-sample fitted-yield RMSE is basis points. That is a yield-fit statistic, not a measure of latent-premium accuracy, and the unavailable NY Fed comparison is not shown. This model estimates a premium of percentage points in September 1981 and a minimum of in . These are retrospective model estimates, not direct observations of investor beliefs or identified effects of asset purchases. From August 2024 to December 2025 the counterfactual component falls points while the estimated premium rises . Their sum rises. This accounting split explains how a fitted long yield can rise during policy easing without identifying the causes of each component.
Pause and predict: which overnight policy instrument is set directly, and through what channels could both fitted long-yield components respond? Neither ten-year component is mechanically fixed by the committee.
15FOMC daysMaster's2 min
What Fed meetings do to the curve. The 1994-to-2020 sample contains scheduled meeting observations. Yellow shows their two-year yield changes; grey shows every seventh other-day observation retained in the cache. Full histogram ranges are used, rather than pooling large changes into endpoint bins. The original full-sample standard deviations are basis points on scheduled meeting days and on other days. The grey histogram is thinned, so its dispersion need not exactly match that second number. The two-year yield reflects expected policy, term premia and other news, rather than a pure policy forecast. These close-to-close observations describe association; scheduled meetings, other news and the crisis composition can differ. They do not isolate an exogenous monetary-policy shock.
The six largest absolute two-year moves among those meeting days are selected after observing their outcomes. March 2009 coincided with an announced three-hundred-billion-dollar Treasury purchase program and a daily decline of about twenty-six basis points. March 2008 combined a seventy-five-basis-point target cut with a daily rise in the two-year yield. A cut need not produce a yield decline: expectations and other news matter. Kuttner separates expected target changes from surprises using fed-funds futures. Gürkaynak, Sack and Swanson distinguish target and policy-path announcement factors. These are separate identification exercises, not replications performed here. June 2002 also followed WorldCom's fraud disclosure, illustrating the contamination in a daily window.
Each point pairs a meeting day's two-year yield change with the change in the fitted instantaneous nominal forward at ten years. It is not a one-year forward loan rate. All paired values are plotted. The intercept-inclusive daily regression slope is , with conventional homoskedastic OLS standard error . No heteroskedasticity-robust or causal confidence interval is supplied. Long-horizon expectations as well as risk premia may respond; the expectations hypothesis alone does not force this slope to zero. Hanson and Stein study long-term real rates and a risk-premium channel. Nakamura and Steinsson use short announcement windows and examine central-bank information effects. A narrow window reduces other news but does not automatically identify a pure policy shock or separate those channels.
A daily window catches everything else that happened that day. How would you isolate what the Fed said?
Use pre-specified intraday windows and market surprises. Check concurrent releases, announcement timing, policy-path news and central-bank information. Identification assumptions still need evidence.
16Relative value: the butterflyIndustry3 min
Relative value: trading the curve's shape. The firm file for this chapter is Salomon Brothers. In the 1980s its bond arbitrage group, led by John Meriwether, bought Treasuries that looked cheap against nearly identical ones, sold the rich ones, hedged the rest, and levered the difference; the group became famous for it. In 1991 the firm's government bond desk was caught submitting false bids to get around the Treasury's rule that no bidder may take more than thirty-five percent of an auction; in the May two-year auction, Salomon ended up controlling more than ninety percent. The settlements in 1992 came to two hundred and ninety million dollars. Meriwether resigned. In 1994 he founded Long-Term Capital Management, with much of the old group and two future Nobel laureates. Part forty-one tells how it ended.
A butterfly combines a five-year belly with two- and ten-year wings. Here the weights come from the already-restored full-sample principal components of chapter ten, not the legacy strategy's training window. Fix the belly coefficient at one and solve two linear equations to cancel the fitted level and slope loadings. The wing coefficients are and . This neutrality is exact only for these linear yield loadings and this basis. Curvature and omitted components remain. Also distinguish a yield combination from bond profit: with signed bond DV01 weights proportional to these coefficients, a rise in the weighted yield causes a first-order loss. Coupon cash flows, financing, convexity and changing loadings add further differences.
A factor hedge is not yet a tested relative-value strategy. Before any future return evaluation, specify the fitting window, signal timing, position convention, holding rule, financing, turnover and executable costs. Full-sample fitted curves are not decision-time executable quotes. Freeze the specification and select a genuinely untouched evaluation window before inspecting its outcomes. Report uncertainty and every configuration tried. This pass does not load the legacy fly cache, open its sealed return window, register another strategy or show historical Sharpe ratios. The validation protocol here is explicitly unfinished.
What has actually been established? Two linear factor loadings were cancelled in a fixed descriptive basis. This does not cancel higher components, unstable loadings, funding or execution risk. A yield combination can drift for years without offering an admissible arbitrage. Turning it into a bond portfolio requires consistent signed DV01 units and cash flows. The House report next shows residual coupon-portfolio exposures rather than assuming point-maturity neutrality transfers exactly. No historical profitability conclusion follows from these exposure equations. A completed return evaluation would require the frozen protocol and new, appropriately untouched evidence.
Pause and predict: the belly DV01 is one thousand dollars per basis point, and the weighted yield rises one basis point. What is the first-order value change for the corresponding long-belly bond portfolio, before carry and costs?
The first-order value change is minus one thousand dollars. The sign comes from bond prices falling when their weighted yield rises. This is a sensitivity calculation, not an observed trading return.
17September 2022: gilts and LDIIndustry3 min
September 2022: British gilts, and the pension funds' hedges. Defined-benefit pension liabilities have long interest-rate and often inflation exposures. Leveraged LDI uses gilts, repo and swaps to hedge selected sensitivities while leaving capital for other assets. A pension scheme's funding position, an LDI pool's net asset value and its available collateral are different measures. A hedge can reduce the scheme's rate mismatch while remaining exposed to basis and liquidity risk. Higher yields can lower liability present value immediately, yet the hedge may face cash margin calls immediately too. The liability revaluation does not produce the cash needed to meet those calls.
Multiply a fixed-cash-flow bond's local modified-duration loss by asset-to-NAV leverage. With leverage three and duration twenty, the first-order NAV change is minus sixty times the yield change in decimal units. Extrapolating that tangent reaches zero at one-point-six-seven percentage points. This is not an exact default threshold or a complete margin model: convexity, hedge structure, financing and cash transfers matter. The Bank of England reports that thirty-year nominal gilt yields rose a hundred thirty basis points in three trading days to September twenty-eighth, 2022. Applying our illustrative tangent gives a seventy-eight-percent initial-NAV loss estimate, not an observed return of any specific fund.
This illustrative model starts with a fifty-basis-point shock, leverage three and constant duration twenty. After each local price loss, it sells assets to restore a specified NAV-to-duration buffer; sales generate another yield rise. Price impact is measured per percent of the then-current remaining asset pool sold. With zero impact the final recorded shock stays fifty basis points. At impact zero-point-five it reaches , and at one it reaches . At impact two, the thirty-round record ends at basis points and percent of initial NAV. That path hits the iteration limit; it does not prove an infinite runaway or give a converged equilibrium. The model stops earlier for a small incremental shock or nonpositive NAV, and floors displayed NAV at zero. These are numerical assumptions, not a fitted history of the gilt crisis.
This surface retains all three hundred fifteen cached combinations of initial shock and impact, with bilinear interpolation between grid nodes. Its full vertical range reaches about three thousand basis points; the earlier four-hundred-basis-point cap is removed. Large values expose the limitations of repeatedly applying a local constant-duration model, its zero-NAV floor and its thirty-round stopping rule. The surface is a numerical stress illustration, not calibrated crisis probabilities or a forecast of feasible market clearing. It shows why leverage, liquidation and market depth must be modeled together, while realistic price and liquidity dynamics need a richer model.
The Bank of England's temporary purchases ran from September twenty-eighth to October fourteenth, 2022. The published total was nineteen-point-three billion pounds: twelve-point-one conventional and seven-point-two index-linked. Higher yields improved aggregate pension funding measures because liabilities fell substantially, but leveraged pools still faced urgent cash needs. That does not certify every scheme or pool as solvent throughout. The 2023 resilience guidance calls for a market-stress buffer of at least around two hundred fifty basis points, with an additional arrangement-specific operational buffer. Collateral readiness, governance and timely access to cash matter alongside the rate hedge.
A scheme can have improved funding while its LDI pool must sell. What would reduce forced-sale pressure?
Accessible liquid collateral, lower leverage, stress-tested buffers and reliable cash-transfer processes can buy time. Valuation gains on liabilities alone cannot meet margin calls.
18March 2023: Silicon Valley BankIndustry3 min
These are consolidated SVB Financial Group figures from its 2022 ten-K, rather than a standalone bank balance sheet: assets of billion dollars and held-to-maturity securities of billion. The latter grew from about seventeen billion at year-end 2020. The Fed review describes predominantly agency mortgage-backed securities and a reported duration of six-point-two years. Low credit risk did not remove rate, prepayment or liquidity risk. Deposits were billion. The review reports about percent uninsured, with a concentrated client base and correlated cash needs. Insurance status and withdrawal behavior matter separately from the holding company's reported book equity.
The red line is a deliberately simple proxy: fixed year-end 2022 HTM notional times six-point-two duration times the change in the six-year GSW yield since year-end 2021. We treat the reported duration as a modified-duration proxy, hold it constant and omit convexity, portfolio changes and mortgage prepayments. It is not the actual book's daily fair value. Green is fixed year-end holding-company book equity. The white dot is the ten-K's gross unrecognized HTM holding loss of billion, compared with equity of billion. Tax treatment and balance-sheet scope differ. HTM amortized-cost treatment generally keeps unrealized interest-rate marks out of earnings. But comparing this gross asset gap to equity does not value loans, deposits, hedges or all other assets and liabilities. It neither proves complete economic insolvency nor makes the loss irrelevant to funding and liquidity.
On March eighth, 2023, the bank announced a roughly twenty-one-billion-dollar available-for-sale securities sale, a one-point-eight-billion after-tax loss and a capital-raising plan. The Fed review records more than forty billion dollars of deposit outflows on March ninth. Management expected over a hundred billion more the next day, making actual plus expected withdrawals about percent of the deposit base. Expected withdrawals are not all completed payments. California closed the bank on March tenth. On March twelfth, the Fed announced the BTFP for eligible depository institutions, with loans against qualifying collateral owned as of that date and valued at par. It supplied liquidity without erasing market losses or changing the bonds' cash flows. New BTFP lending ended in March 2024.
The public record documents inadequate interest-rate and liquidity risk management, including reductions in interest-rate hedges. It does not say every asset was default-free or that every security had the same duration. Concentrated uninsured deposits can create correlated outflows. Their economic value and behavior require assumptions; uninsured status alone does not mathematically set deposit duration to zero. Jiang and coauthors estimate large systemwide asset mark-to-market losses from tightening, on the order of two trillion dollars. That is an asset valuation estimate under their methods, not a finding that all banks were insolvent. A useful report combines economic-value scenarios for assets and liabilities with deposit behavior and short-horizon liquidity stress. The local key-rate tools in this part support that work, but do not constitute a complete bank EVE or liquidity system.
For a long-duration book funded by concentrated runnable deposits, which value and liquidity measures belong together?
Combine full asset-and-liability economic-value stress with available cash, usable collateral, withdrawal scenarios and funding capacity. Book capital or asset DV01 alone is insufficient.
19Rule 18: the rates deskIndustry1 min
These four illustrative positions are reported by aggregate key-rate DV01 and signed first-order profit or loss under positive one-standard-deviation fitted factor shocks. Their notional conventions are stated below. A standard deviation is not a stress limit or a confidence bound. The ten-year note has exposures to the fitted factors; level is not literally a parallel shift. The steepener cancels the displayed aggregate bump sensitivity but retains factor risk. The butterfly uses the same full-sample yield weights as chapter sixteen. Actual coupon cash flows distribute its key-rate risk, so the two point-maturity neutrality equations do not transfer exactly. The matched-value and duration fund still has nonzero factor exposures. These are local sensitivities, not realized daily returns or a certificate that any hedge survives large twists.
The rates module provides bond arithmetic, curves and bootstraps, parametric fits, factor and key-rate calculations, single-curve instrument examples and model illustrations. An exact synthetic-input bootstrap and an approximate fitted curve have different validation criteria. Report their conventions, residuals and independent comparisons. Rule eighteen is a proposed reporting standard: show key-rate and factor exposures and test stated parallel, twist and funding scenarios. These demonstrations are not a complete desk validation service, and they do not establish that every hedge was tested against all historical shocks. No butterfly return test or new registration is performed in this pass. The existing cumulative counter through Part eighteen is .
For the researcher: why level, slope and curvaturePhD5 min
The first three fitted components explained most sample variance, with broad level, slope and bend patterns. A conditional matrix theorem helps explain sign ordering in some models. It does not prove that every bond market has these shapes or that economics is irrelevant.
Order the selected maturities. Form their symmetric covariance matrix. Assume every square minor from increasing row and column index sets is nonnegative, and some positive integer power has every such minor strictly positive. The power must be totally positive, not merely entrywise positive. This is the oscillatory condition. Its eigenvalues are distinct and positive, and eigenvector k in descending eigenvalue order has k minus one sign changes, ignoring zero coordinates. A positive first vector need not be flat, and one sign change does not imply monotonicity. The Gantmacher-Krein result constrains sign ordering under these assumptions. It gives neither three-factor variance concentration nor economic identification. Empirical covariance matrices need not satisfy it.
For zero less than rho less than one, the matrix with entries rho to the distance between indices is a stationary first-order autoregressive correlation. It is totally nonnegative and nonsingular, with positive adjacent off-diagonal entries, so it is oscillatory. It is not itself strictly totally positive: some minors vanish. At rho equal to zero-point-nine its first vector has no sign changes. The second has one. The third has two and the fourth three. These are ordered discrete modes, resembling string vibrations; their exact entries depend on rho and the boundary conditions.
These are the saved synthetic experiments, not new market trials. In two thousand draws of a sorted-maturity Gaussian-kernel construction, the first three numerical eigenvectors had zero, one and two sign changes in every draw. The implementation adds ten to the minus nine times identity for numerical regularization; that perturbation is not a general total-positivity preservation theorem. The unordered experiment uses random three-factor covariances with diagonal noise, normalized to correlations. The corresponding sign counts are rare individually. The two designs do not match eigenvalue spectra or every other feature, so this is an illustration, not identification of ordering as the sole cause. Nearby-maturity correlation alone is weaker than the all-minors condition.
For these nine maturities, the displayed covariance eigenvectors use ten thousand five consecutive-observation changes. Their first three sign patterns look level-like, tilted and bent, while actual magnitudes differ. The saved first-five sign counts are zero, one, two, three and four under the code's relative zero tolerance. About percent of ordered two-by-two correlation minors and percent of three-by-three minors are positive. Positive diagonal normalization preserves each minor's sign, but not covariance eigenvectors. Some minors are negative, so total nonnegativity fails. Observing the sign pattern does not let us apply the theorem backwards, nor does a high fraction of positive minors certify that we are close enough for it to apply.
Continuously compounded zero yields average instantaneous forwards over maturity. Here the comparison uses interval forwards between the nine selected endpoints, with unequal interval widths. Its components have different loadings and volatility weights; the first-three sign counts remain zero, one and two. All loadings are shown. About percent of two-by-two minors are positive, and the first three covariance components explain percent, compared with for yields. These descriptive differences are consistent with averaging changing the statistical picture, as discussed by Lekkos. Averaging can smooth covariance, but without additional assumptions it does not turn every covariance into a totally nonnegative or oscillatory matrix.
Three research tasks follow, rather than claims that whole literatures are unresolved. Separate sign constraints from economic information in loading magnitudes and locations. Measure rolling covariance, minor signs and hedge errors under stress, with sampling uncertainty. A stress event does not by itself identify why a condition fails. Compare variance-reconstruction factors with return-forecasting factors. Their objectives differ, so they need not coincide. Predictive evidence requires decision-time inputs, costs, full search accounting and untouched outcomes, none of which the covariance illustration supplies.
Pause and predict. For a three-by-three correlation matrix with rho next to the diagonal and rho squared in the corners, find the eigenvectors and count their sign changes. Does the answer depend on rho?
The antisymmetric vector is one, zero, minus one, with eigenvalue one minus rho squared. For symmetric vectors one, a, one, solve a squared plus rho a minus two equals zero. The positive-root vector is first and has no sign change; the antisymmetric vector is second with one; the negative-root vector is third with two. For rho strictly between zero and one the sign counts stay fixed, while entries and eigenvalues change. The endpoints are excluded.
Recap, desk questions, problemsAll tracks3 min
Part eighteen in thirteen lines. Administered rates guide money markets without guaranteeing a strict corridor. Quantitative tightening changes several balance-sheet items. Taylor's rule is a conditional benchmark, especially when evaluated using revised historical data. A bond is a bundle of cash flows, and conventions determine the quoted rates. Bootstraps and approximate curve fits need different error checks. Duration and convexity are local sensitivities for specified cash flows. Three fitted factors explain most sample yield-change variance. Swap spreads involve funding, collateral, credit conventions and balance sheet. Futures have delivery options, and compounded overnight rates are realized over time. The term-premium split is model dependent. A butterfly exposure is not a completed return test; that validation remains unfinished here. The gilt episode and SVB show how leverage and unstable funding can turn low-credit-risk securities into severe balance-sheet losses.
Four desk questions. A ten-year zero at four percent annual yield has price sixty-seven-point-five-six, Macaulay duration ten and modified duration nine-point-six-two; one basis point up costs about six-and-a-half cents per hundred face locally. Does greater convexity impose a universal price ranking? No: the quadratic sensitivity is local, and cash flows, levels, carry and rate dynamics matter. Why can swaps fix below Treasuries? Different funding, collateral, balance-sheet costs and hedging demand; a cash-and-swap position retains risks. What does the SVB case motivate? Full asset-and-liability economic-value scenarios together with deposit behavior and liquidity stress. Asset DV01 alone is incomplete. The notes give the calculations and assumptions.
Ten problems cover forwards, two durations, the local convexity term, a hand bootstrap, conditional swap sensitivity, immunization, Taylor's benchmark and an illustrative LDI buffer. The qualifying problems establish a Markov matrix's sign pattern and derive the covariance averaging formula, without claiming averaging guarantees total positivity. Worked English and Chinese solutions are in the notes.
Where this comes back. Part nineteen builds term-structure models on this curve and prices swaptions. Part twenty measures credit spreads over it. Part twenty-one adds funding and collateral. Part twenty-two trades the policy rate and the curve on the macro desk. And the finale stress-tests the whole House, rates first.
The notes list textbook chapters, research papers and official records. Quantities are identified as public-data calculations, synthetic examples or published figures. The historical term-premium comparison cannot be reproduced from its pinned NY Fed vintage here, so the separately named model illustration omits that comparison. The butterfly chapter presents exposures and unfinished validation, with no sealed-return test in this pass.
That opens the House's rates desk: a curve, its factors, and a rule for reading risk. Next, Part nineteen: term-structure models. The curve stops being a snapshot and becomes a random process, and the options on it get prices.
Where it goes next. The curve becomes a stochastic object in Part 19; duration plus leverage plus margin calls is the spiral of Part 41.
Key results
The part's results in one place, for revision.
Try it
Lab 18 · Duration, convexity, and three factors from one assumption
Reprice a ten-year bond for shifts of up to two points against its duration and convexity approximations. Then simulate curve changes whose only structure is that nearby maturities move together, and let principal components find level, slope and curvature.
python -m videos.quant.labs 18
needs numpy, scipy, matplotlib, numba · download lab18.py ·
source on GitHub10-year 4% bond at par modified duration 8.18, convexity 78.9, DV01 0.0818 per 100
Rates +200 bp: exact / duration / + convexity 85.12 / 83.65 / 85.23
Rates -200 bp: exact / duration / + convexity 118.05 / 116.35 / 117.93
Variance explained by 3 components 61.2% 18.2% 8.0%
Sign changes of the loadings [0, 1, 2] (level 0, slope 1, curvature 2)
No economics was put in: a correlation that decays with distance is totally positive, and such matrices have eigenvectors with 0, 1, 2, ... sign changes (Gantmacher and Krein).
The code (59 lines; it asserts its own result)
"""Lab 18: duration and convexity, and why every curve moves in level, slope and curvature."""
import numpy as np
from videos.quant import labs
from explainer.quant.house import rates
TITLE = "Duration, convexity, and three factors from one assumption"
GOAL = ("Reprice a ten-year bond for shifts of up to two points against its duration and convexity "
"approximations. Then simulate curve changes whose only structure is that nearby maturities move "
"together, and let principal components find level, slope and curvature.")
TASKS = [
"Build a duration-neutral 2s5s10s butterfly with rates.fly_weights and check its exposure to the first two factors.",
"Lower the correlation decay so neighbours are less alike. What happens to the first component's share?",
"Compare the 30-year zero's convexity with the 30-year par bond's. Which gains more from volatile rates?",
]
def run(seed=0):
coupon, y, T = 0.04, 0.04, 10
risk = rates.bond_risk(coupon, y, T)
shifts = np.linspace(-0.02, 0.02, 81)
exact = np.array([rates.bond_price(coupon, y + s, T) for s in shifts])
dur = risk["price"] * (1 - risk["modified"] * shifts)
conv = dur + 0.5 * risk["price"] * risk["convexity"] * shifts ** 2
lab = labs.Lab()
lab.row("10-year 4% bond at par", f"modified duration {risk['modified']:.2f}, convexity {risk['convexity']:.1f}, "
f"DV01 {risk['dv01']:.4f} per 100")
lab.row("Rates +200 bp: exact / duration / + convexity", f"{exact[-1]:.2f} / {dur[-1]:.2f} / {conv[-1]:.2f}")
lab.row("Rates -200 bp: exact / duration / + convexity", f"{exact[0]:.2f} / {dur[0]:.2f} / {conv[0]:.2f}")
assert abs(conv[-1] - exact[-1]) < 0.2 < abs(dur[-1] - exact[-1]) and (exact >= dur - 1e-9).all()
mats = np.array([0.25, 0.5, 1, 2, 3, 5, 7, 10, 20, 30])
# nearby maturities are alike: correlation falls with the distance in log maturity
corr = np.exp(-0.35 * np.abs(np.log(mats)[:, None] - np.log(mats)[None, :]))
rng = np.random.default_rng(seed)
dy = rng.multivariate_normal(np.zeros(len(mats)), 0.06 ** 2 * corr, size=5000)
pca = rates.curve_pca(dy)
changes = [int(np.sum(np.diff(np.sign(v)) != 0)) for v in pca["loadings"][:3]]
lab.row("Variance explained by 3 components", " ".join(f"{100 * s:.1f}%" for s in pca["share"][:3]))
lab.row("Sign changes of the loadings", f"{changes} (level 0, slope 1, curvature 2)")
lab.note = ("No economics was put in: a correlation that decays with distance is totally positive, and such "
"matrices have eigenvectors with 0, 1, 2, ... sign changes (Gantmacher and Krein).")
assert changes == [0, 1, 2] and pca["share"][0] > 0.6
fig, ax = labs.figure(2, size=(11, 4.2))
ax[0].plot(1e4 * shifts, exact, color=labs.INK, lw=2.4, label="exact price")
ax[0].plot(1e4 * shifts, dur, color=labs.LOSS, ls="--", label="duration only")
ax[0].plot(1e4 * shifts, conv, color=labs.GAIN, ls=":", lw=2, label="duration + convexity")
ax[0].set(title="A ten-year bond against a parallel shift", xlabel="shift in yield, bp", ylabel="price per 100")
ax[0].legend()
for v, c, name in zip(pca["loadings"][:3], (labs.P, labs.SPOT, labs.OPTION), ("level", "slope", "curvature")):
ax[1].plot(np.arange(len(mats)), v, "o-", color=c, label=name)
ax[1].axhline(0, color=labs.MUTED, lw=0.8)
ax[1].set_xticks(np.arange(len(mats)), [f"{m:g}" for m in mats])
ax[1].set(title="Principal components of simulated curve changes", xlabel="maturity, years")
ax[1].legend()
lab.fig = fig
return lab
Now change it
- Build a duration-neutral 2s5s10s butterfly with rates.fly_weights and check its exposure to the first two factors.
- Lower the correlation decay so neighbours are less alike. What happens to the first component's share?
- Compare the 30-year zero's convexity with the 30-year par bond's. Which gains more from volatile rates?
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
- 10-year zero at 4% annual yield. P=100/1.04¹⁰=67.5564; Macaulay D=10, modified D=10/1.04=9.6154. A +1 bp shift gives ΔP≈−0.06496 per 100 face. This is a local approximation.
- Does greater convexity impose a universal price ranking?
Answer
No. For a specified frozen price function, ΔP/P≈−DΔy+½C(Δy)². A larger quadratic coefficient is a local comparison under matched assumptions, not dominance for arbitrary finite moves. Cash flows, starting prices, options, drift, carry and financing matter; ½Cσ² is not a universal yield discount. - Why can swaps fix below Treasuries?
Answer
Their funding, liquidity, collateral, balance-sheet and hedging-demand exposures differ. Buying a coupon Treasury in repo and paying fixed retains floating-index/repo basis, timing, coupon and rollover risks. Jermann's holding-friction model supports negative equilibrium spreads without proving that regulation alone explains every observation. - What does SVB motivate reporting?
Answer
Joint asset-and-liability economic-value stress, deposit behavior, cash, usable collateral, withdrawal scenarios and funding capacity. The gross HTM fair-value gap, book capital and local asset DV01 answer different questions. Uninsured status does not itself identify deposit duration.
Problems, with worked solutions
Ten problems, with worked solutions
-
Forwards. For positive discount factors with \(Z(t)=e^{-t z(t)}\), derive the finite and instantaneous forwards. State the differentiability assumption and when \(f(t)>z(t)\).
Solution
For positive Z and 0≤t₁<t₂,
f(t₁,t₂)=[t₂z(t₂)−t₁z(t₁)]/(t₂−t₁)follows from the discount-factor ratio. If z is differentiable at t>0,f(t)=z(t)+t z′(t); hence f>z iff z′>0 there. At interpolation knots use a specified one-sided/derivative convention. These are curve-implied rates under matching valuation assumptions, not physical expectations by identity. -
Durations. Derive Macaulay duration for a zero and a perpetuity with positive annual yield \(y\); distinguish modified duration.
Solution
A zero pays once at T, so Macaulay duration T and annual modified duration T/(1+y). An annual perpetuity with c>0 and y>0 has P=c/y and modified duration 1/y; Macaulay duration is (1+y)/y, or 21 years at 5%. The perpetuity sum requires y>0.
-
Local convexity. For a frozen-time fixed-cash-flow price \(P(y)\), derive the expected local mark from \(E[\Delta y]=\mu\,dt\) and \(E[(\Delta y)^2]=\sigma^2dt\). What additional terms enter total return?
Solution
At frozen time, D=−P_y/P and C=P_yy/P. With EΔy=μdt and E(Δy)²=σ²dt, the local expected price mark is
EΔP/P≈(−Dμ+½Cσ²)dt. Actual total return also includes explicit time/roll-down and coupons, and may include funding, changing cash flows or options. Assuming carry equals quoted yield is an additional model assumption. This calculation alone sets no no-arbitrage yield discount. -
Hand bootstrap. A 1-year zero yields 4% annually and a 2-year bond pays 5 annually per 100 face and prices at par. Bootstrap its annual 2-year zero rate.
Solution
Under annual compounding, 100=5/1.04+105/(1+z₂)². Thus
z₂=sqrt[105/(100−5/1.04)]−1≈5.025%. The first coupon is discounted using the given one-year zero, with the final coupon and principal jointly determining z₂. -
Swap. In the ideal reset-date single-curve swap, derive \(K^*=(1-Z(T))/A\). State receiver sensitivity near par and the away-from-par annuity term.
Solution
At a reset date in the ideal single-curve unit-notional model, floating coupon PV is 1−Z(T) and fixed PV KA, A=ΣτᵢZ(tᵢ); K*=(1−Z(T))/A. Receiver V=(K−K*)A, so
dV=−A dK*+(K−K*)dA. At par a 1 bp fall gives ≈A×10⁻⁴ per unit notional. Multi-curve discounting, payment lags and accrued/fixed coupons require the appropriate adjustments. -
Immunization. Fund 100 due in 15 years with 5y and 30y zeros at 4% continuous rates. Match PV and duration, compare convexities, and distinguish the local theorem from this barbell's global parallel result.
Solution
Liability PV L=100e⁻⁰·⁶=54.8812. PV weights solve w₅+w₃₀=1 and 5w₅+30w₃₀=15, giving .6/.4; asset PVs 32.9287 and 21.9525. Their continuous-shift convexity is .6×25+.4×900=375 versus 225. General Redington conditions give a local result. Here
S(a)/L=.6e^(−5a)+.4e^(−30a)−e^(−15a)≥0for every parallel a by Jensen. This special global result does not control twists, credit or funding. -
Taylor benchmark. Taylor benchmark: \(r^*=\pi^*=2\), inflation 4%, output gap \(-1\%\). Compute the rate; state why this is conditional, not a mandatory policy choice.
Solution
i=2+4+.5(4−2)+.5(−1)=6.5%. This depends on the assumed neutral rate, target, input measurements and coefficients; it is neither a mandatory action nor an optimal-policy theorem.
-
Local LDI model. In the local constant-duration LDI model, leverage is 4 and duration 25. Find the tangent's zero-NAV shock; after +50 bp, what fraction of remaining assets must be sold to restore the initial NAV-to-risk buffer?
Solution
With initial NAV 1, assets 4 and D=25, the tangent zero is Δy=1/(4×25)=.01. After +50 bp, the model gives NAV .5 and assets 4(1−25×.005)=3.5. Restoring the initial .01 NAV-to-duration buffer targets assets
.5/(25×.01)=2; sell 1.5, 42.86% of remaining assets, or 37.5% of initial assets. This ignores impact during that sale and treats the local price approximation as the model, not exact solvency or collateral economics. -
Markov TN and sign counts. (qual) For \(0<\rho<1\), prove total nonnegativity of \(C_{ij}=\rho^{|i-j|}\) using a triangular factorization. Give the extra oscillatory conditions and the \(n=3\) eigenvectors/sign counts.
Solution
Let Bᵢⱼ=ρ^(i−j) for i≥j, zero otherwise, and D=diag(1,1−ρ²,…,1−ρ²). Direct multiplication gives C=BDBᵀ. B factors into nonnegative elementary lower-bidiagonal matrices, so B, D and their product are TN by Cauchy–Binet. D>0 gives nonsingularity; C has positive adjacent off-diagonal entries. A nonsingular TN matrix with positive adjacent super/subdiagonals is oscillatory. For n=3,
a±=(−ρ±sqrt(ρ²+8))/2,v±=(1,a±,1),λ±=1+ρ²/2±(ρ/2)sqrt(ρ²+8);v₂=(1,0,−1), λ₂=1−ρ². For 0<ρ<1, λ+>λ₂>λ−>0, so the ordered sign counts are 0,1,2, ignoring the middle zero. Entries/eigenvalues vary with ρ. At ρ=0 eigenvalues are degenerate; at ρ=1 the matrix is singular. -
Averaging covariance. (qual) For \(y(m)=m^{-1}\int_0^m f(s)ds\), express yield-change covariance from forward-change covariance \(c(s,t)\). Does averaging alone guarantee total nonnegativity or three-factor concentration?
Solution
Assuming finite second moments and valid interchange of integration and covariance,
Cov(Δy(m₁),Δy(m₂))=(m₁m₂)⁻¹∫₀^m₁∫₀^m₂ c(s,t) ds dt. Integration can damp fine-scale variation, but arbitrary smooth or distance-decaying covariance kernels need not be TN. Averaging alone establishes neither the all-minors condition, an oscillatory power, increased correlation at every pair nor a universal three-factor variance share. Additional kernel assumptions and proof are needed.
Reading and notes
The part's papers
from READING.md
- Macaulay, F. (1938). Some Theoretical Problems Suggested by the Movements of Interest Rates, Bond Yields and Stock Prices.
- Redington, F. M. (1952). "Review of the principles of life-office valuations." J. Institute of Actuaries.
- Fisher, L., Weil, R. (1971). "Coping with the risk of interest-rate fluctuations." Journal of Business.
- Fama, E., Bliss, R. (1987). "The information in long-maturity forward rates." AER.
- Nelson, C., Siegel, A. (1987). "Parsimonious modeling of yield curves." Journal of Business.
- Litterman, R., Scheinkman, J. (1991). "Common factors affecting bond returns." J. Fixed Income.
- Campbell, J. Y., Shiller, R. (1991). "Yield spreads and interest rate movements: a bird's eye view." REStud.
- Taylor, J. (1993). "Discretion versus policy rules in practice." Carnegie-Rochester Conference Series.
- Svensson, L. (1994). "Estimating and interpreting forward interest rates: Sweden 1992–1994." NBER WP.
- Kuttner, K. (2001). "Monetary policy surprises and interest rates." J. Monetary Economics.
- Gürkaynak, R., Sack, B., Swanson, E. (2005). "Do actions speak louder than words?" Int. J. Central Banking.
- Bernanke, B., Kuttner, K. (2005). "What explains the stock market's reaction to Federal Reserve policy?" Journal of Finance.
- Kim, D., Wright, J. (2005). "An arbitrage-free three-factor term structure model and the recent behavior of long-term yields and distant-horizon forward rates." Fed FEDS.
- Gürkaynak, R., Sack, B., Wright, J. (2007). "The U.S. Treasury yield curve: 1961 to the present." J. Monetary Economics.
- Krishnamurthy, A., Vissing-Jorgensen, A. (2012). "The aggregate demand for Treasury debt." JPE.
- Adrian, T., Crump, R., Moench, E. (2013). "Pricing the term structure with linear regressions." JFE.
- Duffie, D., Stein, J. (2015). "Reforming LIBOR and other financial market benchmarks." JEP.
- Nakamura, E., Steinsson, J. (2018). "High-frequency identification of monetary non-neutrality." QJE.
- Avalos, F., Ehlers, T., Eren, E. (2019). "September stress in dollar repo markets: passing or structural?" BIS Quarterly Review.
- Jermann, U. (2020). "Negative swap spreads and limited arbitrage." RFS.
- Pinter, G. (2023). "An anatomy of the 2022 gilt market crisis." Bank of England Staff WP (verify).
- Jiang, E., Matvos, G., Piskorski, T., Seru, A. (2024). "Monetary tightening and U.S. bank fragility in 2023." JFE.
- Bank of England (2022). Financial Stability Report (LDI); Federal Reserve (2023). Review of the Federal Reserve's Supervision and Regulation of Silicon Valley Bank.
Textbook auditTextbooks and primary records
Tuckman–Serrat, Veronesi, Hull and Fabozzi coverage includes cash-flow valuation, DV01, key rates, repo, futures and swaps. Research: Macaulay (1938), Redington (1952), Fisher–Weil (1971), Poole (1968), Fama–Bliss (1987), Nelson–Siegel (1987), Litterman–Scheinkman (1991), Campbell–Shiller (1991), Taylor (1993), Svensson (1994), Kuttner (2001), Gürkaynak–Sack–Swanson (2005), Gürkaynak–Sack–Wright (2007), Adrian–Crump–Moench (2013), Hanson–Stein (2015), Duffie–Stein (2015), Nakamura–Steinsson (2018), Jermann (2020), Jiang et al. (2024). Matrix background: Gantmacher–Krein, Karlin, Forzani–Tolmasky (2003), Salinelli–Sgarra (2006), Lekkos (2000). A theorem's assumptions are distinguished from the empirical diagnostics and numerical illustrations.
- Fed GSW methodology and vintage limitations: daily fitted estimates, revisable research product, NS before 1980, NSS thereafter.
- Treasury methodology: indicative bid-side inputs and official monotone-convex method.
- NBER peak/trough chronology: peak is the last expansion month; contraction follows through the trough.
- CBOT filing 25-099: December 2025 grade in Exhibit A; factor conventions.
- NY Fed reference-rate conventions, CFTC Barclays penalties, FCA LIBOR end.
- October 2025 FOMC runoff decision and March 2009 purchase announcement.
- BoE gilt intervention case study, LDI minimum resilience, Pensions Regulator guidance.
- Fed SVB evolution, SVB Financial Group 2022 10-K/XBRL, original BTFP terms, Jiang et al..
Data: pinned GSW through 31 December 2025, Treasury CMT/auction records, FRED rates/balances/output data and EDGAR group facts. Published crisis dates, purchase totals and penalties are cited figures rather than computed estimates. No NY Fed agreement statistic or legacy sealed-return performance is asserted.
Data, scope and reproducibilityScope and reproducibility
The protected original compute driver, House algorithms and global data/trial registries are unchanged. Fourteen permitted original items were restored normally. The original term attempt failed because the live NY Fed file no longer matches its pinned historical hash; no refresh or manifest change was used. Two distinctions matter:
- term_example.py is a separately named full-sample GSW illustration using the original regression/ACM settings, without the unavailable NY Fed comparison. Its yield-fit RMSE is 5.88 bp. It is neither an independent replication of NY Fed estimates nor an accurate-observed-premium certificate.
- futures_example.py restricts the original 19-note synthetic-price cache to 11 notes satisfying the December 2025 CBOT grade, 6½ to under 8 years remaining after quarter rounding. It recovers the same prices from
P = basis + F × CF, then recomputes the carry-free price envelope. The original builder's wider grade is preserved for provenance, not presented as correct. The factor reference is 6% nominal with semiannual compounding, while the plotted zero-yield coordinate is continuous. The synthetic price F* and selected-note index i* are distinct.
The active butterfly is a descriptive factor-exposure example and an unfinished validation design. Do not run or load the legacy fly or envelope items: they register/open a sealed strategy-return window. This pass neither executes that trial nor reports its legacy performance statistics. Cumulative trials through Part 18 remain 313; the global counter remains 23,562. These are existing metadata, not evidence of a new validated strategy.
Chapter notesChapters
| Chapter | Content and qualifications |
|---|---|
| Hook: the safest asset | SVB Financial Group consolidated facts; predominantly agency-MBS HTM securities. A fixed-notional, constant-duration proxy is distinguished from reported gross unrecognized losses, book capital and complete economic equity. |
| 1. Money, reserves and the floor | Reserve access, bank/nonbank transactions, administered-rate incentives and market frictions. All 887 saved weekly scatter observations are drawn; weekly sampling misses daily dislocations. |
| 2. QE and QT | Assets = currency + reserves + ON RRP + TGA + other liabilities + capital. The April 2022 peak predates formal QT; liability movements need not be one-for-one. Aggregate runoff ended 1 December 2025, without freezing portfolio composition. |
| 3. Taylor benchmark | Conditional policy arithmetic using revised historical inflation/output-gap inputs, not a real-time decision rule or proof of causation. The three-dimensional plane retains the full range. |
| 4. Bonds, yields and forwards | A hypothetical regular-coupon-date bond, all coupon cash flows and separate principal, compounding/day-count conventions and conditional forward replication. Yield to maturity is an IRR, not a guaranteed holding-period return. |
| 5. Bootstrap | Fourteen 2025 and thirteen 2023 CMT nodes. The protected routine uses a single-payment approximation at ≤1 year; its tiny repricing error applies only to coupon nodes beyond one year. One-year residuals are about 0.095 and 0.117 bp. Interpolation couples coupon dates to an unknown endpoint. This is not Treasury's official methodology. |
| 6. Duration and convexity | PV-weighted time, modified duration, local convexity and signed sensitivity. The full yield sweep retains even the negative far-away tangent approximation, clearly distinguished from a physical bond price. Greater convexity alone gives no universal price ranking. |
| 7. Key rates and immunization | One-sided finite key bumps aggregate only approximately. Redington's conditions are local; this positive 5y/30y barbell has a stronger parallel-shift Jensen result. Twist is explicitly Δz(T)=a+b(15−T)/10; at b=−1 percentage point its shortfall is 6.27 dollars, 11.42% of initial liability PV. All 25×25 stress nodes are retained. |
| 8. Nelson–Siegel–Svensson | Four betas and two positive time scales; hump maximum near 1.793τ. Full derived-zero-yield samples, RMSE 3.34/6.95 bp, restricted-grid initialization and local nonlinear refinement. Smoothness is not dynamic no-arbitrage or parameter identification. |
| 9. Curve history | 648 consecutive month ends, January 1972–December 2025. 123/648 = 19.0% have 10y below 1y; the legacy daily 10y−2y statistic is not substituted. Month labels use the original calendar encoding correctly. Seven selected NBER peak leads are 8,17,35,18,12,22,9 months under the stated available-prior-36-month rule; the first window is left-censored and windows overlap. No forecast or causal score is claimed. The 3D surface is quarterly plus the final sample, 1–15y, with interpolation and no date extrapolation. |
| 10. PCA | 10,005 consecutive-observation changes at nine maturities; covariance shares 83.88/10.58/3.36%. Components are centred, sample-dependent and not independent by construction. The selected 20 October 1987 raw projection leaves a 16.64 bp largest error at 1y; raw changes range −76.47 to −34.20 bp. The cumulative path uses centred full-sample scores, saved every fifth observation. Parallel neutrality differs from neutrality to non-flat PC1. |
| 11. Swaps | Synthetic reset-date single-curve pricing, per unit notional; near-par versus away-from-par sensitivity. Historical LIBOR swap spreads differ from SOFR swaps. Persistence dates use a retrospective >80%-negative rule looking forward up to 250 observations; the pre-2008 mean begins July 2000. All weekly spread values, including 151 bp, are shown. Repo, basis, collateral and balance-sheet risks prevent a locked arbitrage. |
| 12. Futures | Corrected 11-note grade; House conversion factors and a synthetic F*=min(P/CF) envelope. Cash-flow/accrual origin 1 December differs from the 28 November curve date; intervening carry, repo and delivery timing are omitted. All 81 shocks and all basis curves are retained. Five switch-grid yield readings are 3.70,3.80,5.40,5.60,6.10%; they are not exact thresholds. Six percent is a factor reference, not a universal switch point. |
| 13. Repo/SOFR/LIBOR | Annualized repo rates, eligible GC baskets, specials, reserve-access frictions, transaction-based volume-weighted-median SOFR and LIBOR cessation. The realized compounding windows target 91 days but keep full fixing intervals: 1,789 windows of 91 days, 73 of 92 and 12 of 94. The DTB3 bank-discount quote includes negative values and is not a pure future-SOFR forecast. |
| 14. Term premium | Campbell–Shiller conventional OLS versus overlapping Fama–Bliss HAC(12); approximate expectations restrictions, not zero expected excess-return intercepts. The named 5-PC ACM illustration uses 6–120m return maturities and PCs from ≥3m. Its zero-risk-price yield includes model/convexity effects. Decomposition and low yield RMSE do not identify latent premia or a causal policy channel. |
| 15. FOMC days | 215 scheduled meeting observations, 1994–2020. Full-sample SDs 6.18 versus 5.12 bp; the other-day histogram is thinned every seventh observation. No endpoint pooling. All scatter points are retained. Intercept −0.00788 bp, slope 0.32694, conventional OLS SE 0.07141 for the fitted instantaneous nominal forward at 10y. Daily OLS is not a high-frequency identification replication. |
| 16. Butterfly | Salomon public-record context; full-sample descriptive 2s5s10s DV01 weights approximately (−0.5888,1,−0.5282), locally neutral to two fitted loadings. Bond P&L has the opposite sign to the weighted yield change. A +1 bp combination costs about $1,000 when belly DV01 is $1,000/bp. Return validation remains unfinished. |
| 17. Gilts/LDI | Pension funding, pool NAV and available collateral differ. 1/(LD) is a tangent zero, not exact default or a measured buffer. The 2.0-impact path reaches the 30-round limit at 335.47 bp with 10.81% NAV; no infinite-run convergence claim. All 315 surface nodes and values up to 3,000 bp are shown, with explicit model limitations. Resilience guidance includes a ≥~250 bp market-stress buffer plus an operational buffer. |
| 18. SVB | Group versus bank scope, predominantly agency MBS, constant 6.2-duration proxy and gross/tax distinctions. The $1.8bn AFS loss is after tax; March 10 expected outflows are not completed withdrawals. BTFP was a liquidity loan program for eligible institutions/qualifying collateral, not cancellation of losses; new lending ended March 2024. Asset DV01 alone is incomplete bank EVE. |
| 19. House rates desk | Four illustrative positions, local key-bump and signed factor exposure reports; fund liability PV is 54.9, not 100. Model/basis risks and a proposed validation standard are distinguished from an implemented complete service. |
| Research | Oscillatory means all minors nonnegative and some power has all minors strictly positive, not merely positive entries. Sign counts do not establish flatness, three-factor variance concentration or economics. The Markov example is TN, not strictly TP. Gaussian simulations include diagonal regularization; empirical negative minors violate the condition. Covariance averaging alone guarantees neither TN nor concentration. A 3×3 eigenpair answer follows a pause. |
| Recap and problems | Four desk questions and ten worked problems, with English and Chinese solutions below. |
Companion films in this repository
中文讲义
本讲的中文说明、交易台问题与习题解答(与英文版对应)。
导言量化金融,从零搭建 — 第18部分:货币、债券与收益率曲线
本轮科学与双语润色、当前源代码的视觉验收已完成;完整制作旁白的连续试听仍待进行。旁白估计约64.7分钟,动画、停顿及实际语速会改变播放时长。历史计算截至二〇二五年,不表示当前市场状态。
Chapter notes章节要点
| 章节 | 内容及限定 |
|---|---|
| 开场 | SVB金融集团合并报表;以机构按揭证券为主的持有至到期组合。固定名义金额及久期的损失代理,不等于每日公允价值、完整权益经济价值或资不抵债结论。 |
| 1 货币与准备金 | 区分账户资格、银行及非银行交易、管理利率激励与市场摩擦;绘制全部887个周度散点,但周频不能捕捉所有日内或每日异常。 |
| 2 QE及QT | 完整资产负债恒等式;二〇二二年四月资产峰值早于正式QT。各负债变化不必一比一。二〇二五年十二月一日结束总量缩减,不冻结资产构成。 |
| 3 泰勒基准 | 修订后的历史输入及条件系数,不是实时决策规则、最优政策定理或因果证据。三维平面保留全范围。 |
| 4 债券及远期 | 假定规则付息日估值,展示全部票息及独立本金;计息及复利惯例决定数值。到期收益率是内部收益率,不是保证持有回报。 |
| 5 自举 | 二〇二五年十四节点、二〇二三年十三节点;一年以内采用单笔支付近似。极小重定价误差仅适用于一年以上附息节点,一年残差约0.095及0.117基点。不是财政部官方算法。 |
| 6 久期凸性 | 完整现值权重、修正久期及局部凸性;全收益率扫描保留远处为负的切线近似,明确它不是真实债券价格。凸性较大不构成普遍价格排序。 |
| 7 关键利率与免疫 | 有限单边微调之和仅近似平行敏感度。一般雷丁顿条件是局部的,正权重五年及三十年杠铃则有特殊的詹森平行移动结果。扭曲定义为Δz(T)=a+b(15−T)/10;b为负一个百分点时缺口6.27美元,即初始负债现值11.42%。保留25乘25网格。 |
| 8 曲线拟合 | 四个贝塔及两个正时间尺度;驼峰在约1.793τ。拟合推导零息节点的均方根误差3.34及6.95基点;有限网格初始化及局部优化不证明全局最优或参数精确识别。 |
| 9 曲线历史 | 一九七二年一月至二〇二五年十二月648个连续月末;十年低于一年为123/648,即19.0%。不能换用旧日度十年减两年比例。七个选定峰值的领先月数为8、17、35、18、12、22、9;首窗口左截断且窗口重叠,不是预测或因果评分。曲面为一年至十五年、每三月取样并加最后月份,不外推日期。 |
| 10 主成分 | 九期限10,005次相邻观测变化;前三方差占比83.88%、10.58%、3.36%。一九八七年十月二十日原始投影最大误差在一年点,为16.64基点;原始变化为负76.47至负34.20基点。累积轨迹使用全样本中心化得分。平行中性不等于非水平PC1中性。 |
| 11 互换 | 重置日单曲线单位名义本金示例;区分平价附近及偏离平价的敏感度。历史LIBOR互换不同于SOFR互换。持续性日期是向前查看至多250次观测、超过80%为负的事后规则。显示包括151基点在内的全部周度值,保留融资、回购及基差风险。 |
| 12 期货 | 正确十一券品级;工坊转换因子及F星=min(P/CF)合成包络。十一月二十八日曲线与十二月一日现金流起点不同,省略期间持有成本及交割时间选择权。保留81冲击及全部基差曲线,五次网格切换读数约3.70%、3.80%、5.40%、5.60%、6.10%,不是精确阈值。 |
| 13 回购及SOFR | 回购年化报价、合格一般抵押品篮子、特殊券及准备金资格摩擦。SOFR为交易量加权中位数。实现复利窗口保留完整定盘区间:91天1,789次,92天73次,94天12次。国库券银行贴现报价含负值,不能直接当作未来SOFR预测。 |
| 14 期限溢价 | CS常规OLS与重叠FB的HAC十二阶误差;五主成分模型的零风险价格反事实收益率含凸性等效应。分解及低收益率拟合误差,不识别潜在溢价或政策因果渠道。 |
| 15 FOMC | 215个计划会议观测;全样本标准差6.18对5.12基点,其他日直方图每七次保留一次。保留全部散点;十年处瞬时名义远期日度回归截距负0.00788、斜率0.32694、常规标准误0.07141。未复现高频因果识别。 |
| 16 蝶式 | 描述性DV01权重约负0.5888、一、负0.5282,局部抵消两个拟合载荷。债券盈亏与加权收益率变化符号相反;腹部DV01为每基点一千美元时,组合收益率上升一基点约亏一千美元。回报验证未完成。 |
| 17 国债及LDI | 计划资金状况、资产池净值及可用抵押品不同。1/(LD)只是切线零点。冲击系数二时路径到达三十轮上限,记录335.47基点及10.81%净值,不是无穷失控证明。保留315个曲面节点及最高3,000基点,并说明局部模型局限。市场压力缓冲至少约250基点,另加运营缓冲。 |
| 18 SVB | 集团与银行口径、总损失与税后损失不同;可供出售亏损18亿美元为税后。预期提款不等于完成付款。BTFP是合格机构及抵押品的流动性贷款,不消除损失;二〇二四年三月停止新贷款。资产DV01并非完整银行风险系统。 |
| 19 工坊 | 四个示例头寸,有限关键利率及有符号因子报告;基金负债现值54.9而非100。拟议验证标准不同于已实现服务。 |
| 研究及回顾 | 振荡要求全非负且某个幂的所有子式严格正,非仅元素正。符号变化数不决定形状、方差集中或经济意义。经验负子式使假设不成立;平均本身不保证全非负。暂停后展示三阶特征对;四个交易台问题及十道题解见下。 |
Desk questions, with solutions四个交易台问题
- 十年零息,年收益率4%。 价格67.5564,麦考利久期10,修正久期9.6154。收益率上升一基点,局部每百元面值损失约0.06496。
- 凸性较大就必然更贵或收益率更低吗? 不是。局部二阶变化为−DΔy+½C(Δy)²,不能推出任意有限变化下的支配。现金流、初始价格、期权、漂移、持有收益及融资都重要,½Cσ²并非普遍收益率折价。
- 为什么互换固定利率能低于国债? 融资、流动性、抵押、资产负债表及对冲需求不同。回购买国债加互换付固定,仍有浮动指数与回购基差、票息、时点及展期风险。持债摩擦模型可支持负均衡利差,却不证明监管解释每个观测。
- SVB案例需要什么报告? 联合资产负债经济价值压力、存款行为、现金、可用抵押品、提款情景及融资能力。总HTM缺口、账面资本及资产DV01回答不同问题。未保险状态本身不识别存款久期。
Problems, with worked solutions十道题及解答
- 远期。 正贴现因子且t₂>t₁≥0时,f(t₁,t₂)=[t₂z(t₂)−t₁z(t₁)]/(t₂−t₁)。若z在t>0可微,则f(t)=z(t)+t z′(t),因此f>z等价于z′>0。插值结点应指定单侧或导数惯例。这是匹配估值假设下的隐含利率恒等式,不是物理预期恒等式。
- 久期。 零息只在T支付,麦考利久期为T,年复利修正久期T/(1+y)。c>0、y>0的年付永续债,价格c/y,修正久期1/y,麦考利久期(1+y)/y;5%时为21年。永续求和要求y>0。
- 局部凸性。 冻结时点,D=−P_y/P、C=P_yy/P。若EΔy=μdt、E(Δy)²=σ²dt,局部预期价格重估约为(−Dμ+½Cσ²)dt。实际总回报还包含明确时间变化、沿曲线滚动及票息,也可能有融资、现金流变化及期权。持有收益等于报价收益率是额外假设,不能由此推出无套利收益率折价。
- 手算自举。 年复利下100=5/1.04+105/(1+z₂)²,故z₂=sqrt[105/(100−5/1.04)]−1,约5.025%。先用已知一年零息贴现首笔票息,末笔票息与本金共同确定两年零息。
- 互换。 理想重置日单曲线、单位名义本金下,浮息腿1−Z(T),固定腿KA,A=ΣτᵢZ(tᵢ),故K*=(1−Z(T))/A。收固定价值V=(K−K*)A,微分dV=−A dK*+(K−K*)dA。平价附近下降一基点约收益A乘10⁻⁴。多曲线、付款滞后及已固定票息需相应调整。
- 免疫。 负债现值54.8812;权重由w₅+w₃₀=1及5w₅+30w₃₀=15得0.6、0.4,资产现值32.9287及21.9525。平行连续利率凸性375,对负债225。一般雷丁顿条件给局部结果;这里S(a)/L=.6e^(−5a)+.4e^(−30a)−e^(−15a)由詹森不等式对任意平行a非负。这一特殊全局结果不控制扭曲、信用或融资。
- 泰勒基准。 2+4+.5(4−2)+.5(−1)=6.5%。它取决于中性利率、目标、测量及系数,不是强制行动或最优政策定理。
- 局部LDI。 初始净值一、资产四、久期二十五,切线零点为1/(4×25)=一个百分点。上升五十基点后,模型净值0.5,资产3.5。恢复初始0.01净值对久期风险缓冲,目标资产为.5/(25×.01)=2,出售1.5,即剩余资产42.86%,或初始资产37.5%。这忽略出售时的市场冲击,并把局部价格近似当作模型,不是精确偿付或保证金经济。
- 马尔可夫全非负。 Bᵢⱼ在i≥j时为ρ^(i−j),否则零,D=diag(1,1−ρ²,…,1−ρ²),直接相乘得C=BDBᵀ。B可分解为非负初等下双对角矩阵,利用柯西比内公式,乘积全非负。D为正使其非奇异,C相邻副对角为正,故具有振荡性质。三阶时a±=(−ρ±sqrt(ρ²+8))/2,v±=(1,a±,1),λ±=1+ρ²/2±(ρ/2)sqrt(ρ²+8);另有v₂=(1,0,−1),λ₂=1−ρ²。当0<ρ<1,λ+>λ₂>λ−>0,忽略中间零后的变号数为零、一、二。元素及特征值随ρ变化;零端点特征值退化,一端点矩阵奇异。
- 协方差平均。 有限二阶矩且允许交换积分及协方差时,Cov(Δy(m₁),Δy(m₂))=(m₁m₂)⁻¹∫₀^m₁∫₀^m₂ c(s,t)dsdt。积分能抑制细尺度变化,但任意光滑或随距离递减的协方差核未必全非负。仅靠平均,不能证明所有子式条件、振荡幂、每对相关性增加或普遍三因子方差占比;需要额外核假设及证明。
教材、论文及官方来源见上方链接。数据为固定GSW、财政部平价及拍卖记录、FRED及EDGAR集团事实。危机日期、购买总额及罚款为引用数字,不是自行计算;不宣称与纽约联储一致的统计量,也不报告封存回报绩效。渲染成功不等于视觉通过;完整生产旁白的连续听审仍是独立验收。
Data, scope and reproducibility范围与复现
原始compute驱动、工坊算法及全局数据和试验登记均未修改。正常恢复了十四项允许的原始缓存。原始term因纽约联储文件历史版本哈希不匹配而失败,没有刷新或修改登记。另行命名的term_example保留原始回归及五主成分ACM设置,使用固定GSW数据,省略无法复现的纽约联储比较。收益率拟合均方根误差为5.88基点,不证明潜在期限溢价准确。
futures_example从原始十九券缓存的基差恒等式恢复同一合成价格,按二〇二五年十二月CBOT规定的六年半至不足八年、向下舍入到季度的品级,筛选为十一券并重算忽略持有成本的包络。原始过宽品级只保留作来源记录。转换因子参考为六厘名义收益率、半年复利,而图示零息收益率为连续复利;合成价格F星与选券索引i星是不同量。
蝶式章节展示描述性敞口及未完成的验证设计。不要运行或加载旧fly或envelope项,它们会登记并打开封存策略回报窗口。本轮未执行该试验,也不报告旧绩效。至第十八部分累计计数保持313,全局保持23,562。这些是既有元数据,并非新增验证证据。复现请使用上方明确白名单命令,不使用无参数compute全部执行,也不绕过供应商哈希失败。
Build the film
python -m videos.quant.quant18.compute # the part's numbers, into .cache/quant18
python tools/make.py quant18 # the narrated film, English and Chinese
EXPLAINER_TTS=silent python tools/qa_scene.py quant18 Hook # one chapter, silent, with a contact sheet
Scenes: videos/quant/quant18. Setup: see the course page. Source of these notes: the part's README and the scenes' narration.