You are on page 1of 10

We want to simulate …

Indices
Chapter 3: Brownian Motions
and its simulation

1 2

Computer generated paths for


Interest rates
a Brownian Motion

3 4
Wiener Processes: Brownian
Wiener Process
Motions, Ito Processes
Definition. A Wiener process (standard
W(tk+1)= W(tk) + e(tk) √∆t, where ∆t = tk+1 –
Brownian motion) is a stochastic process tk, k=0,…,N, t0 = 0, and e(tk) iid N(0,1).
which satisfies the following properties: For j<k, W(tk) - W(tj) = Σi=jk-1 e(ti) √∆t.
For s<t, W(t) – W(s) is a N(0, t-s) random The right-hand side is normally distributed,
variable. so is the left-hand side.
For t1 < t2 ≤ t3 < t4, W(t4) - W(t3) is
uncorrelated with W(t2) - W(t1). This is known
Clearly, E(W(tk) - W(tj) ) = 0.
as the independent increment property. Var (W(tk) - W(tj)) = E [Σi=jk-1 e(ti) √∆t]2
W(t0) = 0 with probability one. = (k-j) ∆t = tk – tj.
For t1 < t2 ≤ t3 < t4, W(t4) - W(t3) is
5 6
uncorrelated with W(t2) - W(t1).

Simulation of Wiener Process By letting n goes to infinity (∆t goes to 0),


Partition [0,1] into n subintervals each with length Donsker (1953) proved that the stochastic
1/n. For each t in [0,1], let [nt] denote the greatest process S[nt] constructed in this way tends
integer part of the number nt. to a Brownian motion. This result is known
For each t in [0,1], define a stochastic process as the Functional Central Limit Theorem or
S[nt] = Σi=1[nt] e(i)/√n, e(i) iid N(0,1). Clearly, the Invariance Principle.
S[nt] = S[nt]-1 + e([nt])/ √n, a special form of the
additive model defined at the beginning with ∆t Therefore, the above equation provides a
=1/n and W(t)= S[nt]. means to simulate the path of a Brownian
At time t=1, S[nt] = Sn = Σi=1n e(i)/√n, which has a motion. All we have to do is to iterate the
standard normal distribution. Even if e(i)s are not equation: S[nt] = S[nt]-1 + e([nt])/ √n
normally distributed, CLT shows that Sn will still
be normally distributed as long as n is big. This is by taking n bigger and bigger and in the
the key idea in constructing a Brownian motion. 7 limit, we have a Brownian motion. 8
When ∆t goes to 0, the discrete-time A simplified version
random walk equation
S[nt] = S[nt]-1+e([nt])/√n, Set Y0 = 0
can be approximated by the continuous- Set Yj = Yj-1 + ε*sqrt(∆t)
time equation dW(t) = e(t)√dt . Joining Yj and Yj-1 by a straight line.

In there, Yj is replicating the value of Bt


when t = j∆t, where Bt follows a
standard Brownian (Wiener) process.
9 10

An example

11 12
13 14

Properties of Wiener Process


Brownian motion For each t, W(t) is normally distributed.
For t<s, E(W(s)|W(t)) =
Suppose Wt follows a Wiener process E(W(s)-W(t)+W(t)|W(t))=W(t), hence a martingale.
Then Xt = µt + σWt is called a Brownian With probability 1, W(t) is nowhere differentiable.
motion with a drift of µ and volatility of σ. E[W(s)-W(t)/(s-t)]2 =1/(s-t) which tends to infinity
when s tends to t. Consequently, the process ξ(t)
An alternative way to present Brownian = dW(t)/dt is undefined mathematically.
motion is by the differential form:
When used formally, the process ξ(t) = dW(t)/dt is
dXt = µdt + σdWt known as the white noise in the engineering field,
The last representation is usually but its mathematical meaning remains to be
referred to the name: diffusion process. defined. It has to be interpreted in terms of
solution to the integral equation ∫ ξ(t)dt = W(t).
15
But be cautious whenever using such a definition.16
Diffusion Processes Generalized Wiener Process
Consider dX(t) = µdt +σdW(t), integrating this Definition. An Ito’s process or a generalized
equation, we get Wiener process is a stochastic process which
satisfies the following stochastic differential
X(t) = X(0) + µt +σW(t). In other words, the equation
process X(t) is the solution to the integral
dX(t) = µ(x,t)dt + σ(x,t) dW(t),
equation ∫dX(t)=µ ∫dt + σ∫dW(t).
where µ(x,t) is known as the drift function and
X(t) defined in this way is known a diffusion σ(x,t) is known as the diffusion function.
process. It can be expressed explicitly in This equation has to be interpreted through
terms of W(t) and the constants µ and σ. To integration.
generalize, we have:
17 18

Definition. A stochastic process S(t) is said to be a


geometric Brownian motion with drift parameter µ if the
Stock Returns process X(t) =logS(t) is a Brownian motion with drift ν =
µ-σ2/2 and variance σ2, that is,
Recall the multiplicative model log S(k+1) = dX(t) = νdt + σdW(t), or equivalently,
log S(k)+w(k), w(k) iid N(ν,σ2). dlogS(t) = (µ-σ2/2)dt + σdW(t).
The continuous-time approximation is dlog The following figure are simulations of S(t)=exp{0.01t +
S(t) = νdt + σdW(t). Integrating this equation, 0.01W(t)}. Notice the linear growth of the mean, ν=.01.
we have
log S(t) = log S(0) + νt + σW(t). For t fixed,
the right-hand side is a normally distributed
random variable with mean logS(0) + νt and
variance σ2t. The process S(t) is known as
the geometric Brownian motion.
19 20
Let S(0)=z. An equivalent way of defining a = z exp{(µ-σ2/2)t}E(e σ√t ξ), ξ~N(0,1),
geometric Brownian motion is that the process S(t) = z exp{(µ-σ2/2)t}exp{σ2 t/2} =zeµt=S(0)eµt.
satisfies For µ>0, E(S(t)) tends to infinity as t gets large.
S(t) = z e X(t) = z exp{νt + σW(t)} But for 0< µ< σ2/2, the process X(t) = X(0) + (µ-
=z exp{(µ-σ2/2)t + σW(t)}. σ2/2)t + σW(t) has a negative drift, which means
Consider the successive ratios S(t1)/S(t0), X(t) tends to negative infinity as t gets bigger.
S(t2)/S(t1), …,S(tn)/S(tn-1). Since the Brownian Consequently, the price S(t) = S(0)eX(t) tends to
motion has independent increments, these ratios zero as t tends to infinity. In other words, the
are independent random variables. geometric Brownian motion S(t) drifts to zero but
at the same time, its mean is drifting to infinity.
log S(t) = X(t) ~ N(logS(0) + νt, σ2 t). Using the mean value can be misleading in
As S(t)=ze X(t), to find the moments of S(t), consider describing the process.
E(S(t)) = E(E(S(t)|S(0)=z)) ‰ Similarly, we can show that
=E(E(z exp{(µ-σ2/2)t + σW(t)}|S(0)=z)) Var S(t) = S(0)2 e 2µt (exp{σ2 t}-1). (check)
= z exp{(µ-σ2/2)t}E(eσW(t)) 21 22

Table Ito’s Formula


STD of % return = 0.404 In the preceding section, we define the
STD of log-return = 0.376 geometric Brownain motion in terms of
Mean1 – 0.5x var2 = 0.0276
dlogS(t) = νdt + σdW(t).
From ordinary calculus, dS(t)/S(t)=dlogS(t)
Guess: dS(t)/S(t) = νdt + σdW(t).
Unfortunately, this is not correct. We need
an extra correction term.
Rule: Whenever dW(t) is involved, we need
to account for a correction term. This is the
essence of the Ito’s calculus.
23 24
The correct formula is
dS(t)/S(t) = (ν+σ2/2)dt + σdW(t)
4. Alternatively, we can discretize dlogS(t)
= µdt + σdW(t), as ν=µ-σ2/2.
= νdt+σdW(t) to simulate
The extra term σ2/2 when transforming dlogS(t)
to dS(t) is known as the Ito’s lemma. logS(tk+1)- logS(tk)=ν∆t+σε(tk)√∆t, or
Remarks: S(tk+1) = exp{ν∆t+σε(tk)√∆t}S(tk).
1. The above equation describes the dynamics of
the instantaneous return process dS(t)/S(t).
This time we have a multiplicative model
2. When σ=0, the process is deterministic and the again, but with lognormal coefficient. In
above equation leads back to S(t)=S(0)eµt . practice, as long as ∆t is small, both
3. One can simulate S(t) from the above equation, expressions can be used to simulate
S(tk+1) – S(tk) = µS(tk)∆t + σS(tk)ε(tk)√∆t, or S(t).
S(tk+1) =[1+ µ∆t + σε(tk)√∆t]S(tk), ε(tk) iid N(0,1).
This is a multiplicative model in S(t), but the
25 26
coefficient is normal, not lognormal.

Proof. It will only be a sketch. Recall from


calculus that for a function of two variables
Ito’s Lemma y(t)=F(x,t),
dy(t) = (∂F/∂x) dx + (∂F/∂t) dt
Theorem. Let x(t) be a diffusion = (∂F/∂x)(adt + bdW) + (∂F/∂t) dt.
process that satisfies Comparing this with the Ito’s equation, we see
dx(t) = a(x,t)dt + b(x,t)dW(t). that there is the extra correction term
(1/2)(∂2F/∂x2)b2 in front of the coefficient dt in the
Let the process y(t) = F(x,t) for some Ito’s equation. The reason for this correction is
function F. Then y(t) satisfies the Ito’s due to the fact that dW is of order √dt, and as dx
equation is expressed in terms of dW, it is also of order
dy(t) = [(∂F/∂x)a + ∂F/∂t + √dt. To see how this is done, consider the
(1/2)(∂2F/∂x2)b2]dt + (∂F/∂x)bdW(t). Taylor’s expansion of F up to the order of dt.
Specifically, calculate the expression
27 28
F(x+∆x, t+∆t) = F(x,t) + (∂F/∂x)∆x + (∂F/∂t)∆t + (1/2)(∂2F/∂x2)(∆x)2 Example. Consider the geometric Brownian
= F(x,t)+(∂F/∂x)(a∆t+b∆W)+(∂F/∂t)∆t + (1/2)(∂2F/∂x2)(a∆t+b∆W)2. motion S(t) that satisfies
Consider this quadratic term, expanding dS(t) = µS(t)dt + σS(t)dW(t).
(a∆t+b∆W)2 = a2 (∆t)2 + 2ab (∆t)(∆W) + b2(∆W)2. Consider the process y(t)=F(S(t))=logS(t).
Note that both the first term and the second term of the right hand What kind of equation does y satisfy? To find
side are of higher order than ∆t. Recall the fact that since dW ~
e(t)√dt, ∆W is of order √∆t and thus, (∆W)2 ~ ∆t. Using this fact
out, use Ito’s lemma.
and remembering that we are expanding y only up to order ∆t (i.e. 1. Identify a= µS and b= σS.
terms of order higher than ∆t can be ignored), we get (a∆t+b∆W)2
~ b2 ∆t. Substituting this into the pink term,
2. We know ∂F/∂S=1/S and ∂2F/∂S2=-1/S2.
F(x+∆x, t+∆t) = F(x,t) + [(∂F/∂x)a + (∂F/∂t) + (1/2)(∂2F/∂x2)b2] ∆t 3. Plug these into Ito’s formula,
+ (∂F/∂x)b∆W. dlogS =[a/S – (1/2)(b2/S2]dt + (b/S)dW
Taking limit ∆t goes to zero, the Ito’s formula is obtained. ♣ =(µ- σ2/2)dt + σdW,
29 which agrees with the earlier derivation. ♣30

Example. ∫ sdW(s) =? First a guess, Example. ∫ W(s)dW(s) = ? To find out, first guess
an answer W2(t)/2. Is this correct? Use Ito’s
tW(t) - ∫ W(s)ds. To check, formula to check.
1. Let X(t)=W(t), dX(t)=dW(t) and identify 1. Let X(t)=W(t), dX(t)=dW(t) and identify a=0, b=1.
a=0, b=1. 2. Let Y(t)=F(X(t))= W2(t)/2. Then ∂F/∂W=W,
∂2F/∂W2=1, and ∂F/∂t =0.
2. Let Y(t)=F(W(t))=tW(t). Then ∂F/∂W=t, 3. Recite Ito’s lemma:
∂2F/∂W2=0, and ∂F/∂t =W(t). dy(t) = [(∂F/∂x)a + ∂F/∂t+(1/2)(∂2F/∂x2)b2]dt +
3. Substitute these into the Ito’s lemma, (∂F/∂x)bdW(t) so that dY(t) = (1/2)dt + W(t)dW(t).
dY(t)=tdW(t) + W(t)dt. Integrating, Now integrate both sides of this equation, we
have
4. Y(t) =tW(t)= ∫sdW(s) + ∫W(s)ds, that is, 4. W2(t)/2 = Y(t) = t/2 + ∫ W(s)dW(s), that is,
∫ W(s)dW(s) = W2(t)/2 - t/2. This time, our initial
∫sdW(s) = tW(t) - ∫W(s)ds as expected.♣ guess wasn’t correct. We need the extra
31
correction term from the Ito’s lemma. ♣ 32
Asset Dynamics
In the physical world,
dS
= µ dt + σ dW
S
In the risk-neutral world,
Options Pricing with Monte dS
= rdt + σ dW
Carlo Simulations S

33 34

Pricing a call in terms of


MC Simulation
expectation
Call option payoff = max(S – K, 0) A computation method for calculating
Present value of the call option: expected value by the means of simulation.

C(t, S) = e−r (T −t ) EQ [max(ST − K,0)]


It consists of the following steps:
z Generate possible scenarios
z Estimate expected value by the sample mean of
where Q refers to the risk-neutral the scenarios
probability The estimate converges to the actual
number because of the law of large number.

35 36
Valuing a call Convergence of the estimate
Simulate n sample paths, ends at t = T,
according to the risk-neutral asset
dynamics;
Collect all the end points of the paths,
I.e. ST(j), j = 1, 2, …, n.
The option price is given by

e −r (T −t ) 1 n

n j =1
(
max ST − K ,0
( j)
)
37 38

Apply to exotic options Barrier Options


Forward Start options: Barrier options are options where the payoff
max(ST2 – ST1, 0) depends on whether the underlying asset's
Forward start options are options that are paid for price reaches a certain level during a certain
now but will start at some time in the future. They period of time.
are sometimes used in employee incentive
Example: down-and-out call
schemes. The terms of the option are usually
chosen so that the options will be at the money DOC = max(ST - K, 0) I(min(S) > B)
(S = K) at the time they start.

39 40

You might also like