scipy 分布为小于 loc(平均值)的值提供零
对于产生以下直方图的数据,我使用了 gamma.fit(data) 函数。它产生 (0.2856629839547822, 0.001612367540316285, 1.3126526078419007)
,它必须是分布的 alpha、loc
和 scale
参数。但是,给定数据集的平均值和标准差分别为 m=0.04181341484525036
和 s=0.02581912984507876
。 PDF 为零,低于平均值 (m
)。我找不到任何关于这个问题的问题。我缺少什么?
For the data yielding the below histogram, I used gamma.fit(data)
function. It yields (0.2856629839547822, 0.001612367540316285, 1.3126526078419007)
which must be the alpha, loc
, and scale
parameters of the distribution. However, the mean and standard deviations are m=0.04181341484525036
and s=0.02581912984507876
for the given dataset. The PDF is zero below the mean (m
) value. I couldn't find any questions about this problem. What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于低于计算平均值的所有值,PDF 绝对不为零。事实上,超过 40% 的 PDF 区域位于
x<=m
:The PDF is most definitely not zero for all values below your calculated mean. I fact, over 40% of the PDF area resides at
x<=m
: