Pre-AlgebraData in Two Variables8.SP.A.2

Lines of Fit

Draw a line close to the points and use its equation to predict.

Not started Jump to practice

When the points in a scatter plot cluster around a line, one line can sum up the trend. You can write its equation in slope-intercept form and use it to predict.

Why it works

A line of fit trades many points for one simple rule. Its slope gives the typical change in $y$ for each 1 more in $x$, and its intercept gives a starting value. Because it is drawn to follow all the points, with some above and some below, it describes the trend better than a line through any two particular points.

Key idea

Draw a line that follows the trend, with about as many points above it as below. Pick two points on the line (they don’t have to be data points), find its equation, and use it to predict. The slope is the average change per unit; the intercept is the predicted value at $x = 0$.
Drag the two handles of your line to fit the points. Then turn on the best-fit line to compare.

Worked examples

Worked example: Write the equation

A line of fit for the study data passes through $(2, 56)$ and $(7, 81)$. Write its equation.
  1. Slope: $\frac{81 - 56}{7 - 2} = \frac{25}{5} = 5$.
  2. Intercept: $b = 56 - 5 \cdot 2 = 46$.

Answer: $y = 5x + 46$

Worked example: Predict

Use $y = 5x + 46$ to predict the score of a student who studies 5 hours.
  1. $y = 5 \cdot 5 + 46 = 71$.
  2. It is a prediction from the trend; a real student could score a bit higher or lower.

Answer: about 71

Worked example: Interpret

What do the 5 and the 46 in $y = 5x + 46$ mean?
  1. Slope 5: each extra hour of study goes with about 5 more points, on average.
  2. Intercept 46: the predicted score with 0 hours of study.

Answer: about 5 points per hour; a starting value of 46

Common mistake

Drawing the line through the first and last points. Those two points might be unusual, and the line can end up above or below most of the others. Look at the whole cloud, and balance the points above and below the line.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • OpenStax Introductory Statistics 2e, Chapter 12: Linear Regression and Correlation
  • Common Core State Standards for Mathematics, Grade 8, 8.SP.A.2 (informally fit a straight line)
  • Common Core State Standards for Mathematics, Grade 8, 8.SP.A.3 (use the equation of a linear model)
@teddyrookbook GitHub