Statistics - Residual analysis (2024)

Statistics - Residual analysis (1)

'; var adpushup = adpushup || {}; adpushup.que = adpushup.que || []; adpushup.que.push(function() { adpushup.triggerAd(ad_id); });

Residual analysis is used to assess the appropriateness of a linear regression model by defining residuals and examining the residual plot graphs.

Residual

Residual($ e $) refers to the difference between observed value($ y $) vs predicted value ($ \hat y $). Every data point have one residual.

${ residual = observedValue - predictedValue \\[7pt] e = y - \hat y }$

Residual Plot

A residual plot is a graph in which residuals are on tthe vertical axis and the independent variable is on the horizontal axis. If the dots are randomly dispersed around the horizontal axis then a linear regression model is appropriate for the data; otherwise, choose a non-linear model.

Types of Residual Plot

Following example shows few patterns in residual plots.

Statistics - Residual analysis (2)

In first case, dots are randomly dispersed. So linear regression model is preferred. In Second and third case, dots are non-randomly dispersed and suggests that a non-linear regression method is preferred.

Example

Problem Statement:

Check where a linear regression model is appropriate for the following data.

$ x $60 70 80 85 95
$ y $ (Actual Value)70 65 70 95 85
$ \hat y $ (Predicted Value)65.411 71.849 78.288 81.507 87.945

Solution:

Step 1: Compute residuals for each data point.

$ x $60 70 80 85 95
$ y $ (Actual Value)70 65 70 95 85
$ \hat y $ (Predicted Value)65.411 71.849 78.288 81.507 87.945
$ e $ (Residual)4.589 -6.849 -8.288 13.493 -2.945

Step 2: - Draw the residual plot graph.

Statistics - Residual analysis (3)

Step 3: - Check the randomness of the residuals.

Here residual plot exibits a random pattern - First residual is positive, following two are negative, the fourth one is positive, and the last residual is negative. As pattern is quite random which indicates that a linear regression model is appropriate for the above data.

Advertisem*nts

';adpushup.triggerAd(ad_id); });

Statistics - Residual analysis (2024)
Top Articles
Latest Posts
Article information

Author: Kareem Mueller DO

Last Updated:

Views: 6229

Rating: 4.6 / 5 (66 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Kareem Mueller DO

Birthday: 1997-01-04

Address: Apt. 156 12935 Runolfsdottir Mission, Greenfort, MN 74384-6749

Phone: +16704982844747

Job: Corporate Administration Planner

Hobby: Mountain biking, Jewelry making, Stone skipping, Lacemaking, Knife making, Scrapbooking, Letterboxing

Introduction: My name is Kareem Mueller DO, I am a vivacious, super, thoughtful, excited, handsome, beautiful, combative person who loves writing and wants to share my knowledge and understanding with you.