01 · Options · Derivatives Pricing

The Black-Scholes
Model.

The reference model for European options, from Itô calculus to the closed-form formula and the Greeks, then put to work on 142 CAC40 option quotes. Written on the forward, the formula inverts every quote into an implied volatility in 0.3 seconds. A single constant volatility misses the market by 2.0 vol points on average and by up to 7.3; a parametric SVI smile brings the error down to 0.03 vol points, and the arbitrage-free SSVI surface to 0.22.

Context Personal study — Option pricing
Data CAC40 option chain, 142 quotes, 13 expiries (12/02/2025) · EURIBOR 6M zero curve
Theory Itô calculus, PDE, change of measure, Black-76 on the forward
Numerics Newton–Brent inversion · SVI / SSVI · Monte Carlo · barrier closed forms

Understanding the pricing problem.

A European call with strike \(K\) and maturity \(T\) pays \((S_T-K)^+\) at maturity. The question is: what is its fair price \(V(t,S_t)\) today? The Black-Scholes-Merton answer is that the option can be replicated by a dynamic position in the underlying and a risk-free bond, so its price is the cost of that replicating portfolio.

The first half of the study follows the full theoretical chain: dynamics of the underlying, Itô's lemma, the Black-Scholes PDE, risk-neutral valuation, the closed-form formula and the Greeks. The second half uses the formula as it is used on a trading desk: not to produce prices, which the market already gives, but to translate them into implied volatilities, measure how far the market is from the model's assumptions, and serve as the building block of the Heston calibration and the barrier option pricer.

Model framework.

01 The underlying follows a geometric Brownian motion with constant drift \(\mu\) and volatility \(\sigma\).
02 The risk-free rate \(r\) is constant (continuous compounding).
03 Frictionless market: no transaction costs, no taxes, continuous trading.
04 No dividends are paid during the option's lifetime.
05 Unlimited borrowing and short-selling at the risk-free rate; no arbitrage.

Assumptions 02 and 04 are relaxed in the implementation: rates and dividends enter only through the discount factor \(D(T)\) and the forward \(F(T)\), both read from market curves (section 06). Assumption 01, a constant volatility, is the one the market data reject (section 11).

Geometric Brownian motion.

Under the historical measure \(\mathbb{P}\), the price \(S_t\) satisfies:

Underlying dynamics
\[ dS_t = \mu S_t\,dt + \sigma S_t\,dW_t \]
\(\mu\) Expected instantaneous return of the underlying.
\(\sigma\) Instantaneous volatility (annualised standard deviation of log-returns).
\(W_t\) Standard Brownian motion: \(W_t-W_s\sim\mathcal{N}(0,t-s)\), independent increments.

Applying Itô's lemma to \(f(S)=\ln S\), with \((dS_t)^2=\sigma^2S_t^2\,dt\), gives \(d\ln S_t=(\mu-\tfrac{1}{2}\sigma^2)\,dt+\sigma\,dW_t\), hence the explicit solution:

Explicit solution
\[ S_T = S_t\exp\!\left[\left(\mu-\tfrac{1}{2}\sigma^2\right)(T-t)+\sigma\left(W_T-W_t\right)\right] \]

\(S_T\) is therefore lognormal: \(\ln S_T\) is Gaussian with mean \(\ln S_t+(\mu-\tfrac{1}{2}\sigma^2)(T-t)\) and variance \(\sigma^2(T-t)\). Moreover \(\mathbb{E}[S_T\mid S_t]=S_t\,e^{\mu(T-t)}\): the correction \(-\tfrac{1}{2}\sigma^2\) exactly compensates the convexity of the exponential.

Derivation of the partial differential equation.

Let \(V(t,S)\) be the option price. Itô's lemma gives:

Itô's lemma applied to V
\[ dV=\left(\frac{\partial V}{\partial t}+\mu S\frac{\partial V}{\partial S}+\frac{1}{2}\sigma^2S^2\frac{\partial^2V}{\partial S^2}\right)dt+\sigma S\frac{\partial V}{\partial S}\,dW_t \]

Consider the portfolio \(\Pi=V-\Delta S\), short \(\Delta\) units of the underlying. Choosing \(\Delta=\partial V/\partial S\) cancels the \(dW_t\) term, and the drift \(\mu\) disappears as well:

Delta-hedged portfolio
\[ d\Pi=\left(\frac{\partial V}{\partial t}+\frac{1}{2}\sigma^2S^2\frac{\partial^2V}{\partial S^2}\right)dt \]

The portfolio is locally risk-free, so by absence of arbitrage \(d\Pi=r\Pi\,dt=r\left(V-S\,\partial_SV\right)dt\). We obtain the Black-Scholes equation:

Black-Scholes equation
\[ \frac{\partial V}{\partial t}+\frac{1}{2}\sigma^2S^2\frac{\partial^2V}{\partial S^2}+rS\frac{\partial V}{\partial S}-rV=0 \]

The expected return \(\mu\) does not appear: the price is independent of the investors' risk preferences. The equation is a backward parabolic PDE, closed by the terminal condition \(V(T,S)=(S-K)^+\) for a call and \(V(T,S)=(K-S)^+\) for a put. Through the change of variables \(x=\ln S\), \(\tau=T-t\), it reduces to the heat equation, whose Green kernel yields the solution.

Risk-neutral valuation.

By Girsanov's theorem, \(W_t^{\mathbb{Q}}=W_t+\frac{\mu-r}{\sigma}t\) is a Brownian motion under the risk-neutral measure \(\mathbb{Q}\), and:

Risk-neutral dynamics
\[ dS_t=rS_t\,dt+\sigma S_t\,dW_t^{\mathbb{Q}} \]

By the Feynman-Kac theorem, the solution of the PDE is the discounted expected payoff under \(\mathbb{Q}\), equivalently the statement that the discounted price \(e^{-rt}V_t\) is a \(\mathbb{Q}\)-martingale:

Pricing formula
\[ V(t,S)=e^{-r(T-t)}\,\mathbb{E}^{\mathbb{Q}}\!\left[\Phi(S_T)\mid S_t=S\right] \]

where \(\Phi\) is the payoff. Since \(S_T\) is lognormal under \(\mathbb{Q}\) with parameters \((r-\tfrac{1}{2}\sigma^2)(T-t)\) and \(\sigma^2(T-t)\), the price becomes a Gaussian integral, computed in the next section.

Price of the European call and put.

Write \(\tau=T-t\). Splitting the payoff, \[\mathbb{E}^{\mathbb{Q}}[(S_T-K)^+]=\mathbb{E}^{\mathbb{Q}}[S_T\mathbf{1}_{S_T>K}]-K\,\mathbb{Q}(S_T>K).\] The second term gives \(K\,N(d_2)\); the first, after a change of measure (numéraire \(S\)), gives \(S\,e^{r\tau}N(d_1)\). Discounting:

Call price
\[ C(S,t)=S\,N(d_1)-K e^{-r\tau}N(d_2) \]
Put price
\[ P(S,t)=K e^{-r\tau}N(-d_2)-S\,N(-d_1) \]
Definition of \(d_1\) and \(d_2\)
\[ d_1=\frac{\ln(S/K)+\left(r+\frac{\sigma^2}{2}\right)\tau}{\sigma\sqrt{\tau}}, \qquad d_2=d_1-\sigma\sqrt{\tau} \]

\(N(\cdot)\) is the standard normal cumulative distribution function. \(N(d_2)=\mathbb{Q}(S_T>K)\) is the risk-neutral probability of finishing in the money, and \(N(d_1)\) is the same probability under the share measure. The call is thus "asset-or-nothing minus cash-or-nothing": \(S\,N(d_1)\) is the present value of the asset received, \(Ke^{-r\tau}N(d_2)\) that of the strike paid.

Limiting behaviours: as \(\sigma\sqrt{\tau}\to0\), the call tends to its discounted intrinsic value \((S-Ke^{-r\tau})^+\); as \(\sigma\to\infty\), it tends to \(S\). Non-arbitrage bounds are \((S-Ke^{-r\tau})^+\le C\le S\).

Written on the forward. The formula only depends on the spot, the rate and the dividends through the forward \(F(T)=\mathbb E^{\mathbb Q}[S_T]\) and the discount factor \(D(T)\). This is the Black-76 form used in the implementation (BlackScholes.bs_price_vanilla), with \(\phi=+1\) for a call and \(-1\) for a put:

Black-76 formula
\[ V=D(T)\,\phi\big[F\,N(\phi d_1)-K\,N(\phi d_2)\big], \qquad d_{1,2}=\frac{\ln(F/K)\pm\frac12\sigma^2T}{\sigma\sqrt T} \]

With \(F=Se^{rT}\) and \(D=e^{-rT}\) it is exactly the formula above. With market curves, \(D(T)\) comes from the EURIBOR zero curve and \(F(T)\) from the CAC40 put-call parity, so term structures of rates and seasonal dividends are handled without changing the formula.

The Greeks.

The Greeks are the partial derivatives of the price with respect to the parameters. Let \(N'(x)=\frac{1}{\sqrt{2\pi}}e^{-x^2/2}\) be the standard normal density. For a European call:

Delta
\[ \Delta=\frac{\partial C}{\partial S}=N(d_1)\in(0,1) \]
Gamma
\[ \Gamma=\frac{\partial^2C}{\partial S^2}=\frac{N'(d_1)}{S\sigma\sqrt{\tau}} \]
Vega
\[ \mathcal{V}=\frac{\partial C}{\partial\sigma}=S\,N'(d_1)\sqrt{\tau}=Ke^{-r\tau}N'(d_2)\sqrt\tau \]
Theta
\[ \Theta=\frac{\partial C}{\partial t}=-\frac{S\,N'(d_1)\,\sigma}{2\sqrt{\tau}}-rKe^{-r\tau}N(d_2) \]
Rho
\[ \rho=\frac{\partial C}{\partial r}=K\tau e^{-r\tau}N(d_2) \]

For a put, \(\Delta_P=N(d_1)-1\), while Gamma and Vega are identical to those of the call (by parity). Delta is the hedge ratio, Gamma its rate of change (the convexity of the price, always positive for a long vanilla option), Vega the exposure to volatility, Theta the time decay and Rho the exposure to interest rates. The two expressions of the Vega are equal since \(SN'(d_1)=Ke^{-r\tau}N'(d_2)\); the implementation uses the second, which only needs \(D(T)\), \(K\) and \(d_2\).

The Greeks are linked to each other through the PDE itself: substituting into the Black-Scholes equation gives

Greeks identity
\[ \Theta+\tfrac{1}{2}\sigma^2S^2\,\Gamma+rS\,\Delta=rV \]

For a delta-neutral position (\(\Delta=0\)), this reads \(\Theta\approx-\tfrac{1}{2}\sigma^2S^2\Gamma\) (when \(rV\) is negligible): the time decay pays for the convexity gained. This is the core trade-off of gamma trading.

Numerical example.

Take an at-the-money option with \(S=100\), \(K=100\), \(r=5\%\), \(\sigma=20\%\), \(\tau=1\) year.

Step 1: d₁ and d₂
\[ d_1=\frac{0+(0.05+0.02)\cdot1}{0.2}=0.35, \qquad d_2=0.35-0.20=0.15 \]
Step 2: prices
\[ N(d_1)\approx0.6368,\quad N(d_2)\approx0.5596 \] \[ C=100(0.6368)-100e^{-0.05}(0.5596)\approx10.45 \] \[ P=C-S+Ke^{-r\tau}\approx10.45-100+95.12\approx5.57 \]
\(\Delta\) \(0.637\): hedging one call requires selling about 0.64 shares.
\(\Gamma\) \(N'(0.35)/(100\cdot0.2)\approx0.0188\), with \(N'(0.35)\approx0.375\).
\(\mathcal{V}\) \(\approx37.5\) per unit of volatility, i.e. \(\approx0.375\) per volatility point.
\(\Theta\) \(\approx-6.41\) per year (about \(-0.018\) per day).
\(\rho\) \(\approx53.2\) per unit of rate, i.e. \(\approx0.53\) per rate point.
Check: \[\Theta+\tfrac{1}{2}\sigma^2S^2\Gamma+rS\Delta\approx-6.41+3.75+3.18\approx0.52,\] matching \(rC=0.05\times10.45\approx0.52\). Parity also holds: \(C-P\approx4.88=S-Ke^{-r\tau}\).

Call-put parity, in the model and in the market.

Buying a call and selling a put with the same strike and maturity replicates a forward, which yields, independently of any model:

Parity relation
\[ C-P=D(T)\big(F(T)-K\big) \]

In the implementation, a call and a put priced with the same volatility satisfy it to \(3\times10^{-14}\), machine precision. Market quotes do not: on the CAC40 chain, with one forward per expiry rebuilt from parity itself, the residuals \(C-P-D(F-K)\) are

Expiries Max |residual| (index points)
9 days to 3 months0.01–0.11
4 to 10 months0.38–0.86
1 to 2 years3.2–7.9
2.8 to 4.9 years25.3–33.7

Put-call parity residuals of the market quotes, 142 strikes. Mean absolute residual: 3.6 points.

The largest residual, −33.7 points on the 11,200 strike at 3.8 years, is 47 basis points of the forward. Long-dated quotes are less liquid and have wider bid-ask spreads, so call and put prices are not exactly consistent with a single forward. This is why only out-of-the-money options are used to build the volatility surface.

Inverting the formula.

The only unobservable input is \(\sigma\). Since the price is strictly increasing in \(\sigma\) (\(\mathcal V\gt0\)), each market price corresponds to a unique implied volatility, solving \(V_{\text{BS}}(\sigma_{\text{imp}})=V_{\text{market}}\). It is found with Newton-Raphson, starting from 50%:

Newton-Raphson iteration
\[ \sigma_{n+1}=\sigma_n-\frac{V_{\text{BS}}(\sigma_n)-V_{\text{market}}}{\mathcal{V}(\sigma_n)} \]

Newton converges quadratically, but can fail for deep out-of-the-money options, where the Vega is tiny and the step explodes. If it does not converge within \((0,5)\), the implementation falls back on Brent's method on \([10^{-4},5]\), which is guaranteed to converge on a bracketing interval. Quotes outside the no-arbitrage bounds have no solution and are discarded.

CAC40 inversion Result
Quotes inverted142 / 142
Solved by Newton / by Brent142 / 0
Newton iterations (mean, max)3.7, 5
Total time0.32 s
Round trip: max |repriced − quoted|\(1.2\times10^{-9}\) points

Black implied volatilities of the 142 OTM CAC40 options (puts below the forward, calls above).

The resulting volatilities are far from constant. Every expiry shows a downward skew, steepest at short maturities, and the at-the-money level rises with maturity:

\(T\) (years) ATM vol Min Max Skew \(\partial\sigma/\partial k\)
0.0213.38%12.58%14.79%−0.67
0.1013.86%12.88%15.84%−0.48
0.3514.33%12.83%15.00%−0.30
0.8515.31%14.22%16.02%−0.24
1.1015.35%13.12%18.91%−0.22
1.8516.45%14.56%18.74%−0.14
2.8416.81%15.02%21.87%−0.10
4.8617.08%15.46%21.99%−0.11

Selected expiries. Skew: slope of a linear fit of the implied vol on \(k=\ln(K/F)\), in volatility per unit of log-moneyness.

The skew flattens with maturity, from −0.67 at 9 days to −0.10 at 2.8 years, roughly like \(T^{-0.4}\). The strike ranges also widen with maturity, so the largest volatilities (up to 22.8%) are reached on the long-dated low strikes.

How wrong is a constant volatility?

The best single volatility for the whole surface (least squares on the 142 implied vols) is \(\sigma=15.5\%\). Allowing one volatility per expiry, a term structure without smile, removes the level effect but not the skew:

Volatility model Parameters IV RMSE (vol pts) IV max error
Black-Scholes, one \(\sigma\)11.997.29
Black-Scholes, one \(\sigma\) per expiry131.44—
Heston50.4211.75
SSVI surface3 + ATM curve0.218—
SVI, one smile per expiry650.033—

Fit to the 142 CAC40 implied volatilities. SVI and SSVI are described in section 12.

In prices, the constant 15.5% volatility misprices the options by €63.9 on average (RMSE) and by up to €235, on the long-dated low strikes where the market volatility reaches 22–23%. With five parameters, Heston divides the error by almost five; a constant volatility per expiry only by 1.4, since the skew is the dominant feature.

The smile contradicts the lognormal assumption: the market prices a fatter left tail than the Gaussian log-returns of the model. Other departures include jumps, discrete hedging and transaction costs.

Parametrizing the smile: SVI and SSVI.

Black-Scholes remains the quoting language: the smile is described by a function \(\sigma_{\text{imp}}(K,T)\), and any price is the Black formula evaluated at that volatility. Two parametrizations of the total variance \(w(k,T)=\sigma_{\text{imp}}^2T\), with \(k=\ln(K/F(T))\), are implemented.

01

Raw SVI (Gatheral, 2004)

\[ w(k)=a+b\Big(\rho\,(k-m)+\sqrt{(k-m)^2+\sigma^2}\Big) \]

Five parameters per expiry, fitted by least squares on the volatilities (SLSQP, 9 starting points), under \(b\ge0\), \(|\rho|\lt1\), \(\sigma\gt0\), \(a+b\sigma\sqrt{1-\rho^2}\ge0\) (non-negative variance) and \(b(1+|\rho|)\le2\) (Roger Lee's bound on the wings). Between expiries, \(w\) is interpolated linearly at fixed \(k\).

Slice by slice
02

SSVI (Gatheral and Jacquier, 2014)

\[ w(k,\theta_T)=\frac{\theta_T}{2}\Big(1+\rho\varphi k+\sqrt{(\varphi k+\rho)^2+1-\rho^2}\Big), \quad \varphi(\theta)=\frac{\eta}{\theta^{\gamma}(1+\theta)^{1-\gamma}} \]

\(\theta_T\) is the market ATM total variance, made non-decreasing in \(T\), which excludes calendar arbitrage. The three global parameters are fitted with \(\eta=2u/(1+|\rho|)\), \(u\in[0,1]\), \(\gamma\in(0,\tfrac12]\), a sufficient condition for the absence of butterfly arbitrage.

Arbitrage-free surface
\(T\) \(a\) \(b\) \(\rho\) \(m\) \(\sigma\) SVI RMSE SSVI RMSE
0.025−0.00020.012−0.50−0.0070.0560.0180.309
0.101−0.00060.027−0.53−0.0040.0950.0080.182
0.178−0.00130.037−0.530.0040.1270.0100.074
0.351−0.00290.059−0.500.0170.1630.0060.036
0.600−0.00770.089−0.510.0180.2250.0130.042
0.849−0.00580.096−0.500.0460.2420.0110.035
1.099−0.01220.112−0.550.0390.3180.0030.200
1.348−0.05880.177−0.300.0920.4810.0030.336
1.597−0.01580.3440.580.2810.1710.0420.106
1.847−0.08030.2380.050.2470.5010.0100.125
2.844−0.42700.534−0.130.1080.9290.0660.236
3.841−0.01890.307−0.370.0650.3860.0790.437
4.858−0.66961.1260.480.6900.7970.0210.231

SVI parameters per expiry, and RMSE of the SVI and SSVI fits in vol points. SSVI parameters: \(\rho=-0.454\), \(\eta=1.376\), \(\gamma=0.418\).

With five parameters for eleven quotes, SVI fits every smile with an RMSE below 0.08 vol points. Up to one year the parameters are stable (\(\rho\approx-0.5\), \(b\) and \(\sigma\) growing with \(T\)). Beyond, they jump from one expiry to the next (\(\rho\) from −0.30 to +0.58 between 1.35 and 1.60 years): with eleven strikes, several parameter sets fit almost equally well. SSVI uses three parameters for the whole surface and fits the 4 to 10-month smiles within 0.04 points, but cannot follow the steeper 9-day smile (0.31) nor the long-dated ones (up to 0.44).

Arbitrage. The quality of the SVI fit has a price. Butterfly arbitrage is excluded when the density function \(g(k)=\big(1-\frac{kw'}{2w}\big)^2-\frac{w'^2}{4}\big(\frac1w+\frac14\big)+\frac{w''}{2}\) is non-negative. On \(k\in[-1.5,1.5]\), it becomes negative for two SVI slices, at 1.60 years (\(k\in[0.41,1.41]\)) and 4.86 years (\(k\in[1.02,1.50]\)), and four pairs of consecutive slices cross, which is calendar arbitrage. All these violations lie outside the quoted strikes, in the extrapolated wings: Lee's bound \(b(1+|\rho|)\le2\) is necessary, not sufficient. SSVI is arbitrage-free by construction; its fit lies on the boundary \(u=1\) of the butterfly condition (\(\eta(1+|\rho|)=2\)), which is the constraint that limits its accuracy.

Extrapolation. Away from the quotes, the three methods diverge:

Point Linear + V2T SVI SSVI
\(T=0.5\), \(K=7600\) (below the quoted strikes)15.44%16.36%16.27%
\(T=2\), \(K=9000\) (inside)15.06%15.05%15.00%
\(T=4\), \(K=6000\) (wing)21.38%21.34%20.67%

Implied volatility at three points not quoted by the market.

Inside the quotes, the methods agree within 0.06 points. At 7600 for six months, below the lowest quoted strike (7800), the linear interpolation extrapolates the volatility flat and misses the skew by about 0.9 points, compared with SVI and SSVI, which carry it on.

What the other projects take from Black-Scholes.

01

Monte Carlo under GBM

BlackScholes.generate_paths simulates the exact lognormal step, with the drift read from the forward curve:

\[ S_{t_{i+1}}=S_{t_i}\exp\!\Big(\ln\tfrac{F(t_{i+1})}{F(t_i)}-\tfrac12\sigma^2\Delta t+\sigma\sqrt{\Delta t}\,Z_i\Big) \]

There is no discretization bias. For an ATM call at 1.1 years (\(K=8000\), \(\sigma=15.46\%\)), 1,000,000 paths give 523.75 ± 1.62 (95%) against 524.01 for the formula, and \(\mathbb E[S_T]=8038.3\) against \(F=8039.0\).

Exact scheme
02

Closed-form barrier options

bs_price_barrier prices the eight continuously monitored single barriers (Merton 1973, Reiner–Rubinstein 1991), knock-ins by in / out parity. These prices validate the Heston barrier pricer: its Monte Carlo prices are within 1.9 standard errors of the closed form in a flat market.

Benchmark
03

Vega and calibration

The Black Vega turns price errors into volatility errors, \(\Delta\sigma\approx\Delta P/\mathcal V\). This is the loss minimized in the Heston calibration, and it explains why a loss on prices over-weights long maturities, whose Vega is larger.

Calibration

Further extensions of the model include futures (Black-76) and currencies (Garman-Kohlhagen), local volatility (Dupire), stochastic volatility (Heston), jump-diffusions (Merton, Kou), and numerical methods for path-dependent payoffs: binomial trees, finite differences on the PDE and Monte Carlo.

From underlying dynamics to market volatility.

Theory GBM, Itô's lemma and delta-hedging lead to the PDE; risk-neutral valuation gives the closed-form price and the Greeks.
Practice Written on the forward, the formula handles rate and dividend term structures, and inverts 142 CAC40 quotes in 0.3 s with Newton alone.
Limits A constant volatility misses the market by 2.0 vol points (up to 7.3) and €64 per option: the skew is steep and decays with maturity.
Smile SVI fits each smile within 0.08 vol points but admits arbitrage in the wings; SSVI is arbitrage-free at 0.22 vol points.
Black-Scholes is wrong about the dynamics of the market, but it remains its language. Every quote is a Black volatility, every smile model is judged in volatility points, and every more realistic model, such as Heston or local volatility, is validated against its closed forms.