Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 General (Unit 3 & 4) Bivariate data analysis 1

Explanatory and response variables

20 practice questions 0 video lessons Theory + worked examples

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.

Create a free accountTrack your progress and save your work as you go.
Create free account

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.

Key idea. Ask “which variable might explain changes in the other?” That one is explanatory and goes on the \(x\)-axis; the outcome is the response and goes on the \(y\)-axis.
Explanatory and response variablesA box labelled explanatory variable, plotted on the horizontal axis, with an arrow labelled may explain pointing to a box labelled response variable, plotted on the vertical axis. Example: distance from the city explains weekly rent.Explanatoryvariablehorizontal axis (x)distance from cityResponsevariablevertical axis (y)weekly rentmayexplainplot each pair as (x, y) = (explanatory, response)
The explanatory variable may explain the response variable. It is plotted across, the response is plotted up.
distance (km) rent (AUD) 5 10 15 20 25 30 400 450 500 550 600 650
Distance from the CBD is explanatory (horizontal axis); weekly rent is the response (vertical axis).

There is no calculation in this idea, only a convention for setting up the data. Each individual is written as an ordered pair:

\[(x,\ y) = (\text{explanatory},\ \text{response})\]
(x,y)=(explanatory,response)
\[\text{horizontal axis} \to \text{explanatory} \qquad \text{vertical axis} \to \text{response}\]
horizontal axis→explanatoryvertical axis→response
A quick test. Say the sentence “changes in A may explain changes in B.” If it makes sense, A is explanatory and B is the response. If only the reverse makes sense, swap them.

How to decide which variable is explanatory

  1. Read the aim of the investigation: what is being explained or predicted?
  2. 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.
  3. Name the response variable: the outcome being measured or predicted.
  4. Place the explanatory variable on the horizontal axis and the response on the vertical axis, and write points as (explanatory, response).
Example 1 — Name the roles
A Mackay sugar mill investigates whether the rainfall during the growing season (mm) affects the sugar content of the cane (\(\%\)). (a) Which is the explanatory variable? (b) Which is the response variable? (c) Which axis shows the sugar content?
Solution

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.

Example 2 — The question decides
Forensic scientists measure people's foot length and height (both cm). They want to estimate a person's height from a footprint. Which variable is explanatory? Would the roles change if a shoe shop wanted to estimate foot length from a customer's height?
Solution

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.

Example 3 — Read the scatterplot
A Brisbane cafe recorded the number of staff on shift and the average customer wait (minutes) on six mornings. (a) Which variable is the response? (b) What was the wait when 5 staff were on? (c) Write that point as an ordered pair.
Solution

More staff may shorten the wait, so staff is explanatory and goes across.

staff wait (min) 1 2 3 4 5 6 7 8 2 4 6 8 10 12 14 16
\(\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)\).

Example 4 — Categorical variables
A Gold Coast survey asked adults whether they had swimming lessons as a child and whether they can swim 50 m.
Swims 50 mCannotTotal
Had lessons10812120
No lessons453075
(a) Which is the explanatory variable? (b) Find the percentage of each group who can swim 50 m.
Solution

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

Axes the wrong way round. The explanatory variable always goes across the bottom. Putting the response on the \(x\)-axis turns the question around.
Explanatory does not mean proven cause. Calling a variable explanatory only says it may explain the response. The data alone cannot prove that it does.
Read the aim, not just the variable names. The same two variables can swap roles when the question changes, so check what is being predicted.

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.