24小时热门版块排行榜    

CyRhmU.jpeg
查看: 926  |  回复: 4

幻魇

新虫 (初入文坛)

[交流] 求教一个利用累计概率函数拟合分布参数的问题已有1人参与

http://cn.mathworks.com/help/stats/examples/fitting-a-univariate-distribution-using-cumulative-probabilities.html#zmw57dd0e2006
我在看上边matlab的文档里边,用CDF估计参数的部分。这里边实际上用了一个最小化平方误差的方法,但是里边有个加权wgt = 1 ./ sqrt(pEmp.*(1-pEmp));不是很懂,请大神们指教是不是出自某篇文章里的?具体为什么这样做会更好。

求教一个利用累计概率函数拟合分布参数的问题
QQ图片20151103144338.png
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

feixiaolin

荣誉版主 (文坛精英)

优秀版主


小木虫: 金币+0.5, 给个红包,谢谢回帖
To fit a Weibull distribution to these data, notice that the CDF for the Weibull is p = Pr{X <= x} = 1 - exp(-(x/a)^b). Transforming that to log(a) + log(-log(1-p))*(1/b) = log(x) again gives a linear relationship, this time between log(-log(1-p)) and log(x). We can use least squares to fit a straight line on the transformed scale using p and x from the ECDF, and the slope and intercept of that line lead to estimates of a and b.
人家已经讲清楚啦
2楼2015-11-03 20:26:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

幻魇

新虫 (初入文坛)

引用回帖:
2楼: Originally posted by feixiaolin at 2015-11-03 20:26:57
To fit a Weibull distribution to these data, notice that the CDF for the Weibull is p = Pr{X <= x} = 1 - exp(-(x/a)^b). Transforming that to log(a) + log(-log(1-p))*(1/b) = log(x) again gives a li ...

多谢回复,不过我指的是wgt = 1 ./ sqrt(pEmp.*(1-pEmp))这个权重,为什么这么取?
3楼2015-11-03 21:12:27
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

feixiaolin

荣誉版主 (文坛精英)

优秀版主

引用回帖:
3楼: Originally posted by 幻魇 at 2015-11-03 21:12:27
多谢回复,不过我指的是wgt = 1 ./ sqrt(pEmp.*(1-pEmp))这个权重,为什么这么取?...

老眼昏花了

[ 发自小木虫客户端 ]
4楼2015-11-03 23:08:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

幻魇

新虫 (初入文坛)

引用回帖:
4楼: Originally posted by feixiaolin at 2015-11-03 23:08:53
老眼昏花了
...

你觉得那个权重为什么这么取呢?
5楼2015-11-04 13:52:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 幻魇 的主题更新
普通表情 高级回复(可上传附件)
信息提示
请填处理意见