简体   繁体   中英

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.

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

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? 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.

For me, the comments work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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