0. ANOVA
๐ง What is ANOVA?
Analysis of Variance (ANOVA) is a statistical method used to compare means across multiple groups to determine if observed differences are due to actual effects or random variation.
๐ฌ Mathematical Foundation
ANOVA is based on variance decomposition: - Total variance = variance between groups (treatment effect) + variance within groups (random error) - It uses the F-statistic to assess whether the between-group variance is significantly greater than within-group variance.
Assumes: - Data is normally distributed - Equal variances across groups
๐ One-Way ANOVA
- Tests one factor (independent variable) with multiple levels.
- Example: comparing plant growth using three fertilizers (A, B, C).
Hypotheses:
- H_0: All group means are equal
- H_1: At least one group mean differs
Application:
Use when testing one factor like: - Teaching methods - Drug dosages - Machine settings
๐ Two-Way ANOVA
- Tests two factors and their interaction.
- Example: Fertilizer type (A, B) and watering schedule (daily, weekly)
Tests Three Hypotheses:
- Effect of Factor A (e.g., fertilizer)
- Effect of Factor B (e.g., watering)
- Interaction between A and B
Application:
Use when two variables may interact, e.g.: - Teaching method ร class size - Drug type ร gender
๐ Differences Between One-Way and Two-Way ANOVA
| Feature | One-Way ANOVA | Two-Way ANOVA |
|---|---|---|
| Factors | 1 | 2 |
| Interaction Test | โ No | โ Yes |
| Complexity | Lower | Higher |
| Example | Diet type effect | Diet ร Exercise interaction effect |
๐งช How ANOVA Works in Practice
- Define hypotheses (equal means vs. differences).
- Calculate between-group and within-group variance.
- Compute F-statistic.
- Compare with F-table critical value.
- If significant โ reject H_0, investigate further (e.g., post-hoc tests).
๐ง When to Use
-
โ One-Way ANOVA: Comparing multiple levels of a single factor
โ e.g., effects of 3 diets on weight loss -
โ Two-Way ANOVA: Studying two factors and their interaction
โ e.g., diet + exercise on weight loss
Tags: #math #statistics