01 / 21

ANOVA
Assumptions

Master the three critical assumptions behind Analysis of Variance and learn to verify, diagnose, and interpret results with confidence.

Business Statistics

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

F-Statistic
\( MS_{\text{Between}} \text{ (Treatment)} \)
\( MS_{\text{Within}} \text{ (Error)} \)
\( \text{Mean Square} = \frac{SS}{df} \)

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).

Type I Risk
Violated assumptions can inflate the false positive rate well above \( \alpha = 0.05 \).
Type II Risk
Loss of statistical power means real group differences go undetected.
Trustworthy Results
Checking assumptions ensures your business decisions rest on reliable evidence.

The Three Core Assumptions

1
Independence: Observations within and across groups must be independent of each other. One data point cannot influence another.
2
Normality: The data within each group should be approximately normally distributed (or residuals should be normal).
3
Homogeneity of Variance (Homoscedasticity): The variance \( \sigma^2 \) should be roughly equal across all groups.

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.

Independent No connections Dependent Correlated observations

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.

Value Density mean
How to Check
Use histograms, Q-Q plots, or the Shapiro-Wilk test on each group's data.
Robustness
ANOVA is robust to mild non-normality when \( n \geq 30 \) per group (Central Limit Theorem).

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 \).

Group A Group B Group C ≈ ≈ ✓ Equal spread = Assumption met Narrow Medium Wide ≠ ≠ ✕ Unequal spread = Assumption violated

Formal Hypotheses in ANOVA

Null Hypothesis
\( H_0: \mu_1 = \mu_2 = \cdots = \mu_k \)
All group means are equal.
Alternative Hypothesis
\( H_a: \) At least one \( \mu_i \) differs.
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

1
Check Independence: Review how data was collected. Ensure random sampling and no repeated measures on the same subjects.
2
Check Normality: Create histograms or Q-Q plots for each group. Run the Shapiro-Wilk test (if \( p > 0.05 \), normality holds).
3
Check Equal Variances: Run Levene's test. Or use the rule of thumb: the largest group standard deviation should be no more than twice the smallest.
4
If violated: Consider data transformations, non-parametric tests (Kruskal-Wallis), or Welch's ANOVA for unequal variances.

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.

Productivity Score 60 70 80 90 A B C

Example 1: Running the Test

1
Grand mean: The mean of all 15 scores. For balanced groups, this is \( \frac{71+80+87}{3} = 79.33 \).
2
SS Between: \( SS_B = 5[(71-79.33)^2 + (80-79.33)^2 + (87-79.33)^2] = 643.35 \)
3
SS Within: \( SS_W = \sum \text{(deviations within each group)}^2 = 156.00 \)
4
F-statistic: \( F = \frac{MS_B}{MS_W} = \frac{643.35/2}{156/12} = \frac{321.68}{13.00} = 24.74 \)

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.

Satisfaction Score 20 40 60 80 S1
\( s = 5 \)
S2
\( s = 6 \)
S3
\( s = 28 \)

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

✕ Skipping Assumption Checks
Running ANOVA without verifying normality, equal variances, or independence leads to unreliable p-values.
✕ Over-Interpreting Rejection
Rejecting \( H_0 \) only means "at least one group differs." It does not specify which groups or by how much.
✕ Using Multiple t-tests
Running many pairwise t-tests instead of ANOVA inflates the family-wise error rate dramatically.

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: