楼主: xuenesta
3088 14

[期权交易] GARCH波动过大的问题 [推广有奖]

  • 2关注
  • 2粉丝

副教授

22%

还不是VIP/贵宾

-

威望
0
论坛币
523 个
通用积分
68.2719
学术水平
6 点
热心指数
3 点
信用等级
0 点
经验
61706 点
帖子
384
精华
0
在线时间
781 小时
注册时间
2010-12-27
最后登录
2024-2-17

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
根据蔡瑞胸老师《金融数据分析导论》第177页到178页NGARCH模型的代码,用日经225和恒生指数的日数据估算模型的参数。参数估计出来后,各种指标都非常好。
但是,导出波动率后,发现波动率非常大,普遍在100%左右,最高的甚至700%。请问有没有人知道这是怎么回事啊?
二维码

扫码加我 拉你入群

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

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

关键词:GARCH ARCH ARC RCH GARCH模型 恒生指数 模型 左右

沙发
Chemist_MZ 在职认证  发表于 2014-11-1 07:05:50 |只看作者 |坛友微信交流群
Can you provide more details? Thanks

使用道具

藤椅
xuenesta 发表于 2014-11-3 09:04:00 |只看作者 |坛友微信交流群
Chemist_MZ 发表于 2014-11-1 07:05
Can you provide more details? Thanks
"Ngarch" <- function(rtn){
# Estimation of a non-symmertic GARCH, NGARCH(1,1), model.
# Assume normal innovations
# rtn: return series
#
# The likelihood function "glkn" can be modified to fit more general NGARCH
#  models.
write(rtn,file='tmp.txt',ncol=1)
# obtain initial estimates
mu=mean(rtn)
par=c(mu,0.01,0.8,0.01,0.7)
#
#
mm=optim(par,glkn,method="Nelder-Mead",hessian=T)
low=c(-10,0,0,0,0)
upp=c(10,1,1,0.4,2)
#mm=optim(par,glkn,method="L-BFGS-B",hessian=T,lower=low,upper=upp)
## Print the results
par=mm$par
H=mm$hessian
Hi = solve(H)
cat(" ","\n")
cat("Estimation results of NGARCH(1,1) model:","\n")
cat("estimates: ",par,"\n")
se=sqrt(diag(Hi))
cat("std.errors: ",se,"\n")
tra=par/se
cat("t-ratio: ",tra,"\n")
# compute the volatility series and residuals
ht=var(rtn)
T=length(rtn)
if(T > 40)ht=var(rtn[1:40])
at=rtn-par[1]
for (i in 2:T){
sig2t=par[2]+par[3]*ht[i-1]+par[4]*(at[i-1]-par[5]*sqrt(ht[i-1]))^2
ht=c(ht,sig2t)
}
sigma.t=sqrt(ht)
Ngarch <- list(residuals=at,volatility=sigma.t)
}

glkn <- function(par){
rtn=read.table("tmp.txt")[,1]
glkn=0
ht=var(rtn)
T=length(rtn)
if(T > 40)ht=var(rtn[1:40])
at=rtn[1]-par[1]
for (i in 2:T){
ept=rtn-par[1]
at=c(at,ept)
sig2t=par[2]+par[3]*ht[i-1]+par[4]*ht[i-1]*(at[i-1]/sqrt(ht[i-1])-par[5])^2
ht=c(ht,sig2t)
glkn=glkn + 0.5*(log(sig2t) + ept^2/sig2t)
}
glkn
}

使用道具

板凳
xuenesta 发表于 2014-11-3 09:14:42 |只看作者 |坛友微信交流群
Chemist_MZ 发表于 2014-11-1 07:05
Can you provide more details? Thanks
nikkeigarchvol.txt (22.92 KB) data.zip (79.03 KB) 本附件包括:
  • hangsenggarchvol.txt
  • nikkei.csv
  • nikkeigarchvol.txt
  • hangseng.csv
hangsenggarchvol.txt (23.54 KB)
这里是附件

使用道具

报纸
Chemist_MZ 在职认证  发表于 2014-11-3 10:30:30 |只看作者 |坛友微信交流群
xuenesta 发表于 2014-11-3 09:14
这里是附件
Looks no big problem in the code. I don't use R so I can't run it. Can you provide the estimation results?

使用道具

地板
xuenesta 发表于 2014-11-4 09:23:16 |只看作者 |坛友微信交流群
Chemist_MZ 发表于 2014-11-3 10:30
Looks no big problem in the code. I don't use R so I can't run it. Can you provide the estimation  ...
日经的garch的vol在nikkeigarchvol中,实际波动在zip中nikkei文件中的classic parkison yangandzhang三栏是三种

使用道具

7
xuenesta 发表于 2014-11-4 09:23:48 |只看作者 |坛友微信交流群
xuenesta 发表于 2014-11-4 09:23
日经的garch的vol在nikkeigarchvol中,实际波动在zip中nikkei文件中的classic parkison yangandzhang三栏 ...
实际波动率的算法。恒生的大概结果差不多,就没有贴。

使用道具

8
Chemist_MZ 在职认证  发表于 2014-11-4 10:11:15 |只看作者 |坛友微信交流群
xuenesta 发表于 2014-11-4 09:23
实际波动率的算法。恒生的大概结果差不多,就没有贴。
Sorry, I mean your estimated model parameters. Thanks,

使用道具

9
xuenesta 发表于 2014-11-4 20:20:34 |只看作者 |坛友微信交流群
Chemist_MZ 发表于 2014-11-4 10:11
Sorry, I mean your estimated model parameters. Thanks,
Estimation results of NGARCH(1,1) model:
estimates:  -0.01844564 0.02974094 0.8907237 0.06205228 0.7921438
std.errors:  0.04300063 0.01096994 0.01738296 0.01205084 0.1824911
t-ratio:  -0.4289622 2.711132 51.24121 5.149206 4.340726

使用道具

10
xuenesta 发表于 2014-11-4 20:29:11 |只看作者 |坛友微信交流群
xuenesta 发表于 2014-11-4 20:20
Estimation results of NGARCH(1,1) model:
estimates:  -0.01844564 0.02974094 0.8907237 0.06205228 ...
模型为
r(t)=u+a(t) a(t)=sigma(t)*norm(0,1)
sigma(t)=b0+b1sigma2(t-1)+b2(a(t-1)-theta*sima(t-1))^2

使用道具

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

本版微信群
加好友,备注jr
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-28 18:11