还有,关于GARCH模型,我现在也是在学这个,我写了一个程序,不知道为什么,好像都没结果,大家可不可以帮忙看下,谢谢
a=[7.8087;7.8149;7.823;7.822;7.8221];
fox=price2ret(a);
spec=garchset('p',1,'q',1);
[coeff,errors,LLF]=garchfit(spec,fox);horizon = 30; 
[sigmaForecast,meanForecast,sigmaTotal,meanRMSE] = ...
      garchpred(coeff,fox,horizon);