楼主: ttshark
11577 7

[问答] 求逆累计分布函数用哪个命令? [推广有奖]

  • 1关注
  • 0粉丝

硕士生

26%

还不是VIP/贵宾

-

威望
0
论坛币
171 个
通用积分
2.7001
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
1334 点
帖子
178
精华
0
在线时间
103 小时
注册时间
2011-5-26
最后登录
2022-10-27

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
RT,得到的累积分布函数后,怎样求的在给定概率值下的随机变量值
二维码

扫码加我 拉你入群

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

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

关键词:分布函数 累积分布函数 随机变量 累积分布 变量值 分布函数

回帖推荐

xkdog 发表于4楼  查看完整内容

其他分布的用法与normal distribution类似,你只要知道分布的名称就行了。直接help(distribution)能够给你相关结果。 The functions for the density/mass function, cumulative distribution function, quantile function and random variate generation are named in the form dxxx, pxxx, qxxx and rxxx respectively. For the beta distribution see dbeta. For the binomial (including Bernoulli) distribution s ...
沙发
xkdog 发表于 2014-8-6 13:37:40 |只看作者 |坛友微信交流群
以正态分布为例:

dnorm(x, mean = 0, sd = 1, log = FALSE)
pnorm(q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE)
qnorm(p, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE)
rnorm(n, mean = 0, sd = 1)

dnorm gives the density;
pnorm gives the distribution function;
qnorm gives the quantile function;
rnorm generates random deviates。

不知道楼主说的是不是这样,给定\[  F(x)=\int_{- \infty}^x f(t) dt  \]中的\[  F(x)  \]值,想求出\[f(x)\]值。那么,应当用dnorm。

例如,已知\[X \sim N(0, 1)\],且\[F(x)=0.5=\int_{- \infty}^x f(t) dt \],求\[f(x)\]的值。

此时输入
  1. dnorm(pnorm(0))
复制代码

即可,答案为 0.3989423。

我不知道有没有更简单的方法。

使用道具

藤椅
ttshark 在职认证  发表于 2014-8-6 14:39:51 |只看作者 |坛友微信交流群
xkdog 发表于 2014-8-6 13:37
以正态分布为例:

dnorm(x, mean = 0, sd = 1, log = FALSE)
非常感谢您的回答,收益颇丰。
假如这里是一个一般的分布或未知分布这个问题要怎么解决呢?

使用道具

板凳
xkdog 发表于 2014-8-6 15:33:42 |只看作者 |坛友微信交流群
ttshark 发表于 2014-8-6 14:39
非常感谢您的回答,收益颇丰。
假如这里是一个一般的分布或未知分布这个问题要怎么解决呢?
其他分布的用法与normal distribution类似,你只要知道分布的名称就行了。直接help(distribution)能够给你相关结果。

The functions for the density/mass function, cumulative distribution function, quantile function and random variate generation are named in the form dxxx, pxxx, qxxx and rxxx respectively.

For the beta distribution see dbeta.

For the binomial (including Bernoulli) distribution see dbinom.

For the Cauchy distribution see dcauchy.

For the chi-squared distribution see dchisq.

For the exponential distribution see dexp.

For the F distribution see df.

For the gamma distribution see dgamma.

For the geometric distribution see dgeom. (This is also a special case of the negative binomial.)

For the hypergeometric distribution see dhyper.

For the log-normal distribution see dlnorm.

For the multinomial distribution see dmultinom.

For the negative binomial distribution see dnbinom.

For the normal distribution see dnorm.

For the Poisson distribution see dpois.

For the Student's t distribution see dt.

For the uniform distribution see dunif.

For the Weibull distribution see dweibull.

For less common distributions of test statistics see pbirthday, dsignrank, ptukey and dwilcox (and see the ‘See Also’ section of cor.test).

未知分布?分布都未知,如何求逆累计分布?这个不知道。

使用道具

报纸
ttshark 在职认证  发表于 2014-8-6 16:48:01 |只看作者 |坛友微信交流群
xkdog 发表于 2014-8-6 15:33
其他分布的用法与normal distribution类似,你只要知道分布的名称就行了。直接help(distribution)能够给你 ...
感谢您回答的这么详细,可能是我瞎想了吧。

使用道具

地板
英汉小字典 发表于 2015-10-26 16:31:45 |只看作者 |坛友微信交流群
xkdog 发表于 2014-8-6 15:33
其他分布的用法与normal distribution类似,你只要知道分布的名称就行了。直接help(distribution)能够给你 ...
你好,我想咨询你一个问题,我现在有一个分布是扩展的weibull分布,就是分布函数跟密度函数都跟weibull分布不一样,但是知道分布函数,请问怎么求得这个扩展weibull分布的逆累计分布函数?我的问题跟他差不多,得出逆累计分布后,根据给定的概率值求随机变量值。
为这个问题我头疼了好几天天了,这里过不去就没法往下做了,希望你能帮我一下。谢谢~

使用道具

7
英汉小字典 发表于 2015-10-26 16:39:35 |只看作者 |坛友微信交流群
xkdog 发表于 2014-8-6 13:37
以正态分布为例:

dnorm(x, mean = 0, sd = 1, log = FALSE)
你好,我仔细看了下这个楼主的问题,其实他的问题跟我想问的一样,但好像不是你第一次回答的样子,你是知道F(x)的值,然后求f(x)的值,他的问题是求自变量x的值。

使用道具

8
18650347648 学生认证  发表于 2016-10-27 11:38:48 |只看作者 |坛友微信交流群
英汉小字典 发表于 2015-10-26 16:39
你好,我仔细看了下这个楼主的问题,其实他的问题跟我想问的一样,但好像不是你第一次回答的样子,你是知 ...
你说的没错,请问你现在知道怎么求了吗?我也卡在这里

使用道具

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

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

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

GMT+8, 2024-5-3 07:17