Explanatory and response variables
Sort out explanatory and response variables in Year 12 General Mathematics for Queensland (QCAA). Does living further from the Brisbane CBD lower the weekly rent? Before any graph is drawn, you need to decide which variable might explain the other, because that choice sets up the whole investigation.
You will learn to read the aim of a study and pick the explanatory variable, name the response, put each on the right axis of a scatterplot, and write points as ordered pairs. You will also see why the roles can swap when the question changes. These skills lead straight into drawing and describing scatterplots.
Theory
Every bivariate investigation has an explanatory variable and a response variable. This Year 12 General Mathematics guide for Queensland students shows how to tell them apart from the aim of the investigation, place them on the correct axes of a scatterplot, and use them with two-way tables.
In a bivariate investigation we usually suspect that one variable helps to explain the other. The explanatory variable is the one that may explain, influence or be used to predict the other. The response variable is the one whose values we expect to respond, the outcome we are interested in.
For two numerical variables, the explanatory variable goes on the horizontal (\(x\)) axis of a scatterplot and the response variable goes on the vertical (\(y\)) axis. Each individual becomes one point \((x, y)\).
The roles come from the question being asked, not from the data alone. If a coach wants to predict arm span from height, height is explanatory; if the aim is to predict height from arm span, the roles swap. When both variables are categorical, percentages are found within the categories of the explanatory variable.
There is no calculation in this idea, only a convention for setting up the data. Each individual is written as an ordered pair:
How to decide which variable is explanatory
- Read the aim of the investigation: what is being explained or predicted?
- Choose the explanatory variable: the one that may explain, cause or be used to predict the other, often the one that is set or happens first.
- Name the response variable: the outcome being measured or predicted.
- Place the explanatory variable on the horizontal axis and the response on the vertical axis, and write points as (explanatory, response).
Ask which variable may explain changes in the other.
| \(\text{rainfall may affect sugar}\) | \(\Rightarrow\) | \(\text{explanatory: rainfall}\) |
| \(\text{sugar content is the outcome}\) | \(\Rightarrow\) | \(\text{response: sugar}\) |
| \(\text{response}\) | \(\Rightarrow\) | \(\text{vertical axis}\) |
(a) Rainfall. (b) Sugar content. (c) The vertical axis.
The variable used to predict is explanatory; the one being predicted is the response.
| \(\text{predict height from foot}\) | \(\Rightarrow\) | \(\text{explanatory: foot length}\) |
| \(\text{predict foot from height}\) | \(\Rightarrow\) | \(\text{explanatory: height}\) |
Foot length is explanatory for the scientists. Yes, for the shoe shop the roles swap, because the question has changed.
More staff may shorten the wait, so staff is explanatory and goes across.
| \(\text{staff may explain wait}\) | \(\Rightarrow\) | \(\text{response: wait}\) |
| \(x = 5\) | \(\Rightarrow\) | \(y = 8\) |
| \((x,\ y)\) | \(=\) | \((5,\ 8)\) |
(a) The wait time. (b) 8 minutes. (c) \((5,\ 8)\).
| Swims 50 m | Cannot | Total | |
|---|---|---|---|
| Had lessons | 108 | 12 | 120 |
| No lessons | 45 | 30 | 75 |
Lessons may explain swimming ability, so percentage within the lesson groups (the rows).
| \(\text{lessons may explain ability}\) | \(\Rightarrow\) | \(\text{explanatory: lessons}\) |
| \(\text{had lessons}\) | \(=\) | \(\dfrac{108}{120}\times 100\%\) |
| \(\) | \(=\) | \(90\%\) |
| \(\text{no lessons}\) | \(=\) | \(\dfrac{45}{75}\times 100\%\) |
| \(\) | \(=\) | \(60\%\) |
(a) Childhood lessons. (b) 90% of those with lessons and 60% of those without can swim 50 m.
Common pitfalls
Frequently asked questions
What is the difference between explanatory and response variables?
The explanatory variable is the one that may explain or predict changes in the other. The response variable is the outcome that may change as a result. For rainfall and crop yield, rainfall is explanatory and yield is the response.
Which variable goes on the x-axis of a scatterplot?
The explanatory variable goes on the horizontal x-axis and the response variable goes on the vertical y-axis.
Are explanatory and response variables the same as independent and dependent variables?
They play the same roles. Explanatory matches independent and response matches dependent, but explanatory and response are the usual words in statistics because the data is observed, not controlled in an experiment.
Can the explanatory and response variables swap?
Yes. The roles depend on the question. If you predict height from foot length, foot length is explanatory; if you predict foot length from height, height is explanatory.
Does the explanatory variable cause the response?
Not necessarily. It may explain the response, but a relationship in data does not prove cause and effect. Other factors could be involved.