Factorial ANOVA: Models, Interactions, and Effect Sizes

Fundamentals of Factorial Designs

  • Definition: An experimental design incorporating two or more independent variables (factors), where each factor contains two or more levels.

  • Factor Combinations: Conditions represent all possible combinations of factor levels (e.g., a 2×52 \times 5 factorial design yields 1010 unique conditions).

  • Between-Subjects Structure: Each participant is assigned to exactly one experimental condition, maintaining statistical independence among observations.

  • Key Advantages:

    • High efficiency by testing multiple factors within a single study.

    • Enables evaluation of interactions to determine whether the effect of one factor depends on the level of another.

The Factorial ANOVA Linear Model

  • Score Decomposition: Each individual observation (YijkY_{ijk}) for subject ii at factor level jj and factor level kk is modeled as:   Yijk=μjk+ϵijk=μ+αj+βk+(αβ)jk+ϵijkY_{ijk} = \mu_{jk} + \epsilon_{ijk} = \mu + \alpha_j + \beta_k + (\alpha\beta)_{jk} + \epsilon_{ijk}

  • Model Components:

    • μ\mu: Overall grand mean of the population.

    • αj=μj−μ\alpha_j = \mu_j - \mu: Main effect of Factor AA at level jj.

    • βk=μk−μ\beta_k = \mu_k - \mu: Main effect of Factor BB at level kk.

    • (αβ)jk(\alpha\beta)_{jk}: Interaction effect specific to cell jkjk.

    • ϵijk\epsilon_{ijk}: Random within-cell error variance (ϵijk∼N(0,σe2)\epsilon_{ijk} \sim N(0, \sigma_e^2)).

Sum of Squares and Degrees of Freedom

  • Partition of Total Variation:   SSTotal=SSA+SSB+SSAB+SSerrorSS_{\text{Total}} = SS_A + SS_B + SS_{AB} + SS_{\text{error}}

  • Sum of Squares Equations:

    • Total variation: SSTotal=∑(Xijk−Xˉgm)2SS_{\text{Total}} = \sum (X_{ijk} - \bar{X}_{\text{gm}})^2

    • Factor AA variation: SSA=n×b×∑(XˉAj−Xˉgm)2SS_A = n \times b \times \sum (\bar{X}_{Aj} - \bar{X}_{\text{gm}})^2

    • Factor BB variation: SSB=n×a×∑(XˉBk−Xˉgm)2SS_B = n \times a \times \sum (\bar{X}_{Bk} - \bar{X}_{\text{gm}})^2

    • Cell variation: SScells=n×∑(Xˉjk−Xˉgm)2=SSA+SSB+SSABSS_{\text{cells}} = n \times \sum (\bar{X}_{jk} - \bar{X}_{\text{gm}})^2 = SS_A + SS_B + SS_{AB}

    • Interaction variation: SSAB=SScells−SSA−SSBSS_{AB} = SS_{\text{cells}} - SS_A - SS_B

    • Within-cell error variation: SSerror=∑(Xijk−Xˉjk)2=SSTotal−SScellsSS_{\text{error}} = \sum (X_{ijk} - \bar{X}_{jk})^2 = SS_{\text{Total}} - SS_{\text{cells}}

  • Degrees of Freedom Formulation:

    • dfA=a−1df_A = a - 1

    • dfB=b−1df_B = b - 1

    • dfAB=(a−1)(b−1)df_{AB} = (a - 1)(b - 1)

    • dferror=ab(n−1)df_{\text{error}} = ab(n - 1)

    • dfTotal=N−1=abn−1df_{\text{Total}} = N - 1 = abn - 1

Hypothesis Testing and Mean Squares

  • Mean Squares (MSMS): Computed by dividing each Sum of Squares by its corresponding degrees of freedom:   MS=SSdfMS = \frac{SS}{df}

  • Error Variance Estimation: MSerror=SSerrordferror=σ^e2MS_{\text{error}} = \frac{SS_{\text{error}}}{df_{\text{error}}} = \hat{\sigma}_e^2, representing the average of within-cell variances.

  • FF-Statistic Construction:

    • Factor AA: FA=MSAMSerrorF_A = \frac{MS_A}{MS_{\text{error}}}

    • Factor BB: FB=MSBMSerrorF_B = \frac{MS_B}{MS_{\text{error}}}

    • Interaction: FAB=MSABMSerrorF_{AB} = \frac{MS_{AB}}{MS_{\text{error}}}

  • Null Hypotheses (H0H_0):

    • Main Effect of AA: Marginal means of factor AA are equal (αj=0\alpha_j = 0 for all jj).

    • Main Effect of BB: Marginal means of factor BB are equal (βk=0\beta_k = 0 for all kk).

    • Interaction (A×BA \times B): The effect of factor AA does not depend on factor BB ((αβ)jk=0(\alpha\beta)_{jk} = 0 for all jkjk).

  • Distributional Logic: Under a true null hypothesis, each MSMS provides an independent, unbiased estimate of σe2\sigma_e^2, producing an FF-ratio near 11. When H0H_0 is false, MSeffect>MSerrorMS_{\text{effect}} > MS_{\text{error}}, leading to F≫1F \gg 1.

Interaction Dynamics and Common Errors

  • Two-Way Interaction: Assesses whether the difference between conditions on one factor varies across levels of a second factor, visually characterized by non-parallel lines.

Interaction patterns showing parallel lines for no interaction versus non-parallel lines for significant interactions
  • Three-Way Interaction: Evaluates whether a two-way interaction changes across levels of a third factor (A×B×CA \times B \times C).

  • Difference Between Differences: An interaction formally tests:   H0:d1−d2=0H_0: d_1 - d_2 = 0   where d1=(b2−b1)d_1 = (b_2 - b_1) at level a1a_1 and d2=(b2−b1)d_2 = (b_2 - b_1) at level a2a_2.

  • Erronous Interaction Inferences:

    • Inferring an interaction by conducting separate pairwise tests (e.g., finding a significant effect at a1a_1, p<0.05p < 0.05, and a non-significant effect at a2a_2, p>0.05p > 0.05) is invalid.

    • The difference between a significant effect and a non-significant effect is not inherently statistically significant.

    • Nieuwenhuis, Forstmann, & Wagenmakers (2011) identified that out of 513 reviewed neuroscience articles in Science, Nature, Nature Neuroscience, Neuron, and The Journal of Neuroscience, 78 applied the correct factorial interaction test, whereas 79 made this incorrect inference.

Effect Size and Association Strength

  • Sample Size Sensitivity: FF-values and pp-values depend directly on sample size NN. Massive samples yield statistical significance for trivial effects, whereas small samples can cause large effects to remain non-significant (p>0.05p > 0.05) due to low power.

  • Cohen's dd: Measures the standardized difference between two marginal means relative to within-group standard deviation:   d=Yˉ−Xˉσ^d = \frac{\bar{Y} - \bar{X}}{\hat{\sigma}}

  • Cohen's ff: Standardized measure of group mean dispersal around the grand mean:   f=∑j=1adj2a=η21−η2f = \sqrt{\frac{\sum_{j=1}^a d_j^2}{a}} = \sqrt{\frac{\eta^2}{1 - \eta^2}}   fpartial=ηpartial21−ηpartial2f_{\text{partial}} = \sqrt{\frac{\eta_{\text{partial}}^2}{1 - \eta_{\text{partial}}^2}}

  • Eta-Squared (η2\eta^2): Proportion of total variance explained by an effect:   η2=SSeffectSSTotal\eta^2 = \frac{SS_{\text{effect}}}{SS_{\text{Total}}}

  • Partial Eta-Squared (ηpartial2\eta_{\text{partial}}^2): Proportion of variance explained after removing variation attributable to other factors and interactions:   ηpartial2=SSeffectSSeffect+SSerror\eta_{\text{partial}}^2 = \frac{SS_{\text{effect}}}{SS_{\text{effect}} + SS_{\text{error}}}

    • Note: ηpartial2≥η2\eta_{\text{partial}}^2 \ge \eta^2 because other systematic sources are removed from the denominator.

  • Omega-Squared (ω2\omega^2) and Partial Omega-Squared (ωp2\omega_p^2): Less biased population estimates compared to η2\eta^2.

  • Cohen's Rule-of-Thumb Benchmarks:

    • Small: η2,ω2=0.01\eta^2, \omega^2 = 0.01; Cohen's f=0.1f = 0.1

    • Medium: η2,ω2=0.06\eta^2, \omega^2 = 0.06; Cohen's f=0.25f = 0.25

    • Large: η2,ω2=0.14\eta^2, \omega^2 = 0.14; Cohen's f=0.4f = 0.4

  • Interpretation (Prentice & Miller, 1992): Statistical significance does not inherently imply a large effect, nor does a small effect imply practical or theoretical triviality.