楼主: kungongren209
6823 7

[求助]如何在R中用极值理论计算VaR? [推广有奖]

  • 0关注
  • 0粉丝

已卖:446份资源

硕士生

24%

还不是VIP/贵宾

-

威望
0
论坛币
1915 个
通用积分
0.3000
学术水平
1 点
热心指数
4 点
信用等级
1 点
经验
2793 点
帖子
122
精华
0
在线时间
109 小时
注册时间
2007-4-5
最后登录
2017-12-29

楼主
kungongren209 发表于 2007-7-1 16:37:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

如何在R中用极值理论计算VaR?

麻烦哪位高手指点一下,不胜感激!

二维码

扫码加我 拉你入群

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

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

关键词:极值理论 VaR 不胜感激 高手指点 理论 VaR 极值

沙发
kungongren209 发表于 2007-7-6 17:11:00

怎么没人回答呢?

我顶!

藤椅
晓eve0529 发表于 2007-7-7 22:34:00
可以参考王春峰的金融风险管理一书,看懂后编程序,我是这样做的

板凳
yiyo900 发表于 2007-7-8 22:39:00

可以参考Market Risk Modeling in S-PLUS_Eric Zivot

#calculating VaR requires S-PLUS 7.0 and S+FinMetrics 2.0.

# compute log-returns

DowJones30.ret = getReturns(DowJones30)

# compute equally weighted portfolio return

w = rep(1,30)/30

port.ret.ts = rowSums(DowJones30.ret, weights=w)

#

# Extreme Value Theory

#

# compute mean excess plots for negative returns

# threshold appears to be near 0.015

par(mfrow=c(2,1))

tmp = meplot(-port.ret.ts)

shape.plot(-port.ret.ts, from=0.9, to=0.98)

par(mfrow=c(1,1))

# estimate parameters of GPD with u = 0.015

gpd.fit = gpd(-port.ret.ts, threshold=0.015)

gpd.fit

tailplot(gpd.fit)

# compute 1% VaR and ETL from fitted GPD

riskmeasures(gpd.fit, p=0.99)

gpd.q(pp=0.99, ci.p = 0.95, plot=F)

gpd.sfall(pp=0.99, ci.p = 0.95, plot=F)

已有 1 人评分论坛币 收起 理由
yahoocom + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

报纸
gaea_sl 发表于 2009-8-15 19:03:41
不是很明白,哪位高人可以详细讲解下

地板
剑月轩如梦 发表于 2009-10-20 14:09:18
有开发的软件包,fExtremes。当然前提是你会用R软件

7
ruiqwy 发表于 2009-10-20 21:00:08
R is the second language for me!Using R is standing on the shoulders of giants!   Let\'s use R together!

8
不断进步1005 发表于 2011-6-22 02:27:26
马克一下啊啊

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-25 09:35