[SciPy-user] Re: scipy.stats.scoreatpercentile(...)
David K
scipy at dvdkwk.com
Thu Aug 11 12:44:02 EDT 2005
Sorry..forgot to mention that I'm using the following:
Python version: 2.3.5
Numeric version: 23.7
scipy version: 0.3.2
Windows XP
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