One-Factor Analysis of Variance

Use a one-factor (one-way) analysis of variance to test whether kk population means are equal. Compute the F-statistic from SSB and SSW, from sample means and variances, and use the F-distribution to reach a conclusion.

Step 1 of 128%

Tutorial

Introduction to One-Way ANOVA

A one-factor analysis of variance (one-way ANOVA) tests whether kk population means are all equal, using independent random samples from each population. The hypotheses are

H0: μ1=μ2==μkH_0:\ \mu_1 = \mu_2 = \cdots = \mu_k Ha: at least one μi differs from the others.H_a:\ \text{at least one } \mu_i \text{ differs from the others.}

We assume each population is approximately normal with a common variance σ2\sigma^2.

The test statistic is

F=MSBMSW,MSB=SSBk1,MSW=SSWNk,F = \dfrac{\text{MSB}}{\text{MSW}}, \qquad \text{MSB} = \dfrac{\text{SSB}}{k-1}, \qquad \text{MSW} = \dfrac{\text{SSW}}{N-k},

where kk is the number of groups and N=n1+n2++nkN = n_1 + n_2 + \cdots + n_k is the total sample size. Under H0H_0, the statistic follows an F-distribution with k1k-1 numerator and NkN-k denominator degrees of freedom.

The numerator MSB measures variation between group means; the denominator MSW measures variation within groups. A large value of FF indicates that the between-group variation is too large to be explained by within-group variation alone.

For example, suppose k=3k = 3 groups with n1=n2=n3=5n_1 = n_2 = n_3 = 5, so N=15N = 15. If SSB =24= 24 and SSW =36= 36, then

MSB=2431=12,MSW=36153=3,F=123=4,\begin{align*} \text{MSB} &= \dfrac{24}{3-1} = 12, \\ \text{MSW} &= \dfrac{36}{15-3} = 3, \\ F &= \dfrac{12}{3} = 4, \end{align*}

with (2, 12)(2,\ 12) degrees of freedom.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle