An interaction may arise when the relationship of two or more explanatory variables with the responses is not just additive.
Consider two explanatory variables and . We have seen that the additive model can be written as:
However, the two variables can interact with one another in a number of complex ways. For example:
It is extremely difficult to justify such a complex form, so we often limit ourselves to the following simple form to model interactions:
If and are two corresponding spans then the additive model states . When we wish to include interactions, the linear predictor belongs to the product of the two subspaces, where is the element product of the two vectors.
Suppose represents two species of potato and two varieties of fertilizer. Suppose the true yield is measured under these four conditions and gives
This converts to the following array
and with these values the linear predictor is
The distinguishing feature here is that the increase in yield due to species compared to species is the same at fertilizer level , , as at fertilizer , . Similarly the increase due to fertilizer over fertilizer is the same for both species . This makes it possible to talk about a species effect without having to specify which fertilizer is used. And a fertilizer effect without specifying which species.
Exercise 6.51
Alternatively suppose that yield has been given by
Find a similar expression for and interpret.
The second example exhibits interaction between and whereas the former does not. With just two levels, and , we can define the additive subspace for the first example and the product subspace which contains the interaction for the second.
Consider the example earlier in this chapter regarding the relationship of weight with height among a population of school children. Here, the numerical explanatory variable is height and the categorical variable is gender. Let be the factor subspace for gender and be the subspace for height.
Earlier we examined the additive model:
For male children, the linear predictor increase by irrespective of height, representing a shift in the intercept parameter.
The interaction model includes the elementwise product of vectors:
Exercise 6.52
Describe the meaning of in the interaction model.