Teacher Guide: Residuals
Learn what a residual is, how to compute residuals in a table, and how a residual plot shows whether a line fits the data.
Use this lesson with your class
Free, no student accounts needed.
Share with students
Students open the lesson and practise with instant feedback.
Class quiz
10 questions on Regression. Students join with a name, you see everyone's score.
For Teachers
- Compute a residual as observed minus predicted value
- Interpret the sign of a residual as a point above or below the regression line
- Organize residuals in a table and verify that they add up to zero for the least-squares line
- Use a residual plot to decide whether a linear model is appropriate
- Explain least squares as minimizing the sum of squared residuals
- • Scatter plots and reading points as (x, y) pairs
- • Line of best fit and its equation
- • Making predictions by substituting into the regression line
- • Adding and squaring negative numbers
- 1. If your residual on a test-score model is , did you do better or worse than the model expected?
- 2. Why can the residuals of a bad line still add up to zero?
- 3. What would a residual plot look like if every point were exactly on the line?
- 4. Why does squaring the residuals punish one big miss more than several small ones?
The residual is predicted minus observed
Remediation: Anchor the order with a picture: a point above the line should be positive. Have students check the sign against the graph every time.
A sum of residuals equal to zero proves the line is a good fit
Remediation: Show the downloads data: the sum is but the residual plot is a clear U shape. Then compare SSR values of two lines.
A strong correlation means a straight line is always the right model
Remediation: Data that curves can still have a high . Always draw the residual plot and look for a pattern before trusting a linear model.
For Struggling Students:
- • Start with one residual at a time and a graph to check the sign
- • Give a table with the predicted values already filled in
- • Use only whole-number residuals
For On-Level Students:
- • Complete full residual tables and check that the sum is zero
- • Draw residual plots by hand and describe the pattern
- • Compare two lines using the sum of squared residuals
For Advanced Students:
- • Show that moving the least-squares line up by adds to the SSR
- • Explain why the least-squares line always passes through
- • Find real data whose residual plot is curved and suggest a better model
- HSS.ID.B.6.B (CCSS.MATH.CONTENT.HSS.ID.B.6.B)
Informally assess the fit of a function by plotting and analyzing residuals
- 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 and the intercept of a linear model in the context of the data
- visualScatter Plot with Residuals
Students tap points to read each residual as a dashed segment between the point and the line
- activityHuman Residual Plot
Students measure height and arm span, compute residuals from a class line and stand on a floor number line at their residual
- worksheetResidual Tables
Fill in predicted values, residuals and squared residuals for small data sets and compare two lines
Lesson Content
Everything students see: definition, examples, common mistakes, applications. Tap to open.
Lesson Content
Everything students see: definition, examples, common mistakes, applications. Tap to open.
Definition
- is the observed value (what really happened)
- is the predicted value from the line (read "y-hat")
- is the residual, always observed minus predicted
- : the point is above the line (the line predicted too little)
- : the point is below the line (the line predicted too much)
- : the point is exactly on the line
Worked Examples
Find the predicted score
Subtract: observed minus predicted
Interpret the sign
Answer: Mia's residual is : she scored 2 points higher than the line predicted, so her point is above the line.
Common Mistakes
Computing predicted minus observed ()
Why it's wrong: This flips every sign: points above the line would get negative residuals and points below would get positive ones.
Correct: Always use observed minus predicted: . Positive means above the line.
Judging a line by the plain sum of its residuals
Why it's wrong: For the least-squares line the sum is always , even when the line fits badly, because positive and negative residuals cancel.
Correct: Square the residuals first and add them (SSR), or look at the residual plot.
Thinking a curved residual plot is fine because the points are close to zero on average
Why it's wrong: A clear curve (U shape, hill shape) means the data follows a bend that a straight line cannot follow.
Correct: A linear model fits only when the residual plot looks like random scatter around with no pattern.
Forgetting the unit or the size of a residual
Why it's wrong: A residual of on a test score means 3 points, not 3%. Its size only makes sense in the unit of .
Correct: Say it in context: "The line overestimated Leo's score by 3 points."
Why It Matters
- Is the line any good? Small residuals mean the predictions are close to reality.
- Is a straight line the right shape? A residual plot (the residuals plotted against x) shows a random cloud when a line fits and a curve when it does not.
- Which line is best? The least-squares line is the one with the smallest sum of squared residuals.
- Unusual cases: a very large residual flags a point that does not follow the pattern, such as a typo in the data or a special case.
Real World Applications
Delivery Time Estimates
Delivery apps predict the time for an order from the distance. After each delivery, the residual shows whether the estimate was too short or too long.
Example:
With minutes for km, a 5 km order is predicted to take minutes. If it took minutes, the residual is .
The app's model is (minutes, in km). An order over km took minutes.
What is the residual for this order?
Step 1: Write the mathematical expression
Observed minus predicted:
Plant Growth Experiments
Biologists fit a line to plant height over time. A plant with a large negative residual may be lacking light or water.
Example:
With cm after weeks, a plant is expected to be cm tall after 4 weeks.
The growth model is (cm, in weeks). After weeks one plant is cm tall.
What is the residual for this plant?
Step 1: Write the mathematical expression
Observed minus predicted:
Sports Science Models
Coaches predict an athlete's jump height from training data and judge the model by its sum of squared residuals: the smaller, the better.
Example:
If a model misses by cm and cm for two athletes, the residuals add to , but the squared residuals add to .
A least-squares model for jump height has residuals , and cm for three athletes.
What is the sum of squared residuals?
Step 1: Write the mathematical expression
Square each residual and add:
Key Takeaways
- 1A residual is observed minus predicted:
- 2A positive residual means the point is above the line, a negative one means it is below
- 3Residuals have the same unit as and are easiest to organize in a table: , , ,
- 4The residuals of the least-squares line always add up to
- 5A residual plot with random scatter around means a line fits; a curved pattern means it does not
- 6The least-squares line is the line with the smallest sum of squared residuals
Frequently Asked Questions
Why is it called a residual?
Why do we square the residuals instead of just adding them?
Is a big residual a mistake?
How is a residual plot different from a scatter plot?
Glossary
- Residual
- Observed value minus predicted value:
- Observed value
- The real value of a data point, measured or collected
- Predicted value
- The value that the regression line gives for a certain
- Residual plot
- A graph of against the residuals, with a horizontal line at
- Sum of squared residuals (SSR)
- The sum ; the least-squares line makes it as small as possible
- Least-squares line
- The regression line with the smallest sum of squared residuals
Formula Card
Residual
Observed minus predicted; positive above the line, negative below
Sum of residuals
Always true for the least-squares regression line
Sum of squared residuals
The least-squares line makes this as small as possible (also written $SS_{\text{res}}$)