楼主: 梦蓝
5502 1

请问pot模型参数估计 [推广有奖]

  • 0关注
  • 0粉丝

本科生

4%

还不是VIP/贵宾

-

威望
0
论坛币
177 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
469 点
帖子
75
精华
0
在线时间
0 小时
注册时间
2007-9-4
最后登录
2008-5-7

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

       我想应用pot模型参数估计, 其中有个超额均值函数图, 以及超额数按gpd分布拟合后的残差与指数分布的q-q图

    这两个图形怎么画呢?

    谢谢了;)

二维码

扫码加我 拉你入群

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

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

关键词:参数估计 pot 指数分布 均值函数 GPD 模型 参数估计 pot

沙发
DM小菜鸟 发表于 2014-12-28 22:07:29 |只看作者 |坛友微信交流群
POT package  
完整例子,肯定够用了——
##Simulate a sample from a GPD(0,1,0.2):
x <- rgpd(100, 0, 1, 0.2)
##Evaluate density at x=3 and probability of non-exceedance:
dgpd(3, 0, 1, 0.2); pgpd(3, 0, 1, 0.2)
##Compute the quantile with non-exceedance probability 0.95:
qgpd(0.95, 0, 1, 0.2)
##What about the bivariate case? Just the same
y <- rbvgpd(100, model = "alog", alpha = 0.2, asCoef1 = 0.8, asCoef2 = 0.2, mar1 = c(0, 1, 0.2), mar2 = c(10, 1, 0.5))
##Evaluate the probability to not exceed (5,14)
pbvgpd(c(3,15), model = "alog", alpha = 0.2, asCoef1 = 0.8, asCoef2 = 0.2, mar1 = c(0, 1, 0.2), mar2 = c(10, 1, 0.5))

##Maximum likelihood estimate (threshold = 0):
mle <- fitgpd(x, 0)
##Probability Weighted Moments:
pwu <- fitgpd(x, 0, "pwmu")
##Maximum Goodness-of-Fit estimators:
adr <- fitgpd(x, 0, "mgf", stat = "ADR")
##Specifying a known parameter:
fitgpd(x, 0, "mple", shape = 0.2)
##Specifying starting values for numerical optimizations:
fitgpd(x, 0, "mdpd", start = list(scale = 1, shape = 0.2))
##Fit a bivariate GPD with a logistic dependence:
log <- fitbvgpd(y, c(0,10), "log")

##Generic function for the univariate and bivariate cases:
plot(mle); plot(log)
##Return level plots:
retlev(mle, npy = 2); retlev(log)
##Probability-Probability and Q-Q plots:
pp(mle); qq(mle)
##Plot the density:
dens(mle)
##Plot the Pickands' dependence function:
pickdep(log)
##Spectral density plot:
specdens(log)
##Profile Likelihood (quantiles):
confint(mle, prob = 0.95)
##Profile Likelihood (parameters):
confint(mle, "scale"); confint(mle, "shape")


使用道具

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

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

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

GMT+8, 2024-5-1 14:23