Compfin Lecture 5
Compfin Lecture 5
Compfin Lecture 5
In this lecture, we discuss the stochastic version of the Taylor expansion to understand how
stochastic integration methods are designed. In addition, we illustrate why the Euler method
is strongly convergent with order 1/2 and is weakly convergent with order 1.
First, let us recall how we can obtain a Taylor expansion from an integral representation for
the deterministic case. Consider the autonomous ODE,
d
X (t) = a [X (t)] .
dt
Let f be a function of X (t) , then the evolution of the function f is governed by
d ∂
f [X (t)] = a [X (t)] f [X (t)] (1)
dt ∂X
via the chain rule.
1
If we iterate once more using Eq. (2) for f (X (τ 2 )) in the integrand of the double integral,
· Z τ2 ¸
2 2
L f [X (τ 2 )] = L f [X (t0 )] + Lf [X (τ 3 )] dτ 3
t0
Z τ2
2 2
= L f [X (t0 )] + L Lf [X (τ 3 )] dτ 3
t0
| {z }
O(L3 )
then the contribution of the first term above, which is a constant, to the double integral is
Z t Z τ1 Z t Z τ1
2 2
L f [X (t0 )] dτ 2 dτ 1 = L f [X (t0 )] dτ 2 dτ 1
t0 t0 t0 t0
1 2
= L f [X (t0 )] (t − t0 )2
2
Putting all these together, we have
1 ¡ ¢
f [X (t)] = f [X (t0 )] + Lf [X (t0 )] (t − t0 ) + L2 f [X (t0 )] (t − t0 )2 + O L3
2
which is precisely the Taylor expansion we are familiar with.
2
1. Choose f (x) = x, then Eq. (5) becomes
Z t Z t
X (t) = X (t0 ) + a [X (s)] ds + b [X (s)] dW (s) (6)
t0 t0
Z t½ Z s1 Z s1 ¾
0 1
X (t) = X (t0 ) + a [X (t0 )] + L a [X (s2 )] ds2 + L a [X (s2 )] dW (s2 ) ds1
t0 t0 t0
(9)
Z t½ Z s1 Z s1 ¾
+ b [X (t0 )] + L0 b [X (s2 )] ds2 + 1
L b [X (s2 )] dW (s2 ) dW (s1 )
t0 t0 t0
Note that
∂ 1 ∂2 1
L0 a = a a + b2 [X] 2
a ≡ aa0 + b2 a00
∂X 2 ∂X 2
1
L0 b = ab0 + b2 b00
2
∂
L1 a = b a = ba0
∂X
L1 b = bb0
Separating the constant terms out in the integrand in Eq. (9) from the remaining terms,
which are the double integral terms:
Z t Z s1 Z t Z s1
0
R ≡ L a [X (s2 )] ds2 ds1 + L1 a [X (s2 )] dW (s2 ) ds1
t0 t0 t0 t0
Z t Z s1 Z t Z s1
0
+ L b [X (s2 )] ds2 dW (s1 ) + L1 b [X (s2 )] dW (s2 ) dW (s1 ) ,
t0 t0 t0 t0
leads to Z t Z t
X (t) = X (t0 ) + a [X (t0 )] ds1 + b [X (t0 )] dW (s1 ) + R (10)
t0 t0
3
Note that the essence of the method is to use the substitution repeatedly to obtain
constant integrands in higher and higher order terms. For example, the last term in the
remainder, R, (which is of the lowest order in ∆t in R if ∆t ≡ t − t0 is small) is
Z t Z s1
L1 b [X (s2 )] dW (s2 ) dW (s1 )
t t
Z 0t Z 0s1 ½ Z s2 Z s2 ¾
1 0 1 1 1
= L b [X (t0 )] + L L b [X (s3 )] ds3 + L L b [X (s3 )] dW (s3 ) dW (s2 ) dW (s1 )
t0 t0 t0 t0
by selecting f = L1 b in Eq. (5). The first term in the last line of the above equation is
Z t Z s1
0
b [X (t0 )] b [X (t0 )] dW (s2 ) dW (s1 )
t0 t0
where R̃ is a new remainder. Eq. (11) is the Ito-Taylor expansion for the process (3).
Z tZ s1 Z t
dW (s2 ) dW (s1 ) = [W (s1 ) − W (t0 )] dW (s1 )
t0 t0 t
Z 0t Z t
= W (s1 ) dW (s1 ) − W (t0 ) dW (s1 )
t0 t0
Z Z t
1 t£ 2
¤
= dW (s1 ) − dt − W (t0 ) dW (s1 )
2 t0 t0
¡ ¢
∵ dW 2 = 2W dW + dt (Ito Lemma)
1£ 2 ¤
= W (t) − W 2 (t0 ) − (t − t0 ) − W (t0 ) [W (t) − W (t0 )]
2
1 1
= [W (t) − W (t0 )]2 − (t − t0 ) (12)
2 2
4
1.1.2 Numerical Integration Schemes
Once we have the Ito-Taylor expansion, we can construct numerical integration schemes for
the process (3). For the interval [ti , ti+1 ] , by choosing
t0 = ti , t = ti+1 ,
∆t = ti+1 − ti
∆Wi = W (ti+1 ) − W (ti ) ,
1. Keeping the first three terms in Eq. (13) gives us the explicit Euler method:
h i h i
X̂i+1 = X̂i + a X̂i ∆t + b X̂i ∆Wi
Note that the Milstein needs to compute the derivative b0 for the last term.
Runge-Kutta Methods Note that the Milstein method requires to compute the deriva-
tive of b. Some times it is computationally costly to compute derivatives. We can construct
Runge-Kutta schemes to avoid this, as for the deterministic case.
therefore,
¡ ¢
b (X + ∆X) − b (X) = b0 (X) [a (X) ∆t + b (X) ∆W ] + O (∆t) ∵ (∆X)2 ∼ ∆t
= b0 (X) b (X) ∆W + O (∆t)
∴
1
b0 (Xi ) b (Xi ) ∼ √ [b (Xi + a (Xi ) ∆t + b (Xi ) ∆Wi ) − b (Xi )] + O (∆t)1/2
∆t
1 h ³ √ ´ i
∼ √ b Xi + a (Xi ) ∆t + b (Xi ) ∆t − b (Xi ) + O (∆t)1/2
∆t
5
Thus, we have the following RK method
√
X̃i = Xi + a (Xi ) ∆t + b (Xi ) ∆t
1 h ³ ´ i£ ¤
Xi+1 = Xi + a (Xi ) ∆t + b (Xi ) ∆Wi + √ b X̃i − b (Xi ) (∆Wi )2 − ∆t
2 ∆t
which has order-one strong convergence. (Question: how would you demonstrate this con-
vergence of order one numerically?)
Now we turn to getting some intuitive feeling why the Euler scheme has strong order 1/2
and weak order 1. For simplicity, we analyze the convergence for the geometric Brownian
motion
dS (t) = µS (t) dt + σS (t) dW (t)
where µ and σ are constant. Recall that the exact solution for this process is
For t0 = 0, t1 = Tn , t2 = 2T
n
,··· , tn = T, by definition, the error in strong convergence is
¯ ¯
¯ ¯
E ¯Ŝ (T ) − S (T )¯
¯n−1 ¯
¯Y ¯
¯ (µ− 12 σ 2 )T +σW (T ) ¯
= S (0) E ¯ [1 + µ∆t + σ∆W (ti )] − e ¯ (16)
¯ ¯
i=0
6
where Ŝ (T ) is numerically evaluated using the Euler method and S (T ) is the exact solution
(Eq.(15)).
1 + µ∆t + σW (ti )
1
= e(µ− 2 σ )∆t+σW (ti ) − µ0 σ∆t∆W (ti ) − σ 3 [∆W (ti )]3 − O (∆t)2
1 2
6
∴
Y
n−1 Y·
n−1
1
¸
e(µ− 2 σ )∆t+σW (ti ) − µ0 σ∆t∆W (ti ) − σ 3 [∆W (ti )]3
1 2
[1 + µ∆t + σW (ti )] =
i=0 i=0
6
Y
n−1
[1 + µ∆t + σW (ti )] = e(µ− 2 σ )T +σW (T ) + nO (∆t∆W ) + nO (∆W )3 + nO (∆t)2 (17)
1 2
∴
i=0
7
Hence, the error (16) is
¯ ¯
¯ ¯
E ¯Ŝ (T ) − S (T )¯
¯ ¯
= E ¯nO (∆t∆W ) + nO (∆W )3 + nO (∆t)2 ¯
¯ ¯ µ ¶
¯T T T ¯ T
= E ¯¯ O (∆t∆W ) + O (∆W ) + 3
O (∆t) ¯¯
2
∵ n=
∆t ∆t ∆t ∆t
¯ ¯
¯ ¯
¯ ¯
¯ 1 1 1 ¯
¯ ¯
= T E ¯ O (∆t∆W ) + O (∆W )3 + O (∆t)2 ¯
¯|∆t {z } |∆t {z } |∆t {z }¯¯
¯
¯ O(∆t)1/2 O(∆t)1/2 O(∆t) ¯
= O (∆t)1/2
This demonstrates that the Euler scheme has strong convergence of order 1.
For weak convergence, we need to specify the function f in the error estimate:
¯ h ³ ´i ¯
¯ ¯
¯E f Ŝ (T ) − E [f (S (T ))]¯ ≤ β∆tq
f (x) = x
For the geometric Brownian motion, we thus have the “weak” error
¯ h i ¯
¯ ¯
¯E Ŝ (T ) − E [S (T )]¯
¯ "n−1 # ¯
¯ Y h i¯
¯ ¯
[1 + µ∆t + σW (ti )] − E e(µ− 2 σ )T +σW (T ) ¯
1 2
= S (0) ¯E
¯ ¯
i=0
¯ h i h i¯
¯ (µ− 12 σ2 )T +σW (T ) 3 2 (µ− 12 σ2 )T +σW (T ) ¯
= S (0) ¯E e + nO (∆t∆W ) + nO (∆W ) + nO (∆t) − E e ¯
Y
n−1
(∵ [1 + µ∆t + σW (ti )]
i=0
¯ £ ¤¯
= S (0) ¯E nO (∆t∆W ) + nO (∆W )3 + nO (∆t)2 ¯
8
Note that £ ¤
E [O (∆t∆W )] = 0, E O (∆W )3 = 0
this leads to the order of weak convergence for Euler scheme:
¯ h i ¯ ¯ £
¯ ¯ 2 ¤¯
¯E Ŝ (T ) − E [S (T )]¯ = S (0) ¯E nO (∆t) ¯
= S (0) nO (∆t)2
T
= O (∆t)2
∆t
= O (∆t)
which has order one.
The main difference between the strong and weak convergence lies in whether the odd
powered terms, such as ∆W , ∆W 3 , can be eliminated:
¯ ¯
¯ ¯
For strong convergence: E [|O (∆W ) + h.o.t.|] = E ¯O (∆t)1/2 + h.o.t.¯
For weak convergence : |E [O (∆W ) + h.o.t.]| = |0 + h.o.t.|
where h.o.t. is “higher order terms”.
Finally, we try to get a little more intuition of why the Euler scheme has order one of
strong convergence for the process
dS = µdt + σdW
when σ is deterministic. In this case, the Euler scheme is
Ŝ (ti+1 ) = Ŝ (ti ) + µ (ti ) ∆t + σ (ti ) ∆W (ti )
therefore at tn = T,
X
n−1 X
n−1
Ŝ (T ) = S (0) + µ (ti ) ∆t + σ (ti ) ∆W (ti ) .
i=0 i=0
we have
X
n−1 Z T
Ŝ (T ) − S (T ) = µ (ti ) ∆t − µ (t) dt
i=0 0
X
n−1 Z T
+ σ (ti ) ∆W (ti ) − σ (t) dW (t)
|i=0
{z } |0 {z }
≡B
≡A
9
the first line of which clearly has the O (∆t) error. Now we analyze the error for the second
line in the above equation. Define
X
n−1
A ≡ σ (ti ) ∆W (ti ) ,
i=0
Z T
B ≡ σ (t) dW (t)
0
Note that
and variance
X
n−1
VarA = σ 2 (ti ) ∆t. (18)
i=0
since the right-hand side of the equation above is a Gaussian random variable with
mean zero and variance the same as Eq. (18).
Hence, v
u n−1 s
uX Z T
W (T ) t
A−B = √ σ 2 (ti ) ∆t − σ 2 (t) dt .
T i=0 0
10
Since Z
X
n−1 T
2
σ (ti ) ∆t − σ 2 (t) dt = O (∆t) ,
i=0 0
X
n−1 Z T
2
σ (ti ) ∆t = σ 2 (t) dt + O (∆t) .
i=0 0
RT
∴ By defining Σ ≡ 0
σ 2 (t) dt, we have
W (T ) hp √ i
A−B = √ Σ + O (∆t) − Σ
T " #
r
W (T ) √ O (∆t) √
= √ Σ 1+ − Σ
T Σ
· µ ¶ ¸
W (T ) √ 1 O (∆t) 2
√
= √ Σ 1+ + O (∆t) − Σ
T 2 Σ
W (T ) 1 O (∆t)
= √ √
T 2 Σ
Therefore,
1 W (T ) O (∆t)
Ŝ (T ) − S (T ) = O (∆t) + √ √
2 T Σ
= O (∆t)
i.e., the Euler scheme has strong convergence of order one for deterministic σ (t) .
11