Two-variable data · Lesson 2

The line of best fit

A line of best fit is a straight line drawn through the middle of a linear scatterplot. It models the data: for any xx-value, it gives a predicted yy-value. The SAT usually gives you the line, drawn on the graph or as an equation such as y=2.4x+15y = 2.4x + 15.

Predicting. To predict yy for a given xx, substitute xx into the equation, or go up from xx to the line (not to a dot) and across to the yy-axis. A dot is an actual value. The line gives the predicted value.

Slope. The slope is the *predicted change in yy for each increase of 1 in xx*. If xx is a weight in kilograms and yy is a price in dollars, a slope of 2.4 means the price is predicted to rise 2.4 dollars for each additional kilogram. It is a per-unit change, not a total, and it describes the model, not exactly what happens for each individual.

**yy-intercept.** The yy-intercept, 15 here, is the predicted yy-value when x=0x = 0. When x=0x = 0 is far outside the data, that prediction is unreliable, and when x=0x = 0 makes no sense in context, it has no real-world meaning.

Actual versus predicted. For one data point, actual minus predicted is called the residual. A dot above the line has an actual value greater than predicted (positive residual). A dot below the line has an actual value less than predicted (negative residual).

Predictions far outside the range of the data are less trustworthy, because the trend may not continue.

Eight data points and a line of best fit123456789246810121416182022242628300xy
Eight data points and a line of best fit Scatterplot of 8 points, (1, 4), (2, 10), (3, 10), (4, 14), (5, 16), (6, 22), (7, 22) and (8, 26), with a rising line of best fit through (0, 2) and (8, 26), so the line predicts 3 more for each increase of 1 in x. At x = 6 the line predicts 20 and the dot is at 22, above the line: residual 22 − 20 = 2. At x = 5 the line predicts 17 and the dot is at 16, below the line: residual −1.

Worked example Easy

The scatterplot shows the number of hours each of 9 students studied for a quiz and the student's score on the quiz, along with a line of best fit.
Hours studied and quiz score for 9 students, with a line of best fit12345678910404550556065707580859095100Hours studiedQuiz score
Hours studied and quiz score for 9 students, with a line of best fit Scatterplot of 9 points: (1, 55), (2, 65), (3, 60), (4, 75), (5, 70), (6, 70), (7, 90), (8, 85) and (9, 95). A rising line of best fit passes through (0, 50) and (10, 100).

Based on the line of best fit, what is the predicted quiz score for a student who studied 6 hours?

  1. 3030
  2. 5656
  3. 7070
  4. 8080Answer

How to solve it

  1. Find the line's slope from the two points it passes through: 100−5010−0=5\frac{100 - 50}{10 - 0} = 5. The yy-intercept is 50, so the line is y=5x+50y = 5x + 50.
  2. Substitute x=6x = 6: y=5(6)+50=80y = 5(6) + 50 = 80.
  3. On the graph, go up from 6 to the line, not to the dot at 70, and across: the line is at 80.

Why each choice is right or wrong

  • A. Incorrect. This multiplies the slope by 6 and leaves out the yy-intercept: 5(6)=305(6) = 30. The prediction is 5(6)+505(6) + 50.
  • B. Incorrect. This adds 6 to the intercept, 50+6=5650 + 6 = 56, as if the score rose 1 point per hour. The line rises 5 points per hour, so 6 hours add 30.
  • C. Incorrect. 70 is the actual score of the student who studied 6 hours, the dot below the line. The question asks for the value predicted by the line.
  • D. Correct. The line passes through (0, 50) and (10, 100), so it is y=5x+50y = 5x + 50, and 5(6)+50=805(6) + 50 = 80.

Worked example Medium

A scatterplot shows the age xx, in years, and the selling price yy, in thousands of dollars, of 20 used cars of one model. The line of best fit for the data is y=−1.6x+24.5y = -1.6x + 24.5.

Which statement is the best interpretation of the slope of the line of best fit in this context?

  1. For each additional year of age, the predicted price decreases by 1.6 thousand dollars.Answer
  2. The price of each car dropped by exactly 1.6 thousand dollars for every year of its age.
  3. A car of this model that is 0 years old has a predicted price of 24.5 thousand dollars.
  4. Over its whole life, a car's predicted price decreases by a total of 1.6 thousand dollars.

How to solve it

  1. The slope is the number multiplying xx: −1.6-1.6.
  2. Slope is the change in predicted yy for each increase of 1 in xx. Here xx is in years and yy is in thousands of dollars.
  3. So for each additional year of age, the predicted price goes down by 1.6 thousand dollars (1,600 dollars).

Why each choice is right or wrong

  • A. Correct. The slope, −1.6-1.6, is the change in the predicted price, in thousands of dollars, for each additional year of age.
  • B. Incorrect. The line describes predicted prices, not what happened to each car. Actual prices are scattered above and below the line, so no car is guaranteed to drop by exactly that amount.
  • C. Incorrect. This is a correct reading of the yy-intercept, 24.5, not of the slope. The question asks about the slope.
  • D. Incorrect. This treats the slope as a total. A slope of −1.6-1.6 is the change for each single year, so over several years the predicted drop adds up to much more than 1.6 thousand dollars.

Trap Reading a dot instead of the line

When a question says based on the line of best fit, the answer comes from the line. A dot at that xx-value is an actual data value, and the SAT often lists it as a choice.

Trap Treating the slope as a total

The slope is the change for one unit of xx. For an increase of 10 units, the predicted change is 10 times the slope. The yy-intercept never enters a difference between two predictions, because it is in both and cancels.

Trap Getting the residual's sign backward

Residual means actual minus predicted: positive for a dot above the line, negative for a dot below it. A choice with the right size and the wrong sign is a common trap.

Desmos When Desmos is faster

When the line is given as an equation, type it as a function, such as f(x)=2.4x+15f(x) = 2.4x + 15, and on the next line type f(6)f(6). Desmos shows the predicted value, 29.4.

To go backward (which xx gives a predicted yy of 27?), graph y=2.4x+15y = 2.4x + 15 and y=27y = 27 and click the point where they cross. Its xx-coordinate, 5, is the answer.

If a question gives raw data in a table, add a table in Desmos, type the values in the x1x_1 and y1y_1 columns, and on a new line type y1∼mx1+by_1 \sim mx_1 + b. Desmos fits the line and shows the values of mm and bb.

For one-step predictions with clean numbers, mental math is just as fast.