Português

One-way ANOVA

Means (parametric) · Three or more independent groups · reference distribution: F(k−1, N−k)

When to use it

Compare the means of three or more independent groups at once, without inflating the type I error with several t-tests.

Null hypothesis

All means are equal: μ₁ = μ₂ = … = μₖ.

Assumptions

Test statistic

F = \dfrac{MS_{\text{between}}}{MS_{\text{within}}}

Effect size

η²: the share of the total variation explained by the groups. ω² is less biased. Benchmarks: 0.01, 0.06 and 0.14.

\eta^2 = \dfrac{SS_{\text{between}}}{SS_{\text{total}}}

How to report it

F(2, 42) = 4.87, p = .013, η² = .19

In R and Python

R
summary(aov(y ~ group, data = df))
Python
stats.f_oneway(a, b, c)

In Python, stats is scipy.stats and np is numpy.

Variants and alternatives

Where it sits in the catalog

Means (parametric). Parametric tests assume a model for the data, usually the normal distribution, and compare its parameters, such as the mean. When the assumption holds, they are the most powerful.

Three or more independent groups. Several groups of different individuals, tested at once: one test per pair would inflate the type I error.

In the decision tree

  1. What do you want to do? Compare groups, or one group with a reference value
  2. What kind of response did you measure? Numeric: a measurement, such as weight, time or score
  3. How many groups or measurements? Three or more groups
  4. Are the groups made of different individuals or the same individuals? Different individuals (independent)
  5. Are the residuals approximately normal? Yes

Open the decision tree