Fit Lines to
Scatter Plots
Learn to draw a line of best fit through scatter plot data and judge how well the line models the relationship between two variables.
What Is a Scatter Plot?
A scatter plot is a graph that shows individual data points plotted on a coordinate plane. Each point represents a pair of values: one for the independent variable (\( x \)) and one for the dependent variable (\( y \)).
Recognizing Linear Association
When the data points in a scatter plot cluster along a straight-line path, we say the two variables have a linear association. The points don't need to fall exactly on a line: they just need to follow a general straight trend.
Why Fit a Straight Line?
Straight lines are the simplest model for describing a relationship. Once we have a line, we can:
The Line of Best Fit
A line of best fit is the straight line that comes closest to the most data points. Informally, it should split the data so that roughly half the points are above the line and half are below.
The Equation: \( y = mx + b \)
Every straight line can be described by the slope-intercept form:
Strong vs. Weak Fit
After drawing a line, we judge how well it fits by looking at how close the data points are to the line. Here are two scatter plots with the same line drawn through them:
How to Draw a Line of Best Fit
Example 1: Finding the Line
A teacher records the number of absences (\( x \)) and the final grade (\( y \)) for 8 students. The scatter plot is shown below. Fit a line and find its equation.
Interpreting \( y = -3.6x + 95 \)
Example 2: Positive Association
A store records the daily temperature (\( x \), in °F) and bottles of water sold (\( y \)). Fit a line to the data below.
Example 3: Judging the Fit
Two students each drew a line for the same data. Which line is a better fit?
Checking Fit with Residuals
A residual is the vertical distance from a data point to the line. It tells you how far off the prediction is for that point:
When a Line Doesn't Fit
Not every scatter plot should be modeled with a straight line. If the data curves, a line will systematically miss the pattern:
Common Mistakes
Summary Table
| Concept | Key Detail | |
|---|---|---|
| Scatter Plot | Graph of data pairs | Each dot is \( (x, y) \) |
| Linear Association | Points cluster along a line | Can be positive or negative |
| Line of Best Fit | Straight line through the middle | Balanced above & below |
| Slope \( m \) | Rate of change | \( m = \frac{\Delta y}{\Delta x} \) |
| \( y \)-Intercept \( b \) | Value when \( x = 0 \) | Starting point of the line |
| Residual | Actual minus predicted | Small residuals = good fit |
Question 1 of 5
A scatter plot shows data points that cluster tightly along a line sloping downward to the right. This is an example of:
Question 2 of 5
A line of best fit passes through the points \( (2, 14) \) and \( (8, 32) \). What is the slope of this line?
Question 3 of 5
A student's line of best fit is \( y = 2x + 10 \). The actual data point at \( x = 5 \) is \( y = 18 \). What is the residual?
Question 4 of 5
Which of the following is the best description of a good line of best fit?
Question 5 of 5
A scatter plot shows data arranged in a clear U-shape. A student draws a straight line through the middle. What is wrong with this approach?