Simple scipy question F-distribution

Kurt kurt at etool.com
Thu Nov 6 08:03:37 EST 2003


Thanks for the help guys!

-kurt

 > from scipy.stats import distributions
> > x = distributions.f.ppf(0.95, 2, 9)

Hmm... on Mac OS 10.2 fink python 2.3, I get NaN.  Bummer.

> 
> Or you could use RPy (see http://rpy.sf.net) - 30 minutes work on a Linux box to 

> >>> from rpy import *
> >>> print r.qf(0.95,2,9)
>  4.256495
> >>> print r.pf(4.256495,2,9)
> 0.95

Works great.  Installing r with fink on the Mac is sooo easy.




More information about the Python-list mailing list