全部版块 我的主页
论坛 提问 悬赏 求职 新闻 读书 功能一区 经管百科 爱问频道
948 0
2013-06-13

下面是只有一种价格跳动Yi ~ U(1.1, 1.3)的代码,跪求
where Yi ~ U(1.1,1.3) with p=0.4 and Yi~ U(0.7, 0.9)with p=0.6
这各个代码怎么写嘞
for s = 1:w
   
    X = random('Poisson',T*lambda);%compute the number of jumps in the period of deltat
    Y=1.1+rand(1,X)*(1.3-1.1);%generate the intensity of each jump
    M=prod(Y);%compute the cumulative intensity of and jumps in the period of deltat
    deltaw = random('Normal',0,sqrt(T),1,1);
    ST(s) = S0*exp((r-sigma^2/2)*T+sigma*deltaw)*M; % solution by Equation
end
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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