Questions tagged [spearman-rho]

Spearman's rank correlation coefficient, usually denoted as $\rho$, is a measure of concordance between two random variables.

Spearman's rho is a measure of concordance between two random variables. It is the linear (Pearson) correlation of the probability transformed random variables.

Let $r_{i,j}$ be the rank of $y_{i,j}$ among responses $\{ y_{1,j}, ..., y_{n,j}\}$ for $i = \{1, ..., n\}, j \in {1,2}$

$$\hat{\rho} = \text{Cor}[(r_{1,1},...,r_{n,1}),(r_{1,2},...r_{n,2})]$$

This measure is between -1 and +1 and depends only on the rank of the data values and so is invariant to monotonic transformations (unlike usual moment correlation).

It can also be expressed as a measure of concordance based on ranks, and has many properties in common with Kendall's tau.

For more information:


English psychologist Charles Spearman is best known for the Spearman rank correlation coefficient, or Spearman's rho. He also worked in factor analysis and is known for his work on models for human intelligence.

His best known work, the Spearman rank correlation coefficient, or Spearman's rho, is simply a Pearson correlation coefficient computed on the ranks of the data. It is a widely used measure of monotonic association between variables. It is unaffected by monotonic increasing transformation of the variables.

The Spearman correlation has good efficiency properties for measuring linear correlation at the normal and has much better robustness than the Pearson coefficient in the presence of outliers.

466 questions
5
votes
1 answer

Spearman's rank correlation coefficient

When trying to learn about the differences between Spearman and Pearson correlation coefficients, I was pointed towards this paper: http://geoinfo.amu.edu.pl/qg/archives/2011/QG302_087-093.pdf But the very last sentence of the paper in the…
user1551817
  • 1,203
5
votes
0 answers

Comparing two dependent Spearman's rank correlation coefficients

I would like to test whether there is a significant difference between two dependent Spearman's rank correlation coefficients. I found Steiger's Z test is one of the helpful ways of comparing two dependent correlation coefficients. I would ask…
2
votes
2 answers

Unsure how interpret the results of Spearman’s rank. My p-value is <0.05, but $\rho$ is close to zero so no correlation?

data: conflict$Livestock_density and conflict$Forest_density S = 1e+08, p-value = 0.04 alternative hypothesis: true rho is not equal to 0 sample estimates: rho -0.0694 Does $\hat{\rho} = -0.0694$ mean I should interpret test as not providing…
user374142
2
votes
1 answer

Spearman rank correlation -- evaluating assumptions

I am trying to evaluate whether there is any bivariate correlation between several non-normally distributed variables. Is it appropriate, or not, to claim positive and negative correlations in these cases based on a Spearman rank-order test…
1
vote
1 answer

Spearman's rank correlation coefficient calculation

I tried to calculate Spearman's rank coefficient by hand. Data: But when I use python, it returns a different value. rawdata = pd.DataFrame( [ [3,4], [5,4], [6,2], [6,4], [8,9], [11,7] ], …
shin
  • 113
1
vote
0 answers

Comparision of two sets of rank correlation coefficients from two samples

How would I compare two sets of spearman correlation coefficients? I have two sets of Spearman correlation coefficients, which I calculated on two different datasets with international trade data. For both samples the Spearman correlation…
S.K.
  • 133
0
votes
1 answer

How to represent a Spearman correlation with a line?

Working in health science research. We have generated correlations between two variables. This is the amount of two proteins in the system. I wanted to make a straight line with slope, but the values of the straight lines are not consistent with the…
0
votes
1 answer

Should I use Spearman's rho or Pearson's r to estimate correlation between worker anxiety level and job performance?

I want to correlate the level of anxiety of workers (normal, moderate, severe, etc.) and their job performance (very high, high, moderate, etc.) what should I use?
0
votes
0 answers

Finding Spearman's rank correlation coefficient with sum of ranks

Xi and Yi are the ranks for the ith student such that Xi+Yi=21(I=1,...,20). Then the Spearman rank correlation coefficient between X and Y is? How do I even proceed with this. Coefficient requires difference of ranks??
0
votes
1 answer

Is there a minimal value range needed for spearman correlation?

if i have 10 pairs of values but the range of the values is very narrow - values are 2 or 3. is it ok to calculate spearman correlation for this? for example: 2 3 2 2 3 3 2 3 2 2 3 3 3 3 3 2
0
votes
1 answer

Correlation between two items with different scales

I want to examine a correlation between empathy of bystander and acting to help the victim. I have a question How do you feel and think when you witness violence: 1) he deserves it, 2) I don't feel anything, 3) I feel a bit sorry, 4) I feel very…
Semra
  • 1
0
votes
1 answer

Pearson vs. Spearman

I am correlating two small sets of values – 28 items each. The data are normally distributed and Pearson‘s test shows a weak, non-significant correlation. On the other hand, Spearman’s test shows a moderate and statistically significant correlation.…
H12345
  • 3
0
votes
1 answer

Difference between Theil-Sen Estimator and Spearman Correlation

Hi guys I have a very strange result My Spearman correlation says there is no correlation between temperature and number of users (alpha 5%). Data is autocorrelated, non normal, heteroskedastic. That is why I go for non parametric Yet if I do the…
Neon67
  • 69
0
votes
1 answer

How to measure correlation of ranking with ranking into groups?

Excuse my language, I am not a statistician so I will try to explain my question as a layman. If we rank items into groups, let's say best={a,b,c}, good={d,e,f,g}, average={h,i,j} and we have a measurement showing that a>h>b>c>d>i>j>e>f>g, how can…
Džuris
  • 151
0
votes
1 answer

Definition of monotonic, and implications for using Spearman's correlation

I have two variables: one labeled D is my dependent variable, and one labeled as I is my independent variable (according to my hypothesis). In order to test my hypothesis that a respondent's attitude towards "D" is dependent on their attitude to…
Alex
  • 1