What Is Spearman's Rank Correlation Coefficient?
Spearman's Rank Correlation Coefficient: Denoted , this is a non-parametric measure of the strength and direction of a monotonic relationship between two variables. It works by comparing the ranks of data values rather than the values themselves.
Because uses ranks rather than raw data, it makes no assumptions about the underlying frequency distribution of the variables. This makes it much more flexible than Pearson's correlation coefficient.
Monotonic Relationship: A relationship where, as one variable increases, the other variable either consistently increases (monotonically increasing) or consistently decreases (monotonically decreasing) , but not necessarily at a constant rate.
Think of a monotonic relationship like climbing a hill , you might go fast, then slow, then fast again, but you're always moving upward. Pearson's requires a straight climb at a constant rate; Spearman's just needs a consistent direction.
The value of always lies between and :
- : perfect positive monotonic relationship
- : perfect negative monotonic relationship
- : no monotonic relationship
- Values close to indicate a strong relationship; values close to indicate a weak relationship
The absolute value tells you the strength of the relationship; the sign tells you the direction. A value of is just as strong as , it just goes in the opposite direction.
The Formula for $r_s$
The Spearman's rank correlation coefficient is calculated using:
Where:
- is the difference between the ranks of each corresponding pair of values
- is the number of pairs of data values
- means you square each difference and add them all up
In the IB exam, you are expected to use technology (GDC or statistical software) to calculate rather than applying this formula by hand. However, understanding the formula helps you appreciate what the calculation is doing , comparing how similarly the two variables rank their data points.
The process, conceptually, is:
- Rank each dataset separately (1 = smallest, = largest)
- Find the difference between each pair of ranks
- Square each difference and sum them
- Substitute into the formula