In the previous notes on descriptive statistics, we have seen the method to measure the association between two continuous variables using the Karl Pearson Correlation Coefficient and learned the different kinds of correlation conditions. This note will show the technique to measure the association between two ordinal variables (or rank data) using spearman’s Rank Correlation Coefficient.
Understanding of Ordinal data (Rank data)
Suppose there are n candidates participate in a talent competition. And entire competition is judged by two judges, X and Y. They have given their rank or score to every participant. The scores are indicated by two judges in the form of (x1, y1) for the first candidate and similarly for other candidates. The rank of x1 may or may not be the same as y1 for the first candidate. These two judges give scores independently to each candidate.
Judge X gives ranks to n candidates as, rank 1 to worst candidate with the lowest score as xi and rank 2 to a candidate with second-lowest score xi, and rank n to the best candidate with highest score xi. Similarly, judge Y ranks n candidates as 1,2,3,… n based on scores y1, y2, y3, …. yn. In the same way, as judge X gave.
Every participant has two ranks given by two different judges. We expect both judges to provide the higher ranks to suitable candidates and lower ranks to bad candidates. Our objective is to measure the degree of association between the two different judgments. i.e., the two different sets of ranks.
Spearman’s rank correlation coefficient
From the above example, to measure the degree of agreement between the ranks of two judges, we use Spearman’s rank correlation coefficient. Note, even though judges can give candidates scores, Spearman’s rank correlation coefficient only works on rank data. These scores can be easily converted into rank either in ascending or descending order.
- : Rank of observation on X and the rank of among ordered values of X.
- : Rank of observation on Y and the rank of among ordered values of Y.
The Spearman’s rank correlation coefficient (R) is defined as:
Interpretation of Spearman’s rank correlation coefficient
It does not matter whether the ascending or descending order of ranks is used. When both the judges assign exactly the same ranks to all the candidates then R = +1, and when opposite ranks to all the candidates then R = -1.
Example 1: Scores given by two judges to 5 candidates are as follows:
Spearman’s rank correlation coefficient is -0.7, which means both the judges have given almost opposite scores to the different candidates.
References
- Descriptive Statistic, By Prof. Shalabh, Dept. of Mathematics and Statistics, IIT Kanpur.
129 total views, 1 views today