Docsity

Simulating Stock Paths - Solved Assignment | CSCI 6961, Assignments of Computer Science

Toggle sidebar
bg1
CSCI 6961 RPI
Introduction to Computational Finance Fall 2008
ASSIGNMENT 5, Solutions
1 (25 (25) points) Simulating Stock Paths
For (a) and (b), the main things to obtain are that λ+, λ−and psatisfy
λ+=eµ∆t+rσ2∆t(1−p)
p≈1 + µ∆t+sσ2∆t(1 −p)
p, λ−=eµ∆t−rσ2∆tp
1−p≈1 + µ∆t−sσ2∆tp
1−p.
Given p, µ, σ, ∆twe obtain λ±; ˜p=er∆t−λ−
λ+−λ−
.We use λ±,˜pto simulate paths in (a), (b). In
(c), we use ∆ log S∼N((r−1
2σ2)∆t, σ√∆t), from which we obtain Sby exponentiation.
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
0.6
0.8
1
1.2
1.4
1.6
1.8
2
2.2
time
S
∆ t=0.1
∆ t=0.01
∆ t=0.001
∆ t=0.0001
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
0.6
0.8
1
1.2
1.4
1.6
1.8
2
time
S
∆ t=0.1
∆ t=0.01
∆ t=0.001
∆ t=0.0001
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
0.6
0.7
0.8
0.9
1
1.1
1.2
1.3
1.4
time
S
∆ t=0.1
∆ t=0.01
∆ t=0.001
∆ t=0.0001
(a) (b) (c)
2 (25 (25) points) Pricing Options Using Monte Carlo
You get an error estimate by computing the std and dividing by √K, where Kis the number
of Monte Carlo paths. In all cases, about 20,000 paths should give error of order 0.001.
(a) The analytic price is C(1,1,2) = 0.1407, and all methods should get something close to
this.
(b) For the continuous model, I obtained B(1,1,0.95,2) for various ∆t,
∆tPrice
0.1 0.026 ±0.001
0.01 0.033 ±0.001
0.001 0.034 ±0.001
0.0001 0.036 ±0.001
1
pf2

Partial preview of the text

Download Simulating Stock Paths - Solved Assignment | CSCI 6961 and more Assignments Computer Science in PDF only on Docsity!

CSCI 6961 RPI

Introduction to Computational Finance Fall 2008

ASSIGNMENT 5, Solutions

1 (25 (25) points) Simulating Stock Paths

For (a) and (b), the main things to obtain are that λ+, λ− and p satisfy

λ+ = e

μ∆t+

r σ^2 ∆t(1−p) p (^) ≈ 1 + μ∆t +

σ^2 ∆t(1 − p) p

, λ− = e

μ∆t−

r σ^2 ∆tp 1 −p (^) ≈ 1 + μ∆t −

σ^2 ∆tp 1 − p

Given p, μ, σ, ∆t we obtain λ±; ˜p = e

r∆t−λ− λ+−λ−.^ We use^ λ±,^ p˜^ to simulate paths in (a), (b). In (c), we use ∆ log S ∼ N((r − 12 σ^2 )∆t, σ

∆t), from which we obtain S by exponentiation.

0.6 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

1

2

time

S

∆ ∆ t=0.1 t=0. ∆ ∆ t=0.001 t=0.

0.6 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

1

2

time

S

∆ ∆ t=0.1 t=0. ∆ ∆ t=0.001 t=0.

0.6 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

1

time

S

∆ ∆ t=0.1 t=0. ∆ ∆ t=0.001 t=0.

(a) (b) (c)

2 (25 (25) points) Pricing Options Using Monte Carlo

You get an error estimate by computing the std and dividing by

K, where K is the number of Monte Carlo paths. In all cases, about 20,000 paths should give error of order 0.001.

(a) The analytic price is C(1, 1 , 2) = 0.1407, and all methods should get something close to this.

(b) For the continuous model, I obtained B(1, 1 , 0. 95 , 2) for various ∆t,

∆t Price 0.1 0.026 ± 0. 0.01 0.033 ± 0. 0.001 0.034 ± 0. 0.0001 0.036 ± 0.

Can you explain why as the ∆t decreases, the price increases?

(c) Compute A(1, 2), for three possible definitions of “average”: the harmonic, arithmetic, and geometric means. For ∆t = 0.001, I obtained (for the continuous model)

Average Price Harmonic 0.087 ± 0. Geometric 0.083 ± 0. Arithmetic 0.079 ± 0.

It is well known that harmonic mean is at most the geometric mean which is at most the arithmetic mean. Thus the strike prices are ordered in this way, which means that the prices are ordered in the reverse fashion, as the price will decrease as the strike increases.

(d) Compute M(1, 2). For the continuous model, I obtained

∆t Price 0.1 0.205 ± 0. 0.01 0.222 ± 0. 0.001 0.227 ± 0. 0.0001 0.232 ± 0.

Can you explain why as the ∆t decreases, the price increases?

3 Bonus - Unspecified Number of Points

The barrier and the minimum option values can be computed analytically. Can you compute them, and compare with your numerical estimates?