全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件
5148 7
2010-01-16
现在想自己写个程序估计GARCH(1,1)模型:
X_t=\sigma_t\epsilon_t,
\sigma_t^2=\alpha_0+\alpha_1X_{t-1}+\beta_1\sigma_{t-1}^2
在给定实际数据进行估计时,我们知道的是X_t , \sigma_t怎么得到???
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-1-16 21:33:49
这个问题好,问的好,我支持一下
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-1-16 21:48:43
LZ是用什么软件作的?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-1-16 21:51:41
3# A20514019

我用matlab,我知道有garchfit这个命令!
但是现在的garch模型不是常见的,没发用已有的命令!
想现在写出似然函数,然后优化!
想知道的是似然函数中\sigma_t^2是怎么处理的!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-1-16 21:55:13
这个问题的适用性很广了,实际上很多的统计模型都适用的
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-1-17 01:25:07
zfk 发表于 2010-1-16 21:28
现在想自己写个程序估计GARCH(1,1)模型:
X_t=\sigma_t\epsilon_t,
\sigma_t^2=\alpha_0+\alpha_1X_{t-1}+\beta_1\sigma_{t-1}^2
在给定实际数据进行估计时,我们知道的是X_t , \sigma_t怎么得到???
Here is the proc model in SAS with simulated data.
For more details, please look the link,

http://support.sas.com/rnd/app/examples/ets/garchex/#ets_webex.garchex.garch
   %let df = 7.5;
   %let sig1 = 1;
   %let sig2 = 0.1 ;
   %let var2 = 2.5;
   %let nobs = 1000 ;
   %let nobs2 = 2000 ;
   %let arch0 = 0.1 ;
   %let arch1 = 0.2 ;
   %let garch1 = 0.75 ;
   %let intercept = 0.5 ;
   
   data normal;
      lu = &var2;
      lh = &var2;
      do i= -500  to &nobs ;
              /* GARCH(1,1) with normally distributed residuals */
         h = &arch0 + &arch1*lu**2 + &garch1*lh;
         u = sqrt(h) * rannor(12345) ;
         y = &intercept + u;
         lu = u;
         lh = h;
         if i > 0 then output;
      end;
   run;


    /* Estimate GARCH(1,1) with normally distributed residuals with MODEL*/   
   proc model data = normal ;
       parms arch0 .1 arch1 .2 garch1 .75 ;
       /* mean model */
       y = intercept ;
       /* variance model */
       h.y = arch0 + arch1*xlag(resid.y**2,mse.y) +
             garch1*xlag(h.y,mse.y) ;
       /* fit the model */
       fit y / method = marquardt fiml ;
   run ;
   quit ;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群