CMClearMathAcademy

Residuals and Model Fit

A free Statistics and Data Analysis lesson from the “Two-Variable Data” unit, with a worked example and practice problems including step-by-step solutions.

A residual is the difference between an actual value and the value predicted by a model. Residuals close to zero indicate better fit; patterns in residuals can warn that a linear model is missing structure. This lesson builds the habit of reading the context first, choosing the right statistical tool, calculating carefully, and then writing what the result means. By the end, students should be able to do the computation and explain why that computation answers the question.

What you'll learn

Why it matters: Forecast errors, prediction misses, and quality-control deviations are all residuals. Studying them helps improve the model instead of just trusting it.

Worked example

Problem. In a two-way table, 9 of 23 students in the first row chose yes. What is the row relative frequency for yes?

  1. Use the row total as the denominator.
  2. 9/23 simplifies to 9/23.

Answer: 9/23

Lesson preview: this page shows 5 practice items. The interactive activity contains 28 practice items and 15 quiz items (typed response and multiple choice). Counts include repeated prompts and variants.

Practice problems

1. Practice case A: In a two-way table, 9 of 23 students in the first row chose yes. What is the row relative frequency for yes?

Show solution
  1. Use the row total as the denominator.
  2. 9/23 simplifies to 9/23.

Answer: 9/23

2. Practice case B: A scatter plot with points rising left to right shows:

Choices: a categorical variable only · positive association · negative association · no association

Show solution
  1. When x increases and y tends to increase, the direction is positive.
  2. That is positive association.

Answer: positive association

3. Practice case C: Correlation by itself can prove:

Choices: association, not causation · cause and effect every time · that the sample was random · that there are no outliers

Show solution
  1. Correlation measures association.
  2. It does not prove causation without a stronger design.

Answer: association, not causation

4. Practice case D: A regression line is y = 2x + 9. Predict y when x = 7.

Show solution
  1. Substitute x = 7.
  2. 2(7) + 9 = 23.

Answer: 23

5. Practice case E: A model predicts 29, but the actual value is 27. Find the residual using actual - predicted.

Show solution
  1. Residual = actual - predicted.
  2. 27 - 29 = -2.

Answer: -2

Practice this interactively with instant feedback and an AI tutor.

Practice Residuals and Model Fit Take the free placement check

More Statistics and Data Analysis lessons