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.

Access: 
Public
This content is related to:
Applying spearman's correlation
Check more of this topic?
Work for WorldSupporter

Image

JoHo can really use your help!  Check out the various student jobs here that match your studies, improve your competencies, strengthen your CV and contribute to a more tolerant world

Working for JoHo as a student in Leyden

Parttime werken voor JoHo

Image

Follow the author: Statistics Supporter
More contributions of WorldSupporter author: Statistics Supporter:
Comments, Compliments & Kudos:

Prif.

Azad university

Statistics

It added to my knowledge of statistics 

Add new contribution

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.
Promotions
Image
The JoHo Insurances Foundation is specialized in insurances for travel, work, study, volunteer, internships an long stay abroad
Check the options on joho.org (international insurances) or go direct to JoHo's https://www.expatinsurances.org

 

Check how to use summaries on WorldSupporter.org


Online access to all summaries, study notes en practice exams

Using and finding summaries, study notes en practice exams on JoHo WorldSupporter

There are several ways to navigate the large amount of summaries, study notes en practice exams on JoHo WorldSupporter.

  1. Starting Pages: for some fields of study and some university curricula editors have created (start) magazines where customised selections of summaries are put together to smoothen navigation. When you have found a magazine of your likings, add that page to your favorites so you can easily go to that starting point directly from your profile during future visits. Below you will find some start magazines per field of study
  2. Use the menu above every page to go to one of the main starting pages
  3. Tags & Taxonomy: gives you insight in the amount of summaries that are tagged by authors on specific subjects. This type of navigation can help find summaries that you could have missed when just using the search tools. Tags are organised per field of study and per study institution. Note: not all content is tagged thoroughly, so when this approach doesn't give the results you were looking for, please check the search tool as back up
  4. Follow authors or (study) organizations: by following individual users, authors and your study organizations you are likely to discover more relevant study materials.
  5. Search tool : 'quick & dirty'- not very elegant but the fastest way to find a specific summary of a book or study assistance with a specific course or subject. The search tool is also available at the bottom of most pages

Do you want to share your summaries with JoHo WorldSupporter and its visitors?

Quicklinks to fields of study (main tags and taxonomy terms)

Field of study

Check related topics:
Activities abroad, studies and working fields
Access level of this page
  • Public
  • WorldSupporters only
  • JoHo members
  • Private
Statistics
54779 2 1