Michel Guirguis
2015-10-01 07:48:57 UTC
Good morning,
I have a problem with the cumulative distribution function in calculating derivatives. I am getting a call option figure of 2.5961 while it should be 2.9081. Could you please help.
call = 50*exp(-0.02*0.5)*cumdist*(d1)-50*exp(-0.03*0.5)*cumdist*(d2)
Thanks,
Michel
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
I have a problem with the cumulative distribution function in calculating derivatives. I am getting a call option figure of 2.5961 while it should be 2.9081. Could you please help.
S=50
K=50
r=0.03
q=0.02
sig=0.20
T=0.5
from math import*
d1=(log(S/K)+(r-q+(sig*sig)*0.5)*T)/(sig*sqrt(T))
d1
0.10606601717798211K=50
r=0.03
q=0.02
sig=0.20
T=0.5
from math import*
d1=(log(S/K)+(r-q+(sig*sig)*0.5)*T)/(sig*sqrt(T))
d1
d2 =d1-sig*sqrt(T)
d2
-0.03535533905932742d2
call = 50*exp(-0.02*0.5)*cumdist*(d1)-50*exp(-0.03*0.5)*cumdist*(d2)
call
2.596102990952506Thanks,
Michel
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor