What probability does the options market put on a sharp S&P 500 drop, and how far is that from the bell curve?
This project recovers the full probability distribution of the S&P 500 at an expiry date from SPX option prices: a put-call parity forward, an arbitrage-free SVI volatility smile, and the Breeden-Litzenberger density.
- Result. On real Cboe quotes (26 June 2019, 30-day expiry) the market priced a 4.8% chance of a drop of more than 7.8% (2 standard deviations); the lognormal (Black-Scholes) curve gives 2.4%. Live Yahoo quotes on 14 October 2026 gave 4.7% vs 2.4% for a 33-day expiry.
- Validation. Against a Heston model whose density is known exactly, the recovered density is within 1.8–1.9% total variation over 5 noise seeds. On all 27 expiries of the 2019 chain, probabilities sum to 1 and the mean equals the forward within 0.6 bp.
- Caveat. These are risk-neutral probabilities. They include the premium investors pay for crash insurance, so they overstate how often crashes actually happen.
Left: implied volatility of real SPX quotes and the SVI fit. Right: the recovered density (blue), the lognormal at the same ATM volatility (dashed), and naive finite differences on the raw quotes (orange), which go negative at 29% of strikes. Shaded: the 2-sd drop region.
python -m venv .venv && . .venv/bin/activate && pip install -r requirements.txt
python tests/data/download.py && python -m rnd --csv tests/data/spxw_20190626.csv --expiry 2019-07-26
Option prices encode a probability distribution: Breeden & Litzenberger (1978) showed it is the second derivative of the call price with respect to strike. Taking that derivative on raw quotes fails (the orange points above), so the curve is smoothed in volatility space first, without allowing arbitrage.
| Step | What | Why |
|---|---|---|
| 1. Forward | Weighted regression of put-call parity, C − P = DF·F − DF·K |
Forward F and discount factor DF from prices alone: no rate or dividend assumptions |
| 2. Implied vols | Invert Black-76 on out-of-the-money mids (vectorised bisection) | OTM options are the liquid side; parity makes call and put vols identical |
| 3. Smooth | Fit Gatheral's SVI smile, w(k) = a + b(ρ(k−m) + √((k−m)² + σ²)), robust loss, arbitrage-free |
Smoothing in vol space keeps the second derivative stable |
| 4. Density | q(K) = ∂²C/∂K² on the SVI call curve |
Breeden-Litzenberger |
The SVI fit has two no-arbitrage guards. Real data needed both: without them, expiries with few call quotes produced probability mass up to 1.41.
- Wing slopes ≤ 2 (Roger Lee's moment formula), by reparametrising
b. - Durrleman's condition g(k) ≥ 0 (no butterfly arbitrage, equivalent to no negative density), penalised over the whole density grid, including the extrapolated wings.
The density grid spans ±16 ATM standard deviations. SPX's left tail is fat: at ±8, a live 6-month expiry lost 0.56% of its probability off the left edge of the grid.
All of it is in rnd/core.py, about 200 lines.
Known truth. Noisy, tick-rounded quotes generated from a Heston stochastic-volatility model, whose density is exact by Fourier inversion.
| Check | Result |
|---|---|
| Heston reference: martingale; Black-Scholes limit; pdf = ∂²C/∂K² | exact; 2e-8; 3e-6 (density peak 0.04) |
| Implied vol round trip | 7e-12 |
| Forward and discount factor from noisy parity | within 0.01% and 0.03% |
| Flat vol → recovers lognormal | total-variation distance 0.001% |
| Heston density from noisy quotes, 5 random seeds | total-variation distance 1.8–1.9%, no negative probabilities |
| Same, with stale wing quotes off by 50% | 1.5% |
| 2-σ crash probability | 6.69% recovered vs 6.81% true; lognormal says 2.65% |
Real market. Every SPXW expiry from 1 week to 1 year (27 expiries) in a Cboe 15:45 snapshot from 2019-06-26. There's no true density for real data, so the checks are what must hold:
| Check | Result on all 27 expiries |
|---|---|
| Probability mass | 0.9999–1.0000 |
| Negative probability mass | below 1.1e-6 |
| Mean of density vs forward (martingale) | within 0.6 bp |
| Implied interest rate from parity | 2.1–2.8%; Fed funds target was 2.25–2.50% |
| SVI fit error | 0.14–0.86 vol pts |
| ATM total variance rises with maturity (calendar no-arbitrage) | yes |
| Skew | negative on every expiry (−1.4 to −2.6); 2-σ crash probability 4.2–7.6% vs lognormal 2.3–2.7% |
Yahoo Finance ^SPX quotes, 14 October 2026, about 10:59 New York time (Yahoo delays quotes ~15 minutes; SPX was 7,754). python -m rnd ^SPX --out spx_live.png:
The market put 4.7% on a 2-standard-deviation drop (below 7,220) by 16 November; the lognormal bell curve says 2.4%.
| Expiry | Days | Forward | ATM vol | Mass | Mean vs forward | SVI fit error | Implied rate | T-bill (13 Oct) | 2-σ crash: market / lognormal |
|---|---|---|---|---|---|---|---|---|---|
| 2026-11-16 | 33 | 7,778.8 | 12.4% | 0.9994 | 3 bp | 0.45 vol pts | 3.6% (12 strikes, ±2) | 4-wk 3.98% | 4.7% / 2.4% |
| 2026-12-18 | 65 | 7,801.9 | 13.4% | 0.9994 | 4 bp | 0.77 | 4.6% | 8-wk 4.05% | 5.0% / 2.4% |
| 2027-01-15 | 93 | 7,831.7 | 13.7% | 0.9991 | 6 bp | 0.77 | 4.8% | 13-wk 4.19% | 5.1% / 2.5% |
| 2027-04-16 | 184 | 7,908.6 | 15.0% | 0.9990 | 9 bp | 0.32 | 4.9% | 26-wk 4.35% | 5.5% / 2.6% |
T-bill: U.S. Treasury daily bill rates, coupon equivalent. Negative probability mass is below 3e-6 on every expiry, and ATM total variance rises with maturity (0.00139, 0.00319, 0.00477, 0.01134), so there is no calendar arbitrage. The implied rate comes from put-call parity alone and sits 0.5–0.65 points above T-bills at 2–6 months (continuously compounded vs coupon-equivalent; converting shifts it under 0.05). This is consistent with SPX box-spread rates usually running above Treasury yields, but only one day was measured here. The live chart was rendered on 14 October, before the density panel showed the crash probability in its title; live quotes cannot be re-fetched to redraw it.
--surface fits SVI to every expiry in order of maturity. A calendar penalty, built like the Durrleman one, stops total variance from falling below the previous expiry on the strikes both quote. Fitted independently, the 2019 surface had total variance falling by up to 2.9e-3 (at ln(K/F) = −0.89, September 2019 expiries), even though the bid/ask quotes contain no calendar arbitrage at any strike. With the penalty there is no fall anywhere, and SVI fit error rises by at most 0.11 vol pts. The penalty makes the fit slower: about 45 seconds for the 27 expiries. The chart shows expiries up to 1 year on the strike range quoted by all of them, with total variance linear in T between expiries.
2019 snapshot: 27 expiries fitted (3 under 7 days skipped); 26 up to 1 year shown over ln(K/F) −0.175 to 0.084.
Live ^SPX, 14 October 2026, 11:43 New York: 46 expiries fitted (5 under 7 days skipped, plus 2030 and 2031, which failed the mass and mean checks); 40 up to 1 year shown over ln(K/F) −0.325 to 0.066.
Question. Does the crash probability priced into SPX options predict real S&P 500 drops and volatility better than the VIX does? Answering it needs a daily series, so rnd/daily.py takes one snapshot of live ^SPX options per US trading day, at about 15:45 New York, and appends one row to data/daily_crash_prob.csv (created by the first run). The comparison with VIX and realized returns comes later; VIX and SKEW history will come from Cboe's free historical files.
Constant 30-day horizon, as in the VIX. Listed expiries move closer every day, so a fixed expiry would give a different horizon each day. Each run takes Cboe's "30 Day Bracket" (the last expiry at most 30 days away and the first one after it, with time measured to the minute), fits SVI to both (the second with the calendar penalty against the first), and interpolates the smile to exactly 30 days: at each log-moneyness k = ln(K/F),
w30(k) = a · w_near(k) + (1 − a) · w_next(k), with a = (T_next − 30 days) / (T_next − T_near),
where w = σ²T is total implied variance, the quantity the VIX interpolates. The forward and the discount factor are interpolated the same way in logs. The 30-day density, its checks and the probabilities are then computed from that smile.
What a row holds. For the 30-day horizon: the market and lognormal probability of a drop of more than 2 standard deviations (below F·exp(−2σ√T), from the forward, as elsewhere in this project) and of more than 10% (below 90% of the spot level at the snapshot), ATM vol, skew, excess kurtosis, probability mass, mean vs forward, negative mass. For each of the two expiries: the SVI parameters, forward, discount factor and time to expiry (enough to rebuild the 30-day density and any other threshold later, with daily.rebuild_30d(row)), the implied rate, SVI fit error, probability mass, mean vs forward, and the number of strikes used for the SVI fit and for put-call parity. Plus the time of the newest trade in the chain, the spot level and its time, a quality flag and the git commit of the code. No Yahoo quotes are stored.
Read the probabilities as "on day 30". They are probabilities for the index level 30 calendar days later, not for touching a level at some point along the way; a path that falls 12% and recovers by day 30 does not count. The fair real-world comparison is therefore the 30-calendar-day return from the snapshot, not the worst drawdown inside the month. They are also risk-neutral (see Limits).
Timing, holidays and gaps. GitHub Actions cron runs in UTC and often starts late, so the workflow (.github/workflows/daily.yml) fires at 15:35, 15:50 and 16:05 New York in both summer (EDT, UTC−4) and winter (EST, UTC−5): six UTC times, three of which fall inside the window in any season. The script itself decides: outside 15:30–16:15 New York it does nothing; if the day already has a row it does nothing; otherwise it needs quotes and an SPX level less than an hour old. There is no holiday calendar: on a holiday the newest quote is from the previous session, and on an early-close day (13:00, options 13:15) it is more than two hours old at 15:35, so both are skipped by the same freshness test. Every in-window run that ends without a row (closed market, Yahoo failing three times, a fit that cannot be computed) is recorded with its reason in data/skipped_days.csv, one line per day; a later successful run that day removes the line. Rows that fail a quality check are still written, with quality_ok = False and the failed checks named in quality_flags: probability mass off by 0.5% or more, mean more than 30 bp from the forward, SVI error of 1 vol point or more, implied rate outside 0–10%, negative mass after interpolation, a 30-day point outside the two expiries (extrapolation; only when no expiry lies within 30 days), or any of these being NaN. Empty bid/ask quotes with fresh trade times count as a Yahoo failure and are retried, not as a closed market. Live data uses only PM-settled SPXW contracts, which settle at the 16:00 close that time to expiry is measured to; on third Fridays Yahoo's ^SPX chain also lists AM-settled SPX monthlies (on 2026-12-18: 676 SPX and 429 SPXW contracts), which settle at the open and are left out. If an expiry of the bracket lists no SPXW, the nearest SPXW expiry on the same side of 30 days is used instead and the row is flagged; SPX monthlies are never used in its place. On NYSE early-close days the market closes at 13:00 New York, so SPXW expiring then settle on the 13:00 close and time to expiry is measured to 13:00; the dates (2026-11-27, 2026-12-24, 2027-11-26, 2028-07-03, 2028-11-24) come from NYSE's calendar in rnd/data.py and must be extended when NYSE publishes later years. (The 2019 Cboe snapshot includes two such expiries, 2019-07-03 and 2019-11-29; its loader still measures them to 16:00, so the published 2019 numbers are unchanged.) Strike counts are recorded but not yet checked; a threshold will be set after the first weeks of data.
Run it yourself (inside 15:30–16:15 New York on a trading day, otherwise it exits with a message): python -m rnd.daily. Tests, without network: python tests/test_daily.py.
python -m venv .venv && . .venv/bin/activate
pip install -r requirements.txt
python tests/data/download.py # 2019 Cboe snapshot for --csv
python -m rnd --demo # known truth
python -m rnd --csv tests/data/spxw_20190626.csv --expiry 2019-07-26 # real quotes, offline
python -m rnd --csv tests/data/spxw_20190626.csv --surface --out surface.png # implied vol surface
python -m rnd ^SPX # live, first expiry ≥ 30 days
python -m rnd ^SPX --expiry 2026-12-18
python -m rnd ^SPX --surface --out surface_live.png
Output: forward, ATM vol, skew, excess kurtosis, the market's probability of a 2-standard-deviation drop versus the lognormal (Black-Scholes) answer, and the chart. --csv reads any file in Cboe's end-of-day format.
Live data comes from Yahoo Finance (free, via yfinance). Run it during US market hours: 9:30–16:00 New York, which is 18:30–01:00 Almaty, or 19:30–02:00 after US clocks change on Nov 1. Outside those hours Yahoo still shows the last session's quotes: on a Saturday, 97–99% of contracts were two-sided and put-call parity on them gave a discount factor of 1.018. So the loader times the quotes by the newest trade in the chain (which also accounts for Yahoo's ~15-minute delay) and stops with a clear message if that trade is more than an hour old.
Reproduce. bash reproduce.sh downloads the 2019 snapshot, runs the tests and regenerates demo.png, spx_2019.png and surface.png (the two live charts depend on the day's quotes).
python tests/test_rnd.py: 18 tests, about 65 seconds on a MacBook Air (M-series); most of it is the 27-expiry surface fit. python tests/test_daily.py: 21 tests of the daily snapshot on simulated Yahoo data, without network, about 11 seconds. Every test checks a known answer or a no-arbitrage fact: the Heston reference, parity, density recovery from noisy quotes, all 27 real expiries, the live loader on simulated Yahoo data (stale quotes, closed market), the surface's calendar no-arbitrage, and the CLI. GitHub Actions runs them on every push with Python 3.12 and 3.13.
- Risk-neutral, not real-world. These probabilities include the price investors pay for crash insurance, so they overstate how often crashes actually happen.
- SVI has one hump. It can't represent a bimodal distribution, such as a single stock into earnings or a binary event.
- Far wings at the minimum tick. Options priced at $0.05–0.20 carry implied vol inflated by the tick floor. The arbitrage-free fit sits up to ~3 vol pts below them (right edge of the smile above); the density there is extrapolation.
- Use ^SPX, not SPY. SPX options are European; SPY options are American, which slightly biases parity and prices.
- Yahoo data is delayed, and Yahoo keeps showing the last bid/ask of contracts that stopped trading. On live SPX those were up to 1,549 points off put-call parity and pushed the implied rate to 38%, so the loader drops quotes not traded in 30 days.
- Skew and kurtosis lean on the extrapolated tail. They are moments of the whole density, including the far left wing beyond the last quote, so read them as model-dependent. The crash probability and the smile are better pinned by quotes.
- Short expiries can have few strikes on Yahoo. The 1-month live chain above had only 12 strikes with both a call and a put, so its implied rate is noisy (about ±2 points).
- One day of live data. The live results are a single snapshot, not a time series.
- Cboe SPXW quotes, 2019-06-26 15:45 snapshot (Cboe DataShop "Option EOD Summary" format), as published in the open-source volkit project. volkit's code is BSD 3-Clause; the quotes are Cboe market data and volkit states no Cboe licence for them, so this repository does not include them:
tests/data/download.pyfetches the file from volkit at a pinned commit and checks its SHA-256. - Yahoo Finance option chains via yfinance, fetched at run time and never stored here. yfinance's own README notes that the Yahoo Finance API is intended for personal use only and points to Yahoo's terms of use; only charts and summary numbers derived from it are in this repository, including the daily CSV files in
data/. - U.S. Treasury daily bill rates (public domain), quoted in the live result table.
Code: MIT, © 2026 Bliyev Aidan. The data sources above keep their own terms.
- Breeden, D. T. and Litzenberger, R. H. (1978). Prices of state-contingent claims implicit in option prices. Journal of Business, 51(4), 621–651.
- Gatheral, J. (2004). A parsimonious arbitrage-free implied volatility parameterization with application to the valuation of volatility derivatives. Global Derivatives & Risk Management, Madrid.
- Gatheral, J. and Jacquier, A. (2014). Arbitrage-free SVI volatility surfaces. Quantitative Finance, 14(1), 59–71.
- Lee, R. W. (2004). The moment formula for implied volatility at extreme strikes. Mathematical Finance, 14(3), 469–480.
- Cboe. Volatility Index Methodology: Cboe Volatility Index (30 Day Bracket, constant 30-day maturity).
- Heston, S. L. (1993). A closed-form solution for options with stochastic volatility with applications to bond and currency options. Review of Financial Studies, 6(2), 327–343.
- Fear index: daily collection has started (see Daily data); next, compare the series with VIX, SKEW and realized 30-day returns.
- Implied vs realized: compare the density's vol with realized vol.




