You will fit the SABR model to SPY quotes from yfinance.
By PyQuant News
Published: 2026-11-21
URL: https://pyquantnews.substack.com/p/calibrating-volatility-smiles-with
Each week, I send out one Python tutorial to help you get started with algorithmic trading, market data analysis, and quant finance. Upgrade to a paid plan to access the Python code notebooks, Discord community, and code support.

Each option on SPY implies its own forecast of how much the price will move.
Many beginners believe that one volatility number, a measure of how much a price moves, describes a stock. They use it for every strike price. A strike price is the fixed price at which an option holder can buy or sell the stock.
That belief gives option prices that differ from market prices, and the beginner does not know where the error comes from.
One number is not enough
When I started, I made this mistake. I priced every option on a stock with one volatility number, and my prices did not match the quotes in the market.
Most beginners that I teach do the same when they put one volatility into an option pricing formula.
Professionals fit a model to the market quotes so that each strike price gets its own volatility.
What you will build
In todayβs post, you will fit the SABR volatility model to SPY options and measure the error in its option prices.
Letβs go.