QQuant, Built

Act III · Derivatives (Q)

Part 22 of 43

FX, Commodities and the Basis

Undergraduatestarts at this level59 min of film 16 chaptersprerequisites: Part 2, Part 18

Two currencies, two interest rates, one forward price. Why does the arbitrage that ties them together stop working, and what is carry?

Covered interest parity pins the forward exchange rate to two interest rates; since 2008 it has failed by a measurable basis, which is the price of a bank's balance sheet. Uncovered parity fails the other way: high-yield currencies do not depreciate enough, and the carry trade earns the difference until it crashes. FX options come with two rates and four kinds of delta. In commodities the forward curve is financing plus storage minus the convenience of having the barrel; in April 2020 there was nowhere to put the barrel and the price went to minus 37 dollars. The Treasury basis trade and inflation breakevens complete the macro desk.

What you need. Parts 2 and 18.

What you will be able to do

Undergraduate

  • Compute a forward exchange rate from two interest rates, and a commodity forward from financing, storage and convenience yield.
  • Explain the carry trade and why its returns are negatively skewed.

Master's

  • Measure the cross-currency basis; run the forward-premium regression.
  • Price FX options with Garman-Kohlhagen, convert between delta conventions, and build a smile from risk reversals and butterflies.

PhD

  • Solve the competitive storage model and derive backwardation at stock-outs.

Industry

  • Explain the roll of commodity futures, the mechanics of negative oil in April 2020, and the Treasury cash-futures basis trade.

Contents

Each chapter has a home level. Choose a track to see what to read and watch: Undergraduate 21 min · Master's 53 min · PhD 59 min · Industry 31 min.

  1. 0A floor that brokeUndergraduate3 min
  2. 1Covered interest parityUndergraduate4 min
  3. 2Uncovered parity and the forward premium puzzleUndergraduate3 min
  4. 3The carry trade and its crashesUndergraduate4 min
  5. 4FX options: two rates and four deltasMaster's4 min
  6. 5The FX smile: risk reversals, butterflies, vanna-volgaMaster's4 min
  7. 6Pegs and attacksMaster's3 min
  8. 7Storage, carry and the convenience yieldUndergraduate4 min
  9. 8The roll and the commodity premiumMaster's4 min
  10. 9Gas and powerMaster's3 min
  11. 10April 2020: negative oilIndustry4 min
  12. 11The Treasury basis tradeIndustry5 min
  13. 12Inflation: breakevens and the premiumMaster's4 min
  14. 13Rule 22: the macro deskIndustry2 min
  15. For the researcher: the competitive storage modelPhD6 min
  16. Recap, desk questions, problemsAll tracks3 min

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

Lecture

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

A floor that brokeUndergraduate3 min

Currencies, commodities, and the basis: the prices of moving money across borders, and of moving oil and gas across time.

In September 2011, with money fleeing the euro crisis into Swiss francs, the Swiss National Bank promised a floor of one franc twenty per euro. It defended the floor by issuing francs and buying foreign currency. The rate still fluctuated above that floor. On the fifteenth of January 2015, at half past ten in Zurich, it abandoned the policy. Intraday quotes and executable prices differed across venues; the Fed's New York noon cross-rate was percent below the preceding observation. That log move was about sample daily standard deviations of 2012 through 2014. This ratio describes an unusual observation; it is not a Gaussian probability or a forecast of a policy jump.

The losses landed on whoever had treated the floor as a law of nature. At FXCM, a large American retail broker, clients' accounts went negative by about two hundred and seventy-five million dollars within minutes, more than the broker could absorb; it survived on a three hundred million dollar loan arranged the next day. Alpari's British arm was insolvent within a day. A peg does not remove a currency's risk. It stores it, and releases it all at once. That is the first lesson of this part: in currencies and commodities, the price you see is often held in place by someone's balance sheet, and the risk is what happens when they let go.

How we got here. In 1983 Mark Garman and Steven Kohlhagen priced currency options with two interest rates. In 1984 Eugene Fama found that interest rates predict currencies the wrong way round. In 1986 oil collapsed, and the new crude futures market priced it. In 1992 sterling was forced out of Europe's exchange-rate mechanism. America began selling inflation-protected bonds in 1997. In 2006 a hedge fund lost about six billion dollars on natural gas, and Gary Gorton and Geert Rouwenhorst showed what commodity futures had paid investors. In 2008 covered interest parity, a rule as close to arbitrage as finance has, stopped holding. Then the franc, a published account of the parity's failure, oil below zero, the basis trade's unwind in March 2020, Europe's gas crisis, and in 2024, the yen.

The plan: covered interest parity, derived and then measured, and why it broke; uncovered parity, the puzzle, and the carry trade that lives on it; currency options, with two interest rates and four ways to say delta, and the smile built from three quotes; pegs and how they are attacked; then commodities: storage, the roll, gas and power, and the day oil went negative; the Treasury basis trade; and inflation, priced by the bond market.

In the House, the macro desk opens: currencies, commodities and inflation, and the trades that connect them to the rates desk's bonds.

1Covered interest parityUndergraduate4 min

Covered interest parity: what a currency forward must cost, and why after 2008 it did not.

A dollar today can reach three months from now by two routes. Deposit it, and it grows at the dollar interest rate. Or change it into pounds at today's spot rate, deposit the pounds at the sterling rate, and agree today to sell them back for dollars at a forward rate. Both routes are riskless, and both end in dollars. So they must end with the same number of dollars, and that fixes the forward: the spot rate, times the ratio of the two interest accounts. That is covered interest parity. A currency with lower interest rates trades at a premium for future delivery, exactly enough to cancel its lower interest.

In logarithms it is cleaner. Using continuously compounded rates over exactly the forward's settlement horizon, covered parity equates the log forward premium to the rate differential. The residual is the basis: the direct dollar rate less the synthetic dollar funding rate. A negative basis means dollars obtained through the swap cost more. In the ideal matched-credit, frictionless setup, borrowing dollars directly and lending them through the swap captures that difference. Real trades also need credit lines, collateral, funding, settlement and balance sheet. Du, Tepper and Verdelhan documented persistent post-crisis deviations using carefully matched instruments; our next chart is a coarser public-series reconstruction.

Take one month, June 2016, as a descriptive calculation. These are monthly average sterling spot and three-month outright forward quotes, with a reconstructed dollar LIBOR proxy and sterling LIBOR. They do not form one simultaneously executable quote. Applying the simple-rate parity formula to these average inputs gives . The average reported forward is ; the saved reconstruction's average daily log residual is basis points a year. Averaging before and after taking a logarithm need not agree exactly. Credit, quote clocks, day counts, transaction costs and collateral prevent this residual from certifying a riskless profit available to any trader.

Now the saved monthly reconstruction across thirty years. Before the crisis its mean residual is basis points. This is descriptive agreement near zero, not a transaction-cost estimate. The monthly minimum is basis points in November 2008, during severe dollar-funding stress. The 2010 through 2016 mean is . Persistent deviations in matched professional data motivated the balance-sheet explanation, but this mixed-clock proxy cannot separately identify that mechanism. The dollar proxy adds TED to a discount-basis Treasury bill quote; it is not an exact contemporaneous deposit yield. Monthly averaging also obscures quarter-end spikes.

Why might the basis persist? A matched covered trade eliminates the exchange-rate exposure, yet lending, collateral and settlement still require resources. As a rough illustration, three percent capital times a ten percent hurdle is thirty basis points a year per unit of relevant leverage exposure. This is not a universal charge on every gross notional: netting, derivatives exposure measures, jurisdiction and date matter. Quarter-end basis patterns are evidence consistent with reporting and balance-sheet constraints, alongside dollar hedging demand, funding liquidity and credit differences. The equation is a stylized economic cost comparison, rather than a complete regulatory capital formula.

Dollar hedging demand can come from insurers, banks and other investors holding dollar assets. Supplying the other side requires funding, counterparties, collateral and capacity. Central-bank swap lines can ease systemic dollar stress, but access, eligible counterparties, pricing and distribution matter. They do not impose a universal hard ceiling on every quoted basis. Persistent price differences can be consistent with rational behavior when intermediation uses scarce resources. That explanation does not turn every measured residual into executable arbitrage: the currency quote, settlement dates, lending risks and financing terms still have to match.

Dollar rates are five percent and yen rates zero. Is the yen at a forward premium or a discount, and by how much over a year? And why doesn't anyone arbitrage it away?

2Uncovered parity and the forward premium puzzleUndergraduate3 min

Uncovered interest parity, and the puzzle Eugene Fama found in it. Covered parity compares matched covered investments. Uncovered parity adds assumptions about expected returns and risk premia. In the displayed log-linear approximation, a zero currency premium makes the expected log exchange-rate change equal the rate differential at the same horizon. Relating that differential to a log forward premium also requires matched funding and covered parity. This does not generally say that the forward level equals expected future spot: expectations and logarithms do not commute. Risk premia, Jensen terms and measurement conventions matter. A Fama regression is therefore a joint test of these assumptions and the data construction, rather than a pure test of investor rationality.

In 1984 Eugene Fama ran the test. Regress next month's change in the exchange rate on this month's forward premium. If uncovered parity holds, the slope is one: a currency with two percent more interest falls two percent, on average. He found slopes below zero. The high-rate currency did not fall; on average it rose. Splitting the forward premium into an expected change and a risk premium, a negative slope means the risk premium moves against the expected change, and is larger. Whatever investors are paid for holding currencies, it is big, and it varies.

This is a descriptive reconstruction for nine currencies, using month-end noon spots and monthly-average three-month rates scaled to a one-month differential. It is neither matched one-month funding nor point-in-time forecast data. The calendar audit finds a concrete error in every currency: the retained dates jump from March to May 2020, while the regressor still represents one month. No corrected regression or new strategy trial replaces the protected result. Individual errors use three-lag Newey-West; pooled White errors ignore common currency and time dependence. The saved pooled slope is . Its displayed t ratio is a legacy mechanical quantity, not a reliable significance certificate. The forward-premium puzzle is a research question; this proxy table cannot settle it.

One currency, drawn out: the Australian dollar, usually one of the highest-yielding. Each dot is a month: the forward premium on the horizontal axis, the next month's move on the vertical. Parity says the cloud should rise along the green line. The fitted line slopes the other way, and the cloud is so tall that the slope is almost invisible. That is the puzzle's second lesson: the exchange rate is mostly unpredictable noise, and the premium is a small, persistent tilt inside it.

Three explanations, not exclusive. A risk premium: the high-yielding currencies are the ones that collapse when the world economy does, so holding them earns a reward for crash risk, the subject of the next chapter. A peso problem: markets price a devaluation that a short sample may never show. And slow-moving money: at horizons of five to ten years, Menzie Chinn and Guy Meredith found slopes much closer to one. Parity may hold in the long run, and fail every month along the way.

If the slope is negative, a trader can borrow the low-rate currency and lend the high-rate one. What does that trade's return distribution look like, and when does it lose?

3The carry trade and its crashesUndergraduate4 min

The carry trade: borrowing where money is cheap, lending where it is dear, and what happens when everyone does.

If high-yielding currencies do not fall by their extra interest, the extra interest is a return. The carry trade collects it. Each month, rank currencies by their interest rate against the dollar's. Here is June 2007: the yen four and a half points below the dollar, the Swiss franc almost three below, the New Zealand dollar three points above. Borrow the three cheapest, lend the three dearest, and hold for a month. The yen and the franc were the classic funding currencies, the New Zealand and Australian dollars the classic targets.

The saved gross log-return proxy has a mechanical annualized mean of percent, volatility , and Sharpe . These are legacy statistics, not calendar-adjusted implementable account returns. The panel actually jumps from March to May 2020, so that step combines a two-month currency move with only one month's interest proxy. The cumulative line sums these proxies. Starting rates are full-month averages; eligibility also tests next-return availability, although that condition removes no extra records in this saved panel. The fixed reconstruction shows substantial losses around 2008 and 2020. Its dates, mixed funding horizon and information clocks prevent a clean portfolio or forecast interpretation; no corrected performance trial replaces it.

The distribution of monthly returns tells the same story. Most months are small gains. The left tail is long: the worst month is standard deviations below the mean, a month a normal distribution would expect less than once in . Markus Brunnermeier, Stefan Nagel and Lasse Pedersen called it carry's crash risk, and argued that it is the reward: investors are paid for holding currencies that fall when everything else does, and when traders must unwind at once.

Currency by currency, the display compares the saved mean rate differential with sample skewness of the gross monthly log-return proxy. Each currency has its own availability dates, so these averages need not share exactly the same history. The fitted line and negative sample correlation summarize this selected cross-section. They do not establish that a higher interest rate causes a crash, or identify the unique price of crash insurance. There are only nine currencies here, sharing dollar exposure and many global shocks. The pattern motivates the carry-risk literature, while inference and implementation require stronger controls than this descriptive chart.

The summer of 2024 illustrates joint market stress. The yen had been a low-rate funding currency, but the public prices do not reveal every investor's position. It strengthened in July, and the Bank of Japan raised rates on the thirty-first. The saved noon dollar-yen series goes from yen near its July peak to on August fifth. That day the Nikkei fell percent and rebounded the next day. Funding unwinds were one proposed mechanism alongside policy and macro news. Two co-moving price series cannot identify a single cause, the size of a global carry book, or its realized loss.

How might risk premia organize these returns? Lustig, Roussanov and Verdelhan studied currency portfolios with a dollar factor and a high-minus-low carry factor. The displayed relation allows both loadings and a residual alpha; one factor need not explain every currency. The second equation defines an ordinary carry-factor loading. A fitted exposure is not a causal mechanism or a guarantee of compensation. Funding liquidity, common volatility and global bad times are candidate channels behind carry's left tail. The coefficients and their stability need a separate empirical design; our fixed descriptive reconstruction does not estimate or validate that full pricing model.

A carry trade has a Sharpe ratio of point four and a skew of minus point eight. How would you size it, and what would you add to the book to survive its worst month?

4FX options: two rates and four deltasMaster's4 min

Currency options: one formula, two interest rates, and four ways to say delta. A foreign money-market account earns the foreign rate. In a frictionless model with deterministic domestic and foreign rates, positive lognormal spot has domestic pricing-measure drift equal to the rate differential. Garman and Kohlhagen give the European option price: Black-Scholes with the foreign rate as a carry yield. Volatility is constant here; basis, collateral and smile dynamics are outside this formula. A call less a put with the same strike gives the value of a forward at that strike. Its value is zero only when the strike equals the parity forward. The reciprocal-currency symmetry on the next screen also exchanges domestic and foreign rates and converts both units and notional.

Currency options have a symmetry stocks do not. The right to buy a euro for K dollars is the right to sell K dollars for one euro: a euro call is a dollar put. Price it from either side and the formulas agree, once the units and the notional are converted. So the market has conventions for everything: which currency the price is in, which notional it is a percentage of, and which way round the option is named. Two desks in two countries can hold the same contract and call it by opposite names.

Put numbers in. A euro at one dollar ten, three-month dollar rates at four point three percent and euro rates at two, so the forward is above spot, as parity requires. At seven and a half percent volatility the at-the-money call is worth about pips: ten-thousandths of a dollar per euro, or about thousand dollars on ten million euros, and each point of volatility moves it by thousand. Currency options are quoted and traded as volatility; the formula only converts.

Now delta conventions. The same option can have four quoted hedge ratios. Spot delta is the spot derivative in this model. Market forward delta is N of d one: a convention normalized for the forward hedge, rather than the discounted price derivative with respect to F. Premium adjustment subtracts the option premium divided by spot when the hedge convention nets a foreign-currency premium. Payment and quotation conventions must be checked for the pair and tenor. These figures describe one fixed 25-forward-delta call; they are not four different contracts, and their differences matter at large notionals.

Premium adjustment has a strange consequence. The ordinary call delta falls from one to zero as the strike rises. The premium-adjusted delta does not: deep in the money, the premium is almost the whole option, so subtracting it pulls the delta back down. It rises, peaks below one, at about , and falls. So a premium-adjusted delta can name two strikes, and the market's convention is to take the one above the peak.

Even at-the-money depends on a convention: spot, forward, or a delta-neutral straddle strike. Under the unadjusted delta convention used here, the straddle strike is the forward times the exponential of half the total variance. Here it is against a forward of . Premium-adjusted deltas reverse the exponent. Zero initial delta does not make the straddle pure volatility: gamma, theta, rates and changing hedge exposure remain. The next chapter uses this particular unadjusted delta-neutral strike for its illustrative ATM quote; it does not claim every currency desk uses it at every tenor.

You are long a dollar-yen call, hedged with spot delta, but the premium was paid in dollars. Are you over- or under-hedged, and by roughly how much?

5The FX smile: risk reversals, butterflies, vanna-volgaMaster's4 min

The currency smile: how three quoted numbers become a volatility for every strike. In this illustration each tenor has an ATM quote and two wing adjustments. The ATM convention is the unadjusted delta-neutral straddle. The risk reversal is the 25-delta call volatility minus the put volatility. It describes relative option-implied wing pricing, not a uniquely identified physical probability of a jump. The butterfly is the average wing volatility minus ATM under the smile-strangle convention. A market-strangle quote needs a separate conversion. The three numbers then determine our three pillar volatilities. Different smile dynamics can share those pillars, so neither a complete risk-neutral distribution nor future returns are identified by just these quotes.

The pillars are in delta, not strike, so each must be turned into a strike. Invert the delta formula, using the pillar's own volatility: a 25-delta call is the strike whose N of d one is a quarter. For our market the three strikes are , and dollars. Delta quotes have a virtue: they move with the market, so 'the 25-delta risk reversal' means the same thing whatever the level of the euro.

Now fill in between. FX desks use a method built from hedging, not from a model of the process: vanna-volga, as Antonio Castagna and Fabio Mercurio wrote it down. Price any strike at the flat at-the-money volatility. Then ask what it would cost to hedge the risks a flat volatility ignores, with the three pillar options: weights that match the option's sensitivity to volatility, vega; to spot and volatility together, vanna; and to volatility's own moves, volga. Each pillar is bought at its market price, not the flat one, and the difference is added to the price. The smile is the market price of vanna and volga.

The result. The three quoted points. The vanna-volga smile passes through each exactly, rises in both wings by the butterfly, and leans to the left by the risk reversal: insurance against a falling euro costs more than a bet on a rising one. It is smooth, cheap to compute, and needs nothing but the three quotes the market already shows, which is why every FX pricing system has it. Far in the wings it is an extrapolation, and desks add a second set of quotes at ten delta to pin the tails.

A desk can quote ATM, reversal and butterfly at several tenors. Our five sets of inputs are invented, and each curve is an independent vanna-volga illustration. Higher annualized volatility is not mechanically implied by having more time. Moneyness normalization helps compare shapes, but this display does not fit a joint stochastic process. Interpolating total variance is useful, yet it alone does not guarantee absence of calendar or butterfly arbitrage. One must check call-price bounds and convexity, consistent forwards, rates, strikes and maturities. Likewise three fitted pillars do not certify the tails or a barrier price; those require additional quotes and model assumptions.

Why use a dynamic model? Heston or an appropriate SABR specification supplies candidate dynamics, so barrier valuation can refer to a specified path law. Fitting three vanilla quotes does not identify that law or ensure a reliable barrier price. Vanna-volga is transparent: its correction uses Greeks and pillar prices. It is a local interpolation heuristic, without a general guarantee of static arbitrage freedom or consistent paths. Survival-weighted barrier corrections add further conventions and model risk. A desk must check both the vanilla surface and the path-dependent product, rather than treating an exact pillar fit as a valuation certificate.

The euro's risk reversal moves from minus point six to minus two overnight, with at-the-money unchanged. What has the market started to fear, and who pays?

6Pegs and attacksMaster's3 min

Fixed exchange rates, and the attacks that break them. This is a linearized first-generation attack model. The money-demand equation uses scaled log coordinates and a constant foreign benchmark. Domestic credit and reserves enter a linearized monetary identity. It is not the exact statement that the logarithm of a sum equals a sum of logarithms. Under the toy peg, expanding credit drains the reserve coordinate. Removing reserves produces a shadow floating rate equal to domestic credit plus alpha times its deterministic growth rate. Those assumptions give a tractable conditional attack date. They abstract from uncertain policy, banking flows, risk premia and the institutional ability to defend a real exchange-rate regime.

Watch the deterministic linearized model run. Reserves in the toy coordinates decline as credit grows; the shadow exchange rate rises toward the peg. Under perfect foresight and the model's assumptions, speculators attack when that shadow rate meets the peg, at time , before the mechanical reserve-exhaustion date . Remaining reserves are taken and the model floats without a price jump at the attack. The timing result belongs to this deterministic perfect-foresight setup. It does not make real policy decisions, stochastic reserve flows or the probability of abandoning a peg forecastable from three lines.

In October 1990 Britain joined Europe's exchange-rate mechanism at two point nine five marks to the pound, promising to keep sterling above two point seven seven eight. Two years later, with German rates high after reunification and Britain in recession, the pound sat on its floor. On Wednesday the sixteenth of September 1992 the Bank of England bought pounds all morning, raised its rate from ten to twelve percent, and promised fifteen. The selling continued. That evening Britain left the mechanism, and the pound fell through the floor, percent within six weeks. George Soros's fund was reported to have made about a billion dollars; the Treasury later put the cost of the defence at about three point three billion pounds.

Britain in 1992 does not fit Krugman's model: its reserves were not being drained by reckless credit. Maurice Obstfeld's second-generation models fit better. The government chooses whether to defend, weighing the pain of high interest rates against the cost of devaluing. If markets expect a devaluation, the defence needs even higher rates, which makes giving up the sensible choice. An attack can succeed because it is expected to succeed. A fifteen percent interest rate in a recession was a promise no one believed.

The Swiss floor illustrates a different constraint. A central bank issuing its own currency need not run out of that currency while resisting appreciation. Yet issuing francs to buy foreign assets changes its balance sheet and exposures, and policy willingness is not unlimited. Legal, political, inflation and risk considerations matter. A diffusion calibrated only to calm observations can miss the possibility of policy abandonment. That does not prove actual options were mispriced or reveal the market's jump probability; those claims need contemporaneous option quotes and an explicit pricing model. Stress a policy change as a scenario rather than treating a low sample volatility as insurance against it.

A central bank defends a weak peg with thirty billion dollars of reserves, losing two billion a month. In Krugman's model, does the attack come when reserves hit zero, or before?

7Storage, carry and the convenience yieldUndergraduate4 min

Commodities: what a barrel for future delivery should cost, and why it often does not.

Cash and carry gives an upper bound when the commodity is deliverable, storage is accessible at the stated cost, financing is locked, and the forward can be sold. Buying and storing spot then locks a delivery payoff. The displayed exponential assumes proportional deterministic carrying costs. Futures margin and stochastic rates require extra care. Reverse cash and carry also requires borrowing the physical commodity, which can be difficult. Holders may value immediate access: the convenience benefit. Scarcity, location, quality and storage constraints can all affect the curve. The second equality is a model-based effective yield representation for positive prices; it is not a universal replication formula or proof of executable arbitrage.

Under a positive-price carry approximation, two nearby futures give an effective convenience yield net of storage, using an assumed interval and financing rate. Storage cost and convenience benefit cannot be separated from this price ratio alone. A downward curve is called backwardation; it is often associated with nearby scarcity. An upward curve is contango. Its sign alone does not prove that tanks are full or identify inventories. Risk premia, seasonality, delivery locations and quality also matter. Here adjacent contract numbers are treated as about one month apart, so the annualization is a proxy rather than an exact dated forward-carry calculation.

The NYMEX crude curve, first to fourth contract, on six days. On the left, backwardation: July 2008 at a hundred and forty-five dollars, the summer of 2014 before the fall, and March 2022 after Russia's invasion, when the front contract stood thirteen dollars above the fourth. On the right, contango: December 2008, when the front month traded at thirty-four and the fourth at forty-seven, enough to pay tankers to sit at sea full of oil; February 2016's glut; and the seventeenth of April 2020, three days before the front contract went below zero.

Over four decades. The front-month price above, the curve's slope below, annualised. The slope leaps upward in every glut: the Asian crisis of 1998, the winter of 2008, the price war of 2015 and 2016, and April 2020, when it went off the chart. It is negative when supply is tight. Over the whole period the curve was in contango on percent of days: oil, on most days, was plentiful enough to need storing.

Holbrook Working drew the shape in 1949. Plot the spread between next month's future and this month's against inventories. When stocks are scarce, the spread plunges below zero: people pay heavily to have oil now. As stocks grow it rises, toward full carry, the cost of storage and financing, and it cannot go beyond, because cash and carry would cap it. The curve is steep on the left and flat on the right: scarcity moves prices far more than plenty does.

The relationship has been measured many times. The spread between near and far futures rises with inventories: steeply when stocks are scarce, flat when they are ample. Gary Gorton, Fumio Hayashi and Geert Rouwenhorst confirmed it on thirty-one commodities: low inventories predict backwardation, higher volatility, and higher returns to holding futures. A commodity future is not the market's forecast of the spot price. It is today's price, adjusted for what holding the stuff costs, and what having it is worth.

The front oil contract is seventy dollars and the next is seventy-one fifty, a month later, with rates at five percent. What convenience yield, net of storage, does that imply, and what does it say about inventories?

8The roll and the commodity premiumMaster's4 min

Rolling futures: what an investor in commodities actually earns. A futures contract has zero initial value when entered at its market delivery price. The difference between two contract prices is not an immediate cash payment to buy the next one. A held contract's subsequent price changes determine its marked profit. The first equation is a small-basis first-order decomposition around spot. The negative curve slope is a useful convergence or roll-yield approximation if the curve evolves in a specified stable way. Contango alone does not determine the realized return: spot and the whole curve can move. The next screens use an explicitly fixed convergence example, with the funding, collateral and monthly reset assumptions stated.

A rolling rule must identify delivery months and the exchange trading calendar. WTI normally stops trading three business days before the twenty-fifth of the month preceding delivery; if that date is not a business day, the rule refers to the preceding business day. Holding contract two until it is renumbered as contract one is different from jumping mechanically between continuous-series identifiers. The original fixed fifth-trading-day rule is left unchanged, but its historical performance cannot be restored under the recorded EIA hashes in this pass. We therefore do not substitute a new historical return series. Cash collateral, variation margin, transaction costs and funding belong in any implementable account.

Here is a fixed arithmetic illustration, not a historical return series. Suppose spot stays at one hundred, each new one-month future is one hundred and five, and it converges to one hundred at settlement. Back each position by cash equal to its entry notional, reset that one-times exposure each month, and assume zero collateral yield and no trading or funding costs. One month's loss is five divided by one hundred and five, about four point eight percent. The five-dollar difference is earned or lost through subsequent convergence, not an upfront fee for replacing a zero-value future. Repeating exactly these assumptions for twelve months gives about forty-four percent loss. It is not sixty percent, and it is not the return of a real oil fund. A changing term structure, different leverage or cash interest would change the account.

The same initial contango permits different realized outcomes. Keep entry spot at one hundred and the one-month future at one hundred and five. Now consider three explicitly hypothetical settlement prices: eighty, one hundred, and one hundred and twenty-five. On cash backing equal to the entry futures notional, their returns are about minus twenty-four, minus five, and plus nineteen percent. All three began with the identical upward curve. This separates an initial slope from a realized return. Even a profitable final settlement can require large interim variation margin, and a trader unable to meet it may exit early. Historical continuous prices need contract mapping and an account convention before they can support a performance claim.

A long futures position's expected delivery profit is expected future spot minus today's delivery price, under the physical expectation. Keynes's normal-backwardation argument offers one reason that premium might be positive: producers may pay others to bear price risk. It is a hypothesis, not a theorem that all futures pay a positive premium. Gorton and Rouwenhorst reported favorable historical results for a diversified commodity-futures sample through 2004; that finding depends on dates, portfolio construction and collateral treatment. Later results differ across windows and contracts. A published premium, investment flows and subsequent returns do not by themselves identify a causal crowding effect. This pass leaves the original WTI strategy cache unavailable, rather than reporting a newly reconstructed historical performance.

Settlement prices matter: index rolls, and many contracts, are priced at them. In 2008 the Commodity Futures Trading Commission charged the trading firm Optiver with trying, nineteen times over eleven days in March 2007, to push crude, heating oil and gasoline settlement prices by trading heavily into the close. It settled in 2012 for a thirteen million dollar penalty and a million in disgorgement, without admitting or denying the charges. Where flows are predictable, someone will try to trade against them.

An oil fund holds the front-month future, and the curve is in five percent a month contango. If the spot price stays flat for a year, roughly what does the fund lose?

9Gas and powerMaster's3 min

Natural gas and power: commodities with seasons, spikes, and the most famous spread trade that ever failed.

Gas moves through pipelines and specialized LNG shipping, and is stored in reservoirs, aquifers and caverns. Infrastructure and demand both have seasonal constraints. This chart is a normalized historical spot-price average: each month's price divided by its own year's mean. It is not a forward curve known at the beginning of that year, nor an executable seasonal return. Winter demand and storage cycles help explain seasonal futures patterns, which vary across years and locations. Heating, cooling, weather, production and transport disruptions can change the pattern. Seasonal spot averages provide context, rather than proving that every winter contract must be dearer than every summer contract.

Amaranth's natural-gas positions were large calendar spreads extending well beyond the nearest contracts. The Senate investigation reported very large positions and the fund suffered losses of roughly six billion dollars in September 2006. The four plotted EIA nearest-contract series provide market context. They change delivery identity through time and do not reconstruct the fund's actual winter-versus-summer positions, prices, costs or liquidation. Concentration and market impact can make an exit much more expensive than a small quoted position suggests. The exact loss mechanism needs the book and transaction history; it cannot be inferred solely from a front-month decline or these four public curves.

European and US gas prices diverged sharply during the energy crisis. Reduced Russian supply, demand, storage decisions and transport constraints all mattered. In the saved monthly series, the European peak is about dollars per million British thermal units, compared with at Henry Hub that month. They are different locations and benchmarks, rather than two immediately interchangeable delivered assets. Liquefaction, shipping, regasification, pipeline access, contracts and operational outages impede convergence. The gap illustrates the value of scarce intermediation capacity, without identifying a single binding bottleneck or assigning the entire spread to its shadow price.

Power storage exists, through batteries and other technologies, but capacity and costs constrain it. A gas plant converts a heat rate of fuel into a megawatt hour of power. For a fully flexible idealized plant, operating value resembles a sum of discounted expected positive dispatch margins under a chosen pricing model, with output quantity included. A real plant links hours through startup costs, ramp limits, outages and minimum run times; fuel delivery and emissions also matter. Fixed costs must be deducted. The option-strip analogy explains flexibility, but its simple sum is not a complete plant valuation and spot electricity is not freely storable or tradable.

Here is a fixed Margrabe exchange-option example, using positive tradable-asset proxies with joint lognormal dynamics, constant volatilities and no running cost. It is not a calibrated electricity plant. With independent drivers its value is about dollars per megawatt hour; at correlation point six, ; at point nine five, . Higher correlation reduces relative variance. Even at correlation one, unequal volatilities of forty-five and forty percent leave five percent relative volatility. Value reaches zero at the money only when relative volatility vanishes, with compatible carry. Perfect correlation alone is insufficient.

A plant's owner sells all its power and buys all its gas a year ahead. What risk has it hedged, and what option has it given away?

10April 2020: negative oilIndustry4 min

The twentieth of April 2020, when a barrel of oil cost less than nothing.

April 2020. The world had stopped driving and flying, and oil kept coming out of the ground. The May crude contract had been falling all month. On Friday the seventeenth it settled at eighteen dollars. On Monday the twentieth it settled at minus : a seller paid buyers almost thirty-eight dollars to take each barrel. The June contract, a month later, closed at . Only the expiring contract went below zero.

The expiring contract required a physical-delivery arrangement at Cushing. A holder without the ability to take delivery had to close or transfer the obligation before expiry. Accessible capacity and transport mattered, even if some physical tanks were not literally full. Under exceptional selling pressure, buyers able to manage that delivery obligation demanded compensation, and the May futures settlement became negative. That is a dated futures contract price, not proof that every physical barrel or every delivery month was worth less than zero. The event demonstrates why delivery mechanics, concentration and margin liquidity belong in risk management alongside the pricing model.

The separately pinned public settlements show three dated curves. April seventeenth has steep contango. On the twentieth May and June differ by about fifty-eight dollars per barrel. That is a delivery-month price spread, not a directly identified universal price for renting a tank. Location, accessible capacity, contract obligations and who could trade all mattered. On the twenty-first the expiring May contract settles above zero. The next day the continuous front identifier refers to June. These changes do not establish unchanged fundamentals or a unique cause; the contract and delivery calendar are essential to interpreting the plotted series.

The options on those futures broke the industry's models. Black's model, the lognormal standard, makes every move proportional to the price, so the price can approach zero but never cross it; with a negative future it cannot even be evaluated. Louis Bachelier's model of 1900 makes moves a fixed size in dollars, whatever the level, so the future can go below zero. Its put formula works for any future and any strike, negative or not. Part nineteen used it for negative interest rates; in April 2020 oil needed it too.

The models differ near zero. The normal volatility here is about dollars per square root of a year, matched to one positive-forward ATM Black option at this tenor. That match does not equate the two models at all strikes. Under a positive lognormal future, a put struck at zero has zero payoff. Under a normal future it can pay, with value about dollars when the current future is zero. The normal model can cross zero but remains a model assumption; pricing extreme tails or physical-delivery stress still needs calibration and contract analysis.

The exchange had seen it coming, just. On the eighth of April CME told its members that if crude futures fell toward zero it would move their options to Bachelier's model, and that its systems could take negative prices. On the twenty-second it did, for crude oil options, and switched back later that year when prices recovered. The lesson goes beyond oil: a model's domain must include every price the contract allows, not only those that have happened.

A fund is long the front-month oil future, with no storage, a week before the last trading day, in a steep contango. What are its choices, and which one sets the price?

11The Treasury basis tradeIndustry5 min

The Treasury basis trade: the most leveraged trade in the safest market in the world.

A Treasury future permits delivery of eligible securities, according to contract-specific grade and conversion-factor rules. The invoice is futures price times conversion factor plus accrued interest. The factor approximates a six-percent-yield convention; it is not a current market price. Cheapest-to-deliver selection compares implied repo rates or carry-adjusted net bases under consistent delivery assumptions. Minimizing clean price minus futures times conversion factor ignores financing, coupon dates, accrued interest and timing. A full valuation also recognizes the short's quality and timing options. The future therefore need not simply equal one note's forward divided by its conversion factor in every state.

The seller of a future holds options. It chooses which note to deliver, and if yields move far enough the cheapest one changes, so it keeps the better of several. It chooses the day within the delivery month, and for some hours after each day's settlement it can still announce delivery at that price. Options held by the seller make the future cheaper than the cheapest note's forward. Part of the basis is the value of those options, and a basis trader who forgets them has sold them for nothing.

For an illustrative no-coupon interval, buy the note at its dirty price and compare the delivery invoice with the purchase cost. The implied repo rate annualizes that round-trip cash growth on the stated day-count basis. Our made-up dirty price is , invoice , and implied repo percent a year. A comparison with a locked matching repo rate can reveal an apparent carry spread. Actual profit also depends on coupons and accrued conventions, transaction costs, futures margin funding, borrowing terms and delivery options. This arithmetic is not a claim that any dealer can lock that gain with overnight funding or no additional capital.

For a rough illustration, a fixed twenty-basis-point annual spread divided by a two-percent haircut gives ten percent on haircut equity before other capital and costs. That is not a complete funding return: futures margin and additional liquidity may require more cash. A long-cash, short-futures mark changes approximately by the cash-price change minus conversion factor times the futures-price change. Divide by initial equity to obtain an equity return. A margin call is a cash-flow demand, not automatically an economic loss of that amount. Repo repricing, haircuts, delivery choices and forced exit can prevent the trader from realizing an apparent convergence gain. Holding to delivery alone does not eliminate those risks.

The regulator reports weekly Treasury futures positions by trader category. These are face-value notionals, not duration-matched risk, losses or margin posted. Asset managers are net long in this aggregate; leveraged funds are net short. Some shorts hedge cash-bond basis positions, others serve different strategies. Netting can also hide offsetting books. At the end of 2025 this aggregate net short is about trillion dollars of face, times the saved February 2020 figure. It neither measures every basis position nor bounds their total. Estimating that trade needs both legs, financing data and explicit classification assumptions.

In March 2020 many investors sold Treasuries for cash, while dealer intermediation capacity was strained. Cash-futures dislocations and financing demands put pressure on some leveraged positions. Fed staff later estimated hedge-fund Treasury sales near one hundred and seventy-three billion dollars for that month, with many attributed to likely basis traders under their classification. Those estimates are not a transaction-by-transaction causal reconstruction. On March twenty-third the Fed announced Treasury purchases in the amounts needed to support market functioning. Buying cash Treasuries supported liquidity; it did not mean the Fed literally entered the same long-cash, short-futures basis book.

Published estimates describe a larger basis trade after 2020. Fed staff placed it between two hundred and sixty and five hundred and seventy-four billion dollars at September 2023, and around eight hundred and thirty billion by September 2025. These are dated model-based estimates with definitions and coverage limitations. Intermediation between futures demand and cash holdings can provide a useful service, yet that does not rule out crowding, leverage or fragility. Treasury clearing reforms are one policy response, with covered transactions, implementation dates and exemptions depending on the rule. Clearing changes netting, margin and default management; it does not remove repo renewal, liquidity stress or forced-sale risk.

A basis trade earns twenty basis points on a two percent haircut. Overnight the haircut goes to six percent. What happens to its return on capital, and to the trader who cannot raise more?

12Inflation: breakevens and the premiumMaster's4 min

Inflation, as the bond market prices it. TIPS pay coupons on indexed principal. The coupon rate per payment period multiplies face value and a lagged reference-index ratio; principal redemption also has a contractual deflation floor. Their quoted yield is a real yield under those conventions. Nominal yield less a comparable real yield gives a breakeven measure. The displayed decomposition into expected inflation, inflation risk premium and TIPS liquidity compensation is approximate. Coupon profiles, duration, index lag, convexity, tax and the floor can matter. An inflation path making two specific bond returns equal depends on those cash flows, so a yield difference is not an exact universal expectation of future CPI growth.

The saved public series covers 2003 through 2025. Its five-year breakeven reaches percent in November 2008. This price alone cannot separate expectations from risk and liquidity premia. Model-based research attributes a substantial part of the crisis decline to market liquidity, with uncertainty about the decomposition. The March 2022 maximum is . The five-year rate five years forward averages percent over its saved sample. That forward measure emphasizes later horizons, yet it does not remove all current shocks or premia and should not be read as a pure forecast of the central bank's target.

Compare the saved monthly mean breakeven with annualized CPI growth over the following five years. This is an ex-post descriptive comparison, using current-vintage seasonally adjusted CPI rather than a contract's lagged reference index. Adjacent observations overlap for almost their entire five-year windows. A single inflation episode therefore affects many points, and the observations are not independent forecast trials. The sample mean price-minus-realization gap is percentage points; its sample standard deviation is , not a standard error or prediction interval. Expectations errors and several premia contribute. The gap alone does not identify a causal liquidity discount or certify forecasting performance.

The 2021 and 2022 inflation surge contrasts a one-year realization with a five-year market price. The saved twelve-month CPI change peaks near percent. The five-year breakeven maximum is about . A multi-year compounded rate need not track a single year's peak. Longer-horizon prices can contain expectations of disinflation, but also changing risk, liquidity and convexity premia. These series alone neither prove that markets correctly forecast the full five-year path nor identify confidence in a central bank. Evaluating that claim would require matched horizons and a point-in-time forecasting design.

Untangling the three needs a model, and the Federal Reserve's staff maintain several. Expected inflation they pin with surveys and with a term-structure model of the kind in Part nineteen, fitted to nominal and real yields at once. The inflation risk premium comes out small, and in the 2010s, when the worry was deflation, sometimes negative: nominal bonds were the hedge then. And the liquidity premium accounts for most of the 2008 collapse. The breakeven moves for reasons that have nothing to do with inflation.

A zero-coupon inflation swap exchanges cumulative index growth against a fixed compounded payment at maturity. Under consistent discounting, the fair compounded gross fixed payment equals the expected index ratio under the payment-date forward measure. Taking the annualized root gives the quoted fixed rate; it is not the expectation of the annualized growth rate. Swaps avoid purchasing the bond principal but still need counterparty exposure, collateral, capital and funding. Their difference from a TIPS breakeven can reflect liquidity, financing, index lag, the TIPS floor and cash-flow conventions. It need not have a universal sign or a single balance-sheet explanation.

A pension fund owes benefits that rise with inflation. Should it hedge with TIPS or with inflation swaps, and what does each cost it when breakevens fall in a panic?

13Rule 22: the macro deskIndustry2 min

The House's twenty-second rule, for its macro desk. The macro desk's first sheet mixes dated descriptive prices and fixed illustrations. A sterling basis proxy has unmatched quote and funding clocks. Carry's saved gross statistics are not a point-in-time portfolio certificate. The named public oil data provide a positive-price contango share and the April 2020 settlement, while the legacy historical roll return is unavailable under its original raw-data pin. Treasury futures net shorts are face notionals, not the size or loss of a basis book. The breakeven-minus-realization gap mixes expectations errors and premia. Each number needs its unit, sample, convention and data clock before it can support a trading decision.

Three lines from the House's new module carry most of this part. The basis: the dollar rate, less the foreign rate, less the forward premium. The convenience yield: the financing rate, less the slope of the futures curve. And the implied repo rate of a bond delivered into its future. Each is an arbitrage relation turned into a measurement: what is left over is the price of something scarce. In currencies it is balance sheet; in oil, a tank; in Treasuries, a repo lender willing to roll the loan tomorrow. The desk's job is to know which, and what it costs today.

The macro desk opens with these tools. Covered parity and its basis; descriptive currency regressions and carry; FX options and quote conventions; storage, roll arithmetic, Treasury financing and inflation prices. Rule twenty-two: charge funding and balance sheet consistently; stress pegs and policy changes; size commodity positions against accessible storage, delivery and market liquidity; check the pricing model's domain against the contract. Stress carry beyond the observed worst month, because a historical extreme is not a loss bound. A source hash, a model assumption and a scenario are useful only when their scope is stated and no unavailable history is silently replaced.

Apply the rule as a scenario discipline. For a currency floor, quantify losses under explicit abandonment jumps; a scenario reveals possible exposure without predicting a particular day. For a concentrated gas spread, stress liquidation costs, financing and the positions of other traders, rather than assuming quoted depth is available at scale. For physical oil, identify delivery obligations, accessible storage and a model domain that permits contractually possible prices. For the Treasury basis, stress haircuts, repo renewal, margin and the delivery choices. These checks can expose vulnerabilities; they do not prove that a rule would have prevented each historical loss.

For the researcher: the competitive storage modelPhD6 min

For the researcher: the competitive storage model derives how constrained inventories can shape prices and forward spreads. We solve the original fixed numerical law on a bounded grid, not an exact continuous-state equilibrium. A separately pinned public price and inventory illustration follows, because legacy EIA workbook hashes no longer match. It describes association, not a calibrated model or causal test. We will derive the storage inequality, check numerical residuals and interpolation boundaries, distinguish price levels from log-price persistence, and identify questions the one-state model leaves open.

The model starts with availability: last period's stored inventory plus this period's harvest. Consumption is availability minus nonnegative inventory, and inverse demand sets the price. Storers pay the storage cost today, so today's price plus cost must be at least the discounted expected next price, with equality if inventory is positive. The fixed point couples this condition to demand and tomorrow's availability. It assumes risk-neutral storers and a constant discount factor, not an estimated physical-to-pricing measure change. If the forward equals the expected next price, positive stocks imply a spread of storage cost divided by beta plus interest times today's price. At zero stocks the spread is only bounded above by that quantity; it need not be negative. A stock-out is not synonymous with backwardation.

Solve it by time iteration: guess a price function, compute what storers would carry, and repeat until nothing changes. Without storage, the price would simply be demand at whatever is available. With it, plenty is smoothed: storers buy when availability is high and the price is flattened. But below the kink, nobody stores, and the price follows the steep demand curve: storage can carry a surplus forward, never a shortage backward.

The numerical certificate is deliberately limited. On four hundred grid points, the positive-stock Euler residual is below one billionth and the zero-stock inequality holds. But the expectation uses fifteen quadrature nodes with clamped interpolation. At the worst upper-boundary grid state, about one point nine percent of quadrature mass lies outside the grid and is clamped; a tiny lower-tail mass is clamped too. The original fixed-seed two-hundred-thousand-period simulation stayed within the grid. That observed path does not certify all possible states, quadrature accuracy or a global continuous equilibrium. Smaller residuals of a discretized equation do not by themselves establish small approximation error.

Now plot the one-period spread against inventory, retaining the full range down to minus sixty-six percent. With positive stocks the exact model identity is interest plus storage divided by beta and by spot. Because storage cost is an absolute amount, that fractional spread varies with price; it is not perfectly flat. At zero inventory several availability states share the same horizontal coordinate, so the red points form a vertical set rather than a single-valued curve. The original fixed simulation generates two hundred thousand periods and discards one thousand. Its remaining sample exhibits stock-outs and positive price skewness. These are properties of this chosen numerical example, not universal consequences of every nonnegative inventory constraint.

Here is a separately pinned public association for 1990 through 2020: the monthly average second-over-first WTI spread against US commercial crude stocks relative to a trailing seasonal norm. All observations are retained, including the large positive spread above twenty-six percent. Decile means rise from about percent in the scarcest bin to in the most plentiful. Those spreads compare delivery contracts about a month apart; they are not realized monthly trading returns. April 2020 illustrates delivery and storage pressure, but these data do not measure each trader's accessible capacity or identify a causal inventory effect. The simple model has no upper storage-capacity constraint, and its positive-price law cannot represent negative oil.

The persistence comparison needs care. The saved model statistic is price-level autocorrelation, per abstract period. The public oil statistic is monthly log-price autocorrelation, , with twelve-month log-price correlation . These transformations and time units differ; they are not a like-for-like calibrated test. Deaton and Laroque's empirical work raised an important persistence puzzle for storage models. Later research showed that numerical accuracy, demand specification and persistent shocks can change the comparison. Our table motivates that literature without claiming the particular fixed example proves a universal inability of competitive storage to generate persistence.

Three open questions. How much of commodity price persistence is storage, and how much is persistent shocks to supply, demand or storage capacity, is still argued. With risk-averse storers and hedgers, Keynes's normal backwardation, the spread is no longer the expected price change, and separating the two in data is unsettled. And tanks fill up: an upper bound on inventory, April 2020's lesson, adds a second kink, and models with both bounds and financial traders are young.

Pause and predict. Spot oil at seventy dollars, a one-month rate of point four percent, and storage at thirty cents a barrel a month. What is the most the one-month future can trade above spot? And below it, how far can it go?

With storage accessible at thirty cents paid today, finance both the seventy-dollar barrel and storage for one month. The locked delivery cost is seventy point three times one point zero zero four, or seventy point five eight one two dollars. Thus the upper spread bound is about fifty-eight cents. If storage is paid at delivery instead, it is exactly fifty-eight cents under these inputs. One-way cash and carry does not provide an analogous lower carry bound without the reverse trade. That statement does not say every price model permits arbitrarily negative futures: our positive-price storage law cannot represent negative oil, while an actual contract may permit it.

Recap, desk questions, problemsAll tracks3 min

Part twenty-two in eleven lines. A defended currency floor can end in a policy jump. Covered parity is an ideal matched relation, while public basis proxies mix funding and quote clocks. Our Fama table includes a calendar mismatch and cannot certify significance. Carry's fixed gross reconstruction has a left tail and implementation limitations. FX options require rates, model domains and explicit delta and smile conventions. Peg models describe conditional mechanisms. Named public oil prices illustrate storage and delivery pressure; fixed roll arithmetic replaces unavailable historical performance. Gas and power value flexibility subject to physical constraints. Negative futures need a model that permits them. Treasury net shorts are a positioning proxy, not a basis-book measurement. Breakevens and inflation swaps price both expectations and premia.

Six desk questions. Dollar rates at five percent and yen rates at zero put the yen at a forward premium under the stated simple-rate convention; a carry position adds exchange-rate risk. Persistent covered-basis deviations require attention to matched credit and settlement as well as intermediation and funding constraints. In the fixed rolling example, convergence from a dearer delivery price causes a loss. A fresh future has zero initial value, and the initial contango alone cannot determine its subsequent profit. Keep the account, costs and collateral assumptions explicit.

The expiring May oil contract faced immediate delivery pressure; neighboring contracts had different delivery dates. A calm peg does not by itself price an option on abandonment. Jump probabilities, model choice and contemporaneous market quotes matter, and calm volatility does not prove an option is cheap. A Treasury basis trade has financing, delivery and liquidity assumptions even if its prices eventually converge. Repo renewal, margin and forced exit can still cause loss. The written solutions state these conditions instead of describing delivery as a guarantee that all risk disappears.

And twelve problems: covered parity derived and a basis computed by hand; the algebra of Fama's slope; FX deltas and the straddle strike; pillar vols from quotes; the date of a speculative attack; a convenience yield; an implied repo rate; and why a spread option dislikes correlation. Two more are qualifying-exam problems: full carry in the storage model, and its time iteration. Solutions, in English and Chinese, are in the notes.

Where this comes back. Carry returns in Part twenty-four, beside value and momentum, in every asset class, and again in Part thirty-two's systematic macro. Part twenty-six charges funding and capital in every backtest. Part thirty-four turns to manipulation and surveillance. And the finale stresses the macro desk with the rest of the House.

These are the textbooks, research papers and public records behind the lecture. Original restored results, separately pinned descriptive price illustrations and fixed arithmetic examples have distinct scopes. The legacy EIA-dependent originals remain blocked, and no unavailable historical rolling performance is certified. Source and evidence records identify the data and model assumptions; a complete numerical construction and a sampled visual pass are still different from continuous production-voice listening.

That completes Act Three, on derivatives: options, rates, credit, counterparties, and now currencies and commodities, all priced. Next, Part twenty-three opens Act Four, on return premia: not what things must cost, but what they pay, and how much risk any of it is worth. The research desk opens.

Where it goes next. Carry is one of the alternative premia of Part 32; the basis trade is the leverage of Part 41; negative prices bring Bachelier back for the finale.

Key results

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

Covered interest parity\[F=S\,\frac{1+r_{d}\tau}{1+r_{f}\tau}\]
Cost of carry\[F=S\,e^{(r+u-y)T}\]
Garman-Kohlhagen\[C=S e^{-r_fT}N(d_1)-K e^{-r_dT}N(d_2)\]
Fama regression\[\Delta s_{t+1}=\alpha+\beta\,(f_t-s_t)+\varepsilon_{t+1},\qquad \hat\beta<1\]

Try it

Lab 22 · Carry: the forward curve and what the roll pays

Build a commodity's forward curve from financing, storage and convenience yield; hold the front contract and roll it for a year while the spot goes nowhere; then run a carry trade across simulated currencies whose forwards obey covered parity and whose spots ignore uncovered parity.

Figure produced by Lab 22: Carry: the forward curve and what the roll pays
Produced by the lab below, seed 0, in 0.1 s. Simulated data.
python -m videos.quant.labs 22 needs numpy, scipy, matplotlib, numba · download lab22.py · source on GitHub
contango (convenience 0%)          12-month future 85.80   implied convenience 0.0%   rolling the front for a year: -6.8%
flat (7%)                          12-month future 80.00   implied convenience 7.0%   rolling the front for a year: +0.0%
backwardation (15%)                12-month future 73.85   implied convenience 15.0%   rolling the front for a year: +8.3%
Carry trade, 3 high against 3 low  mean 5.8% a year, volatility 8.0%, Sharpe 0.73

Carry is what you earn if prices do not move. Whether it is a premium or a forecast error is the question the part asks; here the spot was built to ignore the differential.
The code (61 lines; it asserts its own result)
"""Lab 22: carry: the forward curve of a commodity, the roll, and the currency that pays more."""

import numpy as np

from videos.quant import labs
from explainer.quant.house import macro

TITLE = "Carry: the forward curve and what the roll pays"
GOAL = ("Build a commodity's forward curve from financing, storage and convenience yield; hold the front "
        "contract and roll it for a year while the spot goes nowhere; then run a carry trade across simulated "
        "currencies whose forwards obey covered parity and whose spots ignore uncovered parity.")
TASKS = [
    "Set storage to 30% a year with nowhere left to put the oil. What does the front contract do near expiry?",
    "Make uncovered parity hold (drift = interest differential). What happens to the carry trade's Sharpe ratio?",
    "Add a crash: once every five years the high-yield currencies fall 10% together. Recompute crash_stats.",
]


def run(seed=0):
    S, r, storage = 80.0, 0.04, 0.03
    T = np.arange(0, 25) / 12
    lab = labs.Lab()
    curves = {}
    for name, y in (("contango (convenience 0%)", 0.0), ("flat (7%)", 0.07), ("backwardation (15%)", 0.15)):
        F = macro.carry_forward(S, T, r, storage, y)
        curves[name] = F
        implied = round(float(macro.implied_convenience(F[1], F[2], 1 / 12, r, storage)), 12)
        roll = np.prod(np.full(12, S / F[1])) - 1  # buy the one-month future, it converges to an unchanged spot
        lab.row(name, f"12-month future {F[12]:.2f}   implied convenience {100 * implied + 0.0:.1f}%   "
                      f"rolling the front for a year: {100 * roll:+.1f}%")
        assert abs(implied - y) < 1e-9 and abs(roll - (np.exp(y - r - storage) - 1)) < 1e-9

    # ten currencies: interest differentials persist, spot changes are noise (uncovered parity fails)
    rng = np.random.default_rng(seed)
    months, n = 360, 10
    diff = np.zeros((months, n))
    diff[0] = rng.normal(0, 0.03, n)
    for t in range(1, months):
        diff[t] = 0.98 * diff[t - 1] + rng.normal(0, 0.03 * np.sqrt(1 - 0.98 ** 2), n)
    spot_change = rng.normal(0, 0.10 / np.sqrt(12), (months, n))
    excess = diff / 12 + spot_change  # the forward discount earned, plus the spot move
    carry = macro.carry_sort(excess, diff, k=3)
    stats = macro.crash_stats(carry["ls"], per_year=12)
    lab.row("Carry trade, 3 high against 3 low", f"mean {100 * stats['mean']:.1f}% a year, volatility "
                                                 f"{100 * stats['vol']:.1f}%, Sharpe {stats['sharpe']:.2f}")
    lab.note = ("Carry is what you earn if prices do not move. Whether it is a premium or a forecast error is the "
                "question the part asks; here the spot was built to ignore the differential.")
    assert stats["sharpe"] > 0.4

    fig, ax = labs.figure(2, size=(11, 4.2))
    for (name, F), c in zip(curves.items(), (labs.LOSS, labs.CASH, labs.GAIN)):
        ax[0].plot(12 * T, F, "o-", ms=3, color=c, label=name)
    ax[0].axhline(S, color=labs.MUTED, ls=":", lw=1)
    ax[0].set(title="Forward curves from one spot price", xlabel="months to delivery", ylabel="futures price")
    ax[0].legend(fontsize=8)
    ax[1].plot(np.arange(months) / 12, np.cumsum(carry["ls"]), color=labs.P, label="carry: long high, short low")
    ax[1].plot(np.arange(months) / 12, np.cumsum(excess.mean(1)), color=labs.CASH, label="all currencies, equal weight")
    ax[1].set(title="Simulated currency carry", xlabel="years", ylabel="cumulative return")
    ax[1].legend(fontsize=8)
    lab.fig = fig
    return lab

Now change it

  1. Set storage to 30% a year with nowhere left to put the oil. What does the front contract do near expiry?
  2. Make uncovered parity hold (drift = interest differential). What happens to the carry trade's Sharpe ratio?
  3. Add a crash: once every five years the high-yield currencies fall 10% together. Recompute crash_stats.

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

  1. Dollar 5%, yen 0%: premium or discount?
    AnswerUnder simple annual rates, in yen per dollar, F/S = 1/1.05. Equivalently a yen is dearer in forward dollars. The exact percentage depends on quote direction; uncovered carry still has exchange-rate risk.
  2. Why can a covered basis persist?
    AnswerMatched ideal parity is a replication result. Actual funding, lending credit, collateral, settlement, hedging demand and balance-sheet capacity differ. A proxy residual is not automatically an available riskless profit.
  3. Does contango mechanically charge a roll fee?
    AnswerNo. A new future starts at zero value. Under an explicitly fixed convergence scenario, its higher delivery price can produce a loss as it converges; subsequent curve/spot moves and account sizing matter.
  4. Why the May 2020 contract?
    AnswerIts immediate Cushing delivery obligations and accessible storage/transport differed from later contracts. A negative futures settlement is not a statement that every physical barrel or every delivery month has a negative price.
  5. Is protection on a calm peg necessarily cheap?
    AnswerCalm realized volatility does not establish an option price or mispricing. Policy-jump assumptions, contemporary option quotes, risk premia and contract terms are needed.
  6. Does delivery remove all basis-trade risk?
    AnswerA convergence calculation assumes financing, carry, execution and delivery terms. Repo renewal, haircuts, variation margin and forced exit remain; holding to maturity alone does not eliminate them.

Problems, with worked solutions

Problems and solutions

  1. CIP. Derive covered interest parity from two riskless strategies, and show that with continuous compounding \(\ln(F/S) = (r_d - r_f)\tau\).

    Solution

    For domestic per foreign spot S, matched frictionless deposits imply F = S(1+r_d τ)/(1+r_f τ). For continuous rates, ln(F/S)=(y_d-y_f)τ.

  2. Basis. Sterling 3-month: \(S\) = 1.30, \(F\) = 1.3025, \(r_{\mathrm{USD}}\) = 2.0%, \(r_{\mathrm{GBP}}\) = 1.2%. Compute the basis in basis points (ignore day counts).

    Solution

    With S=1.30, F=1.3025, r_d=.02, r_f=.012, τ=.25, x=ln(1+.02τ)/τ-ln(1+.012τ)/τ-ln(F/S)/τ, about +3 bp/year. This made-up calculation ignores differing day counts and execution costs.

  3. Fama identity. In the Fama regression, write \(f - s = \mathbb{E}[\Delta s] + p\) and show that \(\beta = 1 - \text{cov}(p, f - s)/\text{var}(f - s)\). What does \(\beta < 0\) require?

    Solution

    If f-s=E_t[Δs]+p and the forecast error is orthogonal to the time-t forward premium, β=1-cov(p,f-s)/var(f-s). A negative beta requires the covariance to exceed the forward-premium variance. The assumption is part of the result.

  4. Deltas. Show that the Garman–Kohlhagen forward delta of a call is \(N(d_1)\) and its premium-adjusted forward delta \((K/F) N(d_2)\).

    Solution

    Under the stated convention, forward delta is N(d1); premium-adjusted forward delta is (K/F)N(d2). The unnormalized price derivative is discounted.

  5. DNS strike. Show that the delta-neutral straddle strike is \(F e^{\sigma^2 T/2}\).

    Solution

    With unadjusted deltas, call plus put delta is zero when d1=0, giving K=F exp(σ²T/2). Premium adjustment gives the opposite exponent.

  6. Pillar vols. From ATM = 8%, RR\(_{25}\) = \(-1\%\) and BF\(_{25}\) = 0.3%, find the two 25-delta vols.

    Solution

    In the smile-strangle convention, ATM 8%, RR −1 vol point and BF 0.3 vol points give call 7.8%, put 8.8%. A market-strangle convention differs.

  7. Attack. In Krugman's model with \(\bar s = 1\), \(d_0 = 0.4\), \(\mu = 0.1\), \(\alpha = 1\): when does the attack come, and how many reserves are taken on that day?

    Solution

    Under the specified linearized deterministic model, T*=(1-.1-.4)/.1=5, reserves taken αμ=.1; mechanical exhaustion would be time 6.

  8. Convenience. WTI: \(F_1\) = 70, \(F_2\) = 71.5 a month later, \(r\) = 5%. Find the convenience yield net of storage.

    Solution

    y-u=.05-12 ln(71.5/70), about −20.4%/year under the positive-price one-month carry approximation. It does not separately identify storage, inventories or a risk premium.

  9. Implied repo. A bond: dirty price 100.2, futures 112.0, conversion factor 0.89, accrued at delivery 1.1, 92 days. Find the implied repo rate.

    Solution

    Invoice 112×.89+1.1=100.78; no intervening coupons gives (100.78/100.2-1)×360/92, about 2.27%. Locked financing, day counts, accrued conventions, costs and delivery options matter for an actual trade.

  10. Correlation. Why does a long position in an at-the-money spread option lose value as the correlation of its two legs rises?

    Solution

    Relative variance is σ1²+σ2²−2ρσ1σ2, decreasing in correlation for positive volatilities. At ρ=1 it is (σ1−σ2)², not generally zero.

  11. Full carry and threshold. (qual) In the storage model, show that \(F_t-p_t=k/\beta+(\beta^{-1}-1)p_t\) whenever \(I_t > 0\), and that \(f\) is decreasing with \(f(x) = P(x)\) below a threshold \(x^*\); find \(x^*\) in terms of \(\mathbb E f(z')\).

    Solution

    Positive inventory implies p+k=βE[p′]. If F=E[p′], then F-p=(β⁻¹−1)p+k/β. At zero inventory the same expression is an upper bound, not necessarily backwardation. With decreasing demand and a well-defined interior threshold, P(x*)=βE[f(z′)]−k; the right side must be in the inverse-demand range. Below the threshold f=P.

  12. Monotonicity and skew. (qual) Show that the time-iteration operator \(Tf(x) = P(x - I_f(x))\) maps decreasing functions to decreasing functions, under decreasing continuous demand and a well-defined storage optimum; explain why right skewness is a model-dependent outcome, not a theorem of the inventory constraint alone.

    Solution

    With decreasing continuous demand and a decreasing candidate continuation price, the storage Euler root has inventory increasing by no more than availability, under appropriate regularity and uniqueness. Consumption therefore does not fall as availability rises, and the updated price is nonincreasing. Stock-out regions need the boundary inequality too. Right skewness is an outcome of the chosen demand/shock law, not a theorem of nonnegative inventory alone.

Reading and notes

The part's papers

from READING.md

  • Kaldor, N. (1939). "Speculation and economic stability." REStud.
  • Working, H. (1949). "The theory of price of storage." AER.
  • Brennan, M. (1958). "The supply of storage." AER.
  • Margrabe, W. (1978). "The value of an option to exchange one asset for another." Journal of Finance.
  • Krugman, P. (1979). "A model of balance-of-payments crises." JMCB.
  • Hansen, L. P., Hodrick, R. (1980). "Forward exchange rates as optimal predictors of future spot rates." JPE.
  • Garman, M., Kohlhagen, S. (1983). "Foreign currency option values." J. International Money and Finance.
  • Fama, E. F. (1984). "Forward and spot exchange rates." J. Monetary Economics.
  • Gibson, R., Schwartz, E. (1990). "Stochastic convenience yield and the pricing of oil contingent claims." Journal of Finance.
  • Kirk, E. (1995). "Correlation in the energy markets." In Managing Energy Price Risk.
  • Obstfeld, M. (1996). "Models of currency crises with self-fulfilling features." European Economic Review.
  • Schwartz, E. (1997). "The stochastic behavior of commodity prices." Journal of Finance; Schwartz, E., Smith, J. (2000). "Short-term variations and long-term dynamics in commodity prices." Management Science.
  • Gorton, G., Rouwenhorst, K. G. (2006). "Facts and fantasies about commodity futures." FAJ.
  • Castagna, A., Mercurio, F. (2007). "The vanna-volga method for implied volatilities." Risk.
  • Chincarini, L. (2007). "The Amaranth debacle: failure of risk measures or failure of risk management?" J. Alternative Investments.
  • Brunnermeier, M., Nagel, S., Pedersen, L. H. (2008). "Carry trades and currency crashes." NBER Macroeconomics Annual.
  • Lustig, H., Roussanov, N., Verdelhan, A. (2011). "Common risk factors in currency markets." RFS.
  • Burnside, C., Eichenbaum, M., Kleshchelski, I., Rebelo, S. (2011). "Do peso problems explain the returns to the carry trade?" RFS.
  • Menkhoff, L., Sarno, L., Schmeling, M., Schrimpf, A. (2012). "Carry trades and global foreign exchange volatility." Journal of Finance.
  • Tang, K., Xiong, W. (2012). "Index investment and the financialization of commodities." FAJ.
  • Szymanowska, M., de Roon, F., Nijman, T., van den Goorbergh, R. (2014). "An anatomy of commodity futures risk premia." Journal of Finance.
  • Fleckenstein, M., Longstaff, F., Lustig, H. (2014). "The TIPS–Treasury bond puzzle." Journal of Finance.
  • Du, W., Tepper, A., Verdelhan, A. (2018). "Deviations from covered interest rate parity." Journal of Finance.
  • CFTC (2020). Interim Staff Report: Trading in NYMEX WTI Crude Oil Futures Contract Leading up to, on, and around April 20, 2020; CME Group (2020). Notice on switching to the Bachelier model.
  • Schrimpf, A., Shin, H. S., Sushko, V. (2020). "Leverage and margin spirals in fixed income markets during the Covid-19 crisis." BIS Bulletin.
  • Barth, D., Kahn, R. J. (2021). "Hedge funds and the Treasury cash-futures disconnect." OFR WP.

Papers and sources

Papers, chapter by chapter

  • Hook: SNB press release (15 January 2015); FXCM, 10-K for 2015.
  • ch. 1: Du, Tepper and Verdelhan (2018); Borio, McCauley, McGuire and Sushko (2016); the Fed's swap lines (2007–08, 2020).
  • ch. 2–3: Fama (1984); Chinn and Meredith (2004); Brunnermeier, Nagel and Pedersen (2008); Lustig, Roussanov and Verdelhan (2011).
  • ch. 4–5: Garman and Kohlhagen (1983); Castagna and Mercurio (2007); Reiswich and Wystup (2010) on delta conventions.
  • ch. 6: Krugman (1979); Flood and Garber (1984); Obstfeld (1994); HM Treasury papers on Black Wednesday (2005).
  • ch. 7–8: Keynes (1930); Kaldor (1939); Working (1949); Gorton and Rouwenhorst (2006); Gorton, Hayashi and Rouwenhorst (2013); CFTC releases 5521-08 and 6239-12 (Optiver).
  • ch. 9: Margrabe (1978); US Senate PSI, Excessive Speculation in the Natural Gas Market (2007).
  • ch. 10: Bachelier (1900); CME Clearing advisories 20-152 and 20-171 (April 2020).
  • ch. 11: Barth and Kahn (OFR, 2021); Glicoes, Iorio, Monin and Petrasek (FEDS Notes, March 2024); Monin (FEDS Notes, June 2026); FOMC statement (23 March 2020); SEC, Treasury clearing rule (2023).
  • ch. 12: D'Amico, Kim and Wei (2018); FRED's TIPS breakeven series.
Textbook audit
Textbook Chapters Where
Clark, Foreign Exchange Option Pricing 1–3 (FX markets, Garman–Kohlhagen, conventions), 4 (smile, vanna–volga), 6 (barriers) ch. 4–5
Wystup, FX Options and Structured Products 1 (deltas, premium adjustment, ATM conventions), 1.5 (vanna–volga) ch. 4–5
Geman, Commodities and Commodity Derivatives 2 (storage, convenience yield), 3 (the roll, indices), 9–10 (oil, gas), 13 (power) ch. 7–10
Eydeland and Wolyniec, Energy and Power Risk Management 5 (spread options), 7–8 (power plants as options) ch. 9
Hull, Options, Futures, and Other Derivatives 5 (forwards, cost of carry), 6 (Treasury futures, CTD), 17 (currency options) ch. 1, 4, 7, 11
Data, scope and reproducibilityScope of this revision
  • Ten original items restore under their recorded public-data checks. The original oil, gas and storage_theory items stop on EIA workbook hash mismatches. They are blocked before the scene loader touches a cache, even if an old file exists. No original compute driver, House algorithm or global registry is modified.
  • Separately pinned public workbooks support the named oil_public_example, gas_public_example and storage_public_example caches in review_examples.py. Their bytes differ from the legacy pins; without the old bytes we cannot attribute the difference to workbook metadata. These examples describe dated prices and inventory association. They do not certify the blocked originals or reconstruct a historical futures strategy return.
  • The original fixed storage law, grid, quadrature and seed are retained in the named numerical example. The two roll screens instead use fixed arithmetic: entry future 105, settlement 100, one-times cash backing, zero cash yield and no costs. Monthly loss is 100/105 - 1; twelve identical resets lose about 44.3%. A new future has zero initial value. Initial contango does not determine its later profit.
  • Fama's retained dates bridge March to May 2020 for all nine currencies while using a one-month rate differential. This is an actual calendar error in the protected legacy calculation, not a new corrected regression. The slopes, standard errors and mechanical pooled t ratio are descriptive; they do not certify significance. Three-lag HAC errors by currency and pooled White errors also treat dependence differently. A missing-data filter can bridge gaps even after its adjacency test.
  • The FX panel uses month-end noon spots and full-month average three-month rates, with current-vintage/publication clocks, rather than matched executable one-month funding. Carry eligibility tests the next realized return; the audit finds no extra exclusion from that condition in this saved panel, but the rule does not establish historical information availability. The cumulative series sums gross log proxies. The shared panel also puts the March-to-May two-month currency move against one month of carry, so the legacy nominal-month annualization is not a calendar-adjusted account return.
  • The sterling basis reconstruction mixes monthly forward/spot averages with LIBOR proxies. Dollar TED plus a discount-basis Treasury-bill yield is not an exact contemporaneous deposit quote. Neither that residual nor a standard-deviation multiple certifies executable arbitrage, a causal mechanism or a tail probability.
  • Garman–Kohlhagen assumes positive lognormal spot and deterministic rates. Delta, premium and ATM conventions are stated. Zero straddle delta does not remove gamma, theta or rate risk. Vanna–volga is a heuristic, not a guarantee of static arbitrage freedom or a uniquely identified path law. Total-variance interpolation alone is insufficient to certify a whole surface.
  • The plant option strip is a discounted pricing expectation for an idealized flexible plant; startup, ramp, outage, emissions and fixed costs remain. Electricity storage exists but is constrained. At correlation one, volatilities 45% and 40% still leave 5% relative volatility; the illustrative Margrabe option is worth about $0.5924, rather than zero. Actual power spot is not a freely tradable lognormal asset.
  • CTD comparison needs implied repo or carry-adjusted net basis, with dates and delivery options. Gross-basis minimization alone is insufficient. Signed mark-to-market gain, economic loss and variation-margin cash demands are distinct. Financing and delivery assumptions still matter at maturity. CFTC net shorts are face-value positioning proxies, neither basis-book sizes nor universal upper bounds.
  • TIPS coupons use lagged index ratios and redemption includes a deflation floor. Yield-difference decompositions are approximate. Overlapping ex-post CPI windows cannot identify forecast skill or isolate a liquidity premium. Inflation swaps still require credit, collateral, capital and funding; the fair compounded payment equals a forward-measure expected index ratio, with an annualized root for the fixed rate.
Data, scope and reproducibilityNumerical storage scope and worked answer

The original fixed numerical law uses 400 points on [.55,3], 15 Gauss–Hermite nodes, β=1/1.01, absolute upfront cost .005, and seed 2222. Reported iteration index 163 means 164 updates. Euler residuals at positive inventory are below 10⁻⁹, and stock-out complementarity holds on the grid. Interpolation clamps tails: at the worst grid state about 1.90% of quadrature mass is clamped above the upper edge, with a tiny lower-tail mass too. The original 200,000-period simulation stays inside this grid; 1,000 burn-in observations leave 199,000 periods for the saved statistics. None of these facts certifies a continuous-state equilibrium or quadrature error bound. The reference-price unit is the normalization P(1)=1; the absolute fee .005 is not an estimated 0.5% of the simulated stationary mean price.

The model spread down to −66.34% and all descriptive inventory/spread points, including the +26.56% maximum, are displayed. Price-level model autocorrelation is distinct from monthly log-price autocorrelation in oil; the table is not a like-for-like calibrated test. Public inventory association is not a causal validation.

For the pause question, $70 oil, one-month simple rate .4%, and $.30 storage paid today give F≤(70+.30)1.004=70.5812, about $.58 contango. If storage is paid at delivery the bound is $.58 exactly under these inputs. One-way cash-and-carry supplies no analogous lower carry bound without the reverse trade. The positive-price storage model does not represent the contract's possible negative-price states.

Chapter notesChapters (about 59 minutes)
  1. A floor that broke. The Swiss floor and its abandonment; New York noon cross-rates distinguished from intraday/executable quotes; a sample volatility multiple is not a probability.
  2. Covered interest parity. Matched ideal investments, quote direction, simple and continuous rates, a descriptive sterling basis proxy, funding and intermediation constraints.
  3. Uncovered parity. The log-linear zero-premium hypothesis; Fama's covariance identity; nine proxy slopes and the actual calendar/dependence limitations.
  4. Carry and crashes. The original fixed three-versus-three gross reconstruction, left tails, the yen/Nikkei episode as co-movement, and dollar plus carry factors.
  5. FX options. Garman–Kohlhagen, put–call symmetry, units, four deltas and ATM conventions.
  6. FX smile. ATM/RR/BF under the smile-strangle convention, strike inversion, vanna–volga pillars, invented term inputs and surface/path model risk.
  7. Pegs and attacks. A deterministic linearized monetary model, conditional attack timing, the ERM and policy willingness; no implied option mispricing from calm volatility alone.
  8. Storage and convenience. Accessible-storage cash-and-carry bounds, net convenience proxies and dated named WTI curves. The slope viewport explicitly marks both off-scale tails.
  9. Roll and commodity premia. Convergence assumptions and WTI's delivery calendar; two fixed arithmetic screens replace unavailable legacy performance. Initial contango permits different hypothetical settlements. Historical literature is distinguished from a new trial.
  10. Gas and power. Normalized historical spot seasonality, near-contract context for Amaranth, regional gas benchmarks, constrained flexibility and Margrabe's assumptions.
  11. Negative oil. May versus June delivery, continuous-contract renumbering, accessible capacity, Black's positive domain and an ATM-matched Bachelier illustration.
  12. Treasury basis. Invoice, delivery options, implied repo, haircut equity versus total capital, signed marks and funding liquidity; public positions versus inferred books.
  13. Inflation. TIPS cash-flow conventions, breakeven components, overlapping CPI comparisons, horizon differences and collateralized inflation swaps.
  14. The macro desk. Prices and statistics with units, dates, conventions and limitations; the original House source is shown without alteration; scenarios do not guarantee prevention.
  15. Research: competitive storage. Complementarity, the exact full-carry identity, finite-grid residual and boundary checks, full-range spread/scatter displays, and an explicit persistence-comparison caveat. A worked storage-bound answer follows the pause.
  16. Recap and problems. Eleven wrapped recap lines, six conditional desk answers, and twelve problems in three pages numbered 1–6, 7–10 and 11–12.

中文讲义

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

导言量化金融,从零搭建 — 第22部分:外汇、商品与基差

本轮视觉复核完成:已实际检查32张双语旁白节点画面表、16张英文动画画面表及32张原尺寸重点画面。配音开场及分章静音预览已核验。完整成片连续听审与发音验证仍待完成,信号检查不能替代听审。

本讲涵盖抛补与非抛补平价、套息与崩盘、外汇期权及报价约定、挂钩攻击、储存与便利收益、展期算术、天然气与电力、负油价、国债基差与通胀价格。16章顺序见上文,科学限定与英文完全一致。

Desk questions, with solutions交易台问题与解答
  1. 美元5%、日元0%,日元远期升水吗? 指定单利及日元每美元报价下F/S=1/1.05,倒数报价的百分比不同;套息仍有汇率风险。
  2. 基差为何持续? 理想平价要求信用、期限与交割匹配,实际融资、抵押、中介容量和需求不同,代理残差不自动等于无风险利润。
  3. 期货升水等于展期手续费吗? 新期货初值为零。固定收敛场景可能亏损,但初始曲线不决定未来盈亏。105收敛到100,以105现金支持、每月重置,一月亏约4.76%,重复12月约亏44.3%,不是历史基金业绩。
  4. 为何5月油约为负? 即期交割义务与可取得储存、运输有别于远月,不表示所有实物与月份均值负数。
  5. 平静挂钩的终止期权必然便宜吗? 不能仅凭低历史波动断言,须结合政策跳变假设、同期报价、风险溢价及条款。
  6. 交割是否消除基差风险? 不,融资续期、折扣、保证金、退出及交割选择依然重要。
Problems, with worked solutions习题与解答
  1. 平价: 从两个无风险策略推导抛补利率平价,并证明在连续复利下\(\ln(F/S) = (r_d - r_f)\tau\)。

    解答

    F=S(1+r_dτ)/(1+r_fτ);连续复利下ln(F/S)=(y_d-y_f)τ,前提为理想匹配复制。

  2. 基差: 英镑3个月:\(S\) = 1.30,\(F\) = 1.3025,\(r_{\mathrm{USD}}\) = 2.0%,\(r_{\mathrm{GBP}}\) = 1.2%。计算以基点表示的基差(忽略计息天数)。

    解答

    给定S=1.30、F=1.3025、两利率2%与1.2%、τ=.25,连续复利转换后约+3基点/年,未计成本与日计数差异。

  3. Fama: 在法玛回归中,写出\(f - s = \mathbb{E}[\Delta s] + p\),并证明\(\beta = 1 - \text{cov}(p, f - s)/\text{var}(f - s)\)。\(\beta < 0\)需要什么条件?

    解答

    若预期误差与当期远期溢价正交,β=1-cov(p,f-s)/var(f-s),负β要求协方差大于远期溢价方差。

  4. Delta: 证明Garman–Kohlhagen看涨期权的远期delta为\(N(d_1)\),期权费调整后的远期delta为\((K/F) N(d_2)\)。

    解答

    约定远期delta为N(d1),溢价调整后为(K/F)N(d2),不同于未归一化贴现价格导数。

  5. 中性跨式: 证明delta中性跨式组合的执行价为\(F e^{\sigma^2 T/2}\)。

    解答

    未调整delta下d1=0,K=F exp(σ²T/2);调整后指数反号。

  6. 柱点: 由ATM = 8%、RR\(_{25}\) = \(-1\%\)和BF\(_{25}\) = 0.3%,求两个25-delta波动率。

    解答

    微笑宽跨式约定下ATM 8%、RR −1点、BF .3点,得看涨7.8%、看跌8.8%。

  7. 攻击: 在Krugman模型中,\(\bar s = 1\),\(d_0 = 0.4\),\(\mu = 0.1\),\(\alpha = 1\):攻击何时到来?那一天被拿走多少储备?

    解答

    指定线性确定模型中时点5,储备.1;无攻击的机械耗尽时点6。

  8. 便利收益: WTI:\(F_1\) = 70,一个月后的\(F_2\) = 71.5,\(r\) = 5%。求扣除仓储成本后的便利收益。

    解答

    y-u=.05-12ln(71.5/70)约−20.4%/年,不能分离库存、储存与风险溢价。

  9. 隐含回购: 一只债券:全价100.2,期货112.0,转换因子0.89,交割时应计利息1.1,92天。求隐含回购利率。

    解答

    发票100.78,(100.78/100.2-1)360/92约2.27%,无中间付息且条款、成本须匹配。

  10. 相关: 为什么一个平值价差期权的多头,在其两条腿的相关系数上升时会贬值?

    解答

    相对方差σ1²+σ2²−2ρσ1σ2,相关1时仍为(σ1−σ2)²,不一定为零。

  11. 完整持有成本: (资格水平)在储存模型中,证明正库存时\(F_t-p_t=k/\beta+(\beta^{-1}-1)p_t\)。在需求及最优条件下,价格函数递减,阈值\(x^*\)以下\(f(x)=P(x)\);用\(\mathbb E f(z\prime)\)表示阈值条件,并检查定义域。

    解答

    正库存时p+k=βE[p′],故F-p=(β⁻¹−1)p+k/β;零库存只给上界,并不必然现货升水。阈值须满足逆需求定义域及最优条件。

  12. 单调性与偏度: (资格水平)递减连续需求及良定义储存最优下,证明时间迭代算子\(Tf(x)=P(x-I_f(x))\)保持非增性。解释正偏依赖具体模型,并非仅由库存非负约束推出。

    解答

    在递减连续需求、良定义储存最优及适当正则条件下,可比较根的变化证明价格更新不增;边界亦须检查。正偏是指定需求与冲击的结果,不是非负库存约束本身的定理。

数值模型采用400点网格[.55,3]、15求积节点及原种子2222,索引163对应164次更新。网格欧拉残差小于10⁻⁹,但最差上界状态约1.90%求积权重被钳制;原20万期路径未出界,舍弃1000期后统计199000期。这不认证全局连续均衡。图中参考价格单位采用归一化P(1)=1,绝对成本.005并非模拟平稳平均价格的实测0.5%。显示完整−66.34%模型价差及+26.56%经验极值;价格水平与月度对数价格的自相关不可当作同口径校准比较。

暂停题若30美分储存费今天支付,F≤(70+.30)1.004=70.5812,升水约58美分;到期支付则恰为.58美元。没有反向交易,单向持有套利不给对应下界,但正价格模型本身不能描述负油价。

原累计试验数保持本部分317、全系列23562,不新增市场试验、不打开封存留出数据、不强制刷新登记。8项已有数值测试通过;当前源码的抽样视觉证据已记录,完整成片听审另列待办。

Data, scope and reproducibility数据、统计与定价范围
  • 10个原始项目通过原有检查恢复;oil、gas、storage_theory因EIA工作簿哈希不符被阻止,在读缓存前即拒绝。原计算驱动、House算法与全局登记均未改动。
  • 三个单独命名例子采用public_example_pins.json独立固定的公共价格与库存文件。没有旧字节就不能断言变化仅属元数据;这些例子不认证受阻原结果,也不重构历史期货策略回报。展期业绩屏改为固定算术示例,不以新历史业绩填补。
  • 九种货币的Fama保留日期都从2020年3月跳至5月,却配一月利差;该旧计算的实际日历错误未通过新回归掩盖。斜率、单币HAC及合并White误差只作描述,机械t比值不能证明显著性。
  • 月末中午即期与整月平均三月利率,既不期限匹配,也不代表历史时点可成交数据。套息资格测试未来回报存在性;本保存面板中该条件没有另排除记录,但不建立可实施性。累计曲线求和毛对数代理,不等于完整融资账户。相同面板也把2020年3月至5月两个月汇率变动配上一月利息,旧名义月度年化并非日历调整账户回报。
  • 英镑基差混合报价时钟、日计数与融资代理,TED加贴现报价国库券并非精确同期存款利率。价差不自动证明套利或单一因果机制;SNB样本标准差倍数也不是尾部概率。
  • Garman–Kohlhagen依赖正对数正态价格及确定利率。delta、期权费与平值约定须明确;零初始delta仍有伽马、时间与利率风险。Vanna–volga及总方差插值不能独自保证全曲面无套利或识别路径分布。
  • 电力可以储存但容量受限。理想灵活机组类似正调度利润的贴现定价期望之和,实际还受启停、爬坡、故障、排放与固定成本约束。相关为1、波动率45%和40%时仍有5%相对波动,本例交换期权约值0.5924美元,不为零。
  • 最便宜可交割券需比较隐含回购或持有成本调整净基差,不能只最小化毛基差。盯市盈亏、经济损失与追加保证金现金需求不同;交割本身不消除融资风险。CFTC净空面值既非基差账簿规模,也非普适上界。
  • TIPS采用滞后参考指数,兑付含通缩下限;收益率差分解是近似。重叠五年CPI窗口不能识别预测能力或单独流动性溢价。通胀互换仍需信用、抵押、资本与融资;公平固定复合总支付等于远期测度预期指数比,取年化根才得固定利率。

Build the film

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

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