Definition and Calculation
The Spearman correlation coefficient is defined as the Pearson correlation coefficient between the ranked variables. For a sample of size n, the n raw scores are converted to ranks, and ρ is computed from these:
Identical values (rank ties or value duplicates) are assigned a rank equal to the average of their positions in the ascending order of the values. In the table below, notice how the rank of values that are the same is the mean of what their ranks would otherwise be:
Variable | Position in the ascending order | Rank |
---|---|---|
0.8 | 1 | 1 |
1.2 | 2 | |
1.2 | 3 | |
2.3 | 4 | 4 |
18 | 5 | 5 |
In applications where duplicate values (ties) are known to be absent, a simpler procedure can be used to calculate ρ. Differences between the ranks of each observation on the two variables are calculated, and ρ is given by:
Read more about this topic: Spearman's Rank Correlation Coefficient
Famous quotes containing the words definition and/or calculation:
“No man, not even a doctor, ever gives any other definition of what a nurse should be than thisdevoted and obedient. This definition would do just as well for a porter. It might even do for a horse. It would not do for a policeman.”
—Florence Nightingale (18201910)
“To my thinking boomed the Professor, begging the question as usual, the greatest triumph of the human mind was the calculation of Neptune from the observed vagaries of the orbit of Uranus.
And yours, said the P.B.”
—Samuel Beckett (19061989)