Back to Lesson

Teacher Guide: Line of Best Fit

Learn to draw a line of best fit by eye on a scatter plot, find its equation from two points and explain what its slope and intercept mean.

Use this lesson with your class

Free, no student accounts needed.

Share with students

Students open the lesson and practise with instant feedback.

Printable worksheet

All practice problems on paper, with a separate answer key.

Class quiz

10 questions on Regression. Students join with a name, you see everyone's score.

For Teachers

Learning Objectives
  • Draw a line of best fit by eye with about half of the points above and half below it
  • Judge whether a given line fits the data and say how to improve it
  • Write the equation of a line of best fit from two points on the line
  • Interpret the slope and intercept of a line of best fit in context, with units
  • Use the mean point to check and adjust a line of best fit
Prerequisites
  • • Scatter Plots: reading points and describing a trend
  • • Slope and slope-intercept form y=mx+by = mx + b
  • • Calculating the mean of a list of numbers
  • • Introduction to Regression and Linear Regression (helpful, not required)
Discussion Starters
  • 1. Two classmates drew different lines of best fit for the same data. Can both be right?
  • 2. Why is a line through the first and last points often a bad choice?
  • 3. What does a negative slope tell you about the situation?
  • 4. Can you think of a line of best fit whose intercept makes no sense in real life?
  • 5. Why would it help to mark the mean point before drawing the line?
Common Misconceptions

The line must pass through as many data points as possible

Remediation: Show a line that hits 3 points but leaves 5 points on one side. Then show a line that hits none but balances the points. Ask which describes the trend better.

There is exactly one correct line of best fit by eye

Remediation: Let groups draw lines for the same data and compare equations. Slopes like 1.9 and 2.1 are both fine; discuss what makes a line clearly wrong.

The intercept always has a real meaning

Remediation: Use height and arm span, or temperature and lemonade sales. Show that x=0x = 0 can be far outside the data, so the intercept is only part of the equation.

Differentiation Ideas

For Struggling Students:

  • • Start with data that has a very clear trend and few points
  • • Give two candidate lines and ask only which one fits better
  • • Provide lines that cross the y-axis at a grid point so b can be read directly

For On-Level Students:

  • • Draw lines by eye and write their equations from two grid points
  • • Interpret slope and intercept with units in several contexts
  • • Compare class lines with the mean point of the data

For Advanced Students:

  • • Compare a line by eye with the least-squares line from technology
  • • Find data sets where the intercept has no meaning and explain why
  • • Investigate how one outlier moves the line of best fit
Standards Alignment
  • 8.SP.A.2 (CCSS.MATH.CONTENT.8.SP.A.2)

    Know that straight lines are widely used to model relationships between two quantitative variables; informally fit a straight line and assess the model fit by judging the closeness of the data points to the line

  • 8.SP.A.3 (CCSS.MATH.CONTENT.8.SP.A.3)

    Use the equation of a linear model to solve problems in the context of bivariate measurement data, interpreting the slope and intercept

  • HSS.ID.B.6.C (CCSS.MATH.CONTENT.HSS.ID.B.6.C)

    Fit a linear function for a scatter plot that suggests a linear association

  • HSS.ID.C.7 (CCSS.MATH.CONTENT.HSS.ID.C.7)

    Interpret the slope (rate of change) and the intercept (constant term) of a linear model in the context of the data

Lesson Resources
  • visualPlace Your Own Line

    Students tap two grid points on the scatter plot and see the equation of their line instantly

  • activitySpaghetti Line

    Students lay a piece of dry spaghetti on a printed scatter plot to find the best position, then compare equations

  • worksheetLines of Best Fit Practice

    Judge given lines, draw your own and write their equations

Lesson Content

Everything students see: definition, examples, common mistakes, applications. Tap to open.

Definition

A line of best fit (also called a trend line) is a straight line drawn through a scatter plot that shows the overall trend of the data. It does not have to pass through any of the points.
A good line of best fit drawn by eye:
  • has about half of the points above it and half below it
  • follows the direction of the points (up, down, how steep)
  • has the points spread along its whole length, not all above at one end and all below at the other
Once the line is drawn, pick two points on the line (not data points), far apart and on grid crossings, and find its equation y=mx+by = mx + b:
m=y2−y1x2−x1,b=y1−mx1m = \frac{y_2 - y_1}{x_2 - x_1}, \qquad b = y_1 - m x_1
The mean point (xˉ,yˉ)(\bar{x}, \bar{y}) is a useful guide: the least-squares regression line always passes through it, so a good line by eye should pass through it or very close to it.

Worked Examples

Mia counts her push-ups in one minute after each week of training. Week 1 to 8: 6,6,9,12,12,16,16,196, 6, 9, 12, 12, 16, 16, 19. Three students draw a line by eye: - Line A: y=2x+3y = 2x + 3 - Line B: y=2x+7y = 2x + 7 - Line C: y=0.5x+9y = 0.5x + 9 Which line is the best line of best fit?
1

Check line B

Line B gives 9,11,13,15,17,19,21,239, 11, 13, 15, 17, 19, 21, 23 for weeks 1 to 8. Every data point is lower. → All 8 points are below line B: it is too high
2

Check line C

Line C gives 9.5,10,10.5,11,11.5,12,12.5,139.5, 10, 10.5, 11, 11.5, 12, 12.5, 13. Weeks 1 to 3 are below it, weeks 4 to 8 above it. → Points below at the left end, above at the right end: line C is too flat
3

Check line A

Line A gives 5,7,9,11,13,15,17,195, 7, 9, 11, 13, 15, 17, 19. Above: weeks 1, 4, 6. Below: weeks 2, 5, 7. On the line: weeks 3, 8. → 3 above, 3 below, spread along the whole line
4

Decide

Only line A has the points balanced on both sides along its whole length and follows the upward trend. → Line A is the best fit

Common Mistakes

Drawing the line from the first data point to the last one

Why it's wrong: The first and last points can be unusual. A line through them often has most points on one side.

Correct: Ignore single points and look at the whole cloud: about half the points above, half below. The line may pass through no point at all.

Balancing the number of points but not following the trend

Why it's wrong: A line that is too flat can have 4 points above and 4 below, but all the low ones sit at the left end and the high ones at the right end.

Correct: Check both ends: near each end of the line there should be points above and below it.

Finding the slope from two data points instead of two points on the line

Why it's wrong: Data points are usually not on the line, so their slope is not the slope of your line.

Correct: Read two points that lie on your drawn line, far apart and on grid crossings, then use m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}.

Reading the slope as a value of y instead of a change

Why it's wrong: In y=2x+3y = 2x + 3 for weeks and push-ups, 22 is not "2 push-ups". It is the change per week.

Correct: Say the slope with both units: about 2 more push-ups per week of training.

Why It Matters

Real data never lies exactly on a line, but it often follows a clear trend:
  • Sport: a coach sees how fast an athlete improves per week of training
  • Shops: a café sees how many fewer hot drinks it sells on every warmer day
  • Science: a student finds how fast a plant grows per day from scattered measurements
  • Money: a buyer sees how much a used bike loses in value per year
A line of best fit turns a cloud of points into one simple rule y=mx+by = mx + b. The slope says how much yy changes per unit of xx, the intercept says where the trend starts. It is the first step before making predictions, studying residuals and measuring how well a line fits.

Real World Applications

Training for a Race

Coaches draw a trend line through an athlete's times to see how much faster they get each week.

Example:

A runner's 5 km times drop from about 30 minutes to about 22 minutes over a few weeks. The trend line shows the steady improvement even on bad days.

1Try It Yourself

The line of best fit for a runner's 5 km time yy (minutes) after xx weeks passes through (2,30)(2, 30) and (6,22)(6, 22).

What is the slope of the line, in minutes per week?

Step 1: Write the mathematical expression

Slope = change in y divided by change in x:

Lemonade Stand

Small sellers plot temperature against sales to plan how much to prepare.

Example:

On hot days a stand sells many more cups. A trend line through a summer of data shows about how many extra cups each degree brings.

2Try It Yourself

A lemonade stand's line of best fit for temperature xx (°C) and cups sold yy passes through (20,30)(20, 30) and (30,50)(30, 50).

What is the y-intercept bb of this line?

Step 1: Write the mathematical expression

Find the slope, then use b=y1−mx1b = y_1 - m x_1:

Plant Growth Experiment

In science class, students measure a plant every few days and use a trend line to describe its growth rate.

Example:

Measurements are never perfect, so the heights scatter a little. The line of best fit gives one growth rate in centimeters per day.

3Try It Yourself

A plant is measured on days 2,4,6,82, 4, 6, 8 with heights 3,6,8,113, 6, 8, 11 cm. The line of best fit has slope 1.31.3 and passes through the mean point.

What is the intercept bb of the line?

Step 1: Write the mathematical expression

Use the mean point in b=yˉ−mxˉb = \bar{y} - m\bar{x}:

Key Takeaways

  • 1A line of best fit is a straight line that shows the overall trend of the points on a scatter plot
  • 2Draw it by eye so that about half the points are above it and half below, along its whole length
  • 3The line follows the direction of the data and may pass through no data point at all
  • 4Find its equation from two points on the line: m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}, then b=y1−mx1b = y_1 - m x_1
  • 5The slope is the change in yy per unit of xx; the intercept is the predicted yy at x=0x = 0, which may have no real meaning
  • 6The least-squares line always passes through the mean point (xˉ,yˉ)(\bar{x}, \bar{y}), so a good line by eye passes close to it

Frequently Asked Questions

Is there only one correct line of best fit?

By eye, no. Two students can draw slightly different lines and both be good. Their slopes and intercepts will be close. Only the least-squares line, from the Linear Regression lesson, is one exact line.

Does the line have to go through the origin?

No. The line goes wherever the data points it. Only force it through (0,0)(0, 0) if the situation really starts at zero and the data agrees.

Should I count points that lie exactly on the line?

Points on the line count for neither side. Balance the points above against the points below.

When should I not draw a line of best fit?

When the scatter plot shows no trend, or when the points follow a clear curve. A straight line only makes sense for a linear pattern.

Glossary

Line of best fit
A straight line through a scatter plot that shows the overall trend of the data (also called a trend line)
Slope
The change in yy for each increase of 1 in xx; along the line, m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}
Intercept
The value of yy where the line crosses the y-axis, at x=0x = 0
Mean point
The point (xˉ,yˉ)(\bar{x}, \bar{y}) made of the mean of all x-values and the mean of all y-values (also called the point of means)
Regression line
The exact line of best fit found by the least-squares method; it always passes through the mean point

Formula Card

Slope from two points

m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}

Use two points on the drawn line, not data points

Intercept

b=y1−mx1b = y_1 - m x_1

Put one point of the line and the slope into $y = mx + b$

Line of best fit

y=mx+by = mx + b

The equation of the trend line

Mean point

yˉ=mxˉ+b\bar{y} = m\bar{x} + b

The least-squares line passes through $(\bar{x}, \bar{y})$

More in This Topic