Deep dive - Computational methods

Monte Carlo & the volatility smile.

When the closed form runs out - stochastic volatility, path dependence, multi-asset payoffs - pricing becomes simulation. Then everything hinges on two questions: how fast does your discretisation converge, and what does the model do to the implied-volatility surface? Both are answered live below.

Python · NumPyEuler / MilsteinHestonImplied volVariance reduction
01

Discretising the SDE

A diffusion is simulated on a grid. The Euler scheme is the obvious one:

The Milstein scheme adds the Itô correction from expanding along the path:

The payoff is theoretical orders of strong convergence - how fast the simulated path approaches the true one - of ½ for Euler and 1 for Milstein. The experiment below measures it: GBM paths simulated at six step sizes against the exact solution driven by the same Brownian increments, error on a log-log plot. The fitted slopes land on the theory within Monte Carlo noise.

Strong convergence - measured livelog-log, shared Brownian paths
GBM · σ=0.4 · 3000 paths share the same Brownian increments
strong error E|STΔt − ST| · theory: Euler order ½, Milstein order 1
02

Heston and the smile

Black-Scholes assumes constant volatility, so it prices every strike with the same implied vol - a flat line the market flatly refuses. The Heston model makes variance itself a mean-reverting diffusion, correlated with the spot:

with . The figure simulates Heston with a full-truncation Euler scheme (variance floored at zero inside the coefficients - the lab's fix for the scheme going negative), prices calls across strikes with antithetic paths, and then inverts Black-Scholes by bisection to express each price as an implied vol - the exact pipeline a vol desk runs in reverse.

Implied-volatility smile under HestonMC + bisection, live
κ=2 · θ=0.04 · v₀=0.04 · 5000×2 antithetic pathsATM IV 18.1%skew (80−120) 9.7 pts
03

What to try

Two parameters shape the smile. Vol-of-vol η controls its curvature: at variance barely moves and the smile collapses onto the flat Black-Scholes line at . Correlation ρ controls the skew: equity markets live around - spot down, vol up - which tilts the smile so low strikes (crash protection) carry the highest implied vol. Set and you get a symmetric smile; positive ρ tilts it the other way, the signature of some commodity markets.

Takeaway
Monte Carlo pricing is a numerical-analysis discipline wearing a finance coat: the scheme's convergence order decides your compute bill, variance reduction decides your error bars, and the implied-vol transform is what turns raw prices into a surface a trader can actually read. The smile is not a market anomaly - it is what any honest volatility model produces the moment vol is allowed to move.
Grown out of graduate work in quantitative finance at CentraleSupélec. Every figure on this page is recomputed in your browser on each parameter change: Euler and Milstein discretisation, Monte Carlo against the Black-Scholes closed form, Heston with a full-truncation scheme, and implied volatility by bisection.