Pearson vs Spearman Correlation: Which One Should You Use?
Sooner or later, almost every medical student asks the same question during thesis analysis: "As one thing goes up, does the other thing go up too?" Does BMI rise with blood sugar? Do study hours rise with quiz marks? Questions like these — about the relationship between two numeric variables — are answered with a correlation coefficient. And the moment you go looking for one, you meet two names examiners love to ask about: Pearson and Spearman. This guide explains what each one does, when each one is the right choice, and how to work through a complete example by hand, so the numbers in your results chapter actually mean something to you.
What a Correlation Coefficient Tells You
Both Pearson's r and Spearman's ρ (rho) are single numbers between −1 and +1 that summarise a relationship between two variables:
- The sign tells you the direction: positive means the variables tend to increase together; negative means one increases as the other decreases.
- The size (ignoring the sign) tells you the strength: near 0 means weak or none; near 1 or −1 means strong and consistent.
- The p-value tells you whether a relationship this strong could plausibly have appeared by luck alone if there were really no relationship in the population. Below 0.05, we call the correlation statistically significant. (If p-values still feel fuzzy, read our guide on what a p-value really means.)
The difference between Pearson and Spearman is not which one is "better" — it is what kind of relationship each one measures, and what kind of data each one can handle.
Pearson Correlation: For Straight-Line Relationships
Pearson's correlation coefficient (r) measures the strength of a linear relationship between two variables — how closely the points on a scatter plot follow a straight line. It uses the actual values of your measurements. Pearson is the right choice when all of the following are true:
- Both variables are numeric (measured on a scale): age, weight, haemoglobin, blood pressure, marks, scores. Not categories, and not ranks.
- The relationship is roughly linear. As X increases, Y increases (or decreases) at a fairly steady rate — the scatter plot looks like a cloud stretched along a straight line, not a curve.
- There are no extreme outliers. Pearson uses the actual values, so one wildly unusual patient — a blood sugar of 900 typed into a column of values around 100 — can drag the line and badly distort r. This sensitivity to outliers is Pearson's biggest weakness.
- For the p-value to be fully trustworthy, the data should be roughly normally distributed, without heavy skew.
When these conditions hold, Pearson is the more precise of the two, and the one most journal articles report for measured clinical variables.
Spearman Correlation: For Ranks, Ordinal Data and Curves
Spearman's rank correlation coefficient (ρ) does something clever: before calculating anything, it converts each variable's values into ranks — the smallest value becomes rank 1, the next becomes rank 2, and so on — and then measures how consistently the two sets of ranks move together. Because it only cares about the order of the values, not their exact size, Spearman measures a monotonic relationship: Y consistently goes up (or down) as X goes up, even if the pattern is curved rather than straight.
Choose Spearman when any of these apply:
- Your data is ordinal — it has a natural order but the gaps between levels are not equal numbers. The classic example is a Likert scale: strongly disagree / disagree / neutral / agree / strongly agree, or pain scored as none / mild / moderate / severe. You cannot honestly say the "distance" between mild and moderate pain equals the distance between moderate and severe — so Pearson's arithmetic on raw values does not make sense, but ranks do.
- The relationship is monotonic but curved. For example, antibody levels that rise quickly at first and then level off. Pearson would understate this because it insists on a straight line; Spearman captures it properly.
- Your data has outliers or is heavily skewed. A value of 900 and a value of 300 may both simply be "the largest value in the column" = the top rank. Ranks tame outliers automatically.
- Your sample is small and you cannot reasonably check normality.
Step Zero: Always Draw the Scatter Plot First
Before choosing either coefficient, plot your data. A scatter plot takes ten seconds and shows things no single number can: whether the relationship looks straight or curved, which direction it runs, and whether one strange point sits far from all the others. Two datasets can produce the identical correlation coefficient while looking completely different — one a clean line, another a curve, another a cloud with a single outlier doing all the work. Never report a correlation you have not looked at.
A Worked Example: Study Hours and Quiz Scores
Suppose five students report how many hours they studied for a pharmacology quiz, and you record their scores:
| Student | Study hours (x) | Quiz score (y) |
|---|---|---|
| 1 | 1 | 2 |
| 2 | 2 | 4 |
| 3 | 3 | 5 |
| 4 | 4 | 4 |
| 5 | 5 | 5 |
By eye, more study hours seem to go with higher scores — but how strong is the relationship, really? Let us calculate both coefficients.
Pearson for this data: r ≈ 0.77
Pearson's formula compares how far each value sits from its mean, in both variables at once. The means here are x̄ = 3 hours and ȳ = 4 marks. Working through the standard formula — the numerator (sum of (x − x̄)(y − ȳ)) is 6, and the sums of squared deviations are 10 and 6, so:
r = 6 ÷ √(10 × 6) = 6 ÷ 7.75 ≈ 0.77
A Pearson r of about 0.77 means a strong positive linear relationship: in this small sample, students who studied more tended to score noticeably higher, and the points sit fairly close to a straight rising line.
Spearman for this data: ρ = 0.75
Now rank each variable. Study hours are already in order, so their ranks are simply 1 to 5. For quiz scores, 2 is the smallest (rank 1); the two 4s share ranks 2 and 3, so each gets the average rank 2.5; the two 5s share ranks 4 and 5, so each gets 4.5. (Tied values always receive the average of the ranks they share.) Then d is the difference between the two ranks for each student:
| Student | x | y | Rank of x | Rank of y | d | d² |
|---|---|---|---|---|---|---|
| 1 | 1 | 2 | 1 | 1 | 0 | 0 |
| 2 | 2 | 4 | 2 | 2.5 | −0.5 | 0.25 |
| 3 | 3 | 5 | 3 | 4.5 | −1.5 | 2.25 |
| 4 | 4 | 4 | 4 | 2.5 | 1.5 | 2.25 |
| 5 | 5 | 5 | 5 | 4.5 | 0.5 | 0.25 |
The sum of d² is 5. Spearman's formula is ρ = 1 − [6 × Σd²] ÷ [n × (n² − 1)], so with n = 5:
ρ = 1 − (6 × 5) ÷ (5 × 24) = 1 − 30 ÷ 120 = 1 − 0.25 = 0.75
Spearman's ρ of 0.75 tells the same story from the ranking point of view: students ordered by study hours match the order by quiz score quite consistently. The two coefficients are close here (0.77 vs 0.75) because the relationship is fairly linear and there are no outliers — when the data is well behaved, Pearson and Spearman usually agree. They disagree exactly where the choice matters: curves, outliers, and ordinal data.
How to Interpret the Strength: Cohen's Bands
A coefficient of 0.77 sounds impressive, but what counts as "strong"? Cohen's widely used rule of thumb, based on the absolute value |r| (ignore the sign when judging strength):
| |r| or |ρ| | Interpretation |
|---|---|
| 0.10 | Small (weak) effect |
| 0.30 | Medium (moderate) effect |
| 0.50 and above | Large (strong) effect |
So 0.1 is a small correlation, 0.3 is medium, and 0.5 or more is large. Our example values of 0.77 and 0.75 are comfortably in the "large" band. Two cautions: these bands are conventions, not laws — in clinical research, a "small" correlation of 0.2 between a risk factor and a disease can still matter a great deal — and strength is separate from significance. With a huge sample, even r = 0.08 can be statistically significant; with five students, even r = 0.77 may not reach p < 0.05. Report the coefficient and the p-value, always.
Correlation Is Not Causation
This sentence appears in every statistics textbook because students keep forgetting it in every thesis discussion chapter. A strong correlation between study hours and quiz scores does not prove that studying more caused the higher scores. Perhaps motivated students both study more and pay more attention in lectures. Correlation cannot distinguish these stories. The same trap appears in clinical data constantly: hospital stay correlates with mortality, but the sickest patients simply stay longest. Your cross-sectional survey can show that two variables move together; claiming one causes the other needs a different study design, not a bigger correlation coefficient. Write "was associated with" in your conclusions, not "caused" or "led to".
Quick Decision Guide
- Both variables truly numeric, relationship looks straight, no wild outliers? → Pearson.
- Ordinal data (Likert scales, grades, pain categories)? → Spearman.
- Relationship curves but keeps going one direction? → Spearman.
- Outliers you cannot remove or skewed data? → Spearman.
- Still unsure? Run both. If they tell very different stories, the scatter plot will show you why — and Spearman is usually the safer one to report. If you are unsure which analysis fits your variables at all, see our guide on choosing the right statistical test.
What to Write in Your Thesis
Examiners want one clean sentence naming the test, coefficient, sample size and p-value. For example: "There was a strong positive correlation between study hours and quiz scores (Pearson r = 0.77, n = 5)." In your methodology, state your selection rule: "Pearson's correlation was used for normally distributed numeric variables; Spearman's rank correlation was used for ordinal variables and non-normal data." That sentence quietly answers the viva question before it is asked.
Frequently Asked Questions
Can I use Pearson correlation on Likert scale data?
It is common in student theses, but hard to defend: Likert responses are ordinal, and the gaps between "agree" and "strongly agree" are not measured numbers. Spearman's ρ is the safer choice for Likert items and skewed questionnaire scales — and much easier to justify if an examiner challenges you.
What if Pearson and Spearman give very different results for the same data?
Treat that as a warning sign, not a nuisance. It usually means an outlier is pulling Pearson around, or the relationship is curved. Look at the scatter plot, and report Spearman if the relationship is monotonic but not straight — and mention the discrepancy honestly in your discussion.
Does a correlation of 0 mean there is no relationship?
No. It means there is no linear (Pearson) or monotonic (Spearman) relationship. A perfect U-shape — values high at both extremes and low in the middle — can give r ≈ 0 even though the variables are strongly related. One more reason the scatter plot always comes first.
Related Guides
- Which Statistical Test Should I Use? — a decision guide for the tests your examiner will ask about.
- What Is a P-Value? A Simple Explanation for Medical Students
- How to Use FormStat: From Google Forms Responses to a Finished Report — run correlations and every other analysis step by step.
- How to Calculate Sample Size for a Cross-Sectional Study
Run It Free on Your Phone
You do not need SPSS or a laptop for any of this. Run Pearson and Spearman correlation free in FormStat — pick your two numeric questions and get both coefficients with a scatter plot and a plain-English interpretation.
Run this analysis in seconds with the FormStat app. No signup, no laptop, works offline.