%参数设置
ExpReturn=[0.01 0.03 0.05];
ExpCovariance=[0.002607 7.21E-05 6.13E-05
7.21E-05 0.001972 3.22E-05
6.13E-05 3.22E-05 0.002805];
NumObs=1000;
%产生随机序列
RetSeries=portsim(ExpReturn,ExpCovariance, NumObs);
Price1000=10*(ones(1000,3)+ RetSeries);
%取分位数(置信度 95%下的最低价格)
y=prctile(price1000,0.05)
end
VaR95=10-y
评论0
最新资源