Spearman's Correlation

Spearman's Correlation

Last updated

When to use the Spearman Correlation test

What does the Speaman Correlation measure?

  • The Spearman correlation (denoted as p (rho) or rs) measures the strength and direction of association between two ranked variables.
  • It is most commonly used to measure the degree and direction of a linear relation between two variables that are of the ordinal type.

What are the assumptions of the Spearman Correlation test?

  • two variables that are either ordinal, interval or ratio (note: if the data are interval or ratio, normally you would use a Pearson correlation test)
  • the relationship between the variables is monotonic, or (curvi)linear

Spearman Correlation formula

What is the definition of the Spearman Correlation test?

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

  • p : Spearman correlation
  • rs : Spearman correlation
  • di : rg(Xi) - rg(Yi): difference between the two ranks of each observation (for example, one can have the second best score on variable X, but the ninth on variable Y.)
  • n : number of scores

Note: if there are tied ranks, the following method can be used to calculate the Spearman Correlation:

\[\rho = \frac{\sum_i (x_i - \bar{x})(y_i - \bar{y})}{\sqrt {\sum_i (x_i - \bar{x})^2 \sum_i (y_i - \bar{y})^2}}\]

What can you do on a WorldSupporter Statistics Topic?

Understand statistics with knowledge and explanation about a topic of statisticsPractice with questions and answers to test your statistical knowledge and skillsWatch statistics practiced in real life with selected videos for extra clarificationStudy relevant terminology with glossaries of statistical topicsShare your knowledge and experience and see other WorldSupporters' contributions about a topic of statistics...

Magazine of Statistics Supporter
Contributions, Comments & Kudos

ordinal data analysis

which method i use if i have data ordinal is correlation or logistic

Add new contribution

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Enter the characters shown in the image.