Professional Documents
Culture Documents
JOHN S. LOUCKS
St. Edwards University
Chapter 14
Simple Linear Regression
where:
yi = observed value of the dependent
variable
^ for the ith observation
yi = estimated value of the dependent
variable
for the ith observation
20
y = 5x + 10
15
10
5
0
0
2
TV Ads
Coefficient of Determination
r2 = SSR/SST
where:
SST = total sum of squares
SSR = sum of squares due to regression
SSE = sum of squares due to error
Coefficient of Determination
r2 = SSR/SST = 100/114 = .8772
The regression relationship is very strong
since 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.
10
rxy (sign of b1 ) r 2
where:
b1 = the slope of the estimated
regression
y b0 b1 x
equation
11
rxy (sign of b1 ) r 2
The sign of b1 in the equation
y 10 5 x is +.
rxy =+ .8772
rxy = +.9366
12
Model Assumptions
13
14
An Estimate of 2
The mean square error (MSE) provides the
estimate
of 2, and the notation s2 is also used.
s2 = MSE = SSE/(n-2)
where:
SSE ( yi y i ) 2 ( yi b0 b1 xi ) 2
15
An Estimate of
To estimate we take the square root of 2.
The resulting s is called the standard error
of the estimate.
SSE
s MSE
n2
16
Hypotheses
H0: 1 = 0
Ha: 1 = 0
Test Statistic
b1
t
sb1
Rejection Rule
Reject H0 if t < -tor t > t
where t is based on a t distribution with
n - 2 degrees of freedom.
17
t Test
Hypotheses
H 0 : 1 = 0
Ha: 1 = 0
Rejection Rule
For = .05 and d.f. = 3, t.025 = 3.182
Reject H0 if t > 3.182
Test Statistics
t = 5/1.08 = 4.63
Conclusions
Reject H0
18
19
b1 t / 2 sb1
where
b1
t / the
is
2 sb1 margin of error
is tthe
/ 2 t value providing an area
of /2 in the upper tail of a
t distribution with n - 2 degrees
of freedom
20
Rejection Rule
Reject H0 if 0 is not included in the
confidence interval for 1.
or 1.56 to 8.44
Conclusion
Reject H0
b1 t / 2=
sb1 5 +/- 3.182(1.08) = 5 +/- 3.44
21
Hypotheses
H0: 1 = 0
Ha: 1 = 0
Test Statistic
F = MSR/MSE
Rejection Rule
Reject H0 if F > F
F Test
Hypotheses
H0: 1 = 0
Ha: 1 = 0
Rejection Rule
For = .05 and d.f. = 1, 3: F.05 =
10.13
Reject H0 if F > 10.13.
Test Statistic
F = MSR/MSE = 100/4.667 = 21.43
Conclusion
We can reject H0.
23
24
yp + t/2 sind
where the confidence coefficient is 1 - and
t/2 is based on a t distribution with n - 2 d.f.
25
Point Estimation
If 3 TV ads are run prior to a sale, we expect
the mean number of cars sold to be:
y =^ 10 + 5(3) = 25 cars
Confidence Interval for E(yp)
Residual Analysis
where:
syi y^i s 1 hi
27
Residuals
Observation
1
2
3
4
5
Residuals
-1
-1
-2
2
2
28
3
2
Residuals
1
0
-1
-2
-3
0
TV Ads
29
Residual Analysis
Detecting Outliers
An outlier is an observation that is unusual
in comparison with the other data.
Minitab classifies an observation as an
outlier if its standardized residual value is <
-2 or > +2.
This standardized residual rule sometimes
fails to identify an unusually large
observation as being an outlier.
This rules shortcoming can be
circumvented by using studentized deleted
residuals.
The |i th studentized deleted residual| will
be larger than the |i th standardized
residual|.
30
End of Chapter 14
31