下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、多元 garch 模型预测的matlab 程序function parameters,loglikelihood, ht, likelihoods, stdresid,stderrors,a, b, scores= full_bekk_mvgarch(data,p,q,bekkoptions);% purpose:%to estimatea full bekk multivariate garch model.% usage:%parameters,loglikelihood, ht, likelihoods, stdresid,stderrors,a, b, scores= full_bek
2、k_mvgarch(data,p,q,options);% inputs:%data- a t by k matrix of zeromeanresiduals%p- the lag lengthof the innovation process%q- the lag lengthof the ar process%options- (optional) options for the optimization(fminunc)% outputs:%parameters- a (k*(k+1)/2+p*k2+q*k2vector of estimatedparameteters.f%or an
3、yk2 setof innovation or ar parametersx,%reshape(x,k,k)will give thecorrect matrix%to recoverc, useivech(parmaeters(1:(k*(k+1)/2)%loglikelihood - the loglikelihood of thefunction atthe optimum%ht- a k x k x t 3 dimension matrix of conditional covariances%likelihoods- a t by 1 vector of individual lik
4、elihoods%stdresid- a t by k matrix of multivariate standardizedresiduals%stderrors- a numparams2 square matrix of robust standaderrors(a(-1)*b*a(-1)*t(-1)%a- theestimatedinverseof thenon-robuststandarderrors%b- the estimatedcovarianceof tehscores%scores- a t by numparamsmatrix of individual scores%
5、needto try andgetsomesmartstartgin valuesif size(data,2) size(data,1)data=data;endt k=size(data);k2=k*(k+1)/2;scalaropt=optimset(fminunc);scalaropt=optimset(scalaropt,tolfun,1e-1,display,iter,diagnostics,on,diffmaxchange,1e-2);startingparameters=scalar_bekk_mvgarch(data,p,q,scalaropt);cchol=starting
6、parameters(1:(k*(k+1)/2);c=ivech(startingparameters(1:(k*(k+1)/2)*ivech(startingparameters(1:(k*(k+1)/2);newa=;newb=;for i=1:pnewa=newa diag(ones(k,1)*startingparameters(k*(k+1)/2)+i);endfor i=1:qnewb=newb diag(ones(k,1)*startingparameters(k*(k+1)/2)+i+p);endnewa=reshape(newa,k*k*p,1);newb=reshape(n
7、ewb,k*k*q,1);startingparameters=cchol;newa;newb;if nargin=6a=hessian_2sided(full_bekk_mvgarch_likelihood,parameters,data,p,q,k,k2,t);h=max(abs(parameters/2),1e-2)*eps(1/3);hplus=parameters+h;hminus=parameters-h;likelihoodsplus=zeros(t,length(parameters);likelihoodsminus=zeros(t,length(parameters);fo
8、r i=1:length(parameters)hparameters=parameters;hparameters(i)=hplus(i);holder,indivlike=full_bekk_mvgarch_likelihood(hparameters,data,p,q,k,k2,t);likelihoodsplus(:,i)=indivlike;endfor i=1:length(parameters)hparameters=parameters;hparameters(i)=hminus(i);holder,indivlike=full_bekk_mvgarch_likelihood(hparameters,data,p,q,k,k2,t);likelihoodsminus(:,i
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026黑龙江鹤岗市兴山区招聘公益性岗位人员30人考试备考题库及答案解析
- 2026上海市社会主义学院公开招聘专职教师笔试模拟试题及答案解析
- 2026年烟台科技学院招聘(273人)笔试模拟试题及答案解析
- 2026年阜阳市界首市中医院公开招聘专业技术人员考试备考题库及答案解析
- 2026湖南长沙市雨花湘一外国语中学春季合同制教师招聘考试参考题库及答案解析
- 2026年甘肃兰州铁路技师学院高校毕业生招聘考试备考试题及答案解析
- 2026年宠物行为训练与健康管理培训
- 2026中国国际商会新疆商会人员招聘20人考试参考题库及答案解析
- 2026江苏南京大学化学学院科研人员招聘笔试备考题库及答案解析
- 2026曲靖市事业单位公开招聘工作人员(889人)考试备考题库及答案解析
- 重庆市2026年高一(上)期末联合检测(康德卷)化学+答案
- 2026年湖南郴州市百福控股集团有限公司招聘9人备考考试题库及答案解析
- 【四年级】【数学】【秋季上】期末家长会:数海引航爱伴成长【课件】
- 2025年中国船舶集团有限公司招聘笔试参考题库含答案解析
- 办公楼物业服务的品质提升策略
- 养殖场土地租赁合同
- JBT 8200-2024 煤矿防爆特殊型电源装置用铅酸蓄电池(正式版)
- (正式版)SHT 3078-2024 立式圆筒形料仓工程设计规范
- 计算机就业能力展示
- 设备维修团队的协作与沟通
- 华为三支柱运作之HRBP实践分享概要课件
评论
0/150
提交评论