How to Interpret the Interaction Between Two Continuous Variables

This tutorial is about how to interpret the interaction between two continuous independent variables in a regression model.

In this example, the dependent variable is Mileage per gallon (MPG), and the independent variables are car weight (WT), horsepower (HP) and their interaction, namely HP*WT. You can download the dataset via Github the dataset of MPG.

You need to find the download button to download the SAV file on Github download data from Github.

After running the linear regression in SPSS or other software, we can get the following output.

SPSS linear regression output - interaction in linear regression

As we can see from the output shown above, the interaction item is significant (p-value < 0.05). Thus, based on the output, we can write out the following model.

MPG=63.56 -0.01WT- 0.25HP + 0.00005 HP*WT


1. Plot the Interaction

A significant interaction means that the effect of one variable depends on the value of the other. To properly interpret this interaction, we need to visualize it.

To plot and interpret the interaction between two continuous variables, a common approach is to use values at −1 standard deviation (low) and +1 standard deviation (high) for each independent variable.

Step 1: Compute Descriptive Statistics

First, calculate the mean and standard deviation for weight (WT) and horsepower (HP).

MeanSD
WT2970847
HP10438

Using the mean and standard deviation, compute:

  • High horsepower (mean + 1 SD)
  • Low weight (mean − 1 SD)
  • High weight (mean + 1 SD)
  • Low horsepower (mean − 1 SD)
-1SD+1SD
WT2970-847 = 21242970+847 = 3817
HP104 – 38 = 66104 + 38 = 143

Step 2: Estimating MPG Values

Next, plug each of the four combinations into the regression equation. This produces four predicted MPG values, which can be arranged in a 2 × 2 table:

  • Light weight & low horsepower
  • Light weight & high horsepower
  • Heavy weight & low horsepower
  • Heavy weight & high horsepower
– 1 SD of WT+ 1 SD of WT
-1SD HP3219
+1SD HP2116

These predicted values represent the expected MPG under each condition. Based on these 4 expected MPG value, we can plot the interaction figure (see below).

Interaction of continuous and continuous variables

2. Interpreting the Interaction Plot

2.1. Main Effect of Weight

main effect weight - interaction continuous continuous variables

Comparing lighter and heavier cars:

  • Heavier cars have lower MPG
  • Lighter cars have higher MPG

This is evident because the MPG values for heavier cars are consistently lower than those for lighter cars. This finding aligns with common expectations.

2.2. Main Effect of Horsepower

main effect horsepower - interaction continuous continuous variables

Comparing horsepower levels:

  • Cars with lower horsepower have higher MPG
  • Cars with higher horsepower have lower MPG

In the interaction plot, the dashed line (low horsepower) lies above the solid line (high horsepower), indicating better fuel efficiency for lower-horsepower vehicles.

2.3. Interaction Between Weight and Horsepower

interpretation of the interaction of continuous and continuous variables

The interaction becomes clear when we examine the slopes of the lines:

  • The dashed line (low horsepower) is steeper than the solid line (high horsepower)

What does this mean?

  • The difference in MPG between low and high horsepower cars is larger for lighter cars
  • For heavier cars, the MPG difference between low and high horsepower is smaller

In other words:

The negative impact of higher horsepower on MPG is more pronounced in lighter cars than in heavier cars.

This difference in slopes is the key evidence of an interaction effect.


The following is video version of the tutorial:


Additional Matarials

  1. Datasat of MPG being used in this tutorial (link to GitHub)
  2. Slide illustration used in this tutorial for interaction of two continuous variables (link to GitHub)
  3. Excel template to plot the intearaction of two continuous variables (link to GitHub)

Leave a Comment

Your email address will not be published. Required fields are marked *