Corequisite Skills for Introductory StatisticsXYZ Homework Edition

6.7 Finding Residuals

Finding Residuals

A source-bound narrated opening with a worked example, an eight-second thinking pause, a checked result, English captions, and a transcript.

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.

(30,40)

Show solution

predicted value 36.5, residual 3.5

(25,30)

Show solution

predicted value 32.5, residual −2.5

(40,44.5)

Show solution

predicted value 44.5, residual 0

(15,26)

Show solution

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.

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

Show solution

predicted value 63, residual −3

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

Show solution

predicted value 10.4, residual 1

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

Show solution

predicted value 5.7, residual 0.2

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

Show solution

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?

residual −6.2

Show solution

Below the line. The line predicted 6.2 too much.

residual 3.8

Show solution

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.

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

Show solution

1, −2, 1

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

observed value 45

Corequisite Skills for Introductory Statistics is a custom course edition compiled for Introductory Statistics corequisite courses from OpenStax Contemporary Mathematics, Elementary Algebra 2e, Intermediate Algebra 2e, Prealgebra 2e. Content by OpenStax is reproduced as published, apart from any corrections recorded for this edition. Sections are renumbered to follow the course outline. The course outline is adapted from Larry Green's Support Course for Elementary Statistics (LibreTexts, https://stats.libretexts.org/Bookshelves/Introductory_Statistics/Support_Course_for_Elementary_Statistics), used under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Lessons 2.4 and 6.7 are written for this edition by XYZ Homework. Every OpenStax lesson is abridged to the subsections and practice exercises this course uses. Lessons are headed with their course titles, not the source section titles. Access the complete originals free at openstax.org. License: CC-BY-NC-SA-4.0.

⇩ 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.