Home page for accesible maths 9 Explanatory variables: some interesting issues

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

9.2 Interactions

We touched on the concept of an interaction in the gas consumption model given in Example 6.4.6. In this example, the relationship between gas consumption and outside temperature was altered by the installation of cavity wall insulation. This is an interaction between a factor (insulated or not) and a covariate (temperature).

Suppose that the response variable is Yi and there are two explanatory variables xi,1 and xi,2. We could either

  1. 1

    Model the main effects only,

    𝔼[Yi]=β1+β2xi,1+β3xi,2
  2. 2

    Or include an interaction as well

    𝔼[Yi]=β1+β2xi,1+β3xi,2+β4xi,1xi,2

Note the interaction term is sometimes written as xi,1×xi,2.