Statistical interaction is a feature of a statistical relationship in which the association between one predictor and an outcome varies with the value of another predictor. It represents a departure from a model in which predictors contribute separately on a specified scale. Interactions can involve categorical or continuous variables and more than two predictors; their presence does not, by itself, establish a causal mechanism. (online.stat.psu.edu)
Definition and interpretation
For two predictors and , an additive model for the conditional mean of an outcome has the form
In this model, the change associated with moving from one value to another is the same at every value of . Interaction occurs when this separability fails on the scale being modeled. Thus, interaction concerns how predictors jointly relate to an outcome, rather than merely whether both predictors are associated with it. (pmc.ncbi.nlm.nih.gov)
For binary predictors coded 0 and 1, let . Additive interaction is measured by the contrast
Equivalently, compares the difference associated with when with the corresponding difference when . No additive interaction means . (pmc.ncbi.nlm.nih.gov)
As a constructed example, suppose the four means are:
| 10 | 15 | |
| 14 | 25 |
The difference associated with is 4 when , but 10 when . The interaction contrast is therefore . This describes a pattern in the means; a causal interpretation requires additional assumptions.
Interaction in regression
A common interaction model in linear regression is
The product is an interaction term. For continuous , the conditional slope is
Thus, describes how the slope for changes as increases. If is binary, the slopes are in the reference group and in the other group. With both predictors binary, equals the interaction contrast defined above. (online.stat.psu.edu)
The coefficients and , often called main-effect coefficients, are conditional: they describe associations when the other predictor equals zero. They are not generally overall average effects. Subtracting a reference value from a predictor changes where these coefficients are evaluated; algebraically, such centering leaves fitted values unchanged when the full model includes both lower-order terms and the product term. (online.stat.psu.edu)
The usual hierarchy principle retains the constituent lower-order terms when an interaction is included, even if those terms are not individually statistically significant. For categorical predictors with several levels, interaction is generally represented by multiple coefficients rather than one product coefficient. (online.stat.psu.edu)
Factorial experiments and analysis of variance
In a factorial design, combinations of factor levels are studied together, allowing interactions to be estimated. A two-factor analysis of variance model separates factor main effects from an interaction component. A main effect summarizes differences averaged across levels of another factor, whereas interaction describes variation in those differences across levels. (online.stat.psu.edu)
An interaction plot displays outcome means against one factor, with separate lines for levels of another. Parallel population-mean lines indicate no additive interaction for the displayed contrasts; nonparallel lines indicate interaction. Lines need not cross for an interaction to exist, and nonparallel sample estimates require an assessment of uncertainty. (online.stat.psu.edu)
Higher-order interactions are also possible. A three-way interaction means that a two-way interaction changes across levels of a third predictor. Models for three-factor experiments can contain all three main effects, three two-way product terms, and a three-way product term. (itl.nist.gov)
Dependence on scale
Interaction is scale-dependent. An additive relationship on one outcome scale may become nonadditive after transformation. Consequently, a statement that interaction is absent is incomplete unless it identifies the relevant scale or model. (pmc.ncbi.nlm.nih.gov)
For binary outcomes, let denote the outcome probability for each combination of two binary predictors:
No additive interaction in probabilities means
No multiplicative interaction in probabilities, for positive probabilities, means
These conditions are different and need not hold together. (pmc.ncbi.nlm.nih.gov)
In logistic regression, a product term represents interaction on the log-odds scale, or equivalently departure from multiplicativity of odds ratios. Its absence does not imply absence of interaction in outcome probabilities or risk differences. The modeled scale therefore determines the interpretation of the interaction coefficient. (pmc.ncbi.nlm.nih.gov)
Statistical inference and causal interpretation
Hypothesis tests for interaction assess whether an interaction coefficient or a set of interaction contrasts differs from zero. In multi-level categorical models, an overall interaction test may involve several coefficients. Estimates and confidence intervals describe the magnitude and uncertainty of the interaction more directly than a significance label alone. (online.stat.psu.edu)
A statistically significant association in one subgroup and a nonsignificant association in another do not establish interaction. The relevant question is whether the subgroup associations differ, which requires evaluating their difference rather than comparing their separate significance labels. (doi.org)
Statistical interaction is distinct from mechanistic interaction. Observed nonadditivity can describe an association without showing that two factors jointly produce an outcome through a particular mechanism. Causal inference about joint effects additionally depends on study design, identification assumptions, and adequate control of confounding. Some epidemiological frameworks distinguish effect modification, concerning variation in one exposure’s causal effect across strata, from causal interaction, concerning the joint causal effects of two exposures. (pmc.ncbi.nlm.nih.gov)
References
- 6.2.3. Interaction Effectsitl.nist.gov
- 6.1.5. Estimate Main and Interaction Effectsitl.nist.gov
- The Meaning of Interactionpmc.ncbi.nlm.nih.gov
- Measuring additive interaction using odds ratiospmc.ncbi.nlm.nih.gov
- Recommendations for presenting analyses of effect modification and interactionpmc.ncbi.nlm.nih.gov