← View in Interactive Graph

One-Way and Two-Way ANOVA

🧠 What is ANOVA?

Analysis of Variance (ANOVA) helps determine whether group means are significantly different, using variance as the basis for comparison.

  1. Between-Group Sum of Squares (SSB):

$$ SSB = \sum_{i=1}^{k} n_i (\bar{x}_i - \bar{x})^2 $$ Meaning: - \bar{x}_i = mean of group i
- n_i = number of observations in group i
- How much the group means deviate from the overall grand mean \hat{x}.

**Represents**:  
- The variation explained by the **differences between the groups**  $\hat{x}$ .

  1. Within-Group Sum of Squares (SSW):

$$ SSW = \sum_{i=1}^{k} \sum_{j=1}^{n_i} (x_{ij} - \bar{x}_i)^2 $$

Meaning:  
- How much the data points **within each group** vary from their **own group mean**.

 **Represents**:  
- **Unexplained variation** — due to randomness or individual differences, **not group membership**.

$$ MSB = \frac{SSB}{k - 1}, \quad MSW = \frac{SSW}{N - k} $$

$$ F = \frac{MSB}{MSW} $$


📋 Example

Three teaching methods (A, B, C):

Steps:

Conclusion: Since F > F_{crit} = 4.26, we reject H_0. Teaching methods differ significantly.


Here's your Two-Way ANOVA (Equal Observations per Cell) section formatted consistently with your previous style:


🧪 Two-Way ANOVA (Equal Observations per Cell)

Used to study the effect of two factors and their interaction.

✅ Model

x_{ijk} = \mu + \alpha_i + \beta_j + (\alpha\beta)_{ij} + \epsilon_{ijk}

Where:
- \mu = overall mean
- \alpha_i = effect of Factor A (level i)
- \beta_j = effect of Factor B (level j)
- (\alpha\beta)_{ij} = interaction effect between Factor A and Factor B
- \epsilon_{ijk} = random error (residual variation)


📊 Total Variability Decomposition

SST = SSA + SSB + SSAB + SSE

1. Sum of Squares for Factor A (SSA)

SSA = bn \sum_{i=1}^{a} (\bar{x}_{i..} - \bar{x})^2

Meaning:
- a = number of levels in Factor A
- b = number of levels in Factor B
- n = number of observations per cell
- \bar{x}_{i..} = mean of all observations in level i of Factor A
- \bar{x} = grand mean

Represents:
- Variation due to Factor A alone.


2. Sum of Squares for Factor B (SSB)

SSB = an \sum_{j=1}^{b} (\bar{x}_{.j.} - \bar{x})^2

Meaning:
- \bar{x}_{.j.} = mean of all observations in level j of Factor B

Represents:
- Variation due to Factor B alone.


3. Sum of Squares for Interaction (SSAB)

SSAB = n \sum_{i=1}^{a} \sum_{j=1}^{b} (\bar{x}_{ij.} - \bar{x}_{i..} - \bar{x}_{.j.} + \bar{x})^2

Meaning:
- \bar{x}_{ij.} = mean of observations in cell (i,j) (combination of Factor A level i and Factor B level j)

Represents:
- Variation due to the interaction effect between Factor A and Factor B.


4. Sum of Squares for Error (SSE)

SSE = \sum_{i=1}^{a} \sum_{j=1}^{b} \sum_{k=1}^{n} (x_{ijk} - \bar{x}_{ij.})^2

Represents:
- Unexplained variation (residual error) after accounting for Factor A, Factor B, and their interaction.


Let me know if you'd like any modifications! 🔍

📋 Example

Factors: - Teaching Method: A, B - Study Time: 1 hr, 2 hrs - 2 students per cell

Data table:

1 hr 2 hrs
Method A 85, 87 90, 92
Method B 78, 80 82, 84

Results:

Decision

At \alpha = 0.05, F_{crit} = 7.71.
All F-values are less than F_{crit} → Fail to reject H_0 for both factors and interaction.



Tags: #math #statistics

Advanced_Statistics_and_Models