There exist many different ranking methodologies.
For more details, check here: http://en.wikipedia.org/wiki/Ranking .
*****************************************
The archive contains the following files:
Rankings.m
FractionalRankings.m
FractionalRankings2.m
DenseRankings.m
StandardCompetitionRankings.m
ModifiedCompetitionRankings.m
OrdinalRankings.m
OrdinalRankings2.m
*****************************************
The principal function is Rankings.m which can be used to calculate five different kinds of rankings (in ascending order):
FRACTIONAL RANKINGS (1 2.5 2.5 4)
DENSE RANKINGS (1 2 2 3)
STANDARD COMPETITION RANKINGS (1 2 2 4)
MODIFIED COMPETITION RANKINGS (1 3 3 4)
ORDINAL RANKINGS (1 2 3 4) OR (1 3 2 4)
If you need to use the rankings for statistical purposes, the most useful methodology is probably the Fractional Ranking because it is such that the sum of N ranks is equal to sum([1:N]), so that the average rank of N items is always the same.
Due to its special statistical properties, the default method is the Fractional Ranking.
*****************************************
The file FractionalRankings2.m contains an alternative function for the computation of Fractional Rankings but it's extremely slow and inefficient and, actually, it is not supposed to be used but for general consultation.
I chose to keep it because it is the most intuitive code, though it cannot be implemented efficiently in Matlab.
The file OrdinalRankings2 contains an alternative function for the computation of Ordinal Rankings that seems to be slightly less efficient than the one contained in the file OrdinalRankings.m, and also much more complicated and less readable.
I chose to leave it in the archive for general consultation.
*****************************************
This package is not a professional one.
Use it at your own risk.
You can freely redistribute it and/or modify it.
Please let me know if there are bugs or if you find better solutions. Thank you. |