收益率波动率的计算.docVIP

  • 2587
  • 0
  • 约7.51千字
  • 约 13页
  • 2016-04-03 发布于天津
  • 举报
收益率波动率的计算.doc

收益率波动率的计算 观测值: 收益率: 历史波动率: 移动平均模型:用过去M天的收益率的历史波动率来估计今天的波动率 ,比如取 % using moving average model to estimate volatility % date from 1990-12-19 to 2003-9-19 clear M=[20,60]; m=length(M); z=xlsread(index);z1=datenum(1990,12,19)-z(1,1);z2=z(:,1)+z1; x=z(:,2); x=price2ret(x); n=length(x); for i=1:m for j=1:n-M(i)+1 a=x(j:M(i)+j-1); b(M(i)+j-1,i)=std(a); end end io=find(b==0); b(io)=NaN; plot(z2(2:end),b) datetick(x,23); legend(20 days,60 days,1) xlabel(date) ylabel(volatility) title(volatility of shanghai composite daily return with MA model) 指数加权平均模型: 经验表明:一般对于日收益率,对于月收益率 % u

文档评论(0)

1亿VIP精品文档

相关文档