All AP Courses AP StatisticsAP Stats

Practice

Predicted values and residuals

Residual = actual minus predicted, and what its sign says about the point.

The skill

A residual is actual minus predicted: y−y^. Plug the x value into the regression line to get y^, then subtract it from the observed y. A positive residual means the point sits above the line and the model underestimated it; a negative residual means the model overestimated. Students who compute predicted minus actual get the right size with the wrong sign, and then describe the point on the wrong side of the line.

How to work these problems

  1. Write down the regression line y^=a+bx, and pick out the x value and the observed y value for the point in question.
  2. Substitute the x value into the line to get the predicted value y^. Multiply the slope by x first, then add the intercept.
  3. Subtract in the order actual minus predicted: residual =y−y^. Round as the problem asks.
  4. Interpret the sign. A positive residual means the point is above the line and the model underestimated it. A negative residual means the point is below the line and the model overestimated it.

Common mistakes

  • Computing predicted minus actual, which gives the right size with the wrong sign and puts the point on the wrong side of the line.
  • Substituting the observed y into the line instead of the x value.
  • Adding the intercept to the slope before multiplying by x, which ignores order of operations.
  • Calling a large residual an error in the data. A residual only measures how far one point sits from the line.

Check your work

  • The predicted value y^ should be close to the observed y when the line fits well, and the residual should be small compared with y. Adding the residual to y^ must return y.
  • The sign of your residual should match where the point sits relative to the line, above for positive and below for negative.

A worked example

The regression line for predicting arm span (inches) from height (inches) is ŷ = 2.7 + 0.94x. One observation has height 70 and arm span 71.1.

Find the residual for this observation. Round to two decimal places.

Solution

  1. Predicted: y^=2.7+0.94(70)=68.50.
  2. Residual = actual − predicted = 71.10 − 68.50 = 2.60. Positive: the point lies above the line, so the model underestimated it.

Answer: 2.6

Your turn

Lessons behind these problems