电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

随机过程matlab程序VIP免费

随机过程matlab程序_第1页
1/16
随机过程matlab程序_第2页
2/16
随机过程matlab程序_第3页
3/16
%PPT例2一维正态密度与二维正态密度symsxy;s=1;t=2;mu1=0;mu2=0;sigma1=sqrt((1+s^2));sigma2=sqrt((1+t^2));x=-6:0.1:6;f1=1/sqrt(2*pi*sigma1)*exp(-(x-mu1).^2/(2*sigma1^2));f2=1/sqrt(2*pi*sigma2)*exp(-(x-mu2).^2/(2*sigma2^2));plot(x,f1,'r-',x,f2,'k-.')rho=(1+s*t)/(sigma1*sigma2);f=1/(2*pi*sigma1*sigma2*sqrt(1-rho^2))*exp(-1/(2*(1-rho^2))*((x-mu1)^2/sigma1^2-2*rho*(x-mu1)*(y-mu2)/(sigma1*sigma2)+(y-mu2)^2/sigma2^2));ezsurf(f)-6-4-2024600.050.10.150.20.250.30.35-505-50500.050.10.150.2x44798133900177/281474976710656exp(-5/2x2+3xy-y2)y%%Thedailylogreturnsonthestockhaveameanof0.05/yearandastandarddeviationof0.23/year.Thesecanbeconvertedtoratespertradingdaybydevidingby253andsqrt(253),respectively.Question1:Whatistheprobabilitythatthevalueofthestockwillbebelow$950,000attheclosedayofatleastoneofthenext45tradingdays?clear;niter=1.0E5;%numberofiterationsbelow=repmat(0,1,niter);%setupstoragerandn('seed',0);fori=1:niterr=normrnd(0.05/253,0.23/sqrt(253),1,45);%generaterandomnumberslogPrice=log(1.0E6)+cumsum(r);minlogP=min(logPrice);%minmumpriceovernext45daysbelow(i)=sum(minlogP=t1(i)&tt1(m)N=[N,m];endendplot(0:0.1:(t1(m)+1),N,'r-')%输出:01020304050607080901000102030405060708090100%P48非齐次泊松过...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

随机过程matlab程序

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部