scipy stats binom_test
robert.kern at gmail.com
Thu Jun 25 20:44:47 CEST 2009
On 2009-06-25 07:14, dusans wrote:
> Amm i using the function wrong or ...? cuz in R i get the right value
>>>> binom_test(3, 5, p=0.8)
>> dbinom(3, 5, 0.8)
>  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:
"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
More information about the Python-list