Chapter 11 • Unit V

Exercise 11.4: Spearman’s Rank Correlation Coefficient

Comprehensive guide and practice questions for CBSE Class 11 Applied Mathematics curriculum (2026-27).

Comprehensive Concepts & Principles: Spearman's Rank Correlation Coefficient

Developed by Charles Spearman in 1904, Spearman's Rank Correlation Coefficient ($r_s$ or $ ho$) is the premier non-parametric method for evaluating the monotonic association between two variables. Instead of operating on raw numerical values, it evaluates the relative ranks assigned to the observations. It is particularly indispensable when analyzing qualitative attributes that cannot be measured on a physical scale (such as leadership, beauty, musicality, or coding competency), or when data exhibits extreme non-normality and outliers.

Key Formulas for Spearman's $r_s$:
  • Case I: Untied Ranks (Unique Values):
    $$r_s = 1 - \frac{6 \sum d_i^2}{n(n^2 - 1)}$$ where $d_i = R_{x_i} - R_{y_i}$ is the difference between the ranks of the $i^{\text{th}}$ individual, and $n$ is total pairs.
    Crucial Algebraic Check: The sum of rank differences must always equal zero: $\sum d_i = 0$.
  • Case II: Tied (Repeated) Ranks:
    When two or more items share the same value, each is assigned the average (mean) of the ranks they occupy.
    For each group of $m$ tied values, add a correction factor $\frac{m(m^2 - 1)}{12}$ to $\sum d^2$:
    $$r_s = 1 - \frac{6 \left[\sum d_i^2 + \sum \frac{m(m^2 - 1)}{12}\right]}{n(n^2 - 1)}$$
  • Range of $r_s$: $-1 \le r_s \le +1$.
    • $r_s = +1$: Complete agreement between rankings ($R_x = R_y$).
    • $r_s = -1$: Complete disagreement/inversion between rankings ($R_y = n + 1 - R_x$).
    • $r_s = 0$: No monotonic relationship between ranks.

Pearson's $r$ vs. Spearman's $r_s$ Comparison

Feature Karl Pearson's $r$ Spearman's $r_s$
Type of Measure Parametric (requires metric data) Non-parametric (ordinal ranks)
Data Applicable Quantitative continuous measurements Qualitative attributes or ranked data
Sensitivity to Outliers Extremely Sensitive Highly Robust (outliers bounded by rank)
Type of Association Strictly Linear Monotonic (linear or non-linear monotonic)

Worked Benchmark Examples

Example 1 (Ranks Assigned Directly - Judges' Evaluation):

Two judges in a classical debate competition ranked 6 participants as follows:
Judge 1 ($R_1$): $1, \quad 2, \quad 3, \quad 4, \quad 5, \quad 6$
Judge 2 ($R_2$): $2, \quad 4, \quad 1, \quad 5, \quad 6, \quad 3$
Compute the rank correlation coefficient and interpret the consensus between the judges.

Show Step-by-Step Solution

• $n = 6$. Compute rank differences $d = R_1 - R_2$ and $d^2$:
- Contestant 1: $d = 1 - 2 = -1 \implies d^2 = 1$
- Contestant 2: $d = 2 - 4 = -2 \implies d^2 = 4$
- Contestant 3: $d = 3 - 1 = +2 \implies d^2 = 4$
- Contestant 4: $d = 4 - 5 = -1 \implies d^2 = 1$
- Contestant 5: $d = 5 - 6 = -1 \implies d^2 = 1$
- Contestant 6: $d = 6 - 3 = +3 \implies d^2 = 9$
• Check: $\sum d = -1 - 2 + 2 - 1 - 1 + 3 = 0$ (verified!).
• $\sum d^2 = 1 + 4 + 4 + 1 + 1 + 9 = \mathbf{20}$.
$$r_s = 1 - \frac{6 \sum d^2}{n(n^2 - 1)} = 1 - \frac{6(20)}{6(36 - 1)} = 1 - \frac{120}{6 \times 35} = 1 - \frac{120}{210}$$ $$r_s = 1 - \frac{4}{7} = \frac{3}{7} \approx \mathbf{0.4286}$$
Answer: Rank correlation is +0.43, indicating a moderate positive agreement between the two judges.

Example 2 (Tied Ranks with Correction Factor):

Compute Spearman's rank correlation coefficient for the following paired data:
$X$: $15, \quad 20, \quad 28, \quad 12, \quad 40, \quad 60, \quad 20, \quad 80$
$Y$: $40, \quad 30, \quad 50, \quad 30, \quad 20, \quad 10, \quad 30, \quad 60$

Show Step-by-Step Solution

• $n = 8$.
• Ranks for $X$: Values: $80 (1), 60 (2), 40 (3), 28 (4), 20 (\text{tied 5th, 6th} \implies \text{avg } 5.5), 15 (7), 12 (8)$.
$R_x$: $7, \quad 5.5, \quad 4, \quad 8, \quad 3, \quad 2, \quad 5.5, \quad 1$.
Tie in $X$: $m_1 = 2$ (value 20 occurs twice) $\implies CF_1 = \frac{2(4-1)}{12} = \frac{6}{12} = 0.5$.
• Ranks for $Y$: Values: $60 (1), 50 (2), 40 (3), 30 (\text{tied 4th, 5th, 6th} \implies \text{avg } 5), 20 (7), 10 (8)$.
$R_y$: $3, \quad 5, \quad 2, \quad 5, \quad 7, \quad 8, \quad 5, \quad 1$.
Tie in $Y$: $m_2 = 3$ (value 30 occurs thrice) $\implies CF_2 = \frac{3(9-1)}{12} = \frac{24}{12} = 2$.
• Differences $d = R_x - R_y$:
$4, \quad 0.5, \quad 2, \quad 3, \quad -4, \quad -6, \quad 0.5, \quad 0$.
Squares $d^2$: $16 + 0.25 + 4 + 9 + 16 + 36 + 0.25 + 0 = \mathbf{81.5}$.
• Adjusted sum: $\sum d^2 + CF_1 + CF_2 = 81.5 + 0.5 + 2 = \mathbf{84}$.
$$r_s = 1 - \frac{6(84)}{8(64 - 1)} = 1 - \frac{504}{8 \times 63} = 1 - \frac{504}{504} = 1 - 1 = \mathbf{0}$$
Answer: $r_s = 0$ (no monotonic rank correlation).

Previous: Ex 11.3 Chapter Hub