Ask Mallard
Core concept

Choosing a correlation coefficient

5 min read

Use Pearson for linear association, Spearman for association between ranks, and Kendall for concordance between pairs of rankings.

Fit

When it matters, and when it does not

It matters when

  • You want to describe how two variables move together.
  • You can inspect paired values and choose the relationship of interest before testing.

It matters less when

Before you start

What to check in your study

Decide these first
  1. The scale of each variableDistinguish measured quantities from ordered categories.
  2. The shape of the relationshipPlot the values. A monotonic relationship keeps moving in one direction, even if it curves.
  3. Tied values and repeated observationsPlan how to handle ties and dependence within people.
It rests on these
  1. Each pair of values comes from an independent unit.How to check: Repeated values per person need a method that models that dependence.
  2. The interval method fits the coefficient and data.How to check: Bivariate normal assumptions concern usual Pearson inference. Choose a suitable alternative when those assumptions fail.

Plain language

How it works

Correlation is not agreement
Measurements from method A against method B lie along a tight straight line, but above the dashed line of perfect agreement by a constant amount: highly correlated, not in agreement.Correlation is not agreement: a constant offset between two methodsMethod AMethod BPerfect agreementTightly correlated, yet method B always reads higherTwo methods can correlate almost perfectly and never agree. Bland-Altman limits of agreement show theoffset directly.
Conceptual diagram. It shows the structure of the idea, not data from any study.
How it works

Pearson summarizes a straight-line relationship using the measured values. It is sensitive to extreme observations and to the range of values sampled. It can be computed without normal data; its usual tests add distribution assumptions.

The choice at a glance
Linear association: Measured values and a straight-line target leads to Pearson; Monotonic association: Ranks and a one-direction target leads to Spearman; Pair ordering: Concordant and discordant pairs leads to Kendall; tau-b for ties.Linear associationMeasured values and a straight-line targetPearsonUse the study question and assumptions together.Monotonic associationRanks and a one-direction targetSpearmanUse the study question and assumptions together.Pair orderingConcordant and discordant pairsKendall; tau-b for tiesUse the study question and assumptions together.
Conceptual diagram. It shows the structure of the idea, not data from any study.
Reading the choice

Spearman is Pearson correlation applied to ranks, using average ranks for ties. It describes a monotonic relationship rather than just a straight line. It is less sensitive to extreme magnitudes, but is not immune to problems.

What decides it

Kendall compares concordant with discordant pairs: whether two observations have the same order on both variables. Tau-b adjusts for ties. None of these coefficients captures every curved pattern or establishes a causal effect.

Worked example

A worked example

Invented for illustration
Setting
Two instruments measure the same quantity.
Question
Does perfect association show that they agree?
Approach
Instrument A reads 1, 2 and 3 units. Instrument B reads 6, 7 and 8 units for the same samples.
Result
Their mean readings are 2 and 7 units: a difference of 5 units. Pearson and Spearman are both 1.
What it means
The instruments rank samples identically and follow a straight line, yet disagree by 5 units on every sample.

In practice

Recent studies PubMed search · not vetted

Searching PubMed…

Watch out

Common mistakes

The one to remember

Correlation measures association, not agreement or cause. A coefficient near zero can hide a strong curved relationship.

  • Choosing Spearman solely because a normality test fails.Instead: Decide whether the target is linear association or rank association. Inspect shape, tails and outliers.
  • Comparing Kendall and Pearson by the same strength cut-offs.Instead: The coefficients use different scales of association. State the coefficient, its interval and the scatter plot.

Inside Mallard

How Mallard uses this

Mallard lists Choosing a correlation coefficient under Core research concepts.

No Mallard code example points to this page.
Calculators: Pearson correlation (§2.7), Spearman correlation (§2.8).
Atlas node concept.choosing_correlation, the id a plan cue records.

Work it out

Related Learn pages

Related designs and methods

Evidence

Sources & further reading

  1. Comparing the Pearson and Spearman correlation coefficients across distributions and sample sizes: A tutorial using simulations and empirical data (opens in a new tab) · Psychol Methods · doi 10.1037/met0000079
  2. Asymptotic Properties of Spearman's Rank Correlation for Variables with Finite Support (opens in a new tab) · PLoS One · doi 10.1371/journal.pone.0145595
  3. [Mathematical treatment of rank correlation--a comparison of Spearman's and Kendall's coefficients] (opens in a new tab) · Z Psychol Z Angew Psychol
Prepared with AI assistance. Source titles, authors, publication years and available DOIs were verified against PubMed on 2026-11-06. No independent professional approval is claimed. De Winter and colleagues compare Pearson and Spearman by simulation and empirical data. Ornstein and Lyhagen study rank inference with finite support. Böttcher and Posthoff compare Spearman and Kendall; PubMed lists no DOI for that record.
Last source review: 2026-11-06
AI-generated educational content
Mallard uses reputable methodological and reporting sources, but this material may contain errors or omit important context. Verify important methodological decisions with the cited sources and, when appropriate, a qualified research methodologist or statistician.