Skip to main content
Derivatives Compass

Numerical MethodsAdvancedEstimated reading timeAbout 12 min

Finite Difference Methods

The finite difference method solves the partial differential equation that a price satisfies by replacing derivatives with differences between values at grid points. It finds the option price at each grid point, working back from the payoff at expiry to today. It can also value American options, which can be exercised before expiry.

The mechanics of the finite difference method matter when you compute an option price numerically on a grid, or check the value of an option that can be exercised before expiry.

Prerequisites

Key points

  • The explicit method has a time step limit, while the implicit and Crank-Nicolson methods have none.
  • For a call, halving the grid spacing cuts the Crank-Nicolson error to about a quarter.
  • For an American option, each time step keeps the larger of the grid value and the exercise value.
  • More risk factors multiply the grid points, so valuations with many underlying assets suit the Monte Carlo method.

Replacing a partial differential equation with differences on a grid

Under the Black-Scholes model, the option price satisfies a partial differential equation. The finite difference method places grid points over the range where you want prices, replaces the derivatives in the equation with differences between neighboring points, and finds the price at each point1.

The log-price equation

Let VV be the price of a European option, SS the price of the underlying asset, and τ=T−t\tau = T - t the time to expiry. The interest rate rr and the volatility σ\sigma are constant, and the underlying pays no dividends. The equation is as follows2.

∂V∂τ=−rV+rS ∂V∂S+12σ2S2 ∂2V∂S2\frac{\partial V}{\partial \tau} = -rV + rS\,\frac{\partial V}{\partial S} + \frac{1}{2}\sigma^2 S^2\,\frac{\partial^2 V}{\partial S^2}

Because time is measured as the time to expiry τ\tau, expiry is τ=0\tau = 0 and today is τ=T\tau = T. The payoff at expiry is the starting value (the initial condition), and the calculation advances by increasing τ\tau until it reaches today's price. Changing the variable to x=ln⁡(S/K)x = \ln(S/K) gives an equation whose coefficients do not depend on SS3. KK is the strike price.

∂V∂τ=−rV+(r−σ22)∂V∂x+12σ2 ∂2V∂x2\frac{\partial V}{\partial \tau} = -rV + \left(r - \frac{\sigma^2}{2}\right)\frac{\partial V}{\partial x} + \frac{1}{2}\sigma^2\,\frac{\partial^2 V}{\partial x^2}

Difference formulas and the order of calculation

Place a grid with spacing hh in the xx direction and Δτ\Delta\tau in the τ\tau direction. Let VjnV_j^n be the approximate price at the point xj=x0+jhx_j = x_0 + jh and time τn=nΔτ\tau_n = n\Delta\tau. The three derivatives are replaced by the following differences4.

Derivative Difference Type of difference
∂V/∂τ\partial V / \partial \tau (Vjn+1−Vjn)/Δτ(V_j^{n+1} - V_j^n) / \Delta\tau Forward difference
∂V/∂x\partial V / \partial x (Vj+1n−Vj−1n)/(2h)(V_{j+1}^n - V_{j-1}^n) / (2h) Central difference
∂2V/∂x2\partial^2 V / \partial x^2 (Vj+1n−2Vjn+Vj−1n)/h2(V_{j+1}^n - 2V_j^n + V_{j-1}^n) / h^2 Central difference

The calculation runs in this order.

  1. Put the payoff at expiry on every point of the grid.
  2. Put the boundary values at the lower and upper ends (and reset them to the values for that time at each step forward).
  3. Advance one time step and find the value at each point.
  4. Only for an American option, replace each point's value with the larger of that value and the exercise value (covered in "Replacing values for American options").
  5. Repeat steps 3 and 4 from expiry to today, then read the value at the point that corresponds to the current price of the underlying as the price.

Boundary values and the grid range

The calculation covers only a finite range. So you place boundaries at the lower and upper ends of xx and fix the values there. For a European option, the boundary values follow from put-call parity.

A call approaches S−Ke−rτS - Ke^{-r\tau} where the underlying price is high and approaches 0 where it is low. A put approaches Ke−rτ−SKe^{-r\tau} - S where the price is low and 0 where it is high5. A condition that fixes the value at a boundary is called a Dirichlet boundary condition5.

Type Value at the lower end (small SS) Value at the upper end (large SS)
Call 0 S−Ke−rτS - Ke^{-r\tau}
European put Ke−rτ−SKe^{-r\tau} - S 0

The value at expiry (τ=0\tau = 0) is the payoff: max⁡(S−K,0)\max(S - K, 0) for a call option and max⁡(K−S,0)\max(K - S, 0) for a put option6.

Three methods and the time step

The equation in difference form splits into three methods, according to how time is stepped. Collect the differences in the price direction at each point jj into one operator, written as follows.

(LV)j=a Vj−1+b Vj+c Vj+1(\mathcal{L}V)_j = a\,V_{j-1} + b\,V_j + c\,V_{j+1}

With D=σ2/2D = \sigma^2/2 (the coefficient of the second derivative) and μ=r−σ2/2\mu = r - \sigma^2/2 (the coefficient of the first derivative), the coefficients are a=D/h2−μ/(2h)a = D/h^2 - \mu/(2h), b=−2D/h2−rb = -2D/h^2 - r, and c=D/h2+μ/(2h)c = D/h^2 + \mu/(2h)7.

Three methods chosen by θ

The parameter θ\theta chooses whether LV\mathcal{L}V is evaluated at the earlier time nn, at the next time n+1n+1, or as the average of the two7.

Vjn+1−θ Δτ (LVn+1)j=Vjn+(1−θ) Δτ (LVn)jV_j^{n+1} - \theta\,\Delta\tau\,(\mathcal{L}V^{n+1})_j = V_j^n + (1 - \theta)\,\Delta\tau\,(\mathcal{L}V^n)_j

θ=0\theta = 0 is the explicit method, θ=1\theta = 1 is the implicit method, and θ=1/2\theta = 1/2 is the Crank-Nicolson method. The three differ as follows.

Method θ\theta One time step Time step limit Error (for smooth initial values)
Explicit 0 Computes the next values directly from three values at the earlier time Has a limit (the guide from the diffusion term alone is Δτ≤h2/σ2\Delta\tau \le h^2/\sigma^2) O(h2,Δτ)O(h^2, \Delta\tau)
Implicit 1 Solves a system of equations for the values at the next time None (unconditionally stable) O(h2,Δτ)O(h^2, \Delta\tau)
Crank-Nicolson 1/2 Also solves a system of equations None (unconditionally stable in the L2L^2 norm) O(h2,Δτ2)O(h^2, \Delta\tau^2)

The explicit method's time step limit

The explicit method needs no system of equations. The next value is the three earlier values added with weights.

Vjn+1=aΔτ Vj−1n+(1+bΔτ) Vjn+cΔτ Vj+1nV_j^{n+1} = a\Delta\tau\,V_{j-1}^n + (1 + b\Delta\tau)\,V_j^n + c\Delta\tau\,V_{j+1}^n

However, the explicit method for a diffusion equation becomes unstable when the time step exceeds (Δx)2/(2D)(\Delta x)^2/(2D)8. In the log-price equation the coefficient of the second derivative is σ2/2\sigma^2/2, so the guide from the diffusion term alone is Δτ≤h2/σ2\Delta\tau \le h^2/\sigma^29. Halving the grid spacing hh multiplies the number of time steps by 4 and the number of points by 2, so the computation takes about 8 times as long8.

For a diffusion equation without discounting and advection (first-derivative) terms, the three coefficients lie between 0 and 1 and sum to 1 under the stability condition. They can therefore be read as probabilities, and the explicit method is the same as a backward calculation on a trinomial tree10. The formula above has a discounting term, so its coefficients sum to 1−rΔτ1 - r\Delta\tau.

The implicit and Crank-Nicolson methods

The implicit and Crank-Nicolson methods solve a tridiagonal system (nonzero coefficients only on the diagonal and its two neighbors) for the values at the next time. A tridiagonal system can be solved in time and memory proportional to the number of points11. The implicit method has no restriction on the time step and is unconditionally stable12.

For smooth initial values, the error of the Crank-Nicolson method is O(h2,Δτ2)O(h^2, \Delta\tau^2), which shrinks faster than the O(h2,Δτ)O(h^2, \Delta\tau) of other values of θ\theta. For θ≥1/2\theta \ge 1/2, the size of the solution (its L2L^2 norm) does not grow whatever the time step. So you can make the time step proportional to hh and keep both accuracy and efficiency13.

Deep diveHow to check the stability of the explicit and implicit methods

Split the solution of the heat equation ∂V/∂τ=D ∂2V/∂x2\partial V/\partial\tau = D\,\partial^2 V/\partial x^2 into components of the form eipxe^{ipx}. Suppose each component is multiplied by GG in one time step. If ∣G∣≤1|G| \le 1, the component does not grow, and if ∣G∣|G| exceeds 1, it keeps growing. With λ=DΔτ/h2\lambda = D\Delta\tau/h^2, GG for the explicit method (GEG_{\mathrm{E}}) and for the implicit method (GIG_{\mathrm{I}}) is as follows14.

GE=1−4λsin⁡2(ph2)G_{\mathrm{E}} = 1 - 4\lambda\sin^2\left(\frac{ph}{2}\right) GI=11+4λsin⁡2(ph/2)G_{\mathrm{I}} = \frac{1}{1 + 4\lambda\sin^2(ph/2)}

sin⁡2(ph/2)\sin^2(ph/2) can come arbitrarily close to 1, so the condition for ∣GE∣≤1|G_{\mathrm{E}}| \le 1 to hold for every component is λ≤1/2\lambda \le 1/2. This corresponds to Δτ≤h2/(2D)\Delta\tau \le h^2/(2D). For the implicit method, GIG_{\mathrm{I}} is greater than 0 and at most 1 for any positive λ\lambda, so the time step has no restriction.

The common example call

Consider a hypothetical example in which a call option is valued with an underlying price of 100, a strike price of 100, one year to expiry, an interest rate of 1%, and a volatility of 20%. The Black-Scholes formula gives a price of 8.433315.

The grid covers xx from −1-1 to 11 (SS from 36.79 to 271.83). Each end is 5 times the standard deviation of the log price at expiry, σT=0.2\sigma\sqrt{T} = 0.2, away from the current point16.

One time step by hand

Follow one time step of the explicit method by hand. Take a grid spacing of h=0.1h = 0.1 and a time step of Δτ=0.025\Delta\tau = 0.025 (one year divided into 40 steps). With D=0.22/2=0.02D = 0.2^2/2 = 0.02 and μ=0.01−0.02=−0.01\mu = 0.01 - 0.02 = -0.01, the coefficients are as follows.

Coefficient Formula Value
aΔτa\Delta\tau (weight of the point below, xj−1x_{j-1}) 0.025×(0.02/0.12+0.01/(2×0.1))0.025 \times (0.02/0.1^2 + 0.01/(2 \times 0.1)) 0.05125
1+bΔτ1 + b\Delta\tau (weight of the same point, xjx_j) 1+0.025×(−2×0.02/0.12−0.01)1 + 0.025 \times (-2 \times 0.02/0.1^2 - 0.01) 0.89975
cΔτc\Delta\tau (weight of the point above, xj+1x_{j+1}) 0.025×(0.02/0.12−0.01/(2×0.1))0.025 \times (0.02/0.1^2 - 0.01/(2 \times 0.1)) 0.04875

All three weights are at least 0, and they sum to 0.99975 (=1−0.01×0.025= 1 - 0.01 \times 0.025). Advance the point xj=0.1x_j = 0.1 (underlying price 110.5171) by one time step from the payoff at expiry.

Point xx Underlying price Payoff at expiry Weight
One below 0 100.0000 0.0000 0.05125
Same point 0.1 110.5171 10.5171 0.89975
One above 0.2 122.1403 22.1403 0.04875

The weighted sum is 0.05125×0+0.89975×10.5171+0.04875×22.1403=0+9.4628+1.0793=10.54210.05125 \times 0 + 0.89975 \times 10.5171 + 0.04875 \times 22.1403 = 0 + 9.4628 + 1.0793 = 10.5421. This equals the underlying price 110.5171 minus the present value of the strike, 100×e−0.01×0.025=99.9750100 \times e^{-0.01 \times 0.025} = 99.975017.

Comparing the three methods

Next, spread the grid over the whole range and solve with the three methods. The grid spacing is h=0.02h = 0.02 (100 intervals), and the explicit method's guide from the diffusion term alone is Δτ≤h2/σ2=0.01\Delta\tau \le h^2/\sigma^2 = 0.01, that is, 100 steps or more. The table shows the price at the point S=100S = 100 (x=0x = 0) and its difference from the Black-Scholes price.

Number of time steps (Δτ\Delta\tau) Explicit (difference) Implicit (difference) Crank-Nicolson (difference)
40 (0.025) Diverges (about −5×1022-5 \times 10^{22}) 8.3980 (−0.0353) 8.4236 (−0.0097)
200 (0.005) 8.4285 (−0.0048) 8.4184 (−0.0149) 8.4235 (−0.0098)

With a time step of 0.025, the explicit method is at 2.5 times the guide, and the calculation diverges. Cutting the time step to a fifth hardly changes the Crank-Nicolson difference. This difference comes mainly from the grid spacing hh18. The implicit method's difference shrinks as the time step gets smaller.

With the same conditions and a grid spacing of 0.01 (200 intervals), the explicit method's guide becomes Δτ≤0.0025\Delta\tau \le 0.0025, that is, 400 steps or more. The explicit method with 300 steps diverges, and with 400 steps it gives a price of 8.4284 (difference −0.0049)19. The product of the number of points and the number of steps rises from 100×100=10,000100 \times 100 = 10{,}000 to 200×400=80,000200 \times 400 = 80{,}000, 8 times as much.

Grid spacing and error

Now refine the grid with the Crank-Nicolson method. The time step is Δτ=h/2\Delta\tau = h/2, and each time hh is halved, the time step is halved too.

Grid spacing hh Intervals Time steps Price Difference from the Black-Scholes price
0.1 20 20 8.1735 −0.2598
0.05 40 40 8.3711 −0.0622
0.025 80 80 8.4179 −0.0154
0.0125 160 160 8.4295 −0.0038

Each time hh is halved, the difference falls to about a quarter, which matches the error order O(h2,Δτ2)O(h^2, \Delta\tau^2) in the table20. Other valuations need not show differences of the same size.

SimulatorHow the price differs by method, grid, and time step in the finite difference methodOther simulators
Inputs
Method
Type
Exercise style
−0.010−0.008−0.006−0.004−0.0020.0000.0028090100110120130140Difference from Black-ScholesUnderlying price S−0.0098
Price at S = 100 (grid)
8.4235
Black-Scholes price (European)
8.4333
Difference (grid − Black-Scholes)
−0.0098
Largest absolute difference for S = 70 to 145
0.0099
The difference row is the difference of the two displayed prices; this row is the largest unrounded value.
Grid spacing h
0.02
Time step Δτ
0.005
Stability guide for the explicit method, h²/σ²
0.01
Time step ÷ guide
0.50
At most 1. The explicit method does not diverge (checked over this range).
Grid points computed (intervals × time steps)
20,000

Simplifications

  • The common example (price 100, strike 100, 1 year, rate 1%, volatility 20%, no dividends) is solved on a grid of the log price x = ln(S/K) from −1 to 1. S = 100 is the point x = 0.
  • Boundary values: for the call, 0 at the lower end and S − Ke^(−rτ) at the upper end; for the European put, Ke^(−rτ) − S at the lower end and 0 at the upper end. For the American put, after each time step each point is replaced by the larger of its value and the exercise value, and the lower end is K − S.
  • The stability guide Δτ ≤ h²/σ² looks at the diffusion term only. That the explicit method does not diverge at or below the guide was checked over this simulator's range (it is not a proof).
  • The difference in the chart is from the European Black-Scholes price. It is larger near the strike, where the payoff has a kink.

This simulator uses simplified calculations for learning. It cannot be used for valuing actual transactions or managing their risk. (Terms of Use)

About this simulator

Change the method, the number of grid intervals, and the number of time steps, and see how far the price of the common example call is from the Black-Scholes price of 8.4333. The initial values are the Crank-Nicolson method, a grid spacing of h=0.02h = 0.02 (100 intervals), and 200 steps, the same conditions as the 200-step row of the table comparing the three methods. If you switch to the explicit method and reduce the number of time steps, the time step passes the stability guide and the screen shows an instability or divergence warning. If you choose the put and American, the price is higher because the option can be exercised before expiry. The difference on the screen is from the Black-Scholes (European) price, which is a different definition from the difference in the American table (from the European price on the same grid).

Replacing values for American options

An American option can also be exercised before expiry. Its value at any time is the larger of the value of holding it and the value of exercising it now. The American put equation is the Black-Scholes equation with an added condition that the value never falls below the exercise value K−SK - S21. Unlike the European case, the boundary condition cannot be fixed in advance, and the problem becomes a free boundary problem, in which the exercise boundary is determined together with the solution22.

On a grid, after each time step you compare each point's value with the exercise value (the intrinsic value) and replace it with the larger one23. Another approach is the penalty method. It adds a term that can be ignored where the option is not exercised, so that the solution is almost equal to the exercise value where it is exercised24.

The next table shows a put with the same conditions as the common example call, solved with the Crank-Nicolson method and the replacement at each time step. The European price is the value solved on the same grid and time step without the replacement23.

Grid spacing hh Time steps European put American put Difference (American − European, same grid)
0.02 200 7.4284 7.5020 0.0736
0.01 400 7.4358 7.5104 0.0746
0.005 400 7.4377 7.5124 0.0747

The European put from the Black-Scholes formula is 7.4383. The American put is higher than the European put by the value of exercising before expiry. A 2,000-step tree of the binomial model gives an American put of 7.5127, and the finite difference prices approach this value as the grid is refined23.

Choosing between finite differences and Monte Carlo

An option with few risk factors that can be exercised before expiry is well suited to finite differences25. A valuation with many risk factors suits the Monte Carlo method26. Both the binomial model and finite differences are grid calculations that work backward from expiry.

The Monte Carlo method approximates a price by averaging over many random paths. How paths are built and how the error behaves are covered in Monte Carlo Simulation. The two methods differ as follows.

Aspect Finite differences Monte Carlo
How the price is found Solves the equation at grid points Averages many random paths27
As the number of factors (dimensions) grows The number of grid points grows, and the cost of solving the system far exceeds the one-dimensional case25 The statistical error shrinks as 1/N1/\sqrt{N} in the sample size NN, whatever the dimension26
American options Adds the condition that the value stays at or above the exercise value One path makes it hard to decide the exercise point, so a modified method is needed28
Greeks Finds delta and gamma from differences of grid values29 Uses a difference approximation that revalues with the input shifted slightly (bumping)30

The difference in dimension shows in the number of points. Consider a hypothetical example in which each axis has 100 points. With 1, 2, or 3 axes there are 100, 10,000, or 1,000,000 points, which is 100d100^d points for dd axes. Deterministic methods that do not use random numbers, grid calculations included, suffer the curse of dimensionality, in which the points grow exponentially as axes are added31.

The bumping difference approximation is a different use from the finite difference method that solves an equation on a grid. Ways to compute sensitivities quickly are covered in Adjoint Algorithmic Differentiation (AAD).

Assumptions and limits

The finite difference method solves an equation numerically. The price is determined by the model that the equation assumes. The Black-Scholes equation assumes that the interest rate and the volatility are constant over the period32. If this assumption fails, the solved price need not match the market price.

In the common example, the grid range hardly affects the price. Narrowing the range of xx from ±1\pm 1 to ±0.5\pm 0.5 (2.5 standard deviations from the current point) changes the Crank-Nicolson price with h=0.02h = 0.02 and 200 steps only from 8.4235 to 8.423416.

A payoff that is not smooth is also a source of error. The call payoff has a kink at the strike, so delta and gamma found by central differences of the grid values have larger errors than the price itself. The largest gamma error appears at the strike29. The Crank-Nicolson method is unconditionally stable only in the L2L^2 norm, and when the payoff is not smooth, the convergence of delta and gamma in the maximum error gets worse29.

As a remedy, there are methods in the family of Rannacher time stepping, which replaces the first few time steps with half steps of the implicit method. Replacing the first two steps with four half steps makes the maximum errors of the price, delta, and gamma shrink at second order33. The examples on this page use the Crank-Nicolson method without this replacement.

What this page does not cover

Notes

  1. Page 543, "Finite-Difference Methods", of Yuh-Dauh Lyuu, "Finite-Difference Methods and Monte Carlo Simulation" (external site) (National Taiwan University lecture notes; the "Lyuu 2006 lecture notes"). ↩

  2. Section 2 (page 2) of M. B. Giles, "Crank-Nicolson time-marching" (external site) (Oxford-Man Institute of Quantitative Finance; the "Giles Crank-Nicolson note"). The equation written with τ≡T−t\tau \equiv T - t, and the form after changing to x≡log⁡Sx \equiv \log S. ↩

  3. The source uses x=log⁡Sx = \log S. This page uses x=ln⁡(S/K)x = \ln(S/K), which shifts the variable by ln⁡K\ln K and leaves the form of the derivatives unchanged. ↩

  4. Pages 547–548 ("Explicit Methods", equations (59)–(61)) of the Lyuu 2006 lecture notes (external site), and Sections 1 and 2 (pages 1–2) of the Giles Crank-Nicolson note (external site). Section 2 of Giles uses the central difference Vj+1−Vj−1V_{j+1} - V_{j-1} for the first derivative. ↩

  5. Section 1.5 (page 8), equations (1.36)–(1.43), of Michael Holst, "Computational Finance: Differential Equation Techniques [Lectures 8-10]" (external site) (the "Holst lecture notes"). The notes use the term "Dirichlet boundary conditions". ↩ ↩2

  6. Section 2 (page 2) of the Giles Crank-Nicolson note (external site). The initial value of the call is V(S,0)=max⁡(S−K,0)V(S, 0) = \max(S - K, 0). ↩

  7. Section 1 (pages 1–2) of the Giles Crank-Nicolson note (external site), the θ\theta scheme. The coefficients are the source's discretization operator DD divided by the time step. ↩ ↩2

  8. Page 551, "Stability", of the Lyuu 2006 lecture notes (external site). The explicit method for the diffusion equation D ∂2θ/∂x2−∂θ/∂t=0D\,\partial^2\theta/\partial x^2 - \partial\theta/\partial t = 0 is unstable unless Δt≤(Δx)2/(2D)\Delta t \le (\Delta x)^2/(2D), and halving Δx\Delta x multiplies the computation time by 8. ↩ ↩2

  9. The condition obtained by putting the coefficient of the second derivative in the log-price equation, σ2/2\sigma^2/2, into the source's DD. ↩

  10. Page 552, "Explicit Method and Trinomial Tree", of the Lyuu 2006 lecture notes (external site). Under the stability condition the three coefficients lie between 0 and 1 and sum to 1, so the explicit formula equals a backward calculation on a trinomial tree. The sum with a discounting term is calculated from the formula on this page. ↩

  11. Pages 553–556, "Implicit Methods", of the Lyuu 2006 lecture notes (external site). A tridiagonal system can be solved in O(N)O(N) time and O(N)O(N) memory. ↩

  12. Page 554, "Implicit Methods (continued)", of the Lyuu 2006 lecture notes (external site). The notes call the implicit formula "unconditionally stable". ↩

  13. Section 1 (page 2) of the Giles Crank-Nicolson note (external site). Unconditional L2L^2 stability for θ≥1/2\theta \ge 1/2, and the error orders (O(h2,k2)O(h^2, k^2) for Crank-Nicolson, O(h2,k)O(h^2, k) for other θ\theta). kk is Δτ\Delta\tau on this page. ↩

  14. Rutgers University lecture notes "Numerical Solution of PDEs" (external site) (page 65, "Example 1: explicit scheme for the heat equation", and page 68, "Example: implicit scheme for the heat equation"). The source's σ\sigma is the diffusion coefficient, which corresponds to DD on this page, and kk is the time step. ↩

  15. The value 8.433319 from the Black-Scholes formula (d1=(ln⁡(S/K)+(r+σ2/2)T)/(σT)d_1 = (\ln(S/K) + (r + \sigma^2/2)T)/(\sigma\sqrt{T}), d2=d1−σTd_2 = d_1 - \sigma\sqrt{T}), rounded at the fifth decimal place. ↩

  16. A calculation for the conditions in the text (h=0.02h = 0.02, 200 steps, Crank-Nicolson method). With the range of xx at ±0.5\pm 0.5 the price is 8.4234, and with ±1\pm 1 and ±1.5\pm 1.5 it is 8.4235 (rounded at the fifth decimal place). The range of SS is 36.79 to 271.83 for ±1\pm 1 and 60.65 to 164.87 for ±0.5\pm 0.5. ↩ ↩2

  17. The weights and prices were calculated from the formulas in the text. 100×e−0.00025=99.9750100 \times e^{-0.00025} = 99.9750 and 110.5171−99.9750=10.5421110.5171 - 99.9750 = 10.5421. ↩

  18. A calculation for the conditions in the text. The price is the value at the grid point x=0x = 0 (S=100S = 100). The difference is the price rounded at the fifth decimal place minus 8.4333. The explicit price with 40 steps was −4.86×1022-4.86 \times 10^{22}. ↩

  19. A calculation for the conditions in the text (explicit method, h=0.01h = 0.01). The price with 300 steps is −2.3×1064-2.3 \times 10^{64}, and with 400 steps it is 8.428365. The difference is the price rounded at the fifth decimal place minus 8.4333. ↩

  20. A calculation for the conditions in the text. The difference is the price rounded at the fifth decimal place minus 8.4333. The ratios of the absolute differences, from the previous row, are 4.2, 4.0, and 4.1. ↩

  21. Page 559 of the Lyuu 2006 lecture notes (external site). The condition P(S,t)=max⁡(P(S,t),X−S)P(S, t) = \max(P(S, t), X - S) (XX is the strike price KK). The notes give no procedure for the replacement on a grid. ↩

  22. Section 2.4, "American Options as a Free Boundary Problem" (page 17), and the opening (page 9) of the Holst lecture notes (external site). American options become a free boundary problem. The section on how to handle it is unfinished. ↩

  23. A calculation for the conditions in the text (put, Crank-Nicolson method). After each time step the value is replaced by max⁡(value at that point,K−S)\max(\text{value at that point}, K - S), with the lower end set to K−SK - S and the upper end to 0. The binomial tree is a CRR tree (2,000 steps). ↩ ↩2 ↩3

  24. Section 4 (page 4) of the Giles Crank-Nicolson note (external site). A nonlinear penalty term approximates American options. It can be ignored where the option is not exercised and makes the solution almost equal to the exercise value elsewhere. ↩

  25. Section 4 (page 4) of the Giles Crank-Nicolson note (external site). In higher dimensions, solving the system of equations directly costs much more. ↩ ↩2

  26. Pages 566–567 ("Accuracy and Number of Replications") of the Lyuu 2006 lecture notes (external site). The statistical error of a sample average decreases at the rate 1/N1/\sqrt{N} regardless of the dimension nn, while ordinary numerical integration suffers the curse of dimensionality. The notes say that the Monte Carlo method is more efficient than other procedures for securities that depend on more than one asset. ↩ ↩2

  27. Pages 562–564 ("Monte Carlo Simulation", "The Big Idea") of the Lyuu 2006 lecture notes (external site). The notes explain the Monte Carlo method as estimating an expected value by a sample average. ↩

  28. Page 570 of the Lyuu 2006 lecture notes (external site). The standard Monte Carlo method is not suited to early exercise because the exercise point is hard to determine from a single path. ↩

  29. Section 2 (pages 2–3) of the Giles Crank-Nicolson note (external site). For a European call, delta and gamma computed by central differences deviate more than the price, and the largest gamma error appears at the strike (S=1S = 1 in the source). ↩ ↩2 ↩3

  30. Pages 571–572 ("Delta and Common Random Numbers") of the Lyuu 2006 lecture notes (external site). Computing delta from two separate simulations has a large variance and is not recommended, and using the same random numbers is better. ↩

  31. Section 1, Introduction (page 4 of the PDF), of Paweł Przybyłowicz, "Monte Carlo methods and stochastic simulations: from integration to approximation of SDEs" (external site) (arXiv:2208.05531). Deterministic algorithms are affected by the curse of dimensionality. ↩

  32. Section 1.3 (page 5) of the Holst lecture notes (external site). The notes list, among the assumptions of the Black-Scholes-Merton market model, that the interest rate and the volatility are constant on [0,T][0, T], calling this "an idealization, but required by the model". ↩

  33. Section 3 (pages 3–4) of the Giles Crank-Nicolson note (external site). Replacing the first two Crank-Nicolson steps with four half steps of the implicit method gives second-order accuracy in the maximum error of the price, delta, and gamma for puts, calls, and digitals. ↩

Check your understanding of this page

Taken from the chapter quiz to check what this page explains.

  1. Question 1

    As a fictional example, you solve the Black-Scholes equation, rewritten in the logarithm of the price, by the explicit method of the finite difference method. The volatility is constant at 20%, the grid spacing in the price direction is 0.02, and the one year to expiry is divided into time steps of equal length. By the stability guideline that looks at the diffusion term only, what is the smallest number of time steps that avoids instability?

    Answer and explanation

    Answer: A

    The smallest number of time steps is 100. The guideline that looks at the diffusion term only is that the time step is at most the square of the grid spacing divided by the square of the volatility. The square of 0.02 is 0.0004 and the square of 0.20 is 0.04, so the time step is at most 0.0004 ÷ 0.04 = 0.01. Dividing one year into steps of 0.01 gives 1 ÷ 0.01 = 100 steps.

    Forty steps give a time step of 1 ÷ 40 = 0.025, 2.5 times the guideline. Under this condition the explicit method diverges. Two hundred steps come from taking the diffusion coefficient as the squared volatility itself (0.04), which gives a guideline of 0.0004 ÷ (2 × 0.04) = 0.005. The coefficient of the second derivative in the log-price equation is half the squared volatility (0.02). Two hundred steps do not cause instability either, but they are not the smallest number that avoids it.

  2. Question 2

    When the initial values are smooth, the error from the grid spacing is second order in all three methods of the finite difference method (explicit, implicit, and Crank-Nicolson). Which description of the Crank-Nicolson method is correct?

    Answer and explanation

    Answer: C

    The Crank-Nicolson method averages the values at the previous and next times and solves tridiagonal simultaneous equations for the values at the next time. For smooth initial values, its error from the time step is second order. The explicit and implicit methods have a first-order error from the time step, so the Crank-Nicolson error becomes small faster.

    Getting the next values directly from three values at the previous time is the explicit method. The implicit method and the Crank-Nicolson method solve simultaneous equations. Among the three methods, only the Crank-Nicolson method has a second-order error from the time step.

Take the full chapter quiz (5 questions)

Summary

  • The explicit method has a time step limit, while the implicit and Crank-Nicolson methods have none.
  • For a call, halving the grid spacing cuts the Crank-Nicolson error to about a quarter.
  • For an American option, each time step keeps the larger of the grid value and the exercise value.
  • More risk factors multiply the grid points, so valuations with many underlying assets suit the Monte Carlo method.

Read next

Share this page

In the learning roadmaps