[SciPy-Dev] data rankings

Warren Weckesser warren.weckesser@enthought....
Fri Nov 18 16:37:29 CST 2011


On Fri, Nov 18, 2011 at 1:37 PM, <josef.pktd@gmail.com> wrote:

> On Fri, Nov 18, 2011 at 2:11 PM, Moritz Emanuel Beber
> <moritz.beber@googlemail.com> wrote:
> > Dear all,
> >
> > I recently had to rank some data and I came across the
> > scipy.stats.rankdata function. It didn't quite do what I wanted (using
> > the terminology of this wikipedia page
> > http://en.wikipedia.org/wiki/Ranking it performs 'fractional' ranking)
> > so I went ahead and wrote functions for the other types of rankings.
>
> rankdata is mostly a support function for the rank based tests, see
> http://en.wikipedia.org/wiki/Ranking#Ranking_in_statistics
>
>

rankdata is also pretty slow.  I have a cythonized version working (along
with tiecorrection), but it is not quite ready for a pull request.

If there is interest, I don't see any reason to not include more ranking
functions in scipy.  Moritz, what are the use-cases for the ranking that
you used?

Warren



> There is also percentileofscore in stats with more options, but
> doesn't do full ranking, but I think could also be rewritten and
> expanded.
>
> I think, the main question whether other rankings should be included,
> is whether it cannot be simply done with numpy.searchsorted.
>
>
> >
> > So, is there any interest in my contributing this code? If yes, can you
> > point me to guidelines on how to submit it? I didn't find any hints for
> > that online.
>
> some information for contributing is here
> http://projects.scipy.org/scipy/wiki
> I haven't looked at this in a long time
> contribute seems to require login, the other links redirect to the
> source files on github that are rst, rendered as html.
>
> The best way now is to open a pull request on github.
>
> Thanks,
>
> Josef
> >
> > Cheers,
> > Moritz
> > _______________________________________________
> > SciPy-Dev mailing list
> > SciPy-Dev@scipy.org
> > http://mail.scipy.org/mailman/listinfo/scipy-dev
> >
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20111118/750aa5e0/attachment.html 


More information about the SciPy-Dev mailing list