Chapter 14 · Statistics and data analysis
Construct a Scatter Plot from Paired Values
Learn to turn a table of paired measurements into a scatter plot by naming each axis, choosing an evenly spaced scale and plotting one point per pair.
Some data sets record two measurements for each item. For example, for each player on a basketball team, you might record the hours the player practiced in a week and the number of free throws the player made out of 10 tries. Data like this is called bivariate data (bi means two). The two numbers for one item form a pair. They describe the same player, so they must always stay together.
A scatter plot is a graph that shows bivariate data as points on a coordinate plane. In the last lesson, you described positive, negative and no association in scatter plots. Now you'll construct one yourself.
Key concept
One item, one point
Pick one quantity for the horizontal axis and call its values . The other quantity goes on the vertical axis, and its values are . Each item's pair becomes one ordered pair , horizontal value first, and you plot it as one point. Each axis also needs a name with a unit, such as practice (hours), and a scale. A scale is a set of numbers marked in equal steps, so equal distances always stand for equal amounts. That is what lets a point's position show its two values.
| Player | Practice (hours per week) | Free throws made (out of 10) |
|---|---|---|
A | ||
B | ||
C | ||
D | ||
E | ||
F |
Worked example
Six players, six points
Construct a scatter plot of the six players' data in the table, with practice on the horizontal axis.
Define the variables so each position has a meaning. Let be a player's weekly practice in hours. Let be the number of free throws the player made out of . Here both are whole numbers. The horizontal axis shows and the vertical axis shows . Either quantity could go on the horizontal axis, but once you choose, every pair must follow that choice.
Choose a scale for each axis. The -values run from to and the -values run from to . Marking both axes from to in steps of covers every value with room to spare.
Write each row as an ordered pair, practice first. The pair keeps one player's two numbers together, and its first number gives the horizontal position.
Plot each pair as one dot. For Player B, start at the origin . Move right for hours, then up for free throws. Plot the other five pairs the same way. Leave the dots unconnected, because each dot is a separate player, not a stop along a path.
Check the plot. No two players share the same pair, so six rows must give six separate points. Read each point's coordinates back and match them to a row of the table. Checking coordinates is more reliable than judging by eye.
Answer
The scatter plot has six points, at , , , , and , with practice in hours on the horizontal axis and free throws made on the vertical axis.
In the figure, the horizontal axis is practice in hours and the vertical axis is free throws made out of 10. Each point is labelled with its player's letter. Every point matches its row. For example, Point F is units right of the origin and units up, which is the pair .
With the data drawn, you can see that the points tend to rise from left to right. This is the kind of positive association you described in the last lesson. The plot shows this pattern, but it does not prove that practice causes more free throws made. Something else, such as years of playing, could affect both.
The next data set includes temperatures below zero, so choosing a scale takes more thought. First find the least and greatest value of each quantity. Then mark each axis in equal steps, such as steps of or . The marks should start at or below the least value and reach at or above the greatest value. Keep the same step on the negative side of , so is exactly as far from as is, on the opposite side. The two axes may use different steps when their quantities have very different sizes. Here, steps of suit both.
| Day | Noon temperature (°C) | Cups of cocoa sold |
|---|---|---|
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
6 |
Worked example
Temperatures below zero
Construct a scatter plot of the cocoa data in the table, with noon temperature on the horizontal axis.
Define the variables. Let be the noon temperature in degrees Celsius. Let be the number of cups sold that day. Temperatures below degrees are negative, so can be negative. The value of is a whole number of cups.
Choose the -scale. The temperatures run from to , a spread of degrees. Steps of cover that spread in steps, which is a manageable number of marks. Mark the axis from to to leave room at each end.
Choose the -scale. The cup counts run from to , so mark the axis from to in steps of . That takes steps. The marks fall on even numbers, so an odd count such as sits exactly halfway between two marks, here and .
Write the pairs with temperature first, then plot them. A negative means you move left from the origin instead of right. For Day 2, move left , then up , halfway between the marks and . Day 5 has , so you move neither left nor right, and its point lands on the vertical axis.
Check the plot. No two days share a pair, so six days give six points. Match each point's coordinates to its row in the table.
Answer
The scatter plot has six points, at , , , , and , with noon temperature in °C on the horizontal axis and cups sold on the vertical axis.
Takeaway: To construct a scatter plot, name each axis with its quantity and unit. Mark each axis with an evenly spaced scale that covers every value. Then plot each item's pair as one point , horizontal value first. Next, you'll use scatter plots like these to identify linear and nonlinear association, describe associations between two variables and make predictions.