楼主: onlyasus
18920 20

关于dcc—garch模型的matlab程序使用求助(如何得到动态系数以及动态条件相关系数 [推广有奖]

11
愤然一书生 发表于 2014-5-6 22:36:28
dcc_mvgarch这个函数怎么写的呀?

12
lukeutd 发表于 2014-7-20 15:24:40
酱油哥哥 发表于 2013-8-23 21:50
感觉算错了,用R软件算出来的和别人发表的论文中的结果很相似,但是用楼主这个计算方法,出来的系数差别很大 ...
你好,请问一下R使用哪个包能计算动态相关系数哈?

13
梦醒之后 发表于 2014-8-4 21:16:27
lukeutd 发表于 2014-7-20 15:24
你好,请问一下R使用哪个包能计算动态相关系数哈?
mgarch包可做(需本地安装),或者是rmgarch包(R中自带)

14
lukeutd 发表于 2014-8-6 16:06:03
梦醒之后 发表于 2014-8-4 21:16
mgarch包可做(需本地安装),或者是rmgarch包(R中自带)
我现在碰到的问题是不知道怎么用R画图= = 你有没有尝试过用R画动态相关系数图?

15
梦醒之后 发表于 2014-8-6 16:15:55
lukeutd 发表于 2014-8-6 16:06
我现在碰到的问题是不知道怎么用R画图= = 你有没有尝试过用R画动态相关系数图?
我没做过这个模型,只是前一段时间看到过这2个软件包。画图的话,个人感觉你可以看看软件包里面的帮助,或者是看看R里面画图的软件包帮助。我觉得既然把相关系数的结果都运行出来了,就应该存在一个命令把图画出来。

16
lukeutd 发表于 2014-8-10 01:47:51
梦醒之后 发表于 2014-8-6 16:15
我没做过这个模型,只是前一段时间看到过这2个软件包。画图的话,个人感觉你可以看看软件包里面的帮助,或 ...
谢了 实际上我用的R包貌似能算出DCC的两个系数 但是包里面好像没有方法利用这个去求动态条件相关系数图

17
戴勒个戴 学生认证  发表于 2014-12-8 13:01:23
求解。。。输入数据应该是收益率吗?

18
lee9989 发表于 2015-5-12 14:05:48
楼主,你有dcc-garch的程序包吗,做毕设到现在还没编出来,很是着急,谢谢楼主!

19
qazujm 在职认证  发表于 2015-6-9 22:58:54
酱油哥哥 发表于 2013-8-23 21:50
感觉算错了,用R软件算出来的和别人发表的论文中的结果很相似,但是用楼主这个计算方法,出来的系数差别很大 ...
我也感觉不对。画出来的图像不对。

20
奔跑。 发表于 2015-6-26 13:50:08
luckyart 发表于 2012-6-10 16:35
问题解决了吗? 你自己帖子里面就给出了正确的方法啊。 Dcc_Ht(1,2) 就是条件协方差,Dcc_Ht(1,1)和Dcc_Ht( ...
你好,我做出的结果是这样的,不知道怎么读
[DCC_parameters,DCC_LL,DCC_Ht]=dcc_mvgarch(data,1,1,1,1);
DCC_corr=squeeze(DCC_Ht(1,2,:))./(squeeze(sqrt(DCC_Ht(1,1,:))).*squeeze(sqrt(DCC_Ht(2,2,:))));
plot(DCC_corr)
Estimating GARCH model for Series 1
Warning: Options LargeScale = 'off' and Algorithm = 'trust-region-reflective' conflict.
Ignoring Algorithm and running active-set algorithm. To run trust-region-reflective, set
LargeScale = 'on'. To run active-set without this warning, use Algorithm = 'active-set'.
> In fmincon at 445
  In fattailed_garch at 198
  In dcc_mvgarch at 82
Estimating GARCH model for Series 2
Warning: Options LargeScale = 'off' and Algorithm = 'trust-region-reflective' conflict.
Ignoring Algorithm and running active-set algorithm. To run trust-region-reflective, set
LargeScale = 'on'. To run active-set without this warning, use Algorithm = 'active-set'.
> In fmincon at 445
  In fattailed_garch at 198
  In dcc_mvgarch at 82


Estimating the DCC model
Warning: Options LargeScale = 'off' and Algorithm = 'trust-region-reflective' conflict.
Ignoring Algorithm and running active-set algorithm. To run trust-region-reflective, set
LargeScale = 'on'. To run active-set without this warning, use Algorithm = 'active-set'.
> In fmincon at 445
  In dcc_mvgarch at 98

____________________________________________________________
   Diagnostic Information

Number of variables: 2

Functions
Objective:                            dcc_mvgarch_likelihood
Gradient:                             finite-differencing
Hessian:                              finite-differencing (or Quasi-Newton)

Constraints
Nonlinear constraints:             do not exist

Number of linear inequality constraints:    1
Number of linear equality constraints:      0
Number of lower bound constraints:          2
Number of upper bound constraints:          0

Algorithm selected
   medium-scale: SQP, Quasi-Newton, line-search


____________________________________________________________
   End diagnostic information

                                Max     Line search  Directional  First-order
Iter F-count        f(x)   constraint   steplength   derivative   optimality Procedure
    0      3      1488.86    -0.009998                                         
    1      6      1486.36   5.351e-017            1        -60.8          318   

Local minimum found that satisfies the constraints.

Optimization completed because the objective function is non-decreasing in
feasible directions, to within the selected value of the function tolerance,
and constraints were satisfied to within the selected value of the constraint tolerance.

<stopping criteria details>

Active inequalities (to within options.TolCon = 1e-006):
  lower      upper     ineqlin   ineqnonlin
    1                                 
    2                                 

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2026-1-4 13:32