教学编号:2019-001号
那么这个文件夹出来很多年,怎么使用很多新学的学生还不会,这里只给出一个我修改的使用程序。其实严格来说不太规范的使用,因为可以按照作者的PDF说明用作者的两步法:第一步估计garch 分布函数(使用作者的文件夹里的函数,其中很多函数直接引用英国牛津大学keven sheppard 的 MFETOOLBOX 里的garch函数),那么如果需要用作者的原方法的,有必要的话我发帖 2019-002号教学。
这里是我个人使用 MATLABR R2019a ,利用官方econometric toolbox 里的garch 估计函数来修改的。请看源代码,文件名为:
garch_copula_test.m ,下划线最后test代表是我做的一个小测试。
程序到90行那里估计了garch 边缘分布,garch为非对称gjrGARCH模型,分布为 student t 分布 。
90行后工具箱函数会弹出对话框,点第二个选项,估计copula ,其中可以设定 tvp-copula 或者 Vine copula
这里只展示边缘分布估计gjrGARCH 的估计值和一个非vine copula 的估计值。
ARIMA(1,0,0) Model (t Distribution)
Effective Sample Size: 2664
Number of Estimated Parameters: 7
LogLikelihood: 7827.51
AIC: -15641
BIC: -15599.8
Value StandardError TStatistic PValue
_____ _____________ __________ ______
Constant -0.00 0.00 -0.86 0.39
AR{1} -0.01 0.02 -0.48 0.63
DoF 8.97 1.24 7.26 0.00
GJR(1,1) Conditional Variance Model (t Distribution)
Value StandardError TStatistic PValue
_____ _____________ __________ ______
Constant 0.00 0.00 2.72 0.01
GARCH{1} 0.91 0.01 71.79 0.00
ARCH{1} 0.02 0.01 2.48 0.01
Leverage{1} 0.10 0.02 5.60 0.00
DoF 8.97 1.24 7.26 0.00
copula 估计值:
Estimation output
parameter St. Error t-stats
---------------------------------
0.1908 0.029 6.6079
0.2263 0.026 8.6863
---------------------------------
Akaike: -455.7162
BIC: -443.9410
Log Likelihood: 229.858
---------------------------------
Estimation time is 120.07 seconds
enjoyi yours: daniel tulips liu