Lesson 5: Explanatory variables and scatterplots
Construct a scatterplot from a table
SkillsConstructing and reading scatterplotsExplanatory and response variables
Worked example
A university student recorded the distance and the fare for eight rideshare trips around Brisbane.
| Distance (km) | 2.4 | 3.8 | 5.0 | 6.5 | 8.2 | 9.0 | 11.5 | 14.0 |
|---|---|---|---|---|---|---|---|---|
| Fare ($) | 11.20 | 13.90 | 15.10 | 19.30 | 21.80 | 22.40 | 27.90 | 32.50 |
Construct a scatterplot of the data.
Step 1: Identify the explanatory and response variables
The fare depends on the distance, so distance is the explanatory variable (horizontal axis) and fare is the response variable (vertical axis).
Step 2: Choose the scales
Distances run from 2.4 to 14.0 km, so use 0 to 15 km in steps of 1 km. Fares run from $11.20 to $32.50, so use $0 to $35 in steps of $5.
Even steps that cover all the data, with easy-to-read numbers, make the points quick and accurate to plot.
Step 3: Label the axes
Write "Distance (km)" under the horizontal axis and "Fare ($)" beside the vertical axis.
Step 4: Plot the points
For the first trip, go across to 2.4 and up to 11.20 and mark the point . Repeat for the other seven trips.
Step 5: Check
There should be eight points. Here they rise steadily from left to right, and none looks out of place.
Answer
A scatterplot with distance (0 to 15 km) on the horizontal axis, fare ($0 to $35) on the vertical axis, both axes labelled with units, and eight points rising from to , as shown below.
Try a similar one
A fresh question of the same kind, checked as you answer, with hints and a full solution.
Method
Explanatory variable on the horizontal axis, response variable on the vertical axis.
Choose even scales that cover the data.
Label both axes with the variable and its unit.
Plot each pair as one point, then count the points.
Watch out for
Putting fare on the horizontal axis because its numbers are bigger.
Using an uneven scale to squeeze the data in.