|
From: <jas...@cr...> - 2009-09-14 20:46:12
|
Robert Kern wrote:
> prctile does not handle the case where the exact percentile lies between two
> items. scoreatpercentile does.
>
>
If mlab is supposed to be compatible with matlab, then isn't this a problem?
From matlab, version 7.2.0.283 (R2006a)
>> prctile([1 1 2 2 1 2 4 3 2 2 2 3 4 5 6 7 8 9 7 6 4 5 5],[0 25 50 75
100])
ans =
1.0000 2.0000 4.0000 5.7500 9.0000
Of course, the 75th percentile is different here too (5.75 instead of
scipy's 5.5). I don't know how to explain that discrepancy.
Jason
--
Jason Grout
|