CoReq to Introductory Statistics, 2/eXYZ Homework Edition

6.7 Finding Residuals

Finding Residuals

Find a Predicted Value and a Residual

A line fitted to paired data turns an x-value into a prediction. Your statistics text writes that line as y^=a+bx, where y^ (read “y-hat”) is the predicted value, a is the y-intercept, and b is the slope. This is the same kind of line as y=mx+b from Sections 6.5 and 6.6, written with different letters. Watch the letter b: in y=mx+b it is the y-intercept, but in the statistics form y^=a+bx it is the slope. Real data points rarely sit exactly on the line. The gap between what was observed and what the line predicted is called a residual, and it tells you how far off the line was for that data point.

The sign of a residual tells you where the data point sits compared with the line.

You can also work backwards. The residual is the observed value minus the predicted value, so the observed value is the predicted value plus the residual.

y=y^+residual

Find Residuals for a Table of Data

Every data point has its own residual. Organizing the work in a table, one row per point, keeps the predicted values and the residuals lined up with the data.

Practice Makes Perfect

Find a Predicted Value and a Residual

In the following exercises, use the line y^=12.5+0.8x to find the predicted value and the residual for the data point.

  1. (30,40)

    Show solution to exercise 1

    predicted value 36.5, residual 3.5

  2. (25,30)

    Show solution to exercise 2

    predicted value 32.5, residual −2.5

  3. (40,44.5)

    Show solution to exercise 3

    predicted value 44.5, residual 0

  4. (15,26)

    Show solution to exercise 4

    predicted value 24.5, residual 1.5

In the following exercises, use the given line to find the predicted value and the residual for the data point.

  1. y^=95−3.2x; data point (10,60)

    Show solution to exercise 5

    predicted value 63, residual −3

  2. y^=−4.6+1.25x; data point (12,11.4)

    Show solution to exercise 6

    predicted value 10.4, residual 1

  3. y^=2.1+0.45x; data point (8,5.9)

    Show solution to exercise 7

    predicted value 5.7, residual 0.2

  4. y^=150−12x; data point (6,70)

    Show solution to exercise 8

    predicted value 78, residual −8

In the following exercises, a data point's residual is given. Is the point above or below the line? Did the line predict too much or too little?

  1. residual −6.2

    Show solution to exercise 9

    Below the line. The line predicted 6.2 too much.

  2. residual 3.8

    Show solution to exercise 10

    Above the line. The line predicted 3.8 too little.

Find Residuals for a Table of Data

In the following exercises, find the requested values.

  1. Use the line y^=20+1.5x to find the residual for each data point: (4,27), (10,33), (16,45).

    Show solution to exercise 11

    1, −2, 1

  2. A line predicts y^=48.5 for a data point, and the point's residual is −3.5. What was the observed value y?

    Show solution to exercise 12

    observed value 45

Adapted from OpenStax, Rice University; access for free at openstax.org. Lessons 2.4 and 6.7 are written for this edition by XYZ Homework. License: CC BY-NC-SA 4.0. Copyright and sources.

⇩ Download ▾

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or any other accessibility standard. Every page is built against an automated accessibility gate, and our target for the published editions is WCAG 2.2 Level AA. If something is unusable, please tell us.