Statistical Methods · Clinical Research

Correlation

Quantifying the strength and direction of association between two continuous variables — without assuming that one causes the other.

−1−0.8−0.6−0.4−0.2 0 +0.2+0.4+0.6+0.8+1
Very strongStrongModerateWeakNeg. Neg. Neg.WeakModerateStrongVery strong

Step 1

Always Plot the Data First

A scatter diagram shows whether the association is linear, curved, or absent — information that a single number cannot convey on its own.

r ≈ +0.88
Strong positive — as x increases, y tends to increase
r ≈ 0
No linear association — knowing x tells you nothing about y
r ≈ −0.80
Strong negative — as x increases, y tends to decrease
Clinical example: In a cohort of 120 adults, age and systolic blood pressure show a Pearson correlation of r = 0.68 (p < 0.001) — a strong positive linear association. Older patients tend to have higher readings, though with considerable individual variation.

Pearson Correlation Coefficient

Measuring Linear Association

Pearson's r is the ratio of covariance to the product of standard deviations — rescaled to always lie in [−1, +1], making it comparable across datasets with different units.

r = ∑ᵢ (xᵢ − x̄)(yᵢ − ȳ) √ [ ∑ᵢ (xᵢ − x̄)² · ∑ᵢ (yᵢ − ȳ)² ]

Numerator = covariance  ·  Denominator rescales to [−1, +1]

Interpretation guide

Very strong
0.8 – 1.0
Strong
0.6 – 0.8
Moderate
0.4 – 0.6
Weak
0.2 – 0.4
Negligible
< 0.2

These thresholds are conventions, not universal laws. A correlation of 0.5 may be remarkably high in epidemiology yet weak in physics. Always interpret in context.

Hypothesis test   H₀: ρ = 0

t = r · √(n − 2) √(1 − r²)

Follows a t-distribution with n − 2 degrees of freedom under H₀. A significant p-value means the correlation is unlikely by chance.

Significance ≠ Importance

With a large sample, even r = 0.08 can be statistically significant yet be of no clinical importance. Always report the magnitude of r alongside the p-value.

Pearson assumes

N

Normality

Both variables should be continuous and approximately normally distributed.

L

Linearity

The relationship must be linear — inspect the scatter diagram to verify before calculating r.

O

No outliers

A single extreme point can markedly inflate or deflate r. Pearson is not robust to outliers.

Non-parametric Alternatives

Rank Correlation Coefficients

When normality or linearity fails — ordinal data, skewed distributions, or outliers that cannot be removed — rank-based methods operate on the ranks of observations rather than their raw values.

rs

Spearman's Rank Correlation

Charles Spearman, 1904

rs = 1 − 6 ∑ᵢ dᵢ² n(n² − 1)

Apply Pearson's formula to the ranks of each variable. The simplified formula (above) holds when there are no tied ranks, where dᵢ is the rank difference for observation i.

Use when: data are ordinal, non-normal, or contain outliers.

Pain scores (0–10 scale) vs analgesic dose in 30 patients: rs = 0.74 (p < 0.001) — strong positive association.
τ

Kendall's Rank Correlation

Maurice Kendall, 1938

τ = C − D ½ n(n − 1)

Counts concordant pairs (C) where rankings agree and discordant pairs (D) where they disagree. Total pairs = ½n(n−1).

Use when: many tied ranks, or a more robust estimate is preferred. τ gives smaller values than rs for the same data.

Same pain-score data: τ = 0.57 — smaller than rs = 0.74, but pointing to the same strong positive association.

Decision Guide

Choosing Between the Coefficients

Inspect the scatter diagram and check distributional assumptions. When in doubt, the diagram will usually point clearly to the right method.

Coefficient Data type Distribution Outliers Relationship type
Pearson r Continuous Both variables ~normal Sensitive — avoid or investigate Linear only
Spearman rs Ordinal or continuous Non-normal acceptable More robust than Pearson Monotonic
Kendall τ Ordinal or continuous Non-normal acceptable Robust; preferred with many ties Monotonic
All three share a key limitation: they measure only monotonic associations — relationships where one variable consistently increases (or decreases) as the other does. A U-shaped relationship can produce r ≈ 0 even when the variables are strongly related. This is why visual inspection of the scatter diagram must always come first.

Critical Limitations

What Correlation Cannot Tell You

r ≠ Causation

A high correlation between two variables does not imply that one causes the other. Both may be driven by a third, unmeasured variable — or the association may be purely coincidental.

r ≠ Agreement Between Methods

If Method B always reads exactly twice as high as Method A, Pearson r = 1.0 — yet the methods disagree at every observation. Use the Bland–Altman plot for method comparison, not r.

r ≠ Non-linear Relationships

A U-shaped or inverted-U relationship can produce r ≈ 0 even when the variables are strongly related. A scatter diagram always comes first — r is blind to curvature.