% Monte Carlo for a European put - PowerPoint PPT Presentation

1 / 24
About This Presentation
Title:

% Monte Carlo for a European put

Description:

S = 4; E = 5; sigma = 0.3; r = 0.04; T = 1; Dt = 1e-3; N = T/Dt; M = 100000; ... S = 4; E = 4; sigma = 0.25; r = 0.03; T = 1; Dt = 1e-2; N = T/Dt; M = 1e4; ... – PowerPoint PPT presentation

Number of Views:39
Avg rating:3.0/5.0
Slides: 25
Provided by: ewa2
Category:
Tags: carlo | european | monte | put | sigma

less

Transcript and Presenter's Notes

Title: % Monte Carlo for a European put


1
(No Transcript)
2

3
(No Transcript)
4
(No Transcript)
5
(No Transcript)
6
(No Transcript)
7
(No Transcript)
8
(No Transcript)
9
(No Transcript)
10
Monte Carlo for a European put   randn('state'
,100)   Problem and method
parameters S 4 E 5 sigma
0.3 r 0.04 T 1 Dt 1e-3 N T/Dt M
100000
  V zeros(M,1) for i
1M Sfinal Sexp((r-0.5sigma2)Tsigmasqr
t(T)randn) V(i) exp(-rT)max(E-Sfinal,0)
end aM mean(V) bM std(V) conf aM -
1.96bM/sqrt(M), aM 1.96bM/sqrt(M)
11
(No Transcript)
12
(No Transcript)
13
(No Transcript)
14
(No Transcript)
15
(No Transcript)
16
randn('state',100)   Problem
and method parameters S 4 E
5 sigma 0.3 r 0.04 T 1 Dt 1e-3 N
T/Dt M 100000
  V zeros(M,1)
Vanti zeros(M,1) for i 1M Xrandn
Sfinal Sexp((r-0.5sigma2)Tsigmasqrt(T)X)
Sfinalanti Sexp((r-0.5sigma2)T-sigmasq
rt(T)X) V(i) exp(-rT)max(E-Sfinal,0)
Vanti(i) exp(-rT)max(E-Sfinalanti,0) end V
(VVanti)./2 aM mean(V) bM std(V) conf
aM - 1.96bM/sqrt(M), aM 1.96bM/sqrt(M)
17
(No Transcript)
18
(No Transcript)
19
(No Transcript)
20

21
(No Transcript)
22
(No Transcript)
23
randn('state',100)   Problem and method
parameters S 4 E 4 sigma 0.25
r 0.03 T 1 Dt 1e-2 N T/Dt M
1e4 Geom Asian exact mean
sigsqT sigma2T(N1)(2N1)/(6N
N) muT 0.5sigsqT (r - 0.5sigma2)T(N1)/(
2N) d1 (log(S/E) (muT 0.5sigsqT))/(sqrt(s
igsqT)) d2 d1 - sqrt(sigsqT) N1
0.5(1erf(d1/sqrt(2))) N2 0.5(1erf(d2/sqrt(2
))) geo exp(-rT)( Sexp(muT)N1 - EN2
) Sp
ath Scumprod(exp((r-0.5sigma2)Dtsigmasqrt(
Dt)randn(M,N)),2) Standard Monte
Carlo arithave mean(Spath,2) Parith
exp(-rT)max(arithave-E,0) payoffs Pmean
mean(Parith) Pstd std(Parith) confmc
Pmean-1.96Pstd/sqrt(M), Pmean1.96Pstd/sqrt(M)
  Control Variate geoave exp((1/N)sum(log(Sp
ath),2)) Pgeo exp(-rT)max(geoave-E,0)
geo payoffs Z Parith geo - Pgeo
control variate version Zmean
mean(Z) Zstd std(Z) confcv
Zmean-1.96Zstd/sqrt(M), Zmean1.96Zstd/sqrt(M)

24
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com