Clinical KnowledgeA–Z topicsExams ▾Start free

Clinical Knowledge › Epidemiology and biostatistics › Statistical tests

Analysis of variance (ANOVA)

Analysis of variance (ANOVA) tests whether the means of three or more groups differ, using a single test so that the type I error stays at the chosen alpha. It splits the total variability of a continuous outcome into variation between group means and variation within groups. The F statistic is the ratio of the between-group mean square to the within-group mean square: if all population means are equal, F is close to 1; large values of F give small P values. With k groups and N observations, df are k − 1 (between) and N − k (within). Worked example: three diets, 10 adults each, mean weight loss 4, 6 and 8 kg (SD 3): SSbetween 80, SSwithin 243, F = 40 ÷ 9 = 4.44 on 2 and 27 df, P = 0.021. A significant F says only that at least one mean differs; pre-specified contrasts or adjusted post hoc tests (Tukey, Bonferroni) show which. Variants include two-way ANOVA (interaction), repeated-measures ANOVA, ANCOVA and the rank-based Kruskal–Wallis test.

🔒 Full lesson for members
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
Box plots of several treatment groups
Box plots of several treatment groups Fatigue scores shown as box plots for several drug and placebo groups; comparing means across more than two groups calls for ANOVA rather than repeated t-tests. · Authors of the study: Dimitris Repantis et al. · CC BY 4.0 · Wikimedia Commons

Key facts (preview)

Guideline

SAMPL guidelines for basic statistical reporting (2015), CONSORT 2025 statement (including multi-arm trials) and ICH E9(R1) statistical principles (2019)

References

  1. 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.
  2. Hopewell S, Chan AW, Collins GS, et al.. CONSORT 2025 statement: updated guideline for reporting randomised trials. BMJ 2025.
  3. International Council for Harmonisation (ICH). E9 Statistical principles for clinical trials (1998) and E9(R1) addendum on estimands and sensitivity analysis in clinical trials (2019). ICH Harmonised Guideline 2019.
  4. Altman DG, Bland JM. Comparing several groups using analysis of variance. BMJ 1996.
  5. Bland JM, Altman DG. Multiple significance tests: the Bonferroni method. BMJ 1995.
  6. Schulz KF, Grimes DA. Multiplicity in randomised trials I: endpoints and treatments. Lancet 2005.

Related topics

Choosing a testt-testsChi-squared and FisherNon-parametric testsCorrelationLinear regressionLogistic and Cox regressionKaplan–Meier curves

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.