[SciPy-user] inverse to scipy.stats.zprob?

Robert Kern robert.kern at gmail.com
Wed Jun 7 14:10:12 CDT 2006


Webb Sprague wrote:
> Hi all,
> 
> Could someone tell me what the inverse function to ST.zprob is?
> 
> Here is what I know how to do:
> 
> In [76]: scipy.stats.zprob(1.96)
> Out[76]: 0.97500210485177952
> In [79]: scipy.stats.zprob(0)
> Out[79]: 0.5
> etc
> 
> Here is what I want to do:
> In [77]:scipy.stats.SOMEFUNCTION(.5)
> Out[77]:  0.0
> In [78]:scipy.stats.SOMEFUNCTION(.95)
> Oout[78]: 1.96

In [1]: from scipy import stats

In [2]: stats.norm.ppf(0.5)
Out[2]: array(0.0)

In [3]: stats.norm.ppf(0.95)
Out[3]: array(1.6448536269514722)

-- 
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