Numeracy, Maths and Statistics - Academic Skills Kit (2024)

Residuals

Definition

Numeracy, Maths and Statistics - Academic Skills Kit (1)

The residual for each observation is the difference between predicted values of $y$ (dependent variable) and observed values of $y$. \begin{align} \text{Residual}&=\text{actual } y \text{ value} - \text{predicted }y \text{ value} \text{,}\\ r_i&=y_i-\hat{y_i} . \end{align}

Having a negative residual means that the predicted value is too high, similarly if you have a positive residual it means that the predicted value was too low. The aim of a regression line is to minimise the sum of residuals.

Calculating Residuals

Knowing that \[r_i=y_i-\hat{y_i}\] and knowing that the regression line has the equation \[\displaystyle \hat{y_i}=a+b{x_i}\] we calculate the residual of an observation as follows: \[r_i=y_i-\hat{y_i}=y_i-(a+bx_i).\]

Worked Example

Worked Example

To see how students' physical ability has increased over a four-year period, ten students completed an obstacle course and then four years later they took the same course again. Here are their times:

Student

Debbie

Edna

Jerry

Norman

Joseph

Betty

Susan

Marilyn

Bert

Alice

First Test, $x$, (seconds)

$67$

$53$

$68$

$57$

$71$

$74$

$63$

$75$

$66$

$66$

Second Test, $y$, (seconds)

$46$

$29$

$37$

$44$

$41$

$35$

$41$

$43$

$33$

$36$

The equation of our regression line is $\hat{y}=23.91+0.22x$. What is the predicted time to complete the second course for Betty and what is the residual value?

Solution

Using our regression line equation we can calculate the predicted value, $\hat{y}$, by simply substituting in our value for $x$ (the first test score for Betty).

\begin{align} \hat{y_i}&=a{x_i}+b\\ &=23.91+0.22x_i\\ &=23.91+0.22\times74\\ &=40.19 \end{align}

The residual value is calculated by

\begin{align} r_i&=y_i-\hat{y_i}\\ &=35-40.19\\ &=-5.19 \end{align}

Video Example

This is a video example involving calculating residuals produced by Alissa Grant-Walker.

External Resources

See Also

Numeracy, Maths and Statistics - Academic Skills Kit (2024)
Top Articles
Latest Posts
Article information

Author: Maia Crooks Jr

Last Updated:

Views: 5317

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Maia Crooks Jr

Birthday: 1997-09-21

Address: 93119 Joseph Street, Peggyfurt, NC 11582

Phone: +2983088926881

Job: Principal Design Liaison

Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy

Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.