PickMyTest

Spearman Rank Correlation

Measures the strength and direction of the monotonic relationship between two at least ordinal-scaled variables

Spearman Rank Correlation#

The Spearman rank correlation (also: Spearman's rho, rsr_s) is a non-parametric measure of the strength and direction of the monotonic relationship between two variables. Instead of raw values, the ranks of the observations are used.

When to Use#

Use the Spearman correlation when you want to:

  • Measure the monotonic relationship (not necessarily linear) between two variables
  • The data are at least ordinal scaled
  • The assumptions of the Pearson correlation are not met (e.g., no normal distribution)
  • Outliers are present that could bias the results

Assumptions#

  • Both variables are at least ordinal scaled
  • Monotonic relationship between the variables (does not need to be linear)
  • Independence of observation pairs
  • No tied ranks – if ties are present, a correction is applied

Formula#

The Spearman rank correlation is calculated using rank differences:

rs=1βˆ’6βˆ‘i=1ndi2n(n2βˆ’1)r_s = 1 - \frac{6 \sum_{i=1}^{n} d_i^2}{n(n^2 - 1)}

where di=Rank(xi)βˆ’Rank(yi)d_i = \text{Rank}(x_i) - \text{Rank}(y_i) is the difference in ranks for each observation pair.

Alternatively, Spearman's rsr_s can be calculated as the Pearson correlation of the ranks:

rs=rPearson(Rank(X),Rank(Y))r_s = r_{\text{Pearson}}(\text{Rank}(X), \text{Rank}(Y))

Example#

Practical Example: Customer Satisfaction and Return Intention

A market researcher investigates the relationship between customer satisfaction (Likert scale: 1–5) and return intention (Likert scale: 1–5) in a restaurant. Both variables are ordinal scaled.

  • Variable X: Customer satisfaction (1 = very dissatisfied, 5 = very satisfied)
  • Variable Y: Return intention (1 = very unlikely, 5 = very likely)

The Spearman correlation yields rsr_s = 0.65, p < 0.001. There is a moderate to strong positive monotonic relationship: More satisfied customers show a higher intention to return.

Effect Size#

The Spearman coefficient rsr_s is itself a measure of effect size and is interpreted analogously to the Pearson coefficient:

| Effect Size | |rsr_s| | |---|---| | Small | 0.10 | | Medium | 0.30 | | Large | 0.50 |

Advantage over Pearson: The Spearman correlation is more robust to outliers and does not require a linear relationship – a monotonic relationship is sufficient.

Further Reading

  • Spearman, C. (1904). The proof and measurement of association between two things. The American Journal of Psychology, 15(1), 72–101.
  • Field, A. (2018). Discovering Statistics Using IBM SPSS Statistics (5th ed.). SAGE.