regression
regression
Lecturer :
SMA 2217
June 2020
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Lecturer :
National University of Science and Technology 2020 Figure:
Simple Linear Regression
...continued
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
.....
Example
We will fit a simple linear regression model to the oxygen purity data
in Table below
Lecturer : Figure:
National University of Science and Technology 2020
Simple Linear Regression
Solution
Lecturer :
National University of Science and Technology 2020
Figure:
Simple Linear Regression
solution...continued
Therefore, the least squares estimates of the slope and intercept are
Figure:
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
.....
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Figure:
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Use of t-tests
Suppose that we wish to test the hypothesis that the slope equals a
constant, say, β 1,0 . The appropriate hypotheses are
H0 : β 1 = β 1,0
H1 : β 1 6= β 1,0
A very important special case of the hypotheses of equations above
are
H0 : β 1 = 0 and H1 : β 1 6= 0
These hypotheses relate to the significance of regression.
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Test Statistics
Figure:
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Test Statistics
Lecturer :
National University of Science and Technology 2020
Figure:
Simple Linear Regression
Example
We will test for significance of regression using the model for the
oxygen purity data from the previous Example. The hypotheses are
H0 : β 1 = 0
H1 : β 1 6= 0
we will use α = 0.01. From previous Example we have β 1 = 14.947,
n = 20, Sxx = 068088, σ̂ = 1.18
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Example
so the t-statistic
Figure:
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Figure:
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
We usually call SSE = ∑ni=1 (yi − yˆi )2 the error sum of squares and
SSE = ∑ni=1 (yˆi − ȳ )2 the regression sum of squares.
Symbolically, the ANOVA identity can be written as
SST = SSR + SSE
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Figure:
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Figure:
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Example
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Solution
The regression sum of squares is
Figure:
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Figure:
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Prediction Interval
Figure:
Lecturer :
National University of Science and Technology 2020
Simple Linear Regression
Task
Lecturer :
National University of Science and Technology 2020