Understand the idea
A drug might lower blood pressure a lot in younger patients but barely at all in older patients. Age and drug do not each act independently and add up: the drug's effect literally CHANGES depending on age. That dependency is an interaction.
Without an interaction, two predictors' effects are 'additive': the combined effect of both is just the sum of each one's separate effect, no matter what the other predictor's value is. An interaction is the specific claim that this additivity breaks down: the lines on a plot of the outcome against one predictor, drawn separately for each level of the other predictor, are not parallel.
Interactions matter because reporting only the 'main effect' of a predictor when a strong interaction is present can be actively misleading: an average effect across all ages might look like nothing when the true story is 'strongly helps the young, does nothing for the old'.
When one variable changes the effect of another, the first is often called a moderator variable, and an interaction in the model is how that moderation is tested. A crossover interaction is the extreme case where the lines on an interaction plot cross: one group does better under one condition and worse under the other. An interaction term is the extra piece added to a model so that the effect of one variable can depend on another, and the interaction effect is the size of that dependence.
Practitioner explanation
In a two-way ANOVA or a regression with a product term (x1 * x2), the interaction coefficient tests whether the SLOPE (or level shift) attributable to x1 differs across levels of x2. A significant interaction changes the interpretation of the corresponding main effects: with a strong interaction present, a main effect is an average over levels of the other factor and may not describe any single level well, and main effects are then usually reported alongside, not instead of, the interaction.
Interaction terms multiply the number of parameters and the demand for statistical power sharply: detecting an interaction of a given size typically requires several times the sample needed to detect a main effect of the same size, which is a common and under-appreciated cause of 'the interaction wasn't significant' in modestly sized studies. Centering continuous predictors before forming the product term reduces (though does not eliminate) collinearity between the interaction and its component main effects.
KernelStats' two-way ANOVA card reports the interaction term's own F-statistic, p-value and partial eta-squared separately from each main effect (the factorial-DOE card likewise reports each interaction effect; the linear-regression card has no automatic product terms), and the Result Card's guidance flags a significant interaction so the analyst is prompted to interpret simple effects at each level rather than reading the main effects in isolation.
When to use it
Consider it when
Whenever there is a substantive reason to think one predictor's effect might depend on another's level: a treatment that could work differently by subgroup, a process factor whose effect could depend on a machine setting.
Use caution when
Do not add interaction terms purely to explore every possible combination without a prior reason; each added interaction costs power and multiplies the multiple-comparisons burden.
Formulas and symbols
Two-way ANOVA interaction term
alpha_i and beta_j are the main effects of factors A and B; (alpha*beta)_ij is the interaction, testing whether A's effect differs across levels of B.
Common misconceptions
Misconception
If neither main effect is significant, the interaction cannot be significant either.
Correction
An interaction can be significant even when both main effects are not: a classic crossover pattern (one predictor helps at one level of the other and hurts at the other level) can average out to a near-zero main effect while the interaction itself is large and real.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §5.3.3.3.5 Interactions in a factorial design, NIST/SEMATECH (2012), §5.3.3.3.5.
