# Tag Info

### Is it meaningful to calculate Pearson or Spearman correlation between two Boolean vectors?

I would not advise to use Pearson's correlation coefficient for binary data, see the following counter-example: ...
• 3,603

### Correlations - Pearson and Spearman

Pearson correlation depends on the values of the data; Spearman correlation depends only on their (marginal) ranks. Thus, the former is (far) more sensitive to outlying data. What kind of outlying ...
• 328k

### Pearson or Spearman?

Neither correlation coefficient presupposes normality. Marginal or bivariate normality is completely irrelevant to the choice between them. They do differ in the questions they ask of the data. ...
• 127k

### How to calculate a confidence interval for Spearman's rank correlation?

Maybe some additional remarks about the comment of @chl The Spearman correlation can be seen as a Pearson correlation of the ranks. Ranks clearly do not follow a normal distribution, with the ...
• 663

I think I found the answer. In Pearson's "On further methods of determining correlation" (1907) he derives the expression: $$r=2 \sin \Big(\frac{\pi}{6}\rho\Big),$$ which implies, $$\rho= \frac{6}{\... • 271 12 votes ### Is it meaningful to calculate Pearson or Spearman correlation between two Boolean vectors? Arne's response above isn't quite right. Correlation is a measure of dependence between variables. The samples A and B are both independent draws, although they are from the same distribution, so we ... • 121 12 votes Accepted ### Minimum sample size for Spearman's correlation and Kendall's Tau b For the purposes of a hypothesis test, there are two related approaches to finding an optimal sample size that are viable if you're willing to assume bivariate normality. Power To estimate minimal ... • 1,110 12 votes Accepted ### Calculate Spearman and Pearson correlation on variables of different units Pearson correlation, \rho_{XY}, divides through by the product of the units and results in a unitless measure.$$ \rho_{XY}=\dfrac{ \text{cov}\left(X,Y\right) }{ \sigma_X\sigma_Y }  The covariance ...
• 64.8k

Pearson's correlation coefficient ($\boldsymbol{r}$) provides a measure of linear association between paired variables. Spearman's correlation coefficient ($\boldsymbol{r_{\bf{S}}}$) provides a ...
• 30.3k
Accepted

### Interpreting the results of different correlation methods

Correlation is not a binary yes/no property, but a continuous feature that can be weak or strong, which is indicated by the value of the correlation coefficient. Testing for "statistical ...
• 5,382
Accepted

### What is the explanation for having a Pearson's correlation coefficient significantly larger than the Spearman's rank correlation coefficient?

This is a simple dataset, where the points come alternating from two linear functions: The pearson correlation detects, there is a general upwards motion in the combined data (red an black together) ...
• 8,485
Accepted

### Spearman's rank correlation coefficient

What does each measure? Pearson's correlation coefficient is measure of the strength of a linear relationship between x and y. It is swayed by outliers much like a mean and standard deviation. ...

### Why Spearman's rank correlation ranges from from -1 to 1

See Wikipedia for the definition. Note that Spearman correlation is just the usual Pearson correlation, but calculated using the ranks of the data, not the data itself. So the reason it is always in ...
• 81.3k
Accepted

### Is Spearman correlation never greater than Pearson correlation?

Simple example in which Spearman correlation is greater than Pearson correlation: x = 1:10; y = x^2 cor(x,y, meth = "p") [1] 0.9745586 cor(x,y, meth = "s") [1] 1
• 57k

### How much can the Pearson and Spearman correlation coefficients differ in a dataset? (edited)

Sure. We can achieve this result by adding a single extreme data point to an otherwise uncorrelated, and nonmonotonically related, set of data: ...
• 40.4k
Accepted

### Does zero Spearman's rho imply zero Covariance?

Counterexample: X Y 1 500 2 1 3 2 4 3 5 4 For these values, Pearson's $r \approx -0.70$ Spearman's $\rho = 0$ That single large Y value affects the covariance ...
• 3,989
Accepted

### Equivalent to Spearman correlation for non-monotonic data

Is there a way to test if my data is monotonic prior to Spearman's rho / Kendall's tau correlation calculations? You could plot the data and look for a non-monotone shape. Also, you could fit a ...
• 63.9k
Accepted

### Correlation between a continous and integer variable

Although your emotional rating data are coded as integers, are you sure that a difference between scores of 1 and 2 means the same as a difference between scores of 8 and 9 (etc.)? If not, what you ...
• 95.4k

### Correlations - Pearson and Spearman

I know that Pearson correlation is sensitive to outliers, unlike Spearman correlation. There is a more striking difference between the two: Pearson assumes a linear relationship between the data, ...
• 4,429
Accepted

### What does it mean if the Pearson's correlation is significant but Spearman is not?

To stir the pot a little I suggest that it primarily means that one too many correlation coefficients was estimated. It is better to choose a measure based on statistical principles and stick with it....
• 95.7k

### Pearson's or Spearman's correlation with non-normal data

I think these figures (of Gross-Error Sensitivity and Asymptotic Variance) and quotation from the below paper will make it a bit clear: "The Kendall correlation measure is more robust and slightly ...
• 91
Accepted

### What can spearman's rank do that regression can't?

Regression can't do everything rank correlation does. If you are talking about simple linear regression on the raw data then Regression makes assumptions that Spearman's does not. Regression results ...
• 125k

### Calculate Spearman and Pearson correlation on variables of different units

Dave is already correct in his answer. The formula for the correlation is a unitless measure. Here I use R for illustration. If you scale your x and y values and run a correlation on them: ...
• 15.8k

As @Harvey Motulsky said, software will handle the ranking. But you will probably get the same results even if you rank the variables yourself first. Here is an example using ...
• 2,352

I think a couple valuable journal articles on this subject are de Winter et al., 2016 and Bishara & Hittner, 2015. I highlight the main points of both below, focusing primarily on Pearson and ...
• 15.8k

### Is there a technique similar to multiple regression which does not require linearity?

Estimating and Controlling Nonlinear Trends I realize you have already accepted an answer here, but I wanted to address what I perceive as unanswered parts of your question here. First, regarding this ...
• 15.8k

### Pearson's or Spearman's correlation with non-normal data

Even though this is an age old question, I would like to contribute the (cool) observation that Pearson's $\rho$ is nothing but the slope of the trend line between $Y$ and $X$ after means have been ...

### Are the balls drawn randomly (independently of the number of balls existing in their colours)?

Because your proposed test has no theoretical foundation and does not account for the correlations among the counts, it would not be a good use of our time to evaluate it. Instead, let's develop some ...
• 328k

### Difference between Cox regression and logistic regression; question about correlation assessment

1) A logistic regression calculates the probability of an event happening based on the factors you feed into your model, and it uses a logit transform to give you those probabilities. (I will assume ...
• 381