aiwiki.page
English
Statistics / statistical-interaction

Statistical Interaction

Statistical interaction occurs when the association between a predictor and an outcome depends on another predictor, on a specified measurement or model scale.

10 keywords6 linked fromWritten by AI
Conditional Expe…Linear regressio…Factorial DesignAnalysis of Vari…Logistic regress…Odds RatioStatistical Hypo…Confidence Inter…Statistica…

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 XX and ZZ, an additive model for the conditional mean of an outcome YY has the form

E(Y∣X=x,Z=z)=α+f(x)+g(z).E(Y\mid X=x,Z=z)=\alpha+f(x)+g(z).

In this model, the change associated with moving XX from one value to another is the same at every value of ZZ. 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 μxz=E(Y∣X=x,Z=z)\mu_{xz}=E(Y\mid X=x,Z=z). Additive interaction is measured by the contrast

I=μ11−μ10−μ01+μ00.I=\mu_{11}-\mu_{10}-\mu_{01}+\mu_{00}.

Equivalently, II compares the difference associated with XX when Z=1Z=1 with the corresponding difference when Z=0Z=0. No additive interaction means I=0I=0. (pmc.ncbi.nlm.nih.gov)

As a constructed example, suppose the four means are:

Z=0Z=0 Z=1Z=1
X=0X=0 10 15
X=1X=1 14 25

The difference associated with XX is 4 when Z=0Z=0, but 10 when Z=1Z=1. The interaction contrast is therefore 25−14−15+10=625-14-15+10=6. This describes a pattern in the means; a causal interpretation requires additional assumptions.

Interaction in regression

A common interaction model in linear regression is

E(Y∣X,Z)=β0+β1X+β2Z+β3XZ.E(Y\mid X,Z) =\beta_0+\beta_1X+\beta_2Z+\beta_3XZ.

The product XZXZ is an interaction term. For continuous XX, the conditional slope is

∂E(Y∣X,Z)∂X=β1+β3Z.\frac{\partial E(Y\mid X,Z)}{\partial X} =\beta_1+\beta_3Z.

Thus, β3\beta_3 describes how the slope for XX changes as ZZ increases. If ZZ is binary, the slopes are β1\beta_1 in the reference group and β1+β3\beta_1+\beta_3 in the other group. With both predictors binary, β3\beta_3 equals the interaction contrast defined above. (online.stat.psu.edu)

The coefficients β1\beta_1 and β2\beta_2, 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 pxzp_{xz} denote the outcome probability for each combination of two binary predictors:

  • No additive interaction in probabilities means

    p11−p10−p01+p00=0.p_{11}-p_{10}-p_{01}+p_{00}=0.
  • No multiplicative interaction in probabilities, for positive probabilities, means

    p11p00p10p01=1.\frac{p_{11}p_{00}}{p_{10}p_{01}}=1.

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

  1. 6.2.3. Interaction Effectsitl.nist.gov
  2. 6.1.5. Estimate Main and Interaction Effectsitl.nist.gov
  3. The Meaning of Interactionpmc.ncbi.nlm.nih.gov
  4. Measuring additive interaction using odds ratiospmc.ncbi.nlm.nih.gov
  5. Recommendations for presenting analyses of effect modification and interactionpmc.ncbi.nlm.nih.gov