next up previous contents
Next: Least Squares Line Up: Correlation Previous: Correlation and Causation

Spearman's Rank Correlation

If we have outliers, Pearson's correlation coefficient will be greatly affected. Also, Pearson's correlation coefficient only measures linear relationships between variables. There is another alternative. Spearman's rank correlation coefficient tex2html_wrap_inline2953 does not use the actual observed data, but the ranks of the data, to compute a correlation coefficient. That is, replace the smallest X value with a 1, the next smallest with a 2, and so on. Repeat the same procedure for the Y values. Then instead of having our data (X,Y) in the form

displaymath2961

they will be as follows

displaymath2963

The formula for tex2html_wrap_inline2953 is as follows,

displaymath2951

Actually, this is just Pearson's formula applied to the ranks.



Jan Lethen
Wed Nov 13 16:20:46 CST 1996