[SciPy-user] scipy.stats.scoreatpercentile(...)

David K scipy at dvdkwk.com
Thu Aug 11 11:35:43 CDT 2005


Hi,

I was trying the scipy.stats.scoreatpercentile function:

>>> import scipy
>>> a = scipy.arange(1,11)
>>> a
array([ 1,  2,  3,  4,  5,  6,  7,  8,  9, 10])
>>> scipy.stats.scoreatpercentile( a, 50 ) # find the 50th percentile
5.9050000000000002

Shouldn't the result be 5.5?  Or perhaps I've misunderstood something?

Thanks,

David




More information about the SciPy-user mailing list