Mathematics and Statistics · Ch 14 — Correlation
Spearman's Rank Correlation Coefficient
Spearman's Rank Correlation Coefficient
Sometimes the data are not exact measurements but ranks — the order in which judges place competitors, or the positions of students in two subjects. Sometimes the characteristic (beauty, honesty, efficiency) cannot be measured numerically at all, only ranked. For such data the British psychologist Charles Spearman gave a coefficient based only on the ranks, called the rank correlation coefficient, denoted (or ).
When there are no repeated ranks (no ties):
where is the difference between the two ranks of the -th individual and is the number of individuals. Like Pearson's , lies between and .
Steps: (i) rank each variable separately (say, largest value gets rank 1 — be consistent for both variables); (ii) find for each pair; (iii) square and total to get ; (iv) substitute in the formula. As a check, must always equal .
When ranks are repeated (tied ranks): each set of tied values is given the average of the ranks they would occupy, and a correction term is added for every tie. If a value is repeated times, the correction is , and the formula becomes
the inner sum running over every tied group in both variables.
Pearson or Spearman? …
Correlation computed from the ranks of the observations rather than their actual values: …
The term added to for each group of equal (tied) values, whose common rank is the average of the ra …