CH 11
CH 11
Probability for
Engineers
Sixth Edition
Douglas C. Montgomery George C.
Chapter 11 Runger
ˆ
yˆ ˆ x
(11-3)
ei yi yˆ i
n n
xi yi
n n
S xy yi xi x 2 xi yi i 1 i 1
i 1 i 1 n
and
ˆ 0 y ˆ x 92.1605 (14.94748)1.196 74.28331
n n
SS E ei2 yi yˆ i 2
i 1 i 1
• Slope Properties
2
ˆ )
E ( ˆ )
1 1 V (1
S xx
• Intercept Properties
1 x 2
E (ˆ 0 ) 0 and V (ˆ 0 ) 2
n S xx
11-4.1 Use of t-
Tests
Suppose we wish to test
H0: b1 = b1,0
H1: b1 b1,0
11-4.1 Use of t-
Tests
The test statistic could also be
written as: ˆ ˆ
1 1, 0
T0
ˆ )
se( 1
11-4.1 Use of t-
Tests
Suppose we wish to test
H0: b0 = b0,0
H1: b0 b0,0
An appropriate test statistic
would be ˆ
0 0, 0 ˆ
0 0, 0
T0 (11-7)
1 2 ˆ )
se (
2 x 0
ˆ
n
S xx
11-4.1 Use of t-
Tests
We would reject the null
hypothesis if
11-4.1 Use of t-
Tests
An important special case of the
hypotheses of Equation 11-18 is
H0: b1 = 0
H1: b1 0
These hypotheses relate to the
significance of regression.
Failure to reject H0 is equivalent to
concluding that there is no linear
relationship between x and Y.
Sec 11-4 Hypothesis Tests in Simple Linear Regression 18
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
11-4: Hypothesis Tests in Simple Linear Regression
EXAMPLE 11-2 Oxygen Purity Tests of Coefficients We will test for
significance of regression using the model for the oxygen purity data from
Example 11-1. The hypotheses are
H0: b1 = 0
H1: b1 0
ˆ 1 a
and we will use = .0.01.
14 947 nFrom
20, Example ˆ 2 Table
11-1, and
S xx 0.68088 1.18 11-2 we have
ˆ 1
so the t-statistic in Equation ˆ becomes
11-6 14.947
t0 11 .35
2
ˆ /S xx se(ˆ 1 ) 1.18/0.68088
Table 11-2 presents the Minitab output for this problem. Notice that the t-
statistic value for the slope is computed as 11.35 and that the reported P-
value is P = 0.000. Minitab also reports the t-statistic for testing the
hypothesis H0: b0Tests
Sec 11-4 Hypothesis = 0.inThis statistic
Simple is computed from Equation 11-7, with b19
Linear Regression
0,0 =
0, as t = 46.62. Clearly,
Copyright © 2014 John
then, the Wiley & Sons, Inc.
hypothesis All rights
that reserved. is zero is
the intercept
11-4: Hypothesis Tests in Simple Linear Regression
(11-8)
i 1 i 1 i 1
Symbolically,
ˆ t ˆ2
ˆ t ˆ2
1 /2, n 2 1 1 /2, n 2
(11-11) S xx S xx
2 1 x2
0 ˆ 0 t/2, n 2
ˆ
n S xx
(11-12)
Sec 11-5 Confidence Intervals 24
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
11-5: Confidence Intervals
EXAMPLE 11-4 Oxygen Purity Confidence Interval on the Slope
We will find a 95% confidence interval on the slope of the
regression line using the ˆ 1 14.947
data in, SExample ˆ 2 1.18 that
xx 0.6808811-1.
Recall
, and (see Table 11-2). Then, from
Equation 11-11 we find
ˆ ˆ2 ˆ ˆ2
t0.025,18 1 1 t0.025,18
S xx S xx
Or 1.18 1.18
14.947 2.101 1 14.947 2.101
0.68088 0.68088
This simplifies to
12.181 b1 17.713
Definition
A 100(1 - a)% confidence interval about the mean response at the
x x0 of Y | x0
value
, say , is given by
ˆ Y | x0 t/2, n 2 2
1 x0 x 2
ˆ
n S xx
Y | x0
ˆ Y | x0 t/2, n 2 2
1 x0 x 2
ˆ
n S xx
(11-
ˆ Y | x0 ˆ
ˆ x
13) 0 1 0
Suppose that we
ˆ Y |are interested in predicting mean oxygen
x1.00 74.283 14.947(1.00) 89.23
purity when
x0 = 100%. Then
1 (1.00 1.1960) 2
89.23 2.101 1.18
and the 95% confidence interval is 20 0 . 68088
or
89.23 0.75
Therefore, the 95% CI on mY|1.00 is
88.48 mY|1.00 89.98
Sec 11-5 Confidence Intervals 27
This is a reasonable narrow CI.
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
11-6: Prediction of New
Observations
Prediction Interval
A 100(1 - a) % prediction interval on a future observation Y0 at
the value x0 is given by
2
1 x0 x 2
yˆ 0 t/2, n 2
ˆ 1
n S xx
(11-14)
2 1 x0 x 2
Y0 yˆ 0 t/2, n 2
ˆ 1
n S xx
ŷ0 yˆ 0 ˆ 0 ˆ 1x0
The value is computed from the regression model
.
which simplifies to
86.83 y0 91.63
This isPrediction
Sec 11-6 a reasonably narrow prediction interval.
of New Observations 29
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
11-7: Adequacy of the Regression Model
The residuals
Sec 11-7 are
Adequacy of the also plotted
Regression Model against the predicted value 32
in Fig. 11-11 and against the hydrocarbon levels x in Fig. 11-
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
11-7: Adequacy of the Regression Model
Example 11-7
Example 11-7
Example 11-7
X i X Yi Y
2 2 XX T
(11-19)
i 1 i 1
(11-20)
We may also write:
S XX ˆ S
SS R
2 ˆ2 1 XY
R 1
SYY SST SST
Sec 11-8 Correlation 39
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
11-8: Correlation
It is often useful to test the hypotheses
H0: r = 0
H1: r 0
H0: r = 0
H1: r 0
where 0 0 is somewhat more
complicated. In this case, the
appropriate test statistic
Z0 = (arctanh is r )(n - 3)1/2
R - arctanh 0
(11-22)
Reject H0 if |z0| > z/2.
Figure 11-13 Scatter plot of wire bond strength versus wire length,
Example 11-8.
Sec 11-8 Correlation 44
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
11-8: Correlation
Minitab Output for Example 11-8
Regression Analysis: Strength versus Length
Analysis of Variance
Source DF SS MS F P
Regression 1 5885.9 5885.9 615.08
0.000
Residual Error 23 220.1 9.6
Total
Sec 11-8 Correlation 24 6105.9 45
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
11-8: Correlation
Example 11-8 (continued)
S xy 2027.7132
r 0.9818
S xx SST 1/2
698.5606105.9 1/2
H0 : r = 0
H1 : r 0
which reduces to
0.9585 r 0.9921
Figure 11-17 Plot of residuals versus fitted Figure 11-18 Normal probability plot of the
values
yˆi residuals for the transformed model for the
for the transformed model for the windmill windmill data.
data. ˆ
A plot of the residuals from the transformed model yi versus is shown in Figure 11-17.
This plot does not reveal any serious problem with inequality of variance. The normal
probability plot, shown in Figure 11-18, gives a mild indication that the errors come
from a distribution with heavier tails than the normal (notice the slight upward and
downward curve at the extremes). This normal probability plot has the z-score value
plotted on the horizontal axis. Since there is no strong signal of model inadequacy,
we
Sec conclude that theand
11-9 Transformation transformed model is satisfactory.
Logistic Regression 53
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Important Terms & Concepts of
Chapter 11
Analysis of variance test Odds ratio
in regression Prediction interval on a
Confidence interval on future observation
mean response Regression analysis
Correlation coefficient Residual plots
Empirical model Residuals
Confidence intervals on Scatter diagram
model parameters Simple linear regression
Intrinsically linear model model standard error
Least squares estimation Statistical test on model
of regression model parameters
parameters Transformations
Logistics regression
Model adequacy checking
Chapter 11 Summary 54
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.