Practice free
Unit 9 · Statistics and probability

Write equations for lines of best fit

Grade 9 (Algebra 1) · JJ. Bivariate statistics · 30 practice questions

How this works

Find the slope from the two points, then walk back to x = 0 to find b.

A scatter of data has a line of best fit running through the points (2, 13) and (5, 25). Which equation describes that line?

Rise
25 − 13 = 12
Run
5 − 2 = 3
Slope
12 ÷ 3 = 4
b: from (2, 13), back 2 steps
13 − 2 × 4 = 5
Check (5, 25)
4 × 5 + 5 = 25

Answer: y = 4x + 5

Watch out: Using 13 as the intercept: y = 4x + 13. 13 is the y at x = 2; at x = 0 it is 13 − 8 = 5.

Try it

1. A scatter of data has a line of best fit running through the points (3, 23) and (4, 25). Which equation describes that line?

2. A scatter of data has a line of best fit running through the points (3, 19) and (7, 39). Which equation describes that line?

3. A scatter of data has a line of best fit running through the points (2, 21) and (4, 27). Which equation describes that line?

Answers are checked in the free account — with a hint before the answer, and the full solution after a miss.

How to help at home

A line of best fit is the single straight line drawn to sit as close as it can to a whole cloud of data, and here it is pinned to two known points. Between those two points the height changes by 2 while the sideways step is 1, so the steepness is: 2 / 1 = 2, and running the line back to the very start leaves the height 17.

More in JJ. Bivariate statistics