Example: how to calculate Spearman Correlation?

Sample question

The scores for nine students in history and algebra are as follows:

  • History: 35, 23, 47, 17, 10, 43, 9, 6, 28
  • Algebra: 30, 33, 45, 23, 8, 49, 12, 4, 31

Compute the Spearman rank correlation.

Answer

  1. Step 1: rank each student
Student #History ScoreHistory RankAlgebra ScoreAlgebra Rank
1353305
2235333
3471452
4176236
510788
6432491
798127
86949
9284314
  1. step 2: calculate difference between the ranks (d) and square d
Student #History ScoreHistory RankAlgebra ScoreAlgebra Rankdd2
135330524
223533324
347145211
417623600
51078811
643249111
79812711
8694900
928431400
  1. step 3: sum (add up) all the d2 scores
  • Σ d2 = 4 + 4 + 1 + 0 + 1 + 1 + 1 + 0 + 0 = 12
  1. step 4: insert the values in the formula. These ranks are not tied, so use the first formula:

\[\rho = 1 - \frac{6\sum{d^2_i}}{n(n^2-1)}\]

= 1 – (6*12)/(9(81-1))
= 1 – 72/720
= 1-0.1
= 0.9

> The Spearman Rank Correlation for this set of data is 0.9.

Image

Access: 
Public

Image

Join: WorldSupporter!

Join with a free account for more service, or become a member for full access to exclusives and extra support of WorldSupporter >>

Check: concept of JoHo WorldSupporter

Concept of JoHo WorldSupporter

JoHo WorldSupporter mission and vision:

  • JoHo wants to enable people and organizations to develop and work better together, and thereby contribute to a tolerant and sustainable world. Through physical and online platforms, it supports personal development and promote international cooperation is encouraged.

JoHo concept:

  • As a JoHo donor, member or insured, you provide support to the JoHo objectives. JoHo then supports you with tools, coaching and benefits in the areas of personal development and international activities.
  • JoHo's core services include: study support, competence development, coaching and insurance mediation when departure abroad.

Join JoHo WorldSupporter!

for a modest and sustainable investment in yourself, and a valued contribution to what JoHo stands for

Check: more related
Applying spearman's correlation - Theme
Check: how to help

Image

 

 

Contributions: posts

Help others with additions, improvements and tips, ask a question or check de posts (service for WorldSupporters only)

Prif.

Azad university

Statistics

It added to my knowledge of statistics 

Image

Check: more related and most recent topics and summaries
Check more: study fields and working areas

Image

Share: this page!
Follow: Statistics Supporter (author)
Add: this page to your favorites and profile
Statistics
63274 2 1
Submenu & Search

Search only via club, country, goal, study, topic or sector