[SciPy-User] poisson distribution in scipy.stats

Davide Cittaro davide.cittaro@ifom-ieo-campus...
Mon Nov 9 14:58:28 CST 2009


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)

which I found being the same of

p = scipy.stats.poisson.pmf(l, k)

I've here some code in which it is written:

d = scipy.stats.poisson(l, k)
p = d.pmf(k)

which gives different results. Which is the right way to initialize  
the distribution (and get the PMF)?

Thanks

d


/*
Davide Cittaro

Cogentech - Consortium for Genomic Technologies
via adamello, 16
20139 Milano
Italy

tel.: +39(02)574303007
e-mail: davide.cittaro@ifom-ieo-campus.it
*/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20091109/324ea64d/attachment.html 


More information about the SciPy-User mailing list