Dec. 20, 2006
11:30 p.m.
Mark Janikas wrote:
Hello all,
Is there a way to get probability values for the various families of distributions in numpy? I.e. ala R:
We have a full complement of PDFs, CDFs, etc. in scipy. In [1]: from scipy import stats In [2]: stats.norm.pdf(1.96, loc=0.0, scale=1.0) Out[2]: array(0.058440944333451469) In [3]: stats.norm.cdf(1.96, loc=0.0, scale=1.0) Out[3]: array(0.97500210485177952) -- 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