KS Maths
Year 9 · Unit 5 Scatter graphs and correlation · Lesson 3 of 6

The line of best fit and the mean point

Drawing a line of best fit

A line of best fit follows the trend and passes through the mean point, with the gaps above and below balancing out.

Statistics and ProbabilityNo calculator

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

mean
The total of all values divided by how many values there are.The mean of 2, 4, 6 is 4.
line of best fit
A straight line drawn through the middle of scattered points.The line of best fit shows the trend.
square
Multiply a number by itself. Also, a shape with four equal sides and four right angles.5 squared is 25.
gradient
How steep a line is. Up divided by across.A line going up 2 for each 1 across has gradient 2.
trend
The general direction that data move over time.The trend is going up.
scatter graph
A graph of points that shows if two things are linked.A scatter graph of height and weight.
straight line
A line that does not bend.A ruler draws a straight line.
stem and leaf
A diagram that shows data using the digits of the numbers.Stem 3 and leaf 5 means 35.
add
Put numbers together to find the total.Add 3 and 4 to get 7.
plot
Mark points on a graph.Plot the point (2, 5).

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Three quick ones from earlier work. Try each in your head or on paper before you open the answer.

  1. Find the mean of 3, 7 and 8.
    Answer(3 + 7 + 8) Ă· 3 = 6.
  2. (Unit 3, lesson 3) A line has gradient 2 and passes through (0, 5). What is y when x = 4?
    Answer13, because 2 Ă— 4 + 5 = 13.
  3. The dots on a scatter graph rise in a narrow band. Name the direction and strength.
    AnswerPositive and strong.
Words used in this lesson
mean point
the point whose coordinates are the mean x and the mean y. For example: (4, 55).
line of best fit
a line through the mean point that follows the trend of the dots. For example: a ruled line through a ringed mean point.
trend
the general direction in which the dots go. For example: rising.
gap
the vertical distance from a dot to the line. For example: 3 above the line.
squared gap
the gap multiplied by itself, used to judge how well a line fits. For example: 3 Ă— 3 = 9.

Which line?

Eight pupils record hours of revision a week and their test score. Two pupils each draw a line on the same scatter graph, and the lines have different slopes. Before you read on: if both lines must pass through the same special point, what point would you pick, and what would make one line better than the other?

The mean point is (mean x, mean y), made from the mean of all the x values and the mean of all the y values. A line of best fit passes through the mean point and follows the trend of the dots.

Any line through the mean point has gaps above that add to the same total as the gaps below, so the slope is chosen to follow the trend: the squared gaps are then as small as possible.

Read what Keith says

The mean point is made from the mean of all the first values and the mean of all the second values. A line of best fit passes through the mean point and follows the trend of the dots. Any line through that point has gaps above adding to the same total as the gaps below. So the slope is chosen to follow the trend, making the squared gaps as small as possible. Try placing the mean point first, then tilt your line.

Turn the line about the mean point. Watch the three totals and find the slope that suits the dots.

012345678304050607080hours of revision (x)score (y), starts at 30mean point (4, 55)squares 188above 17below 17
17total of the gaps above the line
17total of the gaps below the line
188sum of the squared gaps

Slope 3 through the mean point (4, 55): the gaps above total 17, the gaps below total 17, and the squared gaps total 188.

Show me the steps
  1. Slope 3 through (4, 55): the gaps above total 17 and the gaps below total 17. The squared gaps total 188.
  2. Slope 5: the gaps above total 10 and below total 10. The squared gaps total 76, the smallest on offer, so this line follows the trend best.
  3. Slope 8: the gaps above total 26 and below total 26. Still equal, but the line is too steep and the squared gaps total 418.
  4. Slope 2: the gaps are 23 and 23, and the squared gaps total 346. The totals above and below are always equal, so balance alone does not choose the line.

Two slips to watch for. The line need not pass through any dot, and it need not join the first and last dots. And “balanced” means the gap totals match, not that there are equal numbers of dots on each side.

The rest of this lesson is in the full course

Still to come in this lesson:

  • Worked examples
  • Check before you go on
  • Your turn

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

Years 7 to 11 plan$59Every lesson from Year 7 to Year 11, so the refresher links always open, and every Year 7 to 11 revision pack, for the whole family. $59 for 12 months or $99 for 2 years.
IB Diploma plan$99Every lesson from Year 7 to the IB Diploma, AA and AI, SL and HL, for the whole family. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

Year 9 revision pack, $19BuyPlan $59