Stat 1301 The Regression Line

28
Stat 1301 Stat 1301 The Regression Line The Regression Line

description

Stat 1301 The Regression Line. Recall: SD Line --. goes through point of averages passes through “heart” of elliptical shaped cloud. Selling price (Y). Used Car data: AVGx = 6.4 SDx = 3 (Age) AVGy = 11,290SDy = 6,044 (Price) r = - 0.82. Age in years (X). - PowerPoint PPT Presentation

Transcript of Stat 1301 The Regression Line

Page 1: Stat 1301 The Regression Line

Stat 1301Stat 1301

The Regression LineThe Regression Line

Page 2: Stat 1301 The Regression Line

Recall: SD Line --Recall: SD Line --

goes through point of averages

passes through “heart” of elliptical shaped cloud

Page 3: Stat 1301 The Regression Line
Page 4: Stat 1301 The Regression Line
Page 5: Stat 1301 The Regression Line

Used Car data:

AVGx = 6.4 SDx = 3 (Age)

AVGy = 11,290 SDy = 6,044 (Price)

r = - 0.82

0

5000

10000

15000

20000

25000

30000

0 5 10 15Age in years (X)

Selling price

(Y)

Page 6: Stat 1301 The Regression Line

Used Car data:

AVGx = 6.4 SDx = 3 (Age)

AVGy = 11,290 SDy = 6,044 (Price)

r = - 0.82

0

5000

10000

15000

20000

25000

30000

0 5 10 15Age in years (X)

Selling price

(Y)

SD Line

Page 7: Stat 1301 The Regression Line
Page 8: Stat 1301 The Regression Line

The Regression LineThe Regression Line

A “smoothed” graph of averages

Used to predict Y (the dependent variable) from knowing X (the independent variable)

Page 9: Stat 1301 The Regression Line

The Regression LineThe Regression Line(continued)(continued)

Passes through the point of averages (AVGx, AVGy)

r SDy Has slope m =

SDx

i.e. a change of 1SDx for independent variable is associated with r SDy change in dependent variable

Page 10: Stat 1301 The Regression Line
Page 11: Stat 1301 The Regression Line
Page 12: Stat 1301 The Regression Line
Page 13: Stat 1301 The Regression Line

Regression Line

SD Line

Page 14: Stat 1301 The Regression Line

Used Car data:

AVGx = 6.4 SDx = 3 (Age)

AVGy = 11,290 SDy = 6,044 (Price)

r = - 0.82

0

5000

10000

15000

20000

25000

30000

0 5 10 15Age in years (X)

Selling price

(Y)

Page 15: Stat 1301 The Regression Line

Used Car data:

AVGx = 6.4 SDx = 3 (Age)

AVGy = 11,290 SDy = 6,044 (Price)

r = - 0.82

0

5000

10000

15000

20000

25000

30000

0 5 10 15Age in years (X)

Selling price

(Y)

Regression Line

Page 16: Stat 1301 The Regression Line

Used Car data:

AVGx = 6.4 SDx = 3 (Age)

AVGy = 11,290 SDy = 6,044 (Price)

r = - 0.82

0

5000

10000

15000

20000

25000

30000

0 5 10 15Age in years (X)

Selling price

(Y)

SD Line

Page 17: Stat 1301 The Regression Line

Used Car data:

AVGx = 6.4 SDx = 3 (Age)

AVGy = 11,290 SDy = 6,044 (Price)

r = - 0.82

0

5000

10000

15000

20000

25000

30000

0 5 10 15Age in years (X)

Selling price

(Y)

Page 18: Stat 1301 The Regression Line
Page 19: Stat 1301 The Regression Line

NOTE: The regression line has smaller slope than SD line i.e regression line is not as steep

Page 20: Stat 1301 The Regression Line
Page 21: Stat 1301 The Regression Line

Easier Way to Predict - Easier Way to Predict - Use Regression LineUse Regression Line

(Chapter 12)(Chapter 12)Equation:

y = mx + b m = slopeb = y-intercept

whererSDy

m = SDx

b = AVGy - mAVGx

Page 22: Stat 1301 The Regression Line

Predicting Y whenPredicting Y whenyou know Xyou know X

Put value for X into regression equation and solve for Ysolve for Y

Page 23: Stat 1301 The Regression Line
Page 24: Stat 1301 The Regression Line

What height would you predict for a son whose father is:

(a) 72” tall

(b) 64” tall

(c) 68” tall

ˆ .5 35Y X

Page 25: Stat 1301 The Regression Line

Used Car data:

AVGx = 6.4 SDx = 3 (Age)

AVGy = 11,290 SDy = 6,044 (Price)

r = - 0.82

0

5000

10000

15000

20000

25000

30000

0 5 10 15Age in years (X)

Selling price

(Y)

Regression Line

Page 26: Stat 1301 The Regression Line

Used Car Data

Price AVG = 11,290 SD = 6044Age AVG = 6 yrs SD = 3 yrs r = -.82

1. Find the equation of the regression line for predicting Price from Age

2. Predict Price if car is

(a) 3 years old

(b) 10 years old

Page 27: Stat 1301 The Regression Line
Page 28: Stat 1301 The Regression Line