Pearson and Spearman correlation both measure how closely two things move together, on a scale from -1 to 1.1PubMed Central. Raiders of the Lost Correlation: A Guide on Using Pearson and Spearman Coefficients to Detect Hidden Correlations in Medical Sciences They ask different questions, though. Pearson asks whether the points follow a straight line, while Spearman asks only whether one thing goes up whenever the other does.2Wikipedia. Spearman’s rank correlation coefficient The choice depends mainly on the shape of your data, and a scatter plot usually settles it.
The Core Difference Between Pearson and Spearman
Spearman’s coefficient is Pearson’s coefficient calculated on the rank order of the values instead of the values themselves.3statstutor. Spearman’s correlation Take five people’s heights and weights and replace each value with its rank from 1 to 5. A 2-meter giant and a slightly taller person both just get rank 5, so the size of the gap disappears. Run Pearson on those ranks and you get the Spearman value. That is why Spearman needs only the order of the values to make sense.
Because it keeps only which value is higher, Spearman measures monotonic relationships: ones where a variable is always moving in one direction as the other changes, whether in a straight line or not.2Wikipedia. Spearman’s rank correlation coefficient Monotonic also includes curves that keep climbing, like growth that slows over time. Pearson is meant only for straight-line relationships and isn’t recommended for other kinds.4The American Statistician. Myths About Linear and Monotonic Associations: Pearson’s r, Spearman’s ρ, and Kendall’s τ
Pearson works from how far each value sits from its column’s average, so the actual distances between values shape the result. Two datasets with the same ordering but very different spacing give the same Spearman value, while Pearson can differ between them. That makes Spearman the natural fit when you trust the order of your values but not their exact size.
When two variables rise together but at different rates, the relationship is monotonic but not linear.5Minitab Support. Linear, nonlinear, and monotonic relationships In one example of this pattern, Pearson gave 0.843 and Spearman gave 0.948.5Minitab Support. Linear, nonlinear, and monotonic relationships On curved, steadily rising data, then, Pearson can understate how tightly the two variables are linked.
A Quick Rule for Choosing
- Pearson: a straight-line pattern, roughly bell-shaped data, and no extreme values.1PubMed Central. Raiders of the Lost Correlation: A Guide on Using Pearson and Spearman Coefficients to Detect Hidden Correlations in Medical Sciences
- Spearman: data that aren’t normally distributed.1PubMed Central. Raiders of the Lost Correlation: A Guide on Using Pearson and Spearman Coefficients to Detect Hidden Correlations in Medical Sciences
- Spearman: a steady rise or fall that curves.2Wikipedia. Spearman’s rank correlation coefficient
- Spearman or Kendall’s tau: ranked data or ordered categories.6Computation. Recovering Latent Association from Likert-Type Responses: A Monte Carlo Comparison of Pearson, Spearman, Kendall, and Polychoric Correlations Under Discretization, Response Perturbation, and Gumbel-Copula Dependence
- Neither: a pattern that rises then falls (a U-shape); consider distance correlation.7MetricGate. Distance Correlation vs Pearson and Spearman
Start with the scatter plot. Put one variable on each axis and plot one dot per case. Look for whether the dots trace a line, a curve, or a hump, and circle any dot far from the rest before choosing.
When your data fit more than one line of the checklist, a few tiebreakers help. A straight-line pattern with one or two extreme dots points toward Spearman, because the extreme values can distort Pearson. Ordered categories override everything else: even a tidy-looking line from rating answers is best handled with Spearman or Kendall. If the plot looks like a hump, skip both and go to the last section.
Sample size matters too. In large gene-expression datasets, Pearson worked slightly better on average.8bioRxiv. Guidance for RNA-seq co-expression estimates: the importance of data normalization, batch effects, and correlation measures With fewer than 30 samples, though, Spearman had the advantage, because extreme values pull hard on small datasets.8bioRxiv. Guidance for RNA-seq co-expression estimates: the importance of data normalization, batch effects, and correlation measures
Running both coefficients is cheap and common. If they roughly agree, the choice matters little. A large gap between them signals curvature or outliers worth investigating. Whichever you report, say in your write-up which one you chose and why.
Outliers and Skewed Data
An outlier is a value far from the rest, such as a typo or one unusual case. When outliers contaminate data, Spearman performs better than Pearson and can detect real relationships more reliably.9PubMed Central. Robust Correlation Analyses: False Positive and Power Validation Using a New Open Source Matlab Toolbox One extreme value can only shift Spearman’s result by a limited amount.10Statistical Methods & Applications. Influence functions of the Spearman and Kendall correlation measures Its estimates can still be noticeably off when data are contaminated, though.9PubMed Central. Robust Correlation Analyses: False Positive and Power Validation Using a New Open Source Matlab Toolbox
Pearson uses the actual distance of each point from the average, so a point far from the cloud has a huge pull on the result. A single extreme point can make a weak or absent relationship look strong, or hide a real one. The effect is worse in small datasets, where there are few other points to outweigh it. Spearman turns that point into just the highest or lowest rank, so it counts as one step beyond the next value.
When you spot an extreme value, first decide whether it is a typo. An age of 250 or a height of 17 meters is clearly an entry error and should be corrected or removed. If the value is possible, such as an unusually high but real salary, treat it as real data. Go back to the original source, form, or instrument reading when you can before deciding, and write down what you changed and why so a reader can follow your decisions.
Don’t delete real values just to get a nicer number. If an extreme value is genuine, Spearman lets you keep it while limiting how much it distorts the result.
Rescaling is another place the two part ways. Spearman gives the same value on raw data and on log-transformed data, because the rank order doesn’t change.11CASRAI. Monotonic Relationships in Statistics Pearson stays the same only under simple rescaling, such as converting units.12The DO Loop. What is rank correlation? Log-transforming a skewed variable can therefore change Pearson’s result substantially.11CASRAI. Monotonic Relationships in Statistics Pearson tests on non-normal data can also produce more false findings and miss real ones.13PubMed Central. Testing the significance of a correlation with nonnormal data: comparison of Pearson, Spearman, transformation, and resampling approaches
Income, reaction times, and prices often bunch low with a long tail of high values. Pearson on such data can be driven by the few large values.
Survey and Rating-Scale Data
Likert-scale answers, such as 1 = strongly disagree to 5 = strongly agree, are ordered categories rather than true measurements.6Computation. Recovering Latent Association from Likert-Type Responses: A Monte Carlo Comparison of Pearson, Spearman, Kendall, and Polychoric Correlations Under Discretization, Response Perturbation, and Gumbel-Copula Dependence Coding answers 1 to 5 treats each step as the same size, but no one has shown the steps are equal. The gap between “agree” and “strongly agree” may not match the gap between other answers, and two respondents who both pick 4 may feel quite differently about the statement. Ranking methods rely only on the order of answers, so they avoid assuming equal steps.
Pearson may still be reasonable for questions with many answer options and evenly spread responses.6Computation. Recovering Latent Association from Likert-Type Responses: A Monte Carlo Comparison of Pearson, Spearman, Kendall, and Polychoric Correlations Under Discretization, Response Perturbation, and Gumbel-Copula Dependence Kendall’s tau is a natural choice for purely ordinal data.6Computation. Recovering Latent Association from Likert-Type Responses: A Monte Carlo Comparison of Pearson, Spearman, Kendall, and Polychoric Correlations Under Discretization, Response Perturbation, and Gumbel-Copula Dependence With heavy-tailed survey data, Spearman’s results were more stable and often closer to the true relationship.14PubMed. Comparing the Pearson and Spearman correlation coefficients across distributions and sample sizes: A tutorial using simulations and empirical data
Single items and summed scales differ. A single 5-point question is clearly ordinal, while adding up ten items gives a score that behaves more like a continuous measurement. Pearson becomes more defensible as the number of possible values grows.
Short scales also hide part of the link. With only three answer options, both Pearson and Spearman understate the underlying relationship.6Computation. Recovering Latent Association from Likert-Type Responses: A Monte Carlo Comparison of Pearson, Spearman, Kendall, and Polychoric Correlations Under Discretization, Response Perturbation, and Gumbel-Copula Dependence A modest coefficient on a short scale may therefore reflect a stronger real link.
Ties, Small Samples, and Reading the Result
Ties, or equal values, are common with rounded data or small whole numbers.15Journal of Applied Statistics. Correction methods for ties in rank correlations The usual fix gives tied values the average of the ranks they share.15Journal of Applied Statistics. Correction methods for ties in rank correlations If two people tie for 3rd and 4th place, each gets the rank 3.5, and the next value gets rank 5, so the total of the ranks stays what it would have been without ties. This keeps equal values from being treated as if one were higher than the other. If equal values are frequent and not corrected for, Spearman can give unreliable results.16IOSR Journal of Mathematics. Ties Adjusted Rank Correlation Coefficient Use software that adjusts for them, which most statistics packages do, but check that your tool does.
Equal values are rare with precise measurements such as time in seconds with decimals, but very common with ages in years, ratings, or counts. A few barely change the result, while a dataset where most values are repeated does. Check how many distinct values each variable has before you choose a method. If a variable has only a handful, a tie-adjusted method like Kendall’s tau is a sensible alternative.
Small samples bring their own problem: both coefficients tend to underestimate the true relationship.17Psychological Methods. Comparing the Pearson and Spearman Correlation Coefficients Across Distributions and Sample Sizes: A Tutorial Using Simulations and Empirical Data For a true correlation of 0.8, the average estimate from 5 cases is about 0.75 for Pearson and 0.69 for Spearman.17Psychological Methods. Comparing the Pearson and Spearman Correlation Coefficients Across Distributions and Sample Sizes: A Tutorial Using Simulations and Empirical Data With 20 cases, the averages rise to about 0.79 and 0.76.17Psychological Methods. Comparing the Pearson and Spearman Correlation Coefficients Across Distributions and Sample Sizes: A Tutorial Using Simulations and Empirical Data
In medicine, a value above 0.7 or below -0.7 is often called very strong, 0.5 to 0.7 moderate, 0.3 to 0.5 fair, and below 0.3 poor.1PubMed Central. Raiders of the Lost Correlation: A Guide on Using Pearson and Spearman Coefficients to Detect Hidden Correlations in Medical Sciences A negative sign means one variable goes down as the other goes up. Labels vary by field, though. Psychology often treats 0.3 as meaningful, while physics may expect values near 1, so compare your result with typical values in your own field.
A strong coefficient also doesn’t show that one variable causes the other. A hidden third factor can drive both, and this applies equally to Pearson and Spearman.
When Neither Fits
Pearson, Spearman, and Kendall can’t recognize U-shaped or hump-shaped relationships.18Biostatistics and Biometrics Open Access Journal. On Monotonic Relationships Performance, for example, often rises with stress up to a point and then falls. Pearson or Spearman on such data can come out near zero, but a value near zero doesn’t prove the two variables are unrelated. Fitting a curve or splitting the data at the peak are alternatives.
Distance correlation detects relationships of any shape.7MetricGate. Distance Correlation vs Pearson and Spearman It also performs well at finding curved relationships compared with Pearson and Spearman.19arXiv. Identifying nonlinear relations among random variables: A network analytic approach If your scatter plot shows a hump, report distance correlation or describe the shape directly.
It has a few caveats. It ranges from 0 to 1, so it doesn’t tell you the direction. It is less familiar to many readers, so explain it briefly. It is available in R and Python packages.

