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.
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)
- One-way ANOVA compares means of ≥ 3 independent groups with a single F test, avoiding inflated type I error from multiple t-tests
- Total sum of squares = between-group SS + within-group (residual) SS
- F = MSbetween ÷ MSwithin, where MS = SS ÷ df; df between = k − 1, df within = N − k
- Under H0 (all means equal) F ≈ 1; the P value comes from the F distribution on (k − 1, N − k) df
Guideline
SAMPL guidelines for basic statistical reporting (2015), CONSORT 2025 statement (including multi-arm trials) and ICH E9(R1) statistical principles (2019)
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.
- Hopewell S, Chan AW, Collins GS, et al.. CONSORT 2025 statement: updated guideline for reporting randomised trials. BMJ 2025.
- 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.
- Altman DG, Bland JM. Comparing several groups using analysis of variance. BMJ 1996.
- Bland JM, Altman DG. Multiple significance tests: the Bonferroni method. BMJ 1995.
- Schulz KF, Grimes DA. Multiplicity in randomised trials I: endpoints and treatments. Lancet 2005.
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.