# Mean, Fitted-Value, Error, and Residual in Simple Linear Regression

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This Demonstration simulates the simple linear regression , . The red line is the plot of , while the blue line is the plot of , where and are the least-squares estimates. The 's are ordered from smallest to largest and for any particular observation number that is selected, a double arrow is used to indicate , , , or . In the thumbnail, has been selected with , so the double arrow shows the value of . The numerical values of these quantities are displayed when you mouseover one of the data points. Select some other observation numbers. Can you give approximate values for the quantities shown by the arrows? Check your answer by mousing over the selected observation.

Contributed by: Ian McLeod (September 2013)

(Department of Statistical and Actuarial Sciences, Western University)

Open content licensed under CC BY-NC-SA

## Snapshots

## Details

Snapshots 1, 2, and 3 show the fitted value, error, and residual, respectively, for the selected observation.

## Permanent Citation

"Mean, Fitted-Value, Error, and Residual in Simple Linear Regression"

http://demonstrations.wolfram.com/MeanFittedValueErrorAndResidualInSimpleLinearRegression/

Wolfram Demonstrations Project

Published: September 26 2013