[SciPy-User] poisson distribution in scipy.stats
Robert Kern
robert.kern@gmail....
Mon Nov 9 15:00:29 CST 2009
On Mon, Nov 9, 2009 at 14:58, Davide Cittaro
<davide.cittaro@ifom-ieo-campus.it> wrote:
> Hi all,
> about the poisson generator... given l (expected) and k (found) I guess that
> the way to get the probability of k I have to do this:
>
> d = scipy.stats.poisson(l)
> p = pmf(k)
Correct.
> which I found being the same of
> p = scipy.stats.poisson.pmf(l, k)
Also correct.
> I've here some code in which it is written:
> d = scipy.stats.poisson(l, k)
That one is completely wrong.
--
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
More information about the SciPy-User
mailing list