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

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

This Demonstration simulates the simple linear regression , . The red line is the plot of , while the blue line is the plot of =+x, 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 , =+x, , 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.

y=a+bx+ϵ

i

i

i

i=1,…,10

y=a+bx

^

y

^

a

^

b

^

a

^

b

x

i

μ=a+bx

i

i

^

y

i

^

a

^

b

i

ϵ=y-μ

i

i

i

e=y-

i

i

^

y

i

μ

i=5

μ

5