Line of Best Fit Formula
The line of best fit (trend line) is the straight line that best represents the overall trend in a scatter plot by minimizing the sum of squared vertical distances between the line and all data points.
The Formula
Ask yourself: Are you drawing or reading a straight trend line on a scatter plot to summarize the dots and estimate values?
Quick example
Notation
What this formula means
The line of best fit (trend line) is the straight line that best represents the overall trend in a scatter plot by minimizing the sum of squared vertical distances between the line and all data points. Its equation enables predictions for new x-values.
A line of best fit is like a straight road built through a scattered village: it cannot pass every house, so it takes the route that stays as close as it can to all of them at once. If the village curves around a lake, no straight road serves it well, and you need a curved model instead.
Formal view
Worked examples
Example 1
mediumShow solution
Answer
First step
See the full worked solution + why-it-works coaching
SetupKey insightWhy it worksCommon pitfallConnection
Example 2
mediumExample 3
mediumCommon mistakes
- Forcing line through origin when inappropriate
- Using when relationship isn't linear
- Ignoring outliers' influence
Why this formula matters
A trend line turns a cloud of points into a rule you can use: "each extra hour of study goes with about 5 more points", or "this taxi charges a $3 base plus $2 per kilometre". Without it, predictions are guesses read off scattered dots. Used carelessly, it misleads: forced through the origin, stretched far past the data, or laid over a curve.
Frequently asked questions
What is the Line of Best Fit formula?
The line of best fit (trend line) is the straight line that best represents the overall trend in a scatter plot by minimizing the sum of squared vertical distances between the line and all data points. Its equation enables predictions for new x-values.
How do you use the Line of Best Fit formula?
Use a line of best fit when a scatter plot of paired numerical data shows a roughly straight trend and the question asks you to predict, estimate, or describe a rate of change. Read the slope as change in per unit of and keep predictions inside the observed -range. If the dots curve, a straight line is the wrong model; if you only need the strength of the link, use the correlation coefficient; for the exact least-squares equation and its errors, use linear regression.
What do the symbols mean in the Line of Best Fit formula?
is the same line as the formula , with and . (slope) is the change in per unit change in . (intercept) is the predicted when .
Why is the Line of Best Fit formula important in Statistics?
A trend line turns a cloud of points into a rule you can use: "each extra hour of study goes with about 5 more points", or "this taxi charges a $3 base plus $2 per kilometre". Without it, predictions are guesses read off scattered dots. Used carelessly, it misleads: forced through the origin, stretched far past the data, or laid over a curve.
What do students get wrong about Line of Best Fit?
Students often know a procedure related to line of best fit but skip the recognition step: Are you drawing or reading a straight trend line on a scatter plot to summarize the dots and estimate values? That leads to a calculation or graph that looks reasonable but answers a different question.
What should I learn before the Line of Best Fit formula?
Before studying the Line of Best Fit formula, you should understand: stat scatter plot.