



下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年综合类-尿素车间工-尿素车间高级工历年真题摘选带答案(5卷单选题100题)
- 2025年综合类-天津住院医师神经内科-神经内科操作技术历年真题摘选带答案(5卷单选题100题)
- 2025年综合类-基金销售从业资格考试-证券投资基金的监管历年真题摘选带答案(5卷单选一百题)
- 2025年综合类-城市规划管理与法规-城市规划相关知识-第八章城市生态与环境历年真题摘选带答案(5卷单选一百题)
- 2025年综合类-助理理财规划师基础知识-税收基础历年真题摘选带答案(5卷单选题100题)
- 2025年综合类-初级中学音乐-高级中学音乐-第六章音乐与相关艺术及学科历年真题摘选带答案(5卷单选题100题)
- 2025年院感信息追踪培训计划
- 【正版授权】 IEC 61196-1-102:2025 RLV EN Coaxial communication cables - Part 1-102: Electrical test methods - Test for insulation resistance of cable dielectric
- 【正版授权】 IEC 61225:2025 EN Nuclear power plants - Instrumentation,control and electrical power systems - Requirements for static uninterruptible DC and AC power supply systems
- 小学生心理健康直面青春期
- 财务共享公司建设方案
- 2025至2030内燃机市场发展趋势分析与未来投资战略咨询研究报告
- 2025年陕西延长石油招聘笔试备考题库(带答案详解)
- 黄大年式教学团队申报材料
- 防汛物资检查记录
- 出香港货物发票样板样本空白
- 医院免疫室标准化操作程序免疫室内质量控制操作指南(ELISA)人民医院检验科免疫SOP人民医院质量管理体系课件
- 柳州市柳东新区南庆安置区项目工程基坑支护方案
- 卵巢肿瘤ppt课件
- 发电可靠性考试真题及答案
- 工程塑料 第七章特种工程塑料
评论
0/150
提交评论