[SciPy-user] Error in scipy.stats.poisson

John Reid j.reid@mail.cryst.bbk.ac...
Wed Aug 29 13:51:51 CDT 2007

i was looking for the probability of the given realisation of the random 
variable given the frozen parameters. There is no way to achieve this 
with the current api AFAICS.


Stefan van der Walt wrote:
> Hi John
> On Wed, Aug 29, 2007 at 04:13:14PM +0100, John Reid wrote:
>> Should the following code work?
>> import scipy.stats as S
>> r=S.poisson(4)
>> r.pdf(2)
> The poisson distribution is discrete, so maybe you are looking for the
> probability mass function, r.pmf?
> Cheers
> Stéfan

More information about the SciPy-user mailing list