Lectures14 Finitedifference
Lectures14 Finitedifference
Søren Hesel
Fall 2022
Outline
1 Introduction
3 Example
Introduction
Asset price given by a function f (x, t), which for all (x, t) ∈ S × [0, T)
solves the PDE (why?)
∂f ∂f 1 ∂2 f
(x, t) + µ(x, t) (x, t) + σ(x, t)2 2 (x, t) − r(x, t)f (x, t) = 0,
∂t ∂x 2 ∂x
along with the boundary condition f (x, T) = H(x) for x ∈ S.
• We focus on finding a numerical solution, i.e. values of f in a
sample of S × [0, T]
▶ 3 finite difference methods: “explicit”, “implicit”, “Crank-Nicolson”
• Approximate ∂f
∂t (xj , n∆t) by ...
fj,n −fj,n−1
▶ D−
t fj,n = ... the explicit finite difference method
∆t
fj,n+1 −fj,n
▶ D+
t fj,n = ... the implicit finite difference method
∆t
Hence:
Explicit all values fj−1,n , fj,n , fj+1,n are known - find fj,n−1
Implicit Only fj,n+1 is known - need to find fj−1,n , fj,n and fj+1,n
• We approximate both ∂f ∂f
∂t and ∂x
• Since we only use one fj,n−1 , the approximation of ∂f
∂t has to be
”precise”
• Rule of thumb:
∆t 1
σ 2
⩽
(∆x) 2
Other issues
• What to do at the boundaries x0 and xJ ?
▶ Handled on a case-by-case basis
▶ Impose conditions on function values or the derivatives; maybe use
non-standard approximations of derivatives
• How to solve a tridiagonal system of equations? Matrix
inversion is inefficient. Better approach:
1 Gauss elimination (involves only the matrix)
2 Forward substitution
3 Backward substitution
• American-style assets? Two alternatives:
1 At each time step compute fj,n for all j as above. Then overwrite
with max(fj,n , Fj,n ).
2 Implicit and Crank-Nicolson: Build early-exercise check into the
backward substitution procedure. Is more efficient!
• Multiple state variables? Two and three can be handled with
some added complexity
Søren Hesel DRM
Introduction Discretization of the fundamental PDE
Finite difference methods The three variants
Example Other issues
Boundary conditions
Use the explicit finite difference to price an American put option with:
4 1
K = 21; T= ; ∆S = 4; ∆t =
12 12
Hints:
• Set Smax = 20 · ∆S = 80
• Boundary conditions: American put ⇝ (21.29)–(21.30):
S = 0 ⇒ P = K; S = Smax ⇒ P ≈ 0
• Also try the implicit finite difference method!
Søren Hesel DRM