Clinical Knowledge › Epidemiology and biostatistics › Statistical tests
Correlation
Correlation measures the strength and direction of association between two variables measured on the same individuals. Pearson's correlation coefficient (r) measures linear association between two continuous, roughly normally distributed variables; Spearman's rank correlation (rho) measures monotonic association using ranks and suits ordinal or skewed data and outliers. Both range from −1 (perfect negative) through 0 (no linear or monotonic association) to +1 (perfect positive), have no units and are symmetrical. Worked example: age and SBP in six adults (Sxy 965, Sxx 1750, Syy 643.5) give r = 0.91, r² = 0.83, t = 4.37 on 4 df, P = 0.012, 95% CI 0.37 to 0.99. Always plot the data first: r misses curved relationships, is distorted by outliers, depends on the range sampled and says nothing about agreement or causation. A tiny r can be significant in a big sample (r = 0.2, n = 100, P = 0.046) while a strong r can be non-significant in a small one.
Patient case, mechanism, investigations, management, differentials, exam pearls, flashcards and exam-style questions. Included free with every exam plan (IFOM, MCCQE, AMC, Qatar, MRCP, OET) or a Clinical Knowledge plan.Open the lesson → See plans

Key facts (preview)
- Pearson r = Sxy ÷ √(Sxx × Syy), where Sxy = Σ(x − x̄)(y − ȳ); it ranges from −1 to +1 and has no units
- r² (coefficient of determination) is the proportion of variance in one variable explained by its linear relationship with the other
- Test of H0: ρ = 0 uses t = r√(n − 2) ÷ √(1 − r²) on n − 2 degrees of freedom
- Spearman's rho is Pearson's r calculated on ranks: rs = 1 − 6Σd² ÷ [n(n² − 1)] when there are no ties
Guideline
SAMPL guidelines for basic statistical reporting (2015), STROBE statement for observational studies (2007) and CONSORT 2025
References
- Lang TA, Altman DG. Basic statistical reporting for articles published in biomedical journals: the 'Statistical Analyses and Methods in the Published Literature' or the SAMPL guidelines. Int J Nurs Stud 2015.
- von Elm E, Altman DG, Egger M, Pocock SJ, Gøtzsche PC, Vandenbroucke JP. The Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) statement: guidelines for reporting observational studies. Lancet 2007.
- Hopewell S, Chan AW, Collins GS, et al.. CONSORT 2025 statement: updated guideline for reporting randomised trials. BMJ 2025.
- Schober P, Boer C, Schwarte LA. Correlation coefficients: appropriate use and interpretation. Anesth Analg 2018.
- Mukaka MM. Statistics corner: a guide to appropriate use of correlation coefficient in medical research. Malawi Med J 2012.
- Bland JM, Altman DG. Correlation, regression, and repeated data. BMJ 1994.
Related topics
By Dr Khalid Seidi (B.Sc., M.D.) · MedEd World Clinical Knowledge library. Original teaching content checked against current guidelines (November 2026); confirm the latest local guidance before clinical use. Not a substitute for clinical judgement.