SimpleLineaReg Example
SimpleLineaReg Example
x
2 ŷ b0 b1 x – Find the regression line.
.
.
.
Independent
.
.
Dependent
.
SS xx x variable x variable y
i
2
i (n 1) s 2
x . . .
n
3 4
The Simple Linear Regression Line Assessing the Model
• Solution • The least squares method will produces a
– Solving by hand: Calculate a number of statistics regression line whether or not there is a linear
x
2
x 36,009 .45; SS xx xi 2
i
43,528, 690 relationship between x and y.
n
• Consequently, it is important to assess how well
y 14 ,822 .823 ; SS xy ( xi yi )
xi yi
2, 712,511
n the linear model fits the data.
where n = 100.
SS xy 2, 712,511
• Several methods are used to assess the model.
b1
(n 1) s 2
x
43,528, 690
.06232 All are based on the sum of squares for errors,
b0 y b1 x 14,822.82 (.06232)(36, 009.45) 17, 067 SSE.
ŷ b0 b1x 17,067 .0623 x 5 6
– The rejection region is t > t.025 or t < -t.025 with n = n-2 = 98.
Approximately, t.025 = 1.984
11 12