简体   繁体   English

在scipy.stats中使用beta函数

[英]Using the beta function in scipy.stats

Sorry to start another question, but I'm not sure I'm going to get any more responses in my previous question's page. 抱歉,我们提出了另一个问题,但是我不确定我是否会在上一个问题的页面中得到更多答复。

I was just wondering how to evaluate the beta function at specific values. 我只是想知道如何在特定值下评估beta函数

from scipy.stats import beta

print(beta.pdf(1.5, 1,25))
print(beta(1, 25).pdf(1.5))

I get 0.0 and 0.0 我得到0.00.0

That can't be right. 那是不对的。 So what's the right way to do this? 那么正确的方法是什么?

Thanks 谢谢

PS What happened to the reply button to comments and answers to my questions? PS:对我的问题的评论和答案的回复按钮发生了什么? I can't find it anymore. 我找不到了。 I can post new replies, but I don't think those result in little red notifications to the people who respond to my question (right)? 我可以发表新的回复,但是我认为这些回复不会给回答我的问题的人很少的红色通知(对)?

x parameter (the first one) must be between 0 and 1. The value of beta is typically 0 above 1.0. x参数(第一个)必须是0和1之间的值beta通常为0以上1.0。

For me, the comments work. 对我来说,评论有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM