Numerical Methods for Derivatives Pricing#
A series on the numerical methods that turn a model into a price: random numbers and simulation, trees, finite differences, Fourier transforms, and the tools around them, linear algebra, root finding, differentiation, quadrature, interpolation, regression, optimisation and calibration. Every method solves the same benchmark option, so each can be checked against a closed form and against the others. It is written from a valuation control perspective, so each page ends with what to check.
The idea that runs through the series is a separation of three things: the model says how the underlying moves, the pricing problem says what is wanted, and the numerical method says how it is computed. The same problem solved by two methods isolates the numerical error from the model risk.
Questions this series answers:
How are random numbers generated, what processes do models describe, and what is the benchmark that every method is tested against? (Numerical Methods: Foundations)
How accurate is a Monte Carlo price, how is it improved, and how are Greeks found by simulation? (Numerical Methods: Monte Carlo)
How do binomial and trinomial trees converge to Black-Scholes, and how do they price early exercise? (Numerical Methods: Lattice Methods)
How are the Black-Scholes PDE and early exercise solved on a grid, and why does the explicit scheme blow up? (Numerical Methods: PDE Methods)
What is a characteristic function, and how do the FFT and COS methods price many strikes at once? (Numerical Methods: Transform Methods)
How are linear systems and correlation matrices handled, how is an implied volatility found, how are derivatives, Greeks and Jacobians computed numerically, and when is quadrature better than simulation? (Numerical Methods: Supporting Methods)
How are curves and surfaces interpolated and extrapolated, and how does the rule change a value? (Numerical Methods: Interpolation)
How are hedge ratios, smiles and curves fitted to noisy data, and what do the data determine? (Numerical Methods: Regression and Fitting)
Which optimisation methods find a minimum, and what does calibration determine and leave open? (Numerical Methods: Optimisation and Calibration)
How is early exercise priced by simulation, and what happens as the number of factors grows? (Numerical Methods: Advanced Methods)
Which method should be used for which product, and what should a controller ask for? (One Option, Five Numerical Methods)
How the series is organised#
The series has ten sections, each with its own index. The foundations come first: random numbers, the processes that models are made of, the discretisation of a stochastic differential equation, and the pricing problem with its benchmark. The methods follow in four families: Monte Carlo, lattices, partial differential equations and transforms. Four sections cover the tools that sit around every pricing engine. The supporting methods are linear algebra, root finding, numerical differentiation, the Jacobian and quadrature. Interpolation and extrapolation, which every curve and surface depends on, have a section of their own, followed by regression and fitting, and then optimisation and calibration, which draws on all of them. The advanced section covers early exercise by simulation, the curse of dimensionality, adjoint differentiation and machine learning. The last page compares all the methods on one table.
The code for every page is in the examples folder of the series. It uses NumPy and SciPy, every script runs on its own, and each one prints the output that is quoted on the page. The benchmark that they share is in The Pricing Problem & the Benchmark. The Bermudan swaption section, Interest Rate Mean Reversion, uses the grid and regression methods of this series for a rates product.
Numerical methods
- Numerical Methods: Foundations
- Numerical Methods: Monte Carlo
- Numerical Methods: Lattice Methods
- Numerical Methods: PDE Methods
- Numerical Methods: Transform Methods
- Numerical Methods: Supporting Methods
- Numerical Methods: Interpolation
- Numerical Methods: Regression and Fitting
- Numerical Methods: Optimisation and Calibration
- Numerical Methods: Advanced Methods
- One Option, Five Numerical Methods