Lesson 9.2 · Bivariate Data
Lines of best fit
When a scatter plot shows a linear association, you can draw one straight line that captures the trend. That line turns a cloud of dots into an equation, and the equation lets you describe the data and make predictions.
A line that follows the trend
Here is the study-time data from the last lesson, with a line drawn through the middle of the points.
The line doesn't pass through every point. It can't, because the points don't lie exactly on a line. Instead it runs through the middle of the data: points are above it and are below it, and none of them is very far away.
Definition
Line of best fit
A straight line drawn on a scatter plot that shows the trend of the data as closely as possible. It is also called a line of fit or trend line.
Drawing a good line of fit
In 8th grade you draw a line of fit by eye. A good one follows a few rules.
What makes a good line of fit
- It follows the direction of the data (up for a positive association, down for a negative one).
- It has about as many points above it as below it.
- The points are as close to it as possible, all along the line, not just at one end.
- It ignores outliers instead of bending toward them.
A line of fit doesn't have to pass through any data point at all. Different people may draw slightly different lines, and that's fine, as long as each one follows the rules.
Common mistake
Don't just connect the first point to the last point. Those two points might be unusual, and the line through them could miss the rest of the data. Look at all the points and aim for the middle of the cloud.
Writing the equation
Once the line is drawn, write its equation in slope-intercept form, , exactly as you would for any line. Choose two points on the line (not necessarily data points) that are easy to read.
Worked example: Finding the equation of a line of fit
A lemonade stand tracked the high temperature (in °F) and the number of cups sold on ten days. A line of fit is drawn.
The line passes through and . Find its equation.
Solution. Find the slope:
Substitute one point into to find :
The equation is .
What the slope and intercept mean
In a real-world line of fit, the slope and the -intercept have meanings in the units of the problem.
- The slope is the predicted change in for each increase of in .
- The -intercept is the predicted value of when .
Worked example: Interpreting slope and intercept
For the used cars from the last lesson, a line of fit is , where is the car's age in years and is the price in thousands of dollars.
What do the slope and the -intercept mean?
Solution.
- Slope : for each extra year of age, the price drops by about thousand dollars, or 2,200 dollars.
- -intercept : a brand-new car (age ) is predicted to cost about 25 thousand dollars.
Making predictions
To predict, substitute the -value into the equation.
Worked example: Predicting with a line of fit
Use to predict how many cups of lemonade the stand will sell on an °F day.
Solution.
The stand should sell about cups. You can't sell of a cup, so round to a sensible whole number.
Predictions are most trustworthy inside the range of the data. The lemonade data runs from °F to °F. On a °F day the equation predicts cups, which is impossible. The pattern simply doesn't continue that far.
Tip
To check a prediction, find the -value on the graph, go straight up to the line, and read across to the -axis. Your calculated answer and your graph reading should be close.
Practice
Which statement describes a good line of fit?
A class measured a bean plant's height every week. The scatter plot and a line of fit are shown.
Use the line to estimate the plant's height, in centimeters, at week .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The line of fit for the bean plant is , where is the week and is the height in centimeters. Predict the plant's height at week .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
In the line of fit for the bean plant, what does the slope mean?
A line of fit on a scatter plot passes through the points and . Write its equation in the form . Enter only the right side.
Enter an expression, e.g. 3x^2 - 2x + 1
For the study-time data, a line of fit is . One student studied hours and scored . How many points higher was the actual score than the score the line predicts?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A student recorded her phone's battery level while streaming videos. A line of fit is , where is the hours of use and is the battery percentage. According to the line, after how many hours will the battery be at ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Data on kids ages to gives the line of fit , where is age in years and is height in inches. Why is it a bad idea to use this line to predict the height of a -year-old?