← Statistics and probability

Predicting with a line of best fit

Plug x into the regression line.

Start this lesson

A line of best fit, like y = 2.5x + 10, summarizes a scatter plot. To predict, plug in the x-value. The slope says how much y changes, on average, for each 1 added to x.

Example: Score = 2.5 × hours + 10, for 8 hours

  1. 2.5 × 8 + 10 — Plug in x = 8
  2. 20 + 10
  3. 30 — Predicted score: 30

Why it works: The line of best fit follows the trend of the data, so plugging in x gives the y the trend predicts.

Tip: Predictions far outside the data you have (extrapolation) are less trustworthy.