Home > Chapter 12 - Simple Linear Regressions
1
Chapter 12
Simple Linear Regression
for Estimation and Prediction
2
y = b0
+ b1x
+e
Simple Linear Regression Model
3
E(y)
= 0
+ 1x
Simple Linear Regression Equation
4
Simple Linear Regression
Equation
E(y)
x
Slope b1
is positive
Regression line
Intercept
b0
5
Simple
Linear Regression Equation
E(y)
x
Slope b1
is negative
Regression line
Intercept
b0
6
Simple
Linear Regression Equation
E(y)
x
Slope b1
is 0
Regression line
Intercept
b0
7
Estimated Simple Linear Regression Equation
8
Estimation Process
Regression Model
y = b0 + b1x +e
Regression Equation
E(y) = b0 + b1x
Unknown Parameters
b0, b1
Sample Data:
x
y
x1 y1
. .
. .
xn
yn
Estimated
Regression Equation
Sample Statistics
b0,
b1
b0 and b1
provide estimates of
b0 and b1
9
where:
yi = observed value of the dependent variable
for the ith observation
yi = estimated value of the dependent variable
for
the ith observation
Least Squares Method
^
10
The Least Squares Method
11
where:
xi = value of independent variable for ith observation
yi = value of dependent variable for ith observation
x = mean value for independent variable
y = mean value for dependent variable
n = total number of observations
_
_
The Least Squares Method
12
Example:
Reed Auto Sales
Reed Auto periodically has a special week-long sale. As part of the advertising campaign Reed runs one or more television commercials during the weekend preceding the sale. Data from a sample of 5 previous sales are shown on the next slide.
13
Example:
Reed Auto Sales
Number of TV Ads Number of Cars Sold
1 14
3 24
2 18
1 17
3 27
14
b1 = 220 - (10)(100)/5 = _____
24 - (10)2/5
b0 = 20 - 5(2) = _____
y = 10 +
5x
^
Example: Reed Auto Sales
15
Example:
Reed Auto Sales
^
16
SST = SSR + SSE
where:
SST = total sum of squares
SSR = sum of squares due to regression
SSE = sum of
squares due to error
The Coefficient
of Determination
^
^
17
r2
= SSR/SST
where:
SST = total sum of squares
SSR = sum of
squares due to regression
The Coefficient of Determination
18
r2 = SSR/SST = 100/114 =
The regression relationship is very strong
because 88% of the variation in number of cars sold can be explained
by the linear relationship between the number of TV ads and the number
of cars sold.
Example: Reed Auto Sales
19
The Correlation
Coefficient
where:
b1 = the slope of the estimated regression
equation
20
The sign
of b1 in the equation
is ��+��.
rxy =
+.9366
Example: Reed Auto Sales
21
Model Assumptions
22
Testing for Significance
23
The mean square error (MSE) provides the estimate
of s 2, and the notation s2
is also used.
s2 = MSE = SSE/(n-2)
where:
Testing for Significance
24
Testing for Significance
25
H0: 1 = 0
Ha: 1 = 0
where
Testing for Significance: t Test
26
Reject H0
if t < -tor t > t
where: t is based on a t distribution
with n - 2 degrees of freedom
Testing for Significance: t Test
27
H0: 1 = 0
Ha: 1 = 0
For = .05 and d.f. = 3, t.025 = _____
Reject H0 if t > t.025
= _____
Example: Reed Auto Sales
28
t = _____/_____ = 4.63
t = 4.63 > 3.182, so reject H0
Example: Reed Auto Sales
29
Confidence Interval for
1
30
where b1 is the point estimate
is the margin of error
is the t value providing an area
of
a
/2 in the upper tail of a
t distribution with n - 2 degrees
of freedom
Confidence Interval for
1
31
Reject H0 if 0 is not included in
the confidence interval for
1.
= 5 +/- 3.182(1.08) = 5 +/- 3.44
or ____ to ____
0 is not included in the confidence interval.
Reject H0
Example: Reed Auto Sales
32
H0:
1 = 0
Ha:
1 = 0
F = MSR/MSE
Testing for Significance: F Test
33
Reject H0 if F > F
where: F
is based on an F distribution
with 1 d.f. in the numerator and
n - 2 d.f. in the denominator
Testing for Significance: F Test
34
H0: 1 = 0
Ha:
1 = 0
For = .05 and d.f. = 1, 3: F.05 = ______
Reject
H0 if F > F.05 = ______.
Example: Reed Auto Sales
35
F = MSR/MSE = ____ / ______ = 21.43
F = 21.43 > 10.13, so we reject
H0.
Example: Reed Auto Sales
36
Some Cautions about the
Interpretation of Significance Tests
37
yp + t
/2
sind
where: confidence coefficient is 1 -
and
t
/2 is based on a t distribution
with n - 2 degrees of freedom
Using the Estimated
Regression Equation
for Estimation and Prediction
38
If 3 TV ads are run prior to a
sale, we expect the mean number of cars sold to be:
y = 10 + 5(3) = ______
cars
^
Example: Reed Auto Sales
39
95% confidence interval estimate
of the mean number of cars sold when 3 TV ads are run is:
25 + 4.61 =
______ to _______ cars
Example: Reed Auto Sales
40
95% prediction interval estimate
of the number of cars sold in one particular week when 3 TV ads
are run is:
25 + 8.28 = _____ to ______ cars
Example: Reed Auto Sales
41
yi
–
yi
where:
and
Residual Analysis
^
^
^
^
42
Example: Reed Auto Sales
43
Example: Reed Auto Sales
44
Residual Analysis
x
0
Good Pattern
Residual
45
Residual Analysis
x
0
Nonconstant Variance
Residual
46
Residual Analysis
x
0
Model Form Not Adequate
Residual
47
End of Chapter 12
All Rights Reserved Powered by Free Document Search and Download
Copyright © 2011