Reading a scatter plot · Statistics & Data Science… | StemPy Lab
Course 5.1·Lesson 1 of 3
Reading a scatter plot
When we measure two things about each person, each person becomes one dot on a scatter plot. This lesson shows how to draw one, which variable goes on which axis, and the four things to look for: direction, form, strength and outliers.
about 30 min1 simulation1 practice question1 Python program6 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
draw a scatter plot, with the explanatory variable across and the response variable up;
describe a pattern by its direction, its form and its strength;
spot an outlier and the centre of the cloud, the point of the means.
Two numbers for each student
A teacher asks ten students in a made-up class two questions. How many hours a week do you practise typing? How many words a minute can you type? Here are the answers.
Student
Practice (hours a week)
Speed (words per minute)
A
1
22
B
2
25
C
2
29
D
3
27
E
4
33
F
4
31
G
5
36
H
6
38
I
7
41
J
8
44
In First Steps you looked at one variable at a time: its average and its spread. Now each student gives two numbers. A table of pairs is hard to read. So we draw each student as one dot: across for the hours, up for the speed. This picture is a scatter plot.
A scatter plot of a made-up class survey. Practice in hours a week runs across from 0 to 9, and typing speed in words per minute runs up from 15 to 50. Ten blue dots climb from the lower left to the upper right, and a red cross marks the point of the means.
What do you see? The dots climb from the lower left to the upper right. Students who practise more tend to type faster. That word "tend" matters. Students C and D break the order: C practises less than D but types faster. A pattern in data is a tendency, not a rule.
Which variable goes across?
Ask which variable might explain the other. Practice may help to explain speed. So the hours are the explanatory variable, written x and drawn across. The speed is the response variable, written y and drawn up. Other books say independent and dependent variable, or predictor and outcome. They mean the same.
Sometimes neither variable explains the other, such as the heights and arm spans of the same students. Then either can go across. Choosing x and y does not prove that one causes the other. We come back to that in the course on correlation and cause.
Four things to look for
Describe every scatter plot with four words.
Direction. The dots rise to the right (a positive association), fall to the right (a negative association), or do neither.
Form. The dots follow a straight line (linear), a curve, or fall into separate clusters.
Strength. The dots sit close to the pattern (strong) or spread loosely around it (weak).
Outliers. A dot lies far from the rest of the pattern.
Six small scatter plots in two rows, each with a title: strong positive, weak negative, no association, curved, two clusters, and a pattern with one outlier. Each plot has about twenty dots, and the outlier is drawn as a red diamond far from the others.
Here is a second example. Eight made-up weather stations stand along one mountain road. The higher the station, the cooler its mean July temperature: 31.2∘C at 200m above sea level, but 19.6∘C at 2100m. The dots fall to the right, they follow a straight line, and they sit very close to it. That is a strong, negative, linear association with no outliers.
The centre of the cloud
Find the mean of each variable. For the typing survey, the mean practice is xˉ=4.2 hours and the mean speed is yˉ=32.6 words per minute. The point (xˉ,yˉ)=(4.2,32.6) is the point of the means. It sits in the middle of the cloud, and the next lesson uses it to measure the pattern.
Your turn: new numbers
Try it in Python
The program draws the scatter plot of the typing survey and marks the point of the means with a red cross.
The usual mistakes
Joining the dots. A scatter plot shows separate people or places. Do not join the dots with a line as in a line graph.
Reading a tendency as a rule. "Students who practise more type faster" is true on average, not for every pair of students.
Putting the response across. Put the variable that may explain the other on the x axis.
Forgetting the units. Label each axis with its quantity and its unit, such as hours a week.
Remember these
A scatter plot shows one dot for each individual, with x across and y up.
Describe it by direction, form, strength and outliers.
The point of the means (xˉ,yˉ) sits in the middle of the cloud.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
A made-up study records the mass of each new-born calf and its mass a year later. Which is the explanatory variable?
In a scatter plot of the age of a used phone (years) against its resale price (rupees), the dots fall from the upper left to the lower right. Describe the direction.
Why is a line graph the wrong picture for the typing survey?
The points of a scatter plot lie close to a curve that rises and then falls. Which of the four words is not "linear" here?
Four made-up students have (x,y) values (2,10), (4,14), (6,15) and (8,21). Find the point of the means.
References
OpenStax, Introductory Statistics, Chapter 12 (Linear Regression and Correlation), the section on scatter plots.
Enroll free in Scatter Plots and Correlation
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.