Statistical Methods · Clinical Research
Quantifying the strength and direction of association between two continuous variables — without assuming that one causes the other.
Step 1
A scatter diagram shows whether the association is linear, curved, or absent — information that a single number cannot convey on its own.
Pearson Correlation Coefficient
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.
Numerator = covariance · Denominator rescales to [−1, +1]
Interpretation guide
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
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
Normality
Both variables should be continuous and approximately normally distributed.
Linearity
The relationship must be linear — inspect the scatter diagram to verify before calculating r.
No outliers
A single extreme point can markedly inflate or deflate r. Pearson is not robust to outliers.
Non-parametric Alternatives
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.
Spearman's Rank Correlation
Charles Spearman, 1904
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.
Kendall's Rank Correlation
Maurice Kendall, 1938
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.
Decision Guide
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 |
Critical Limitations
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.
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.
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.