Scatterplots and Lines of Fit
Eight summer days: temperature and iced drinks sold.
Free ACT Math Statistics and Probability
ACT Math · Statistics and Probability · free lesson
The idea, then worked examples solved step by step, then practice questions whose numbers change every time you try them.
Press Play: the idea and a worked example, explained aloud (about 1:15).
Eight summer days: temperature and iced drinks sold.
A scatterplot shows two measurements of the same things at once. Each dot is one pair: how far across it sits is the first measurement, and how high it sits is the second. A café owner wrote down the high temperature, in degrees Fahrenheit, on eight summer days and the number of iced drinks sold on each:
| Temperature (°F) | ||||||||
|---|---|---|---|---|---|---|---|---|
| Iced drinks sold |
Watch the days go onto the plot one at a time. When all eight are there, a straight line is drawn through the middle of them.
The dots do not lie on one line, but they have a direction: hotter days go with more drinks sold. That direction is the association between the two quantities.
The closer the dots hug a line, the stronger the association. The correlation coefficient , a number from to , measures this for a straight-line pattern: its sign is the direction, and it is near or when the dots lie close to a line and near 0 when they show no line. For the café the engine finds to be about , a strong positive association.
An association does not show that one quantity causes the other. Ice cream sales and sunburns rise together, but both are caused by sunny weather. The ACT offers "causes" as a wrong option.
A line of fit (or line of best fit) runs through the middle of the dots, with about as many above it as below. It need not pass through any dot. The engine finds the best one from the data, its slope and its -intercept :
The line is , where is the temperature and the predicted number of drinks. Each number has a meaning in context.
To predict, put the into the line. For a day of 88 °F the prediction is :
Drag the slider to choose a temperature. The green point walks along the line and the title reads its prediction. Predictions inside the range of the data (60 °F to 95 °F) are fair; far outside it, the pattern may not hold.
A residual is how far a dot is from the line, measured straight up or down: the actual value minus the predicted value. On the 85 °F day the café sold 87 drinks. The line predicts , so the residual is :
A positive residual means the dot is above the line (more sold than predicted); a negative one means it is below. In the picture each dashed segment is a residual. A line that fits well has small residuals, with the positive and negative ones balancing.
On the ACT this topic asks: the kind of association a plot shows; what the slope or intercept of a line of fit means in context; a prediction from the line; a residual (actual minus predicted, not the other way round); which of two lines fits better; and whether a line or a curve suits the data. Read the scales of the axes before reading a slope off a picture.
Each example is one of the kinds of question the ACT asks about scatterplots. The numbers in the working are found by the engine.
1. Naming the association. A school nurse asked ten students how many hours they spent on screens after 9 p.m. and how many hours they slept that night. The scatterplot shows the answers. Describe the association, and say whether the plot shows that screen time causes less sleep.
The dots fall from left to right and lie close to a line, so the association is negative, linear and strong. The engine's correlation coefficient agrees: it is about , close to .
The plot does not show that screens cause less sleep. The students who stay on screens late may also go to bed late for other reasons, such as homework or a job. A scatterplot shows that two things go together, not why.
2. Slope and intercept in context. For used cars of one model, a line of fit for the price , in dollars, against the age , in years, is . What do and mean, and what price does the line predict for a car 6 years old?
The slope is the change in predicted price for each 1 more year: the price is predicted to drop $1,450 for each year of age. The -intercept is the predicted price at age 0: a new car is predicted to cost about $21,800. The prediction at is :
The line predicts $. A common slip is to read the slope as a price: $1,450 is not what any car costs, it is a yearly drop.
The green point is the prediction for 6 years: it sits on the line.
3. A residual. The line of fit predicts the height , in centimeters, of a bean plant days after it sprouts. On day 8 a plant was 37 cm tall. What is the residual for that plant?
A residual is the actual value minus the predicted value. First the prediction , then the residual :
The residual is : the plant is cm shorter than the line predicts, so its dot lies below the line. Taking predicted minus actual gives , the wrong sign; it would put the dot above the line.
4. A line read from a graph. The graph shows the number of visitors to a museum's website, in hundreds, against the number of social-media posts the museum made that week, with a line of fit. Find the equation of the line, and use it to find how many posts the line says are needed for 10,000 visitors.
Two points where the line crosses grid corners are marked in black: and . Read them from the axes, not by counting squares (one square up is 10). The slope is rise over run, and then the intercept comes from either point:
The line is . 10,000 visitors is 100 hundreds, so set and solve for the number of posts :
The line says posts. Two traps: putting 10,000 in for forgets that counts hundreds, and putting 100 in for answers a different question.
5. Which line fits better? Two students drew lines of fit for the five points in the table. Line A is and line B is . Which fits the points better?
Work out every residual for each line, then compare their sizes. A fair measure is the sum of the squared residuals: the smaller it is, the closer the line runs to the points. and are the residuals of lines A and B, and and the sums of their squares:
Line A's sum, , is smaller than line B's, , so line A fits better. Look at the signs too: every residual of line B is 0 or negative, so line B runs above the points all the way along. A good line has residuals of both signs.
6. A line or a curve? A lab counts the bacteria in a dish, in thousands, every hour. Should a line be fitted to these data?
| Hour | ||||||
|---|---|---|---|---|---|---|
| Thousands of bacteria |
Data on a line grow by the same amount each step. Look at the changes from hour to hour, and at the ratios of each count to the one before, worked out by the engine.
The changes are ; the ratios are . The changes grow, but the ratio is the same each hour: the count is multiplied by each hour. That is exponential growth, so a curve of the form fits, not a line. In the picture the best line is too high in the middle and too low at both ends.
Answer ACT-style questions on scatterplots and lines of fit. Each answer is checked, with the full solution, and every try brings new numbers. Practice needs a free account: it keeps your progress.