bekk matlab,关于GARCH-BEKK的输出结果

这段代码展示了如何在MATLAB中估计一个完整的BEKK多变量GARCH模型。输入包括残差数据、创新过程的滞后长度和AR过程的滞后长度。输出包括参数估计、对数似然值、条件协方差矩阵Ht等。参数数量为24个,可能包含了对角矩阵C、A和B的参数。Ht的值有36个,对应于时间序列的长度。对于参数含义和Ht的大小存在疑问。
摘要由CSDN通过智能技术生成

大家好 我用了这个源代码

function [parameters, loglikelihood, Ht, likelihoods, stdresid, stderrors, A, B, scores]  = full_bekk_mvgarch(data,p,q, BEKKoptions);

% PURPOSE:

%      To Estimate a full BEKK multivariate GARCH model.  %

%

% USAGE:

%      [parameters, loglikelihood, Ht, likelihoods, stdresid, stderrors, A, B, scores]  = full_bekk_mvgarch(data,p,q,options);

%

%

% INPUTS:

%      data          - A t by k matrix of zero mean residuals

%      p             - The lag length of the innovation process

%      q             - The lag length of the AR process

%      options       - (optional) Options for the optimization(fminunc)

%

% OUTPUTS:

%      parameters    - A (k*(k+1))/2+p*k^2+q*k^2 vector of estimated parameteters. F

%                         or any k^2 set of Innovation or AR parameters X,

%                         reshape(X,k,k) will give the correct matrix

%                         To recover C, use ivech(parmaeters(1:(k*(k+1))/2)

%      loglikelihood - The loglikelihood of the function at the optimum

%      Ht            - A k x k x t 3 dimension matrix of conditional covariances

%      likelihoods   - A t by 1 vector of individual likelihoods

%      stdresid      - A t by k matrix of multivariate standardized residuals

%      stderrors     - A numParams^2 square matrix of robust Standad Errors(A^(-1)*B*A^(-1)*t^(-1))

%      A             - The estimated inverse of the non-robust Standard errors

%      B             - The estimated covariance of teh scores

%      scores        - A t by numParams matrix of individual scores

% need to try and get some smart startgin values

if size(data,2) > size(data,1)

data=data';

end

[t k]=size(data);

k2=k*(k+1)/2;

scalaropt=optimset('fminunc')

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值