ANOVA
Assumptions
Master the three critical assumptions behind Analysis of Variance and learn to verify, diagnose, and interpret results with confidence.
What is ANOVA?
Analysis of Variance (ANOVA) is a statistical method used to test whether the means of three or more groups are significantly different from one another. Instead of running multiple t-tests, ANOVA gives us a single test.
ANOVA compares variation between groups to variation within groups. If the between-group variation is large relative to within-group variation, we conclude the group means are not all equal.
The F-Statistic Explained
The F-statistic is the ratio: \( F = \frac{MS_{\text{Between}}}{MS_{\text{Within}}} \). A large F value suggests that the differences between group means are unlikely due to chance alone.
Why Do Assumptions Matter?
ANOVA's validity depends on three key assumptions. If these are violated, the F-test may produce misleading p-values: either too many false positives (Type I errors) or missed real differences (Type II errors).
The Three Core Assumptions
Assumption 1: Independence
Each observation must be statistically independent. This means the value of one measurement does not affect or predict any other measurement in the dataset.
Assumption 2: Normality
The data within each group (or equivalently, the residuals) should follow a normal distribution. This assumption is most critical when sample sizes are small.
Assumption 3: Equal Variances
Homogeneity of variance (homoscedasticity) requires that all groups share approximately the same variance: \( \sigma_1^2 \approx \sigma_2^2 \approx \cdots \approx \sigma_k^2 \).
Formal Hypotheses in ANOVA
All group means are equal.
Not all group means are equal.
The test statistic follows an F-distribution with \( df_1 = k - 1 \) (between) and \( df_2 = N - k \) (within), where \( k \) = number of groups and \( N \) = total observations.
ANOVA vs Multiple t-tests
| ANOVA | Multiple t-tests | |
|---|---|---|
| Groups | 3 or more | Pairwise (2 at a time) |
| Type I Error | Controlled at \( \alpha \) | Inflated (compounds) |
| Tests needed | 1 overall test | \( \binom{k}{2} \) tests |
| Result | "At least one differs" | Pairwise differences |
| Follow-up | Post-hoc tests | Not needed |
How to Check Assumptions
Example 1: Training Programs
A company tests three training programs (A, B, C) to see if they produce different average productivity scores. 15 employees are randomly assigned: 5 per group.
Example 1: Running the Test
Example 2: Assumption Violation
A researcher measures customer satisfaction across 3 store locations. But one store has a much wider range of scores than the others.
Reading an ANOVA Table
| Source | \( SS \) | \( df \) | \( MS \) | \( F \) | p-value |
|---|---|---|---|---|---|
| Between | 643.35 | 2 | 321.68 | 24.74 | \( < 0.001 \) |
| Within | 156.00 | 12 | 13.00 | ||
| Total | 799.35 | 14 |
Common Mistakes
Question 1 of 5
Which of the following is NOT an assumption required for one-way ANOVA?
Question 2 of 5
In an ANOVA test, the F-statistic is calculated as:
Question 3 of 5
A Levene's test returns \( p = 0.03 \). What should you conclude about the equal variance assumption?
Question 4 of 5
An ANOVA test with 4 groups and 10 observations per group has degrees of freedom:
Question 5 of 5
After a significant ANOVA result, a researcher wants to determine which specific groups differ. The appropriate next step is: