全部版块 我的主页
论坛 金融投资论坛 六区 金融学(理论版)
1522 6
2011-02-01
1. (1)Modify the program AmPutLattice (as below) so it applies to calls. Then compute American option prices with parameters asS0=50, K=54, T = 5 months, risk free rate = 3%, and volatility = 30% and with three values for N=1000, 2000, and 5000. Compare your values with the output of blsprice and binprice.


function price = AmPutLattice(S0,K,r,T,sigma,N)
% Precompute invariant quantities
deltaT = T/N;
u=exp(sigma * sqrt(deltaT));
d=1/u;
p=(exp(r*deltaT) - d)/(u-d);
discount = exp(-r*deltaT);
p_u = discount*p;
p_d = discount*(1-p);
% set up S values
SVals = zeros(2*N+1,1);
SVals(N+1) = S0;
for i=1:N
SVals(N+1+i) = u*SVals(N+i);
SVals(N+1-i) = d*SVals(N+2-i);
end
% set up terminal values
PVals = zeros(2*N+1,1);
for i=1:2:2*N+1
PVals(i) = max(K-SVals(i),0);
end
% work backwards
for tau=1:N
for i= (tau+1):2:(2*N+1-tau)
hold = p_u*PVals(i+1) + p_d*PVals(i-1);
PVals(i) = max(hold, K-SVals(i));
end
end
price = PVals(N+1);


(2)Back to the American put with the same parameters and N=5. Use AmPutLattice to determine whether this option is going to be exercised one month before expiration. [Hint: you need to determine for each node on the tree whether it is an "exercise node" or not.]
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-2-1 09:31:59
不懂,帮顶
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-2-1 11:19:02
啊,感动哇,谢谢帮顶
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-2-2 12:28:40
it needs to pay, haha!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-2-2 22:47:38
呵呵,早上已经把这道题交了,谢谢大家关注哈
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-2-4 13:52:53
这个怎么用啊 看不懂呀!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群