Finite-difference Numerical Methods of Partial Differential Equations in Finance with Matlab
This is the main aim of this course
.
Here
you can find the notes of this course and below you have the videos with all the explanations.
1. Ordinary Differential Equations (ODEs):
Analytical solution of first order ODEs
.
Basic technical points:
Geometric interpretation of a derivative
.
Taylor expansion
.
Numerical resolution of first order ODEs
:
Forward Euler method
.
Matlab program with the Forward Euler method
, (
forward_euler.m
).
Backward Euler method
.
Midpoint method
.
Matlab program with the Midpoint method
, (
midpoint.m
).
Second order Runge-Kutta or trapezoidal method
.
Fourth order Runge Kutta method
.
Errors and stability in numerical methods
.
Stability of forward and backward Euler methods
.
Numerical resolution of a system of first order ODEs
.
Linear Nth-order ODEs:
Analytic resolution of Nth-order LODEs
.
Numerical resolution of Nth-order LODEs
.
2. Finite-difference methods to solve second-order partial differential equations (PDEs):
Presentation of a PDE
.
Classification of second-order linear PDEs
.
Defining a mesh for finite-difference representations of PDEs
.
Sources of error and stability
.
Stability Analysis Fourier Approach von Neuman
.
The advection or wave equation
.
Explicit forward time centred space method advection equation
.
Matrix representation of the explicit forward time centred space method for the advection equation
.
Stability Analysis of the forward time centred space method
.
Matlab program with the explicit forward time centred space method for the advection equation
, (
adv_expl.m
).
The Lax method
.
Problems with the Lax method
.
Matlab program with the explicit forward time centred space method for the advection equation
, (
adv_lax.m
).
Staggered leapfrog method
.
The heat or diffusion equation
.
Explicit forward time-centred space method for the diffusion equation
.
Stability analysis of explicit forward time-centred space method diffusion equation
.
Matlab program with the explicit forward time-centred space method for the diffusion equation
, (
heat_exp.m
).
Fully implicit method for the diffusion equation
.
Stability analysis of fully implicit method for the diffusion equation
.
Matrix representation of the fully implicit method for the diffusion equation
.
Matrix representation of the fully implicit method for the diffusion equation with Dirichlet boundary conditions
.
Matrix representation of the fully implicit method for the diffusion equation with Newmann boundary conditions
.
Crank-Nicholson method for the diffusion equation
.
Stability analysis of Crank-Nicholson method for the diffusion equation
.
Matrix representation of the Crank-Nicholson method for the diffusion equation
.
Dirichlet boundary conditions in the matrix representation of the Crank-Nicholson method for the diffusion equation
.
Newmann boundary conditions in the matrix representation of the Crank-Nicholson method for the diffusion equation
.
Matlab program with the Crank-Nicholson method for the diffusion equation
, (
heat_cran.m
).
Inverting matrices more efficiently:
The Jacobi method
.
The Gauss-Seidel method
.
SOR (successive over relaxation) method
.
3. Finite-difference methods to solve the Black-Scholes equation:
Introducing the Black-Scholes equation:
Derivation of the Black-Scholes equation
.
Black-Scholes equation
.
Boundary and initial/final conditions in the Black-Scholes equation
.
Transformation to the diffusion equation and Black-Scholes formulae
.
Analysis of the Greeks
.
Extensions of the Black-Scholes equation
.
Finite-difference representations for the Black-Scholes equation
.
Explicit FTCS method for the Black-Scholes equation
.
Examples of boundary conditions in the Black-Scholes equation
.
Matlab program with the explicit method to price an european call option
, (
expl_eurcall.m
).
Fully implicit method for the Black-Scholes equation
.
Matrix representation of the fully implicit method for the Black-Scholes equation
.
Implementation of boundary conditions in the matrix representation of the fully implicit method (Example 1)
.
Implementation of boundary conditions in the matrix representation of the fully implicit method (Example 2)
.
The Crank-Nicholson method for the Black-Scholes equation
.
Matrix representation of the Crank-Nicholson method for the Black-Scholes equation
.
Free boundary problems: American options
.
Implementing finite-difference representations for the Black-Scholes equation with free boundaries
.
Matlab program with the explicit method to price an american call option
, (
expl_euramcall.m
).
Bibliography:
P. Wilmott, S. Howison and J. Dewinne, "
The Mathematics of Financial Derivatives
", Cambridge University Press, 1976.
D. Tavella and C. Randall, "
Pricing Financial Instruments
", John Willey Sons Inc., 2000.
G.D. Smith, "
Numerical Solution of Partial Differential Quations: Finite Difference Methods
", Clarendon Press, Oxford, 1985.
J.C. Strikwerda, "
Finite Difference Schemes and Partial Differential Equations
", Chapman and Hall, New York, 1990.
J.C. Hull, "
Options, Futures and other derivatives
", Prentice Hall, 2000.