An options pricing and volatility lab, validated at every step
Pricing engines, SPX volatility surfaces and volatility forecasts on free Cboe data, each checked against independent references before the next phase starts.
- SPX surface fit, hybrid vs SVI
- 0.11 vs 0.23 vol points (median)
- Static arbitrage in the hybrid surface
- None, at 213 maturities checked
- VIX recomputed from archived quotes
- Within 0.01 of Cboe's close
- Validation tests
- 212
- Python
- NumPy
- SciPy
- pandas
- SQLite

options-lab is an options pricing and volatility research lab, built in phases with one rule: each phase is checked against independent references before the next one starts. Its main underlying is the S&P 500 index (SPX), on free Cboe data. So far it covers pricing, implied-volatility surfaces, a historical data store and volatility forecasting. Trading strategies come next.
How it works #
- Pricing. Black–Scholes with Greeks to third order, an implied-volatility solver, binomial and trinomial trees, a Crank–Nicolson finite-difference solver and Monte Carlo, with American exercise and discrete dividends.
- Volatility surfaces. SVI, SSVI and extended SSVI under no-arbitrage constraints, SABR, Heston and Dupire local volatility, fitted to SPX. Plus a hybrid surface built by Andreasen–Huge volatility interpolation, which steps the forward equation from one expiry to the next and so cannot contain static arbitrage: option prices that would allow a riskless profit, such as a butterfly spread worth less than nothing.
- History. A SQLite store with provenance on every row: Cboe daily histories of SPX, the VIX family, VVIX and SKEW, plus a daily archive of SPX and SPY option chains with a fitted surface for each close.
- Forecasting. Walk-forward forecasts with monthly refits and no look-ahead, scored with QLIKE (a loss suited to variance forecasts), Diebold–Mariano tests and model confidence sets.
What I found #
The hybrid surface fits more closely than SVI and has no arbitrage anywhere. On the 12 November 2026 SPX close (53 expiries, 10,735 quotes):
| Surface | Median error, vol points | Free of static arbitrage |
|---|---|---|
| Andreasen–Huge (hybrid) | 0.11 | Everywhere, by construction |
| SVI | 0.23 | Only where quotes exist |
| Extended SSVI | 1.13 | On the whole grid |
The hybrid surface puts 87% of quotes inside the bid-ask on the median expiry (SVI 22%), predicts held-out expiries better (0.19 against 0.27 vol points) and calibrates in 29 seconds against SVI’s 149. A check of every node probability and calendar spread at 213 maturities found none below zero. Its worst expiries are no better than SVI’s, though: the 90th-percentile slice misses by 0.30 vol points against 0.28.
Simple forecasting models win.
- Realised volatility. For daily S&P 500 forecasts from 2000 to 2026, a log-HAR model with the VIX beats every simple baseline at every horizon: its QLIKE is 7%, 25% and 22% below an exponentially weighted average’s at 1, 5 and 22 days. Gradient-boosted trees never make the confidence set. In 2000–09 they did worse than the baseline, because 2008 lay beyond anything in their training data.
- The implied side. The VIX, its term-structure slope, SKEW and VVIX all beat a random walk through mean reversion alone, and plain AR(1) and HAR models do it (22-day R² against the random walk: 13% for the VIX, 35% for the slope).
- The variance risk premium. Selling 30-day variance at the level the VIX implies paid off on 83% of days from 2000 to 2026, but no model forecasts the premium reliably better than its average.

Validation found problems in the references too. In 7% of random cases, QuantLib’s Leisen–Reimer binomial engine prices American options too low, by up to 0.27, sometimes below its own European price. QuantLib’s own high-precision engine settled every disagreement in this library’s favour. And the VIX, recomputed from archived SPX quotes by Cboe’s published method, matches Cboe’s close to within 0.01 on all three days checked.
Limits #
- The surface results rest on two SPX closes, 12 and 13 November 2026.
- The store runs on free data only. A WRDS OptionMetrics adapter is written and tested on sample files but not connected, so option-chain history covers only the weeks since the daily archive began.
- The forecasts are statistical results, not trading results: no strategy has been backtested yet.
How it’s built #
A Python package with NumPy, SciPy and pandas at its core. QuantLib, vollib, Let’s Be Rational, computer algebra and published examples serve as independent references in 212 validation tests. A scheduled task archives the SPX and SPY chains after each weekday close.