scipy stats binom_test

R

Robert Kern

Amm i using the function wrong or ...? cuz in R i get the right value
0.262

dbinom(3, 5, 0.8)
[1] 0.205

The R equivalent of scipy.stats.binom_test() is binom.test(), not dbinom(). If
you want the equivalent of dbinom(), use scipy.stats.binom.pmf(3,5,0.8).

If you have more scipy questions, you should ask them on the scipy mailing list:

http://www.scipy.org/Mailing_Lists

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top