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

Robert Kern robert.kern@gmail....
Wed Aug 29 13:57:27 CDT 2007

John Reid wrote:
> 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.

The PMF does give you that.

In [1]: from scipy import stats

In [2]: rv = stats.poisson(4)

In [3]: rv.pmf(2)
Out[3]: array(0.14652511110987343)

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