Spearman's rank correlation coefficient

Spearman's rank correlation coefficient

In statistics, Spearman's rank correlation coefficient or Spearman's rho, named after Charles Spearman and often denoted by the Greek letter ho (rho) or as r_s, is a non-parametric measure of correlation – that is, it assesses how well an arbitrary monotonic function could describe the relationship between two variables, without making any assumptions about the frequency distribution of the variables.


In principle, ρ is simply a special case of the Pearson product-moment coefficient in which two sets of data X_i and Y_i are converted to rankings x_i and y_i before calculating the coefficient.cite book
last = Myers
first = Jerome L.
coauthors = Arnold D. Well
title = Research Design and Statistical Analysis
publisher = Lawrence Erlbaum
year = 2003
edition = second edition
isbn = 0805840370
pages = p. 508
] In practice, however, a simpler procedure is normally used to calculate ρ. The raw scores are converted to ranks, and the differences d_i between the ranks of each observation on the two variables are calculated.

If there are no tied ranks, i.e. egexists_{i,j} (i e j wedge (X_i=X_j vee Y_i=Y_j))

then ρ is given by:

: ho = 1- {frac {6 sum d_i^2}{n(n^2 - 1)


:d_i = x_i - y_i = the difference between the ranks of corresponding values X_i and Y_i, and

:"n" = the number of values in each data set (same for both sets).

If tied ranks exist, classic Pearson's correlation coefficient between ranks has to be used instead of this formula:

: ho=frac{n(sum x_iy_i)-(sum x_i)(sum y_i)}{sqrt{n(sum x_i^2)-(sum x_i)^2}~sqrt{n(sum y_i^2)-(sum y_i)^2.

One has to assign the same rank to each of the equal values. It is an average of their positions in the ascending order of the values:

An example of averaging ranks

In the table below, notice how the rank of values that are the same is the mean of what their ranks would otherwise be.

The values in the d^2_i column can now be added to find sum d_i^2 = 194. The value of n is 10. So these values can now be substituted back into the equation,

: ho = 1- {frac {6 imes194}{10(10^2 - 1)

which evaluates to ho = -0.175758 which shows that the correlation between IQ and hour spend between TV is really low (barely any correlation). In the case of ties in the original values, this formula should not be used. Instead, the Pearson correlation coefficient should be calculated on the ranks (where ties are given ranks, as described above).

Determining significance

The modern approach to testing whether an observed value of ρ is significantly different from zero (we will always have 1 ≥ ρ ≥ −1) is to calculate the probability that it would be greater than or equal to the observed ρ, given the null hypothesis, by using a permutation test. This approach is almost always superior to traditional methods, unless the data set is so large that computing power is not sufficient to generate permutations, or unless an algorithm for creating permutations that are logical under the null hypothesis is difficult to devise for the particular case (but usually these algorithms are straightforward).

Although the permutation test is often trivial to perform for anyone with computing resources and programming experience, traditional methods for determining significance are still widely used. The most basic approach is to compare the observed ρ with published tables for various levels of significance. This is a simple solution if the significance only needs to be known within a certain range or less than a certain value, as long as tables are available that specify the desired ranges. A reference to such a table is given below. However, generating these tables is computationally intensive and complicated mathematical tricks have been used over the years to generate tables for larger and larger sample sizes, so it is not practical for most people to extend existing tables.

An alternative approach available for sufficiently large sample sizes is an approximation to the Student's t-distribution with degrees of freedom N-2. For sample sizes above about 20, the variable:t = frac{ ho}{sqrt{(1- ho^2)/(n-2): ho = frac{t}{sqrt{n-2+t^2has a Student's t-distribution in the null case (zero correlation). In the non-null case (i.e. to test whether an observed ρ is significantly different from a theoretical value, or whether two observed ρs differ significantly) tests are much less powerful, though the "t"-distribution can again be used.

A generalization of the Spearman coefficient is useful in the situation where there are three or more conditions, a number of subjects are all observed in each of them, and we predict that the observations will have a particular order. For example, a number of subjects might each be given three trials at the same task, and we predict that performance will improve from trial to trial. A test of the significance of the trend between conditions in this situation was developed by E. B. Page and is usually referred to as Page's trend test for ordered alternatives.

Correspondence analysis based on Spearman's rho

Classic correspondence analysis is a statistical method which gives a score to every value of two nominal variables, in this way that Pearson's correlation coefficient between them is maximized.

There exists an equivalent of this method, called grade correspondence analysis, which maximizes Spearman's rho or Kendall's tau [cite book|last=Kowalczyk|first=T.|coauthors=Pleszczyńska E. , Ruland F. (eds.)| year=2004|title=Grade Models and Methods for Data Analysis with Applications for the Analysis of Data Populations|series=Studies in Fuzziness and Soft Computing vol. 151|publisher=Springer Verlag|location=Berlin Heidelberg New York|isbn=9783540211204] .

ee also

* Kendall tau rank correlation coefficient
* Rank correlation
* Chebyshev's sum inequality, rearrangement inequality (These two articles may shed light on the mathematical properties of Spearman's ρ.)
* Pearson product-moment correlation coefficient, a similar correlation method that instead relies on the data being linearly correlated.



* C. Spearman, "The proof and measurement of association between two things" Amer. J. Psychol. , 15 (1904) pp. 72–101
* M.G. Kendall, "Rank correlation methods" , Griffin (1962)
* M. Hollander, D.A. Wolfe, "Nonparametric statistical methods" , Wiley (1973)

External links

* [http://www.sussex.ac.uk/Users/grahamh/RM1web/Rhotable.htm Table of critical values of ρ for significance with small samples]
* [http://www.wessa.net/rankcorr.wasp Online calculator]
* [http://faculty.vassar.edu/lowry/webtext.html Chapter 3 part 1 shows the formula to be used when there are ties]
* [http://udel.edu/~mcdonald/statspearman.html Spearman's rank correlation] : Simple notes for students with an example of usage by biologists and a spreadsheet for Microsoft Excel for calculating it (a part of materials for a "Research Methods in Biology" course).

Wikimedia Foundation. 2010.

Look at other dictionaries:

  • Spearman's rank correlation coefficient — See significance tests …   Dictionary of sociology

  • Spearman rank correlation coefficient — a rank correlation coefficient used when both variables represent ordinal data in an unlimited ranking, such as class standing, so that each sample is assigned a unique rank. Symbol rs. Called also Spearman rho. Cf. Kendall rank correlation c …   Medical dictionary

  • Spearman rank correlation coefficient (rho) — Spear·man rank correlation coefficient (rho) (spērґmən) [Charles Edward Spearman, British psychologist, 1863–1945] see under coefficient …   Medical dictionary

  • rank correlation coefficient — the correlation coefficient of two variables calculated after ranks have been substituted for actual values. See also Kendall rank correlation c. and Spearman rank correlation c …   Medical dictionary

  • Spearman Rank Correlation Coefficient —   a statistical measure of the degree to which two sets of data are correlated according to the formula:   Rs = (1 6x ∑d2) / (n3 n)   where d is the difference between the rank values of the data sets. While it can show how strongly data is… …   Geography glossary

  • Kendall tau rank correlation coefficient — The Kendall tau rank correlation coefficient (or simply the Kendall tau coefficient, Kendall s tau; or tau test(s)) is a non parametric statistic used to measure the degree of correspondence between two rankings and assessing the significance of… …   Wikipedia

  • Kendall rank correlation coefficient — a rank correlation coefficient used when both variables represent ordinal data in a limited number of grades, such as the categories none, mild, moderate, and severe, so that multiple samples can be assigned to each grade; called also Kendall tau …   Medical dictionary

  • Correlation coefficient — may refer to: Pearson product moment correlation coefficient, also known as r, R, or Pearson s r, a measure of the strength of the linear relationship between two variables that is defined in terms of the (sample) covariance of the variables… …   Wikipedia

  • Rank correlation — In statistics, rank correlation is the study of relationships between different rankings on the same set of items. It measures the correspondence between two rankings and assesses its significance. Correlation coefficientsTwo of the more popular… …   Wikipedia

  • Pearson product-moment correlation coefficient — In statistics, the Pearson product moment correlation coefficient (sometimes referred to as the MCV or PMCC, and typically denoted by r ) is a common measure of the correlation between two variables X and Y . In accordance with the usual… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”