Interaction effects
   HOME

TheInfoList



OR:

In statistics, an interaction may arise when considering the relationship among three or more variables, and describes a situation in which the effect of one causal variable on an outcome depends on the state of a second causal variable (that is, when effects of the two causes are not
additive Additive may refer to: Mathematics * Additive function, a function in number theory * Additive map, a function that preserves the addition operation * Additive set-functionn see Sigma additivity * Additive category, a preadditive category with f ...
). Although commonly thought of in terms of causal relationships, the concept of an interaction can also describe non-causal associations (then also called moderation or effect modification). Interactions are often considered in the context of regression analyses or factorial experiments. 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 Moderation is the process of eliminating or lessening extremes. It is used to ensure normality throughout the medium on which it is being conducted. Common uses of moderation include: *Ensuring consistency and accuracy in the marking of stud ...
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 ''x''1 and ''x''2 an ''additive'' model would be: :Y = c + ax_1 + bx_2 + \text\, In contrast to this, :Y = c + ax_1 + bx_2 + d(x_1\times x_2) + \text \, is an example of a model with an ''interaction'' between variables ''x''1 and ''x''2 ("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 In statistics and optimization, errors and residuals are two closely related and easily confused measures of the deviation of an observed value of an element of a statistical sample from its "true value" (not necessarily observable). The er ...
). Often, models are presented without the interaction term d(x_1\times x_2), 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).


In modeling


In ANOVA

A simple setting in which interactions can arise is a two-factor experiment analyzed using
Analysis of Variance Analysis of variance (ANOVA) is a collection of statistical models and their associated estimation procedures (such as the "variation" among and between groups) used to analyze the differences among means. ANOVA was developed by the statistician ...
(ANOVA). Suppose we have two binary factors ''A'' and ''B''. For example, these factors might indicate whether either of two treatments were administered to a patient, with the treatments applied either singly, or in combination. We can then consider the average treatment response (e.g. the symptom levels following treatment) for each patient, as a function of the treatment combination that was administered. The following table shows one possible situation: In this example, there is no interaction between the two treatments — their effects are additive. The reason for this is that the difference in mean response between those subjects receiving treatment ''A'' and those not receiving treatment ''A'' is −2 regardless of whether treatment ''B'' is administered (−2 = 4 − 6) or not (−2 = 5 − 7). Note that it automatically follows that the difference in mean response between those subjects receiving treatment ''B'' and those not receiving treatment ''B'' is the same regardless of whether treatment ''A'' is administered (7 − 6 = 5 − 4). In contrast, if the following average responses are observed then there is an interaction between the treatments — their effects are not additive. Supposing that greater numbers correspond to a better response, in this situation treatment ''B'' is helpful on average if the subject is not also receiving treatment ''A'', but is detrimental on average if given in combination with treatment ''A''. Treatment ''A'' is helpful on average regardless of whether treatment ''B'' is also administered, but it is more helpful in both absolute and relative terms if given alone, rather than in combination with treatment ''B''. Similar observations are made for this particular example in the next section.


Qualitative and quantitative interactions

In many applications it is useful to distinguish between qualitative and quantitative interactions. A quantitative interaction between ''A'' and ''B'' is a situation where the magnitude of the effect of ''B'' depends on the value of ''A'', but the direction of the effect of ''B'' is constant for all ''A''. A qualitative interaction between ''A'' and ''B'' refers to a situation where both the magnitude and direction of each variable's effect can depend on the value of the other variable. The table of means on the left, below, shows a quantitative interaction — treatment ''A'' is beneficial both when ''B'' is given, and when ''B'' is not given, but the benefit is greater when ''B'' is not given (i.e. when ''A'' is given alone). The table of means on the right shows a qualitative interaction. ''A'' is harmful when ''B'' is given, but it is beneficial when ''B'' is not given. Note that the same interpretation would hold if we consider the benefit of ''B'' based on whether ''A'' is given. The distinction between qualitative and quantitative interactions depends on the order in which the variables are considered (in contrast, the property of additivity is invariant to the order of the variables). In the following table, if we focus on the effect of treatment ''A'', there is a quantitative interaction — giving treatment ''A'' will improve the outcome on average regardless of whether treatment ''B'' is or is not already being given (although the benefit is greater if treatment ''A'' is given alone). However, if we focus on the effect of treatment ''B'', there is a qualitative interaction — giving treatment ''B'' to a subject who is already receiving treatment ''A'' will (on average) make things worse, whereas giving treatment ''B'' to a subject who is not receiving treatment ''A'' will improve the outcome on average.


Unit treatment additivity

In its simplest form, the assumption of treatment unit additivity states that the observed response ''y''''ij'' from experimental unit ''i'' when receiving treatment ''j'' can be written as the sum ''y''''ij'' = ''y''''i'' + ''t''''j''. The assumption of unit treatment additivity implies that every treatment has exactly the same additive effect on each experimental unit. Since any given experimental unit can only undergo one of the treatments, the assumption of unit treatment additivity is a hypothesis that is not directly falsifiable, according to Cox and Kempthorne. However, many consequences of treatment-unit additivity can be falsified. For a randomized experiment, the assumption of treatment additivity implies that the variance is constant for all treatments. Therefore, by contraposition, a necessary condition for unit treatment additivity is that the variance is constant. The property of unit treatment additivity is not invariant under a change of scale, so statisticians often use transformations to achieve unit treatment additivity. If the response variable is expected to follow a parametric family of probability distributions, then the statistician may specify (in the protocol for the experiment or observational study) that the responses be transformed to stabilize the variance. In many cases, a statistician may specify that logarithmic transforms be applied to the responses, which are believed to follow a multiplicative model. Pre-publication chapters are available on-line. The assumption of unit treatment additivity was enunciated in experimental design by Kempthorne and Cox. Kempthorne's use of unit treatment additivity and randomization is similar to the design-based analysis of finite population survey sampling. In recent years, it has become common to use the terminology of Donald Rubin, which uses counterfactuals. Suppose we are comparing two groups of people with respect to some attribute ''y''. For example, the first group might consist of people who are given a standard treatment for a medical condition, with the second group consisting of people who receive a new treatment with unknown effect. Taking a "counterfactual" perspective, we can consider an individual whose attribute has value ''y'' if that individual belongs to the first group, and whose attribute has value ''τ''(''y'') if the individual belongs to the second group. The assumption of "unit treatment additivity" is that ''τ''(''y'') = ''τ'', that is, the "treatment effect" does not depend on ''y''. Since we cannot observe both ''y'' and τ(''y'') for a given individual, this is not testable at the individual level. However, unit treatment additivity implies that the cumulative distribution functions ''F''1 and ''F''2 for the two groups satisfy ''F''2(''y'')  = ''F''1(''y − τ''), as long as the assignment of individuals to groups 1 and 2 is independent of all other factors influencing ''y'' (i.e. there are no
confounders In statistics, a confounder (also confounding variable, confounding factor, extraneous determinant or lurking variable) is a variable that influences both the dependent variable and independent variable, causing a spurious association. Con ...
). Lack of unit treatment additivity can be viewed as a form of interaction between the treatment assignment (e.g. to groups 1 or 2), and the baseline, or untreated value of ''y''.


Categorical variables

Sometimes the interacting variables are categorical variables rather than real numbers and the study might then be dealt with as an
analysis of variance Analysis of variance (ANOVA) is a collection of statistical models and their associated estimation procedures (such as the "variation" among and between groups) used to analyze the differences among means. ANOVA was developed by the statistician ...
problem. For example, members of a population may be classified by religion and by occupation. If one wishes to predict a person's height based only on the person's religion and occupation, a simple ''additive'' model, i.e., a model without interaction, would add to an overall average height an adjustment for a particular religion and another for a particular occupation. A model with interaction, unlike an additive model, could add a further adjustment for the "interaction" between that religion and that occupation. This example may cause one to suspect that the word ''interaction'' is something of a misnomer. Statistically, the presence of an interaction between categorical variables is generally tested using a form of
analysis of variance Analysis of variance (ANOVA) is a collection of statistical models and their associated estimation procedures (such as the "variation" among and between groups) used to analyze the differences among means. ANOVA was developed by the statistician ...
(ANOVA). If one or more of the variables is continuous in nature, however, it would typically be tested using moderated multiple regression. This is so-called because a moderator is a variable that affects the strength of a relationship between two other variables.


Designed experiments

Genichi Taguchi was an engineer and statistician. From the 1950s onwards, Taguchi developed a methodology for applying statistics to improve the quality of manufactured goods. Taguchi methods have been controversial among some conventional Western statisticians, ...
contended that interactions could be eliminated from a system by appropriate choice of response variable and transformation. However George Box and others have argued that this is not the case in general.


Model size

Given ''n'' predictors, the number of terms in a linear model that includes a constant, every predictor, and every possible interaction is \tbinom + \tbinom + \tbinom + \cdots + \tbinom = 2^n. Since this quantity grows exponentially, it readily becomes impractically large. One method to limit the size of the model is to limit the order of interactions. For example, if only two-way interactions are allowed, the number of terms becomes \tbinom + \tbinom + \tbinom = 1 + \tfracn + \tfracn^2. The below table shows the number of terms for each number of predictors and maximum order of interaction.


In regression

The most general approach to modeling interaction effects involves regression, starting from the elementary version given above: :Y = c + ax_1 + bx_2 + d(x_1\times x_2) + \text \, where the interaction term (x_1\times x_2) could be formed explicitly by multiplying two (or more) variables, or implicitly using factorial notation in modern statistical packages such as Stata. The components ''x''1 and ''x''2 might be measurements or dummy variables in any combination. Interactions involving a dummy variable multiplied by a measurement variable are termed ''slope dummy variables'', because they estimate and test the difference in slopes between groups 0 and 1. When measurement variables are employed in interactions, it is often desirable to work with centered versions, where the variable's mean (or some other reasonably central value) is set as zero. Centering can make the main effects in interaction models more interpretable, as it reduces the
multicollinearity In statistics, multicollinearity (also collinearity) is a phenomenon in which one predictor variable in a multiple regression model can be linearly predicted from the others with a substantial degree of accuracy. In this situation, the coeffic ...
between the interaction term and the main effects. The coefficient ''a'' in the equation above, for example, represents the effect of ''x''1 when ''x''2 equals zero. Regression approaches to interaction modeling are very general because they can accommodate additional predictors, and many alternative specifications or estimation strategies beyond
ordinary least squares In statistics, ordinary least squares (OLS) is a type of linear least squares method for choosing the unknown parameters in a linear regression model (with fixed level-one effects of a linear function of a set of explanatory variables) by the ...
.
Robust Robustness is the property of being strong and healthy in constitution. When it is transposed into a system, it refers to the ability of tolerating perturbations that might affect the system’s functional body. In the same line ''robustness'' ca ...
,
quantile In statistics and probability, quantiles are cut points dividing the range of a probability distribution into continuous intervals with equal probabilities, or dividing the observations in a sample in the same way. There is one fewer quantile th ...
, and mixed-effects ( multilevel) models are among the possibilities, as is generalized linear modeling encompassing a wide range of categorical, ordered, counted or otherwise limited dependent variables. The graph depicts an education*politics interaction, from a probability-weighted logit regression analysis of survey data.


Interaction plots

Interaction plots show possible interactions among variables.


Example: Interaction of species and air temperature and their effect on body temperature

Consider a study of the body temperature of different species at different air temperatures, in degrees Fahrenheit. The data are shown in the table below. The interaction plot may use either the air temperature or the species as the x axis. The second factor is represented by lines on the interaction plot. There is an interaction between the two factors (air temperature and species) in their effect on the response (body temperature), because the effect of the air temperature depends on the species. The interaction is indicated on the plot because the lines are not parallel.


Example: effect of stroke severity and treatment on recovery

As a second example, consider a clinical trial on the interaction between stroke severity and the efficacy of a drug on patient survival. The data are shown in the table below. In the interaction plot, the lines for the mild and moderate stroke groups are parallel, indicating that the drug has the same effect in both groups, so there is no interaction. The line for the severe stroke group is not parallel to the other lines, indicating that there is an interaction between stroke severity and drug effect on survival. The line for the severe stroke group is flat, indicating that, among these patients, there is no difference in survival between the drug and placebo treatments. In contrast, the lines for the mild and moderate stroke groups slope down to the right, indicating that, among these patients, the placebo group has lower survival than drug-treated group.


Hypothesis tests for interactions

Analysis of variance and regression analysis are used to test for significant interactions.


Example: Interaction of temperature and time in cookie baking

Is the yield of good cookies affected by the baking temperature and time in the oven? The table shows data for 8 batches of cookies. The data show that the yield of good cookies is best when either (i) temperature is high and time in the oven is short, or (ii) temperature is low and time in the oven is long. If the cookies are left in the oven for a long time at a high temperature, there are burnt cookies and the yield is low. From the graph and the data, it is clear that the lines are not parallel, indicating that there is an interaction. This can be tested using analysis of variance (ANOVA). The first ANOVA model will not include the interaction term. That is, the first ANOVA model ignores possible interaction. The second ANOVA model will include the interaction term. That is, the second ANOVA model explicitly performs a hypothesis test for interaction.


ANOVA model 1: no interaction term; yield ~ temperature + time

In the ANOVA model that ignores interaction, neither temperature nor time has a significant effect on yield (p=0.91), which is clearly the incorrect conclusion. The more appropriate ANOVA model should test for possible interaction.


ANOVA model 2: include interaction term; yield ~ temperature * time

The temperature:time interaction term is significant (p=0.000180). Based on the interaction test and the interaction plot, it appears that the effect of time on yield depends on temperature and vice versa.


Examples

Real-world examples of interaction include: *''Interaction'' between adding sugar to coffee and stirring the coffee. Neither of the two individual variables has much effect on sweetness but a combination of the two does. *''Interaction'' between adding
carbon Carbon () is a chemical element with the symbol C and atomic number 6. It is nonmetallic and tetravalent—its atom making four electrons available to form covalent chemical bonds. It belongs to group 14 of the periodic table. Carbon mak ...
to steel and
quenching In materials science, quenching is the rapid cooling of a workpiece in water, oil, polymer, air, or other fluids to obtain certain material properties. A type of heat treating, quenching prevents undesired low-temperature processes, such as pha ...
. Neither of the two individually has much effect on
strength Strength may refer to: Physical strength *Physical strength, as in people or animals * Hysterical strength, extreme strength occurring when people are in life-and-death situations *Superhuman strength, great physical strength far above human c ...
but a combination of the two has a dramatic effect. *''Interaction'' between smoking and inhaling asbestos fibres: Both raise lung carcinoma risk, but exposure to asbestos ''multiplies'' the cancer risk in smokers and non-smokers. Here, the ''joint effect'' of inhaling asbestos and smoking is higher than the sum of both effects. *''Interaction'' between genetic risk factors for
type 2 diabetes Type 2 diabetes, formerly known as adult-onset diabetes, is a form of diabetes mellitus that is characterized by high blood sugar, insulin resistance, and relative lack of insulin. Common symptoms include increased thirst, frequent urinatio ...
and diet (specifically, a "western" dietary pattern). The western dietary pattern was shown to increase diabetes risk for subjects with a high "genetic risk score", but not for other subjects. *''Interaction'' between education and political orientation, affecting general-public perceptions about climate change. For example, US surveys often find that acceptance of the reality of anthropogenic climate change rises with education among moderate or liberal survey respondents, but declines with education among the most conservative. Similar interactions have been observed to affect some non-climate science or environmental perceptions, and to operate with science literacy or other knowledge indicators in place of education.


See also

*
Analysis of variance Analysis of variance (ANOVA) is a collection of statistical models and their associated estimation procedures (such as the "variation" among and between groups) used to analyze the differences among means. ANOVA was developed by the statistician ...
*
Factorial experiment In statistics, a full factorial experiment is an experiment whose design consists of two or more factors, each with discrete possible values or "levels", and whose experimental units take on all possible combinations of these levels across all ...
* Generalized randomized block design *
Linear model In statistics, the term linear model is used in different ways according to the context. The most common occurrence is in connection with regression models and the term is often taken as synonymous with linear regression model. However, the term ...
*
Main effect In the design of experiments and analysis of variance, a main effect is the effect of an independent variable on a dependent variable averaged across the levels of any other independent variables. The term is frequently used in the context of facto ...
*
Interaction Interaction is action that occurs between two or more objects, with broad use in philosophy and the sciences. It may refer to: Science * Interaction hypothesis, a theory of second language acquisition * Interaction (statistics) * Interactions o ...
* Tukey's test of additivity


References


Further reading

* Cox, David R. and Reid, Nancy M. (2000) ''The theory of design of experiments'', Chapman & Hall/CRC. * * * *


External links


Credibility and the Statistical Interaction Variable: Speaking Up for Multiplication as a Source of Understanding
{{DEFAULTSORT:Interaction (Statistics) Analysis of variance Regression analysis Design of experiments