Step by step
The question
Question: find the line of best fit for (1, 3), (2, 5), (3, 6), (4, 9), (5, 12).
The line of best fit is the straight line that comes closest to all the points.
There are four choices.
First we solve it, the normal way.
Then we pick.
1 Find the means
The mean of the x numbers: 15 divided by 5 is 3.
The mean of the y numbers: 35 divided by 5 is 7.
The line of best fit always goes through the mean point, (3, 7).
2 Make the table
A table with the points.
Each x minus the mean x, 3.
Each y minus the mean y, 7.
For the first point: 1 minus 3 is −2, and 3 minus 7 is −4.
The product: the two distances multiplied.
−2 times −4 is 8.
And the x distance squared.
−2 squared is 4.
We add the last two columns: 22 and 10.
3 Find the slope
A line is y = m x + b.
The slope m is how much y goes up when x goes up by 1.
The products show how y moves with x.
The squares show how x moves by itself.
So the slope is the total of the products, over the total of the squares.
Careful!
The bottom uses only the x distances, squared.
Not the y distances.
22/10 is 2.2.
4 Find b
b is where the line crosses the y axis.
The line goes through the mean point.
So the mean y is m times the mean x, plus b.
To get b alone, we take m times the mean x away from both sides.
2.2 times 3 is 6.6.
7 minus 6.6 is 0.4.
So the line of best fit is y = 2.2x + 0.4.
5 Draw the line
Now the points on a graph.
Each point is a dot.
The line goes through the mean point.
The line y = 2.2x + 0.4: it passes close to all the points.
6 Check
Let's check: the mean point must be on the line.
2.2 times 3 plus 0.4 is 7.
That is the mean y.
So it is right!
7 Pick the choice
Our answer is y = 2.2x + 0.4.
That is choice A.
8 Why not the others
B is y = 2x + 1.
Wrong: through the first two points only.
C is y = 2.2x.
Wrong: left out the intercept: the line goes through (3, 7).
D is y = 0.4x + 2.2.
Wrong: swapped the slope and the intercept.
Let's look back.
First: find the means.
Then: make the table.
Then: find the slope.
Then: find b.
Then: draw the line.
Then: check.
Then: pick the choice.
Last: why not the others.