Skip to content
Worked Examples · Example 8
Q.

Compute Spearman's rank correlation coefficient for the following data, which contain repeated values.

xx68647550648075405564
yy62586845816068485070
Maharashtra MsbshseTextbookSubjectiveImportance★★★★★
100% · 12/12 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

With ties present, use

R=1−6[∑d2+∑m(m2−1)12]n(n2−1),n=10.R = 1 - \frac{6\left[\sum d^2 + \sum \dfrac{m(m^2-1)}{12}\right]}{n(n^2-1)}, \qquad n = 10.

Rank xx (highest = 1). Sorted: 80,75,75,68,64,64,64,55,50,4080, 75, 75, 68, 64, 64, 64, 55, 50, 40. So 80→180 \to 1; the two 7575s share ranks 2,3→2.52,3 \to 2.5 each; 68→468 \to 4; the three 6464s share ranks 5,6,7→65,6,7 \to 6 each; 55→855 \to 8; 50→950 \to 9; 40→1040 \to 10.

Rank yy (highest = 1). Sorted: 81,70,68,68,62,60,58,50,48,4581, 70, 68, 68, 62, 60, 58, 50, 48, 45. So 81→181 \to 1; 70→270 \to 2; the two 6868s share ranks 3,4→3.53,4 \to 3.5 each; 62→562 \to 5; 60→660 \to 6; 58→758 \to 7; 50→850 \to 8; 48→948 \to 9; 45→1045 \to 10.

xxR1R_1yyR2R_2ddd2d^2
684625−1-11
646587−1-11
752.5683.5−1-11
5094510−1-11
646811525
801606−5-525
752.5683.5−1-11
401048911
55850800
646702416
Total072

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.