Solution of Stochastic Differential Equations in Finance



Yüklə 0,86 Mb.
səhifə2/12
tarix27.12.2023
ölçüsü0,86 Mb.
#163171
1   2   3   4   5   6   7   8   9   ...   12
Numerical Solution of Stochastic Differential Equations in Finance

dX = a(t, X) dt + b(t, X) dWt (1)
Notice that the SDE (1) is given in differential form, unlike the derivative form of an ODE. That is because many interesting stochastic processes, like Brow- nian motion, are continuous but not differentiable. Therefore the meaning of the SDE (1) is, by definition, the integral equation

X(t) = X(0) +
t
a(s, y) ds +
0
t
b(s, y) dWs,
0

where the meaning of the last integral, called an Ito integral, will be defined next.
Let c = t0 < t1 < . . . < tn−1 < tn = d be a grid of points on the interval [c, d]. The Riemann integral is defined as a limit



d
f (x) dx = lim


n

i
J f (tl )∆ti,

c ∆t→0 i=1




i
where ∆ti = ti − ti−1 and ti−1 ≤ tl ≤ ti. Similarly, the Ito integral is the limit



d
f (t) dWt = lim


n


J f (ti
1)∆Wi

c ∆t→0 i=1

i
where ∆Wi = Wti − Wti−1 , a step of Brownian motion across the interval. Note a major difference: while the tl in the Riemann integral may be chosen at any point in the interval (ti−1, ti), the corresponding point for the Ito integral is required to be the left endpoint of that interval.

d
Because f and Wt are random variables, so is the Ito integral I =
c f (t) dWt. The differential dI is a notational convenience; thus
d

I =
is expressed in differential form as
f dWt
c



dI = f dWt.
The differential dWt of Brownian motion Wt is called white noise. A typical solution is a combination of drift and the diffusion of Brownian motion.
To solve SDEs analytically, we need to introduce the chain rule for stochas- tic differentials, called the Ito formula:
If Y = f (t, X), then




2
dY = f (t, X) dt + f (t, X) dx + 1
f (t, X) dx dx (2)

t x
2 ∂x2

where the dx dx term is interpreted by using the identities


dt dt = 0
dt dWt = dWt dt = 0
dWt dWt = dt (3)

The Ito formula is the stochastic analogue to the chain rule of conventional calculus. Although it is expressed in differential form for ease of understanding, its meaning is precisely the equality of the Ito integral of both sides of the equation. It is proved under rather weak hypotheses by referring the equation back to the definition of Ito integral (Oksendal, 1998).


Some of the important features of typical stochastic differential equations can be illustrated using the following historically-pivotal example from fi- nance, often called the Black-Scholes diffusion equation:

( dX = µX dt + σX dWt X(0) = X0
(4)

with constants µ and σ. Although the equation is comparatively simple, the fact that it can be exactly solved led to its central importance, by making a closed-form formula available for the pricing of simple options (Black and Scholes, 1973).


The solution of the Black-Scholes stochastic differential equation is geo- metric Brownian motion
1 2
X(t) = X0e(µ− 2 σ )t+σWt . (5)

2
To check this, write X = f (t, Y ) = X0eY , where Y = (µ − 1 σ2)t + σWt. By


2
the Ito formula,
dX = X0eY dY + 1 eY dY dY


2
where dY = (µ − 1 σ2) dt + σ dWt. Using the differential identities from the

Ito formula,
and therefore
dY dY = σ2 dt,



dX = X0eY (r 1 σ2) dt + X0eY σ dWt + 1 σ2eY dt
2 2
= X0eY µ dt + X0eY σ dWt
= µX dt + σX dWt

as claimed.


Fig. 1 shows a realization of geometric Brownian motion with constant drift coefficient µ and diffusion coefficient σ. Similar to the case of ordinary differen- tial equations, relatively few stochastic differential equations have closed-form solutions. It is often necessary to use numerical approximation techniques.
  1. Numerical methods for SDEs.


The simplest effective computational method for the approximation of or- dinary differential equations is Euler’s method (Sauer, 2006). The Euler- Maruyama method (Maruyama, 1955) is the analogue of the Euler method for ordinary differential equations. To develop an approximate solution on the interval [c, d], assign a grid of points




c = t0 < t1 < t2 < . . . < tn = d.
Approximate x values


w0 < w1 < w2 < . . . < wn

will be determined at the respective t points. Given the SDE initial value problem



( dX(t) = a(t, X)dt + b(t, X)dWt X(c) = Xc
we compute the approximate solution as follows:

Euler-Maruyama Method


w0 = X0

(6)


where
wi+1 = wi + a(ti, wi)∆ti+1 + b(ti, wi)∆Wi+1 (7)


ti+1 = ti+1 ti
Wi+1 = W (ti+1) W (ti). (8)

The crucial question is how to model the Brownian motion ∆Wi. Define N (0, 1) to be the standard random variable that is normally distributed with mean 0 and standard deviation 1. Each random number ∆Wi is computed as


Wi = zi ∆ti (9)
where zi is chosen from N (0, 1). Note the departure from the deterministic ordinary differential equation case. Each set of {w0, . . . , wn} produced by the Euler-Maruyama method is an approximate realization of the solution stochastic process X(t) which depends on the random numbers zi that were chosen. Since Wt is a stochastic process, each realization will be different and so will our approximations.
As a first example, we show how to apply the Euler-Maruyama method to the Black Scholes SDE (4). The Euler-Maruyama equations (7) have form
w0 = X0 (10)
wi+1 = wi + µwi∆ti + σwi∆Wi.
We will use the drift coefficient µ = 0.75 and diffusion coefficient σ = 0.30, which are values inferred from the series of market close share prices of Google, Inc. (NYSE ticker symbol GOOG) during the 250 trading days in 2009. To calculate the values µ and σ2, the mean and variance, respectively, of the daily stock price returns were converted to an annual basis, assuming independence of the daily returns.
An exact realization, generated from the solution (5), along with the cor- responding Euler-Maruyama approximation, are shown in Fig. 1. By corre- sponding, we mean that the approximation used the same Brownian motion realization as the true solution. Note the close agreement between the solution and the approximating points, plotted as small circles every 0.2 time units. In addition, the original time series of Google share prices is shown for com- parison. Both the original time series (grey curve) and the simulation from
(5) (black curve) should be considered as realizations from the same diffusion process, with identical µ, σ and initial price X0 = 307.65.



price


600
300

0 time (years) 1





Yüklə 0,86 Mb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   ...   12




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə