WF ED 540, CLASS MEETING 6, Linear Regression, 2016
-
Upload
penn-state-university -
Category
Education
-
view
91 -
download
0
Transcript of WF ED 540, CLASS MEETING 6, Linear Regression, 2016
![Page 1: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/1.jpg)
Linear regressionDATA ANALYSIS27 SEPTEMBER 2016
Fitting a straight line through a swarm of bivariate data
![Page 2: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/2.jpg)
Equation of a straight line
Y = a + bx
![Page 3: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/3.jpg)
Linear regression lineY
X
(x, y)
e
a y = a + bx + e
b = y / x
Y = + X
![Page 4: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/4.jpg)
Two hypotheses of interest… Is there no relationship between Y
and X in the population?• H0: yx = 0
Is the slope of the line = 0 in the population?• H0: = 0
![Page 5: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/5.jpg)
Hypothesis tested about yx
Null hypothesis is H0: yx = 0
Alternate hypothesis is H1: yx ≠ 0
a = .05 Y = + X
![Page 6: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/6.jpg)
Hypothesis tested about …Null hypothesis is H0: = 0
Alternate hypothesis is H1: ≠ 0
a = .05 Y = + X
![Page 7: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/7.jpg)
Relationship betweencar mpg and car weight
Rscript
Console
![Page 8: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/8.jpg)
Relationship betweencar mpg and car weight
Rscript
Console
a b
![Page 9: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/9.jpg)
Relationship betweencar mpg and car weight
Rscript
Console
![Page 10: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/10.jpg)
Relationship betweencar mpg and car weight
Rscript
Console
![Page 11: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/11.jpg)
Relationship betweencar mpg and car weight
Rscript
Console
![Page 12: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/12.jpg)
Confidence intervalsRscript
Console
![Page 13: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/13.jpg)
Plot with regression line Rscript
Plot
![Page 14: WF ED 540, CLASS MEETING 6, Linear Regression, 2016](https://reader033.fdocuments.net/reader033/viewer/2022042906/58ae7fe51a28abea4f8b5fd7/html5/thumbnails/14.jpg)
Linear regressionDATA ANALYSIS27 SEPTEMBER 2016