Quantitative Finance · CQF Module 3
Advanced Option
Pricing Models
A pricing studio built around three engines: the Black-Scholes-Merton closed form, the Heston stochastic-volatility model priced via the Carr-Madan Fourier inversion, and Monte Carlo simulation with antithetic variates. Built to make the mathematics of CQF Module 3 something you can hold in your hands.
Abstract
This paper develops, from first principles, the three pricing engines embedded in this page: the Black-Scholes-Merton (BSM) closed form for European and binary calls, the Heston (1993) stochastic-volatility model priced via the Carr-Madan (1999) damped-payoff Fourier inversion, and Monte Carlo simulation with antithetic variates. The intended reader has undergraduate calculus and basic probability. Every numerical result reported by the studios below is derived here, and every model used is tied to the lecture material of CQF Module 3 [10] and the supporting textbook literature [6, 8, 9]. Each Part ends with the interactive studio that lets you play with the model it just derived.
Part I · Foundations
1.The financial problem
A call option on a stock with strike and maturity gives the holder the right, but not the obligation, to buy at price on date . Two specific payoffs appear in this project:
- European call: .
- Binary (cash-or-nothing) call: .
The no-arbitrage time- price under the risk-neutral measure is
For BSM-GBM and vanilla payoffs, has a closed form (Part II). For Heston, no closed form for exists in -space but the characteristic function of does, and that is enough for a one-dimensional Fourier inversion (Part III). For payoffs without a tractable conditional density at all (path-dependent, basket, American), Monte Carlo (Part IV) is the most general tool.
2.Brownian motion, quadratic variation, Itô's lemma
A standard Brownian motion has independent Gaussian increments , continuous sample paths, and the defining quadratic-variation property
heuristically written . For an Itô SDE and a function , Itô's lemma gives
The Itô correction is the source of every adjustment that follows: the half-variance shift in GBM, the piece of , the diffusion term in the BSM PDE, and the Milstein correction in Part IV.
3.Geometric Brownian motion
Under , . Applying (3) to yields the constant-coefficient SDE
so the exact transition law is
is lognormal, with (the discounted-stock-as-martingale property) and median . For the base case , , , , the median is , a number that resurfaces in Part IV as the explanation of the binary's outsized variance reduction factor.
Part II · The BSM engine
4.Risk-neutral measure and Girsanov
Pricing by discounted expectation under would make depend on the equity risk premium , which the no-arbitrage hedging argument shows it cannot. The resolution is the risk-neutral measure , equivalent to , under which the discounted stock is a martingale. Girsanov's theorem [9] supplies the explicit Radon-Nikodym derivative
and the change of variable converts into . The risk premium is absorbed into the measure; the option price comes out the same.
5.The Black-Scholes PDE
Form the hedged portfolio . Applying (3) to and choosing kills the term and forces the residual to be deterministic. By no arbitrage , giving the Black-Scholes PDE [1, 2]
with terminal condition .
6.Closed-form European and binary calls
The standard substitution , , , , reduces (7) to the heat equation. Direct evaluation of the risk-neutral expectation against the lognormal density and a complete-the-square step (see e.g. Hull [8] Sec. 15) gives
with
is ; is the same probability under the share-numéraire measure . For , , , , one obtains , , , , the numbers the studio below reproduces.
7.The Greeks
Differentiating (8) and using the identity that drops out of the parity of :
- , sensitivity to spot.
- , peaks at-the-money; spikes for binaries.
- , exposure to vol level.
- , time decay.
- , rate sensitivity.
Interactive · BSM closed form
Below: every formula in this Part wired to live inputs. Move the spot, strike, maturity, rate, and volatility sliders and watch the five Greeks and the call/payoff/delta curves respond as the equations predict.
Studio · Part II
BSM live · price, Greeks, payoff
Inputs
Call
10.451
S N(d₁) − Ke⁻ʳᵀ N(d₂)
Put
5.574
parity-consistent
Binary
0.5323
e⁻ʳᵀ N(d₂)
Δ Delta
0.6368
Γ Gamma
0.01876
ν Vega
0.3752
per 1 vol pt
Θ Theta
-0.0176
per day
ρ Rho
0.5323
per 1 bp r
d₁ / d₂
0.35 / 0.15
Call value & delta vs. spot
Part III · The Heston engine
8.The Heston SDE
BSM assumes a constant volatility . Heston (1993) [3] lets the variance itself be stochastic. Under ,
The variance process is a Cox-Ingersoll-Ross / square-root mean-reverting diffusion. Parameter roles:
- , speed of mean reversion of variance.
- , long-run variance.
- , vol-of-vol; controls smile width.
- , correlation between asset and variance shocks; controls smile asymmetry.
- , initial variance; controls short-maturity ATM level.
The Feller condition keeps pathwise. Heston remains well-posed if it is violated, but the variance can touch zero.
9.The characteristic function of log S_T
Heston's key analytic result: although the density of has no closed form, its characteristic function does. With ,
where, in the Albrecher et al. (2007) “little trap” form [5], algebraically equivalent to Heston's original but free of the branch-cut discontinuity at long maturities,
Derivation: substitute into the Feynman-Kac PDE for implied by (10); matching coefficients in gives a Riccati ODE for with closed-form solution, and integrating yields . The full derivation runs to several pages and is reproduced in Heston [3] and rederived more carefully in Albrecher et al. [5]. The studio below implements (12) directly in TypeScript with a hand-rolled complex-number kernel.
10.The Carr-Madan Fourier inversion
Even given (11) and (12), a Fourier inversion of does not give the call price directly because the call payoff is not integrable in the strike. Carr and Madan [4] resolve this by introducing a damping parameter . Let , the call price as a function of log-strike, and define
For large enough that , and its Fourier transform exists. Direct computation gives
Fourier inversion of (14) and using (13) yields
This is the Carr-Madan formula. With given by (12), the call price is now a single one-dimensional real integral. The original paper recommends evaluating it with the FFT to price a whole strip of strikes at once, but for the on-page studio Simpson's rule on a truncated grid is faster to implement and adequate. The studio uses , nodes, .
11.Numerical integration and the “little trap”
Two subtleties matter in implementation:
- Branch cut of log. Heston's original uses ; at long maturities blows up and the principal-branch log wraps around the cut, producing visible kinks in . Albrecher et al. [5] show that swapping numerator and denominator in , with a matching sign change inside , gives a formulation in which keeps bounded, eliminating the wrap. The studio implements (12) in this safe form throughout.
- Damping choice. Too small an violates the integrability condition; too large amplifies the truncation error at large . Carr and Madan recommend for equity-index parameters; the studio uses this.
12.The implied volatility smile
Given a Heston call price , inverting the BSM formula for the volatility that reproduces it gives the implied volatility curve. Key empirical patterns the studio below lets you reproduce:
- tilts the smile into the equity skew: low-strike puts are richer than high-strike calls.
- (vol-of-vol) widens the smile symmetrically.
- controls the term-structure flattening: as the smile flattens toward the long-run level at rate .
- versus controls whether the term structure is upward or downward sloping at the short end.
Interactive · Heston via Carr-Madan
Below: drag κ, θ, σ, ρ, v₀, and T and watch the smile bend, widen, and tilt. The 3D surface alongside is the same model evaluated across the full (K, T) grid.
Studio · Part III
Heston live · smile, surface, & the Feller line
Heston parameters
Feller 2κθ − σ² = -0.090
< 0, variance can hit zero; Heston still well-posed.
Heston ATM call = 10.155
BSM (σ = √v₀) ATM = 10.451
Implied volatility smile · T = 1.00 yr
ρ < 0 tilts the smile into the equity skew (low-strike puts richer than high-strike calls). Larger σ widens it; smaller κ keeps it wider out into long maturities.
Implied volatility surface
Part IV · The Monte Carlo engine
13.Discretisation: Euler, Milstein, exact log-Euler
For an Itô SDE over a grid of steps , three schemes the studio considers:
Euler-Maruyama. Freezing the integrands at the left endpoint of each subinterval gives
Milstein.Keeping one more term of the Itô-Taylor expansion (a double Itô integral whose evaluation uses ) [7] adds the correction
For GBM (, ): and the correction becomes .
Exact log-Euler. For constant-coefficient SDEs like GBM, equation (5) is exact at any . The studio's Monte Carlo engine uses (5) with , eliminating discretisation bias entirely.
14.Strong and weak convergence
Two notions of “the scheme approximates the true solution well”:
- Strong order : . Path-wise accuracy. Euler: ; Milstein: .
- Weak order : . Distributional accuracy; what matters for pricing. Euler: ; Milstein: .
So Milstein gives no weak-order advantage for plain-vanilla pricing, but it pays off for path-dependent payoffs where the path itself must be accurate (barriers, Asian, lookback). For European or binary on GBM, the exact step uniformly dominates.
15.The Monte Carlo estimator
With i.i.d. draws from (5),
By linearity, (unbiased). By the strong law, a.s. (consistent). With ,
The CLT-implied 95% confidence interval is . The rate is the central cost of plain Monte Carlo: a tenfold reduction in standard error costs a hundredfold .
16.Antithetic variates
Pair each draw with its negation (both by symmetry) and define , . The antithetic estimator
is unbiased. For its variance, the within-pair calculation gives
Variance reduction proof. If is monotone in , then and are images of under an increasing and a decreasing transformation respectively. The FKG / Chebyshev sum inequality gives when increases and decreases [6]. Strict inequality holds whenever both functions are non-constant on a set of positive measure (true for any non-trivial payoff). So (21) is strictly less than , and the antithetic estimator strictly beats plain Monte Carlo on independent draws.
17.The strike-near-median amplification
The studio routinely measures a variance-reduction factor
for the base case. The binary's outsized gain has a clean geometric explanation. At ATM, the strike sits close to the median of (Sec. 3). For an antithetic pair , the two terminal stocks and almost always land on opposite sides of the median, and hence opposite sides of . The two indicators are then exactly and the pair mean is deterministically . Within-pair variance collapses to (almost) zero, and the estimator's variance is reduced by an order well beyond the a smooth monotone payoff would predict.
Interactive · Monte Carlo & antithetic variates
Below: run the convergence experiment yourself. Toggle European vs binary call; watch plain Monte Carlo (red) and antithetic (green) walk in toward the closed-form BSM line, and read the VRF that section 17 just predicted.
Studio · Part IV
Plain vs antithetic Monte Carlo · live convergence
Experiment
Base case: S = K = 100, r = 5%, σ = 20%, T = 1y. Each N runs plain and antithetic estimators side by side using exact log-Euler GBM sampling.
Payoff
Part V · Conclusion
18.Conclusion
What stitches the three engines together is a single object: the risk-neutral expectation of the discounted payoff. The Black-Scholes-Merton closed form is the one place in derivative pricing where that expectation integrates by hand, and the resulting identities are worth knowing in the bone, both as benchmarks and as the limit every other engine should reduce to. Heston is what the same expectation looks like when the variance refuses to be constant, and the Carr-Madan formula is the trick that lets a single one-dimensional integral do the work of a two-dimensional joint density. Monte Carlo is what is left when the model has nothing closed-form to offer, and antithetic variates is one of the cheapest improvements you can layer on top, free for any monotone payoff and surprisingly powerful when the strike sits near the median of the terminal distribution.
In practice the three engines belong in a chain rather than in competition. The closed form is the truth that any simulation engine should reproduce before it is trusted on anything else. The exact log-Euler step is the right Monte Carlo discretisation whenever the model is constant-coefficient geometric Brownian motion, because it carries zero discretisation bias at any step size. Carr-Madan inversion takes over the moment the volatility becomes stochastic, provided the characteristic function exists and is tractable, and the Albrecher “little trap” form is what keeps it numerically honest at long maturities. Beyond that, when neither a closed form nor a tractable transform is available, the burden shifts back to Monte Carlo with as much variance reduction as the payoff structure allows, and every reported price still travels with a standard error. Built and validated together, the three engines cover most of what an equity-derivatives desk needs from a pricing library, and the three studios above are the working proof.
19.References
- [1]Black, F. & Scholes, M. (1973). The Pricing of Options and Corporate Liabilities. Journal of Political Economy, 81(3), 637-654.
- [2]Merton, R. C. (1973). Theory of Rational Option Pricing. Bell Journal of Economics and Management Science, 4(1), 141-183.
- [3]Heston, S. L. (1993). A Closed-Form Solution for Options with Stochastic Volatility with Applications to Bond and Currency Options. The Review of Financial Studies, 6(2), 327-343.
- [4]Carr, P. & Madan, D. B. (1999). Option Valuation Using the Fast Fourier Transform. Journal of Computational Finance, 2(4), 61-73.
- [5]Albrecher, H., Mayer, P., Schoutens, W. & Tistaert, J. (2007). The Little Heston Trap. Wilmott Magazine, January 2007, 83-92.
- [6]Glasserman, P. (2004). Monte Carlo Methods in Financial Engineering. Springer, Stochastic Modelling and Applied Probability 53.
- [7]Kloeden, P. E. & Platen, E. (1992). Numerical Solution of Stochastic Differential Equations. Springer, Applications of Mathematics 23.
- [8]Hull, J. C. (2018). Options, Futures, and Other Derivatives (10th ed.). Pearson.
- [9]Wilmott, P. (2006). Paul Wilmott on Quantitative Finance (2nd ed., Vols. 1-3). Wiley.
- [10]Ahmad, R. (2026). CQF Module 3 lecture series (JA263.1 through JA263.12). Certificate in Quantitative Finance.
- [11]Andersen, L. (2008). Simple and Efficient Simulation of the Heston Stochastic Volatility Model. Journal of Computational Finance, 11(3), 1-42.
Mickias Ambaye · 2026