Interaction in Two-Way ANOVA

In a two-way ANOVA we study how two factors, A and B, jointly affect a response. The full model is


Yijk=μ+αi+βj+(αβ)ij+εijkY_{ijk} = \mu + \alpha_i + \beta_j + (\alpha\beta)_{ij} + \varepsilon_{ijk}


Interaction, (αβ)ij(\alpha\beta)_{ij}, measures whether the effect of Factor A changes across levels of Factor B (and vice versa).


If the two factors act additively, the change in mean response from one level of A to another is the same at every level of B, the interaction terms are all zero.


When the interaction terms are not all zero, the factors interact: the size or direction of one factor's effect depends on the level of the other. In a crossover interaction, the best level may change.

Profiles of mean response across levels of Factor B (B1, B2) for two levels of Factor A, shown in two panels (Panel 1 left, Panel 2 right). The legend applies to both panels.

Profiles of mean response across levels of Factor B (B1, B2) for two levels of Factor A, shown in two panels (Panel 1 left, Panel 2 right). The legend applies to both panels.

Detecting interaction

Plot the cell means against the levels of one factor, drawing a separate line for each level of the other factor (an interaction plot). Roughly parallel lines suggest no interaction; lines that cross or diverge sharply suggest interaction. A plot only gives a visual clue, the formal test uses the ANOVA table.

Testing interaction

With aa levels of A, bb levels of B, and rr replicates per cell, the interaction sum of squares SSABSS_{AB} has (a−1)(b−1)(a-1)(b-1) degrees of freedom, and


FAB=MSABMSE=SSAB/[(a−1)(b−1)]SSE/(N−ab)F_{AB} = \frac{MS_{AB}}{MS_E} = \frac{SS_{AB}/[(a-1)(b-1)]}{SS_E/(N-ab)}


compared against F(a−1)(b−1), N−abF_{(a-1)(b-1),\,N-ab}. A small p-value provides evidence, under the ANOVA assumptions, that the effect of one factor depends on the level of the other.

Worked mini-example

Suppose mean yields are: Catalyst 1–Low = 20, Catalyst 1–High = 30, Catalyst 2–Low = 25, Catalyst 2–High = 20. Catalyst 1's yield rises with temperature while Catalyst 2's falls, the lines would cross, hinting at interaction, which you would then assess for statistical significance using the F-test above.

Reaction Yield by Temperature for Two Catalysts

Reaction Yield by Temperature for Two Catalysts



Look at the figure showing two interaction plots. Which panel provides visual evidence of an interaction between Factor A and Factor B?

Profiles of mean response across levels of Factor B (B1, B2) for two levels of Factor A, shown in two panels (Panel 1 left, Panel 2 right). The legend applies to both panels.

Profiles of mean response across levels of Factor B (B1, B2) for two levels of Factor A, shown in two panels (Panel 1 left, Panel 2 right). The legend applies to both panels.

Reaction Yield by Temperature for Two Catalysts

Reaction Yield by Temperature for Two Catalysts

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

In a two-way ANOVA, which statement correctly describes an interaction effect between Factor A and Factor B?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Using the graph of mean reaction yield versus temperature for two catalysts, which conclusion is best supported by the pattern shown?

Profiles of mean response across levels of Factor B (B1, B2) for two levels of Factor A, shown in two panels (Panel 1 left, Panel 2 right). The legend applies to both panels.

Profiles of mean response across levels of Factor B (B1, B2) for two levels of Factor A, shown in two panels (Panel 1 left, Panel 2 right). The legend applies to both panels.

Reaction Yield by Temperature for Two Catalysts

Reaction Yield by Temperature for Two Catalysts

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors