MIT18 S096F13 Lecnote21
MIT18 S096F13 Lecnote21
1.1. Coefficient matching method. One of the most natural, and most
important, stochastic differntial equations is given by
dX(t) = µX(t) dt + σX(t) dB(t) with X(0) = x0 > 0,
where −∞ < µ < ∞ and σ > 0 are constants.
Let us pretend that we do not know the solution and suppose that we
seek a solution of the form X(t) = f (t, B(t)). For this candidate, we have
∂f 1 ∂2f ∂f
dX (t) = + dt + dB(t),
∂t 2 ∂x2 ∂x
hence if we must have
∂f 1 ∂2f ∂f
µf = + and σf = .
∂t 2 ∂x2 ∂x
The second equation gives f (t, x) = eσx+g(t) . Using this in the first equation
gives
σ2
µf = g 0 (t)f + f.
2
0 σ2
Therefore, g (t) = µ − 2 , and we see that
2 /2)t
f (t, x) = x0 eσx+(µ−σ .
Therefore, X(t) = x0 e (µ−σ 2 /2)t+σB(t) .
1.2. Coefficient matching for product processes. Let α and σ be pos-
itive constants and consider the following SDE
dX(t) = −αX(t)dt + σdB(t) with X(0) = x0 .
Ornstein and Uhlenbeck first used (a version of) this equation to study the
behavior of gasses. It has been applied (or rediscovered) in a variety of
contexts. This SDE exhibits the ‘mean reversion’ behavior (when α > 0).
Coefficient matching method failes for this SDE, so we try a different test
function ˆ t
X(t) = a(t) x0 + b(s)dB(s) ,
0
where a(0) = 1. By differentiating each side we get,
a0 (t)
dX(t) = X(t) dt + a(t)b(t)dB(t),
a(t)
where we assume that a(t) > 0 for all t. This should match the given SDE,
so we must have
a0 (t)
−α = and σ = a(t)b(t).
a(t)
Therefore, a(t) = e−αt and b(t) = σeαt . From this, we see that
ˆ t
X(t) = x0 e−αt + σeα(s−t) dB(s).
0
Lecture 21
3
2. Numerical methods
Most PDE and SDE do not have closed form solutions. In this case we
can use numerical methods such as finite difference method, tree method,
or Monte Carlo simulation to find an approximate solution. We will briefly
discuss the some of the methods.
Step 2: Use the sample path from Step 1 and finite difference method to
solve the SDE for the particular choice of sample path.
Step 3: Repeat Step 1 and 2 many times.
This gives a probability distribution of the random stochastic process
f (t, Bt ). Monte Carlo simulation is based on the idea that the resulting
probability distribution of this method will converge to the distribution of
the stochastic process that solves the SDE.
2.3. Tree method. Tree method uses the idea that the Brownian motion
can be seen as a limit of a simple random walk. Suppose that we would like
to compute the value of f (t, Bt ) at some time t = T , where
df (t, Bt ) = g(t, Bt )dBt + h(t, Bt )dt.
We begin by taking sample points t0 , t1 t2 , · · · of the time domain [0, T ].
We replace the occurences of Bt in the SDE by a simple random walk
which either goes up one step or down one step during each time interval
[ti , ti+1 ] (where the step size is appropriately chosen). This gives an inductive
way to approximately find the probability distribution of f (T, BT ).
Hull [4] illustrates how these methods are used in financial applications.
3. Heat equation
Our last topic of study is a well-known PDE, heat equation. It is well
known that the Black-Scholes equation can be turned into a heat equation
after a suitable change of variables.
Let u(x, t) be a function of two varaibles, space and time (denoted x and
t) .The following differential equation is known as the one dimensional heat
equation (diffusion equation):
∂u ∂2u
= .
∂t ∂x2
This is one of the few partial differential equations that is very well under-
stood (and has a closed form solution).
Example 3.1. Let u(x, t) represent the temparature in a long, thin, uniform
bar of material whose sides are perfectly insulated so that its temperature
varies only with distance x along the bar (and with time t). Then u(x, t)
satisfies the heat equation (this is where the name of the equation comes
from).
Our goal is to solve various initial value problems for the heat equation.
The initial values that we consider will be given as
u(0, x) = u0 (x) (for −∞ < x < ∞),
for some function u0 .
Lecture 21
5
u(0, x) = δ(x).
(such function need not be well-defined since the integration might not ex-
ist).
However, if the function u0 is ‘reasonable’ then we can show that
(3.1) ˆ ∞ ˆ ∞ 2
∂u ∂uδ ∂2u ∂ uδ
(x, t) = (x−s, t)·u0 (s)ds and 2
(x, t) = 2
(x−s, t)·u0 (s)ds.
∂t −∞ ∂t ∂x −∞ ∂x
This implies that u(x, t) satisfies the heat equation as well. Note that
u0 (x, 0) = u0 (x), and hence as long as a ‘reasonable’ initial condition u0
is given (so that u(x, t) is well-defined and (3.1) holds), we see that u(x, t)
solves the initial value problem.
Lecture 21
6
References
[1] P. Wilmott, S. Howison, J. Dewynne, The mathematics of financial derivatives
[2] S. Shreve, Stochastic calculus for finance II: continuous-time models
[3] M. Steele, Stochastic calculus and financial applications
[4] J. Hull, Options, futures, and other derivatives
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.