📊 FormStat
FormStat Guides · By Abdul Hannan

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 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:

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:

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:

StudentStudy hours (x)Quiz score (y)
112
224
335
444
555

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:

StudentxyRank of xRank of ydd²
1121100
22422.5−0.50.25
33534.5−1.52.25
44442.51.52.25
55554.50.50.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.10Small (weak) effect
0.30Medium (moderate) effect
0.50 and aboveLarge (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

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

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.

Try it yourself — free.
Run this analysis in seconds with the FormStat app. No signup, no laptop, works offline.

← All guides