Lably
Skip to content

Interaction (statistics)

Causal or moderating relationship between statistical variables

  • 13 min read
  • 5 chapters
Interaction of education and ideology affecting concern about sea level rise
IChiloe · CC BY-SA 4.0

Related on Lably

Through Statistics, Variable (mathematics) and Dependent and independent variables

The presence of interactions can have important implications for the interpretation of statistical models. If two variables of interest interact, the relationship between each of the interacting variables and a third "dependent variable" depends on the value of the other interacting variable. In practice, this makes it more difficult to predict the consequences of changing the value of a variable, particularly if the variables it interacts with are hard to measure or difficult to control.

The notion of "interaction" is closely related to that of moderation that is common in social and health science research: the interaction between an explanatory variable and an environmental variable suggests that the effect of the explanatory variable has been moderated or modified by the environmental variable.

Introduction

An interaction variable or interaction feature is a variable constructed from an original set of variables to try to represent either all of the interaction present or some part of it. In exploratory statistical analyses it is common to use products of original variables as the basis of testing whether interaction is present with the possibility of substituting other more realistic interaction variables at a later stage. When there are more than two explanatory variables, several interaction variables are constructed, with pairwise-products representing pairwise-interactions and higher order products representing higher order interactions.

Thus, for a response Y and two variables x1 and x2 an additive model would be:

Y=c+ax1+bx2+error

In contrast to this,

Y=c+ax1+bx2+d(x1×x2)+error

is an example of a model with an interaction between variables x1 and x2 ("error" refers to the random variable whose value is that by which Y differs from the expected value of Y; see errors and residuals in statistics). Often, models are presented without the interaction term d(x1×x2), but this confounds the main effect and interaction effect (i.e., without specifying the interaction term, it is possible that any main effect found is actually due to an interaction).

Moreover, the hierarchical principle rules that if a model includes interaction between variables, it is also necessary to include the main effects, regardless of their own statistical significance.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Statistics