function [LCL,CL] = jumpgarch(u,h,lambda,delta,theta)
% Jump GARCH function evaluation procedures. jumpGARCH is a function for a
% standard jump GARCH, while ARJIGARCH is for the ARJI-Garch model of Chan and
% Maheu(2002), "Conditional Jump Dynamics in Stock Market Returns", JBES, vol 20,
% no. 3, 377-389. The names of the components are taken from that paper.
%
% kmax, which is the maximum value of jumps to be used in the infinite sum, is a
% global variable which needs to be set before using either of these procedures.
% The default is 20.
%
% Note that in evaluating the likelihood, rather than use the standard
% exp(-lambda) integrating constant for the Poisson, this sums the kernels of the
% Poisson into wt and divides by that. In effect, this computes the log likelihood
% conditional on the number of jumps being <= kmax. This should make the
% estimation less sensitive to the choice of kmax. (Even if the final converged
% likelihood is unaffected by a slight change in kmax, it's possible for function
% evaluations for large test values of lambda to produce misleading results if the
%standard integrating constant is used).
%
% Revision Schedule:
% 08/2008 Written by Tom Doan, Estima
% 本程序根据Tom Doan(2008)的Rats程序改编,在此感谢Tom Doan!
% u = current residual
% h = base GARCH variance (before jumps)
% lambda = Poisson intensity for jumps
% deltasq = variance of Normal jump process
% theta = mean of Normal jump process
% 09/2011 Written by Yu Cong, Hunan University
% 设置最大累加次数
kmax=20;
T=size(u,1);
% 初始化 wt CL
wt=0.0;
CL=zeros(T,1);
% 计算似然函数值
for k=0:kmax
jsd = sqrt(h+k*delta.^2);
jp = exp(k*log(lambda)-gammaln(k+1));
wt = wt+jp;
CL = CL + jp*(2*pi)^(-0.5)*exp(-0.5*((u-k*theta)./jsd).^2)./jsd;
end
CL = log(CL/wt);
LCL = sum(CL);
LCL = -LCL;
带跳跃的GARCH模型MATLAB程序
5星 · 超过95%的资源 需积分: 48 170 浏览量
2013-01-13
00:01:42
上传
评论 12
收藏 2KB RAR 举报
johnnie3021
- 粉丝: 1
- 资源: 1
最新资源
- 基于SpringBoot+Vue3快速开发平台、自研工作流引擎源码设计.zip
- docker安装部署全流程
- 基于树莓派的人脸识别系统python源码+项目部署说明+超详细代码注释.zip
- Python和R爬取分析赶集网北京二手房数据.zip
- Python和R爬取分析赶集网北京二手房数据.zip
- Java知识体系最强总结(2021版).txt
- Python知识点Python知识点Python知识点Python知识点Python知识点PythonPython知识点.txt
- Java开发基于seetaface6的人脸识别(活体检测)的封装源码.zip
- JSP在线失物招领管理平台源码.zip
- JSP在线旅游美食展现管理系统源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈