© 2026 NeckPinch · www.neckpinch.com · All rights reserved.
Course 6Book 6D: Diffusions, Finance and ComputationChapter 10
Monte Carlo, Fourier and Finite Element Methods
Monte Carlo error and variance reduction, Euler–Maruyama, Fourier pricing, and finite element error estimates.
Read with Glasserman, Monte Carlo Methods in Financial Engineering (chapters 1, 4 and 6: foundations, variance reduction and discretisation of SDEs); Kloeden and Platen, Numerical Solution of Stochastic Differential Equations, for the convergence theory of Euler–Maruyama; Brenner and Scott, The Mathematical Theory of Finite Element Methods (chapters 0–2 and 5); and Jost, Partial Differential Equations, section 10.5 (the finite element method as a Galerkin method). Carr and Madan, "Option valuation using the fast Fourier transform" (J. Comput. Finance 2, 1999), is the source for Fourier pricing. This chapter proves the Monte Carlo error estimate, the variance formulas for antithetic and control variates, the strong order of Euler–Maruyama, Céa's lemma, the one-dimensional interpolation estimate and the Aubin–Nitsche duality argument; weak order, multilevel Monte Carlo and the Carr–Madan formula are stated. The numerical results quoted were computed for this chapter.
6D.9 Finite Difference Methods solved PDE on grids. This chapter covers the two other great families of numerical methods, which rest on the two other pillars of Course 6. Monte Carlo methods use the probabilistic representation: by Feynman–Kac (6D.3 Stochastic Differential Equations and Feynman–Kac), a solution of a parabolic equation is an expectation over random paths, and an expectation can be estimated by simulating many paths and averaging. The error decreases like with the number of paths, slowly, but independently of the dimension, which makes Monte Carlo the method of choice for options on many assets and for path-dependent contracts. Finite element methods use the weak formulation: by Lax–Milgram (4A.5 Hilbert Spaces and Lax–Milgram, 6A.6 Weak Solutions and Elliptic Regularity), a solution of an elliptic equation is the solution of a variational problem in a Hilbert space, and restricting that problem to a finite-dimensional subspace of piecewise polynomials gives a linear system whose solution is, up to a constant, the best approximation available in the subspace. In between sits Fourier pricing, which uses the explicit characteristic functions of many models and the FFT.
By the end of this chapter you will be able to:
- estimate an expectation by Monte Carlo with a confidence interval, and reduce its variance with antithetic and control variates;
- simulate SDEs by the Euler–Maruyama scheme, prove its strong order , and explain weak order and multilevel Monte Carlo;
- describe how option prices are computed from characteristic functions by the FFT;
- set up the finite element method for a second-order elliptic problem, and prove Céa's lemma, the interpolation estimate and the Aubin–Nitsche estimate in one dimension;
- compute finite element stiffness matrices, including the cotangent formula on triangles.
Solitaire and the bomb
In 1946, recovering from an illness, Stanisław Ulam wondered what the chance was that a game of Canfield solitaire would come out, gave up on combinatorics, and realised it would be easier to play many games and count. At Los Alamos he and John von Neumann turned the idea into a method for the neutron transport problems of weapons design: simulate the random histories of many neutrons on the ENIAC and average. Nicholas Metropolis named it after the casino in Monaco, and he and Ulam published "The Monte Carlo method" in 1949. Four years later Metropolis, the Rosenbluths and the Tellers introduced the Markov chain sampling algorithm that bears Metropolis's name, the ancestor of the Langevin Monte Carlo of 6D.3 Stochastic Differential Equations and Feynman–Kac.
Phelim Boyle brought the method to option pricing in 1977, and today a large share of the computing power of banks goes into Monte Carlo simulation of portfolios of derivatives under many correlated risk factors, where grids are hopeless: a finite difference grid with points per dimension needs points in dimensions, while Monte Carlo's error does not care about dimension. The finite element method has a parallel history: Richard Courant proposed piecewise linear approximation on triangles in 1943, aerospace engineers at Boeing and elsewhere developed it in the 1950s for aircraft structures, and Ray Clough named it the "finite element method" in 1960.
Monte Carlo
To estimate for an integrable random variable that we can simulate, draw independent copies and form the sample mean .
If , then , , and almost surely. By the central limit theorem, in distribution, so , with the sample standard deviation, is an approximate confidence interval for .
Proof. Linearity of expectation and independence give the mean and variance (). Almost sure convergence is the strong law of large numbers; the interval comes from the central limit theorem with (statements; 3A.4 Measures, Probability and Weights).
The error is whatever the dimension: to gain one decimal digit, multiply the work by . Every improvement therefore aims at the constant .
For the call of 6D.6 Black–Scholes (, , , ), simulate under the risk-neutral measure and average the discounted payoffs . With samples, one run gave with a standard error of , consistent with the exact (the difference is one standard error). The discounted payoff has standard deviation about , so a standard error of one cent would need about samples.
Antithetic variates. If with standard normal, has the same law, and also has mean , with
When is monotone, and are negatively correlated (Exercise 10.8), and averaging the pair costs two evaluations but reduces variance by more than a factor . For the call above the reduction per evaluation was about a factor : modest, because the payoff is far from linear.
Control variates. If is a simulated quantity with known mean , then has mean for every , and variance , minimised at
where is the correlation of and . For the call, with is a natural control: the estimated correlation gave and a variance reduction by a factor of about , equivalent to seven times as many samples. The best controls are prices of similar contracts with known formulas, for example a geometric-average Asian option as a control for an arithmetic-average one.
Simulating SDEs: Euler–Maruyama
For , with step and grid times , the Euler–Maruyama scheme is
the stochastic analogue of Euler's method, with the noise increments sampled exactly. Two kinds of error matter. The strong error measures how close individual paths are (needed when the paths themselves matter, or for multilevel methods); the weak error measures how close expectations are (all that matters for pricing).
If and are Lipschitz, there is depending on , the Lipschitz constants and such that .
Proof. Extend the scheme to continuous time: with for , let , which agrees with at the grid times. Then
and , likewise for . Two facts about the exact solution are needed: (6D.3 Stochastic Differential Equations and Feynman–Kac), and hence, by the same Cauchy–Schwarz and isometry estimates, . Let . The two inequalities of the existence proof in 6D.3 Stochastic Differential Equations and Feynman–Kac (Cauchy–Schwarz for the integral, Doob and the isometry for the integral) give
and Gronwall's inequality (6D.3 Stochastic Differential Equations and Feynman–Kac) gives .
The order comes from the term : Brownian motion moves a distance in time (6D.1 Brownian Motion). Including the next term of the Itô–Taylor expansion (the Milstein scheme, which adds in one dimension) raises the strong order to .
The weak order of Euler–Maruyama is : for smooth and coefficients, (statement; Denis Talay and Luciano Tubaro, 1990, who also proved the expansion that justifies Richardson extrapolation). For geometric Brownian motion it can be seen directly: while , and the difference is about , halving when halves (Exercise 10.10).
Multilevel Monte Carlo. To reach accuracy with Euler–Maruyama and plain Monte Carlo one needs (weak error) and paths (statistical error), a cost of order . Michael Giles (2008) observed that the expectation on the finest grid can be written as a telescoping sum over grids with , and that the corrections , computed on the same Brownian path at two resolutions, have variance of order by the strong error estimate. So few samples are needed on the expensive fine levels, and the total cost falls to order (statement): strong convergence, useless on its own for pricing, buys a speedup for weak problems.
Fourier pricing
Many models used in practice are not solvable for prices but have explicit characteristic functions : Lévy (jump) models, and Steven Heston's stochastic volatility model (1993). Prices can then be computed by Fourier inversion. A call price, as a function of the log-strike , is not integrable (it tends to as ), so Peter Carr and Dilip Madan (1999) damp it: for with , the function is integrable, and its Fourier transform is explicit in terms of ,
(statement; derived by Fubini from , Exercise 10.11). Inverting, , and discretising the integral on a grid of frequencies gives prices on a grid of strikes by a single FFT (6D.9 Finite Difference Methods), in operations. This is how the parameters of stochastic volatility models are calibrated to hundreds of quoted options in seconds.
Finite elements
Consider the model problem on with , , (the method works the same way in any dimension). Its weak form (6A.6 Weak Solutions and Elliptic Regularity) is: find with
The form is bounded, , and coercive, (by Poincaré's inequality), so Lax–Milgram gives a unique solution (4A.5 Hilbert Spaces and Lax–Milgram).
The Galerkin method chooses a finite-dimensional subspace and asks for with for all . In a basis of , with , this is the linear system
with the stiffness matrix , which is positive definite by coercivity. The finite element method chooses to be piecewise polynomials on a mesh, with a local basis, so that is sparse. The simplest choice in one dimension: nodes , , and the hat functions , piecewise linear, equal to at and at the other nodes. For , , the stiffness matrix is , the finite difference matrix of 6D.9 Finite Difference Methods times (Exercise 10.12).
Let and be the exact and Galerkin solutions. Then for all (Galerkin orthogonality), and
Proof. Subtracting from gives orthogonality. For any , , so
Divide by .
So the Galerkin solution is quasi-optimal: up to the constant , it is as good as the best approximation of from . (For symmetric it is exactly the best approximation in the energy norm : the Galerkin solution is the orthogonal projection of onto for the inner product .) Error estimates therefore reduce to approximation theory.
Let be the piecewise linear interpolant of at the nodes. Then
Proof. On an element , vanishes at both ends, so by Rolle's theorem for some in the element. Since there, for in the element by Cauchy–Schwarz. Squaring and integrating over the element gives on each element; sum. Similarly , so on each element.
With Céa's lemma: , first order in the energy norm. But the error of the Galerkin solution is better than the error by a full power of , by a duality argument of Jean-Pierre Aubin and Joachim Nitsche (1967–68).
For the model problem with smooth, .
Proof. Let , and let solve the dual problem for all , that is, . By elliptic regularity in one dimension (6A.6 Weak Solutions and Elliptic Regularity), with . Take and use Galerkin orthogonality with :
Divide by .
The same structure works in higher dimensions on meshes of triangles or tetrahedra: Céa's lemma unchanged; interpolation estimates for piecewise linear elements on meshes whose triangles are not too thin (statement; Brenner and Scott, chapter 4); and Aubin–Nitsche on convex polygonal domains, where regularity of the dual problem holds. Polynomials of degree give and . For parabolic problems, finite elements in space are combined with the time-stepping schemes of 6D.9 Finite Difference Methods (the method of lines). Unlike finite differences, finite elements handle curved boundaries, unstructured meshes and variable coefficients naturally, and their error theory is the Hilbert space theory of 4A.5 Hilbert Spaces and Lax–Milgram, which is why they dominate engineering simulation.
On a triangulated surface, the stiffness matrix of piecewise linear elements is the cotangent Laplacian (Exercise 10.14), the discrete Laplace–Beltrami operator of discrete differential geometry. Gerhard Dziuk (1990) computed mean curvature flow of surfaces with exactly these elements, and Bennett Chow and Feng Luo (2003) introduced a combinatorial Ricci flow on triangulated surfaces whose convergence reproves discrete versions of uniformization (11A.12 Ricci Flow on Surfaces); discrete conformal maps built on the same ideas are used in computer graphics and in computational anatomy to flatten the cortex of the brain.
History
Ulam, von Neumann and Metropolis created the Monte Carlo method at Los Alamos in 1946–49, and Boyle applied it to options in 1977. Gisiro Maruyama analysed the Euler scheme for SDEs in 1955 and Grigori Milstein his higher-order scheme in 1974; Talay and Tubaro's weak error expansion dates from 1990 and Giles's multilevel method from 2008. Richard Courant proposed piecewise linear elements in 1943, engineers developed the method in the 1950s, Clough named it in 1960, and the mathematical theory (Céa's lemma, 1964; Aubin and Nitsche, 1967–68; Ciarlet's book, 1978) followed. Carr and Madan's FFT method dates from 1999 and Heston's model from 1993.
Monte Carlo estimates by a sample mean with error independent of dimension; antithetic variates and control variates (variance ) reduce . Euler–Maruyama converges strongly with order (proved by the SDE estimates and Gronwall) and weakly with order ; multilevel Monte Carlo exploits strong convergence to cut the cost from to about . Fourier methods price from characteristic functions with one FFT. Finite elements solve the weak formulation on a subspace of piecewise polynomials; Galerkin orthogonality gives Céa's quasi-optimality, interpolation gives in , and the Aubin–Nitsche duality argument gives in . 6D.11 Computing Geometric Flows applies these methods, and discrete geometry, to the geometric flows of the guide, and closes Course 6.
Exercises
For the call of Example 10.2, the discounted payoff has standard deviation about . (a) How many samples give a confidence interval of half-width ? (b) With the control variate of the text (), how many?
Solution
(a) gives . (b) The standard deviation becomes , so , about seven times fewer.
Let be non-decreasing and symmetric. Show that . (Use , also non-decreasing, and the fact that two non-decreasing functions of the same random variable are non-negatively correlated: for an independent copy .)
Solution
pointwise, since both factors have the sign of . Taking expectations, . With : , i.e. .
Prove the formulas for and the minimal variance in the text, and show that the variance reduction factor is .
Solution
is a quadratic in minimised at , with . The factor is ; for , about .
For , show that the Euler–Maruyama approximation satisfies . With , , , compute the weak error for , , , and confirm weak order .
Solution
since has mean zero and is independent of ; iterate. The errors are , then and : halving with . They match for .
Assume has a density and . Writing with the density of , compute by Fubini (integrate over first) and obtain the formula for .
Solution
. Integrating against gives , and .
For on with hat functions on a uniform mesh, compute and show that the stiffness matrix is . If the load is approximated by , show that the finite element equations are the finite difference equations .
Solution
on and on . So , (overlap on one element), and otherwise. Dividing the equations by gives the difference scheme, with .
For on with the norm , show that , so the Galerkin solution is the best approximation in . For , find using the Poincaré inequality .
Solution
In the first case and , so . In the second, , so , and .
Let be a triangle with vertices , , , and , the linear functions on equal to at one vertex and at the other two. (a) Show that is perpendicular to the edge , points towards , and has length , where is the height from . (b) Show that , where is the angle at . (Use , and , and the angle between the two gradients.) (c) Conclude that on a triangulated surface the stiffness matrix entry for an interior edge is , with , the angles opposite the edge. This is the discrete Laplace–Beltrami operator used in discrete mean curvature flow, discrete conformal geometry and combinatorial Ricci flow on surfaces (11A.12 Ricci Flow on Surfaces).
Solution
(a) is constant () along the edge , so its gradient is perpendicular to it; it increases from to over the distance towards . (b) The gradients are inward normals to the edges and , and the angle between them is , so . Multiplying by the area, . (c) The edge belongs to two triangles, with opposite angles and , and their contributions add.
Free resources for this chapter
Chosen for what this chapter covers, and all free to read. Links checked Oct 20, 2026.
- Reference Monte Carlo methodWikipediaHistory and basic ideas of Monte Carlo.
- Reference Variance reductionWikipediaAntithetic variates, control variates and other techniques.
- Reference Euler–Maruyama methodWikipediaThe basic scheme for simulating SDEs.
- Reference Multilevel Monte Carlo methodWikipediaGiles's multilevel method.
- Reference Finite element methodWikipediaFinite elements as a Galerkin method.
- Reference Céa's lemmaWikipediaQuasi-optimality of Galerkin approximations.
© 2026 NeckPinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.