![Page 1: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/1.jpg)
Chapter 4 Inference About Process Quality• Motivation• Estimation
– point estimation– interval estimation
• Hypothesis Testing– Definition– Testing on means
• known and Unknown variance
– Testing on Variance
![Page 2: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/2.jpg)
The need of “Statistical Inference”
• In statistical quality control, the probability distribution is used to model some quality characteristic (which is related to process parameters).
• The parameters of a probability distribution are unknown. ??– Estimation of Process Parameters– Point Estimation / Interval Estimation
• The parameters of a process can be time varying, how do we identify a process change?– Hypothesis Testing
),( 2N
![Page 3: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/3.jpg)
3
Observations in a sample are used to draw conclusions about the population
![Page 4: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/4.jpg)
4
Random Samples
• Random Sample: – Sampling from an infinite population or finite
population with replacement: A sample is selected so that the observations are independently and identically distributed.
– Sampling n samples from a finite population of N items without replacement if each of the possible samples has an equal probability of being chosen
n
N
Random Sample = Independently and Identically Distributed (i.i.d)
![Page 5: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/5.jpg)
5
Terminology and Definition
• Statistic: – Any function of the sample data that does not contain unknown
parameters.
• Estimate: a particular numerical value of an estimator, computed from sample data. (An estimate is a particular statistic)
– Point estimate: a statistic that produces a single numerical value as the estimate of the unknown parameter
– Interval estimate: a random interval (or called confidence interval) in which the true value of the parameter falls with some level of probability.
• Sampling distribution: – The probability distribution of a statistic.
![Page 6: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/6.jpg)
6
Point Estimation
Distribution Parameters Estimator
Normal
x̂ 2 22ˆ S
4/ˆ cS (n>10) or 2/ˆ dR (n≤10); c4 and d2 are given in Appendix Table VI
Binomial p xx
np
n
ii
1
1ˆ , {xi} are either 1 or 0,
corresponding to “success” and “failure” of the ith Bernoulli trial, respectively.
Poisson xxn
n
ii
1
1̂
Methods: [1]• Method of Moment (MOM)• Maximum Likelihood Estimation (MLE)
[1] “Statistical Inference”, George Casella and Roger L. Berger, 2nd edition
![Page 7: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/7.jpg)
7
Interval Estimation
• Estimate the interval between two statistics that include the true value of the parameter with some probability– Example: Pr{ L U}=1- (0 1) – The interval L U is called a 100(1- )% confidence interval (C.I.)
for the unknown mean – Two side C.I. (L is lower confidence limit, U is upper confidence limit)– Single side C.I.:
• lower 100(1- )% C. I.: L , Pr{ L }=1-• upper 100(1- )% C. I.: U, Pr{ U}=1-
• Analysis procedures:– get the samples– compute the statistic– determine the statistic reference distribution– select confidence level– find the lower and/or upper confidence limits based on the reference
distribution
x UL
/2/2
Real mean of the population
![Page 8: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/8.jpg)
1x
2x
L
U
Q: how to determine the width?
![Page 9: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/9.jpg)
9
Interval Estimation
If x is a random variable with unknown mean and known variance 2, what is the estimation interval for mean ?
– Select a statistic– The approximate distribution of is regardless
of the distribution of x due to the central limit theorem.– Given confidence level , then
• 100(1-)% two-side confidence interval on is:
• 100(1-)% upper confidence interval on is:
• 100(1-)% lower confidence interval on is:
n
ii nxx
1
/)(
)/,( 2 nN
nZx
nZx
2/2/ 2/}Pr{ 2/ Zzwhere
nZx
n
Zx
x
![Page 10: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/10.jpg)
10
Example: The strength of a disposable plastic beverage container is being investigated. The strengths are normally distributed, with a known standard deviation of 15 psi. A sample of 20 plastic containers has a mean strength of 246 psi. Compute a 95% confidence interval for the process mean.
![Page 11: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/11.jpg)
11
%)95(.I.Csideone1)z(
%)90(.I.Csizetwo2/1)z(
![Page 12: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/12.jpg)
12
Example: A chemical process converts lead to gold. However, the production varies due to the powers of the alchemist. It is known that the process is normally distributed, with a standard deviation of 2.5 g. How many samples must be taken to be 90% certain that an estimate of the mean process is within 1.5 g of the true but unknown mean yield?
![Page 13: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/13.jpg)
13
Interval Estimation of the Binomial Distribution Parameter with A Larger Sample Size
• From the central limit theorem: p̂ =x/n~ Normal (p, p(1-p) /n ) Example 5-1: A random sample of 200 printed circuit boards contains 18 defective or nonconforming units. Estimate the process fraction nonconforming. Construct a 90% two-sided confidence interval on the true fraction nonconforming in the production process.
![Page 14: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/14.jpg)
14
Hypothesis Testing
• Statistical hypothesis:– a statement about the values of the parameters of a probability distribution
• Hypothesis testing:– Making a hypothesis concerning what we believe to be true and then use
sampled data to test it.• Two Hypotheses (Two Competing Propositions)
– Null Hypothesis H0: will be rejected if the sample data do not support it.
– Alternative Hypothesis H1: a hypothesis different from the null hypothesis
• Conclusion– By Comparing the Test Statistic with Critical Value, determine whether
reject or NOT reject the null hypothesis.
5.1:
5.1:
1
0
H
H
5.1:
5.1:
1
0
H
H
5.1:
5.1:
1
0
H
H
![Page 15: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/15.jpg)
15
Hypothesis Testing Procedures
1) State the null and alternative hypothesis, and define the test statistic.
2) Specify the significance level .3) Find the distribution of the test statistic and
the rejection region of H0.
4) Collect data and calculate the test statistic.
5) Compare the test statistic with the rejection region.
6) Assess the risk.
![Page 16: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/16.jpg)
16
Inference on the MEAN of a Normal Population – Variance Known
Assuming Known Population Variance
x – / n
~ N(0,1)
Reject H0: 0 if
x – 0
/ n > Z(/2)
Reject H0: < 0 if x – 0/ n
< -Z()
Reject H0: > 0 if x – 0/ n
> Z()
nZx
nZx
2/2/
Test Statistic: function of data and hypothetic value
Critical value
![Page 17: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/17.jpg)
17
Example: The response time of a distributed computer system is an important quality characteristic. The system manager wants to know whether the mean response time to a specific type of command exceeds 75 millisec. From past experience, he knows that the standard deviation of response time is 8 millisec. If the command is executed 25 times and the response time for each trial is recorded. The sample average response time is 79.25 millisec.
• Formulate an appropriate hypothesis and test the hypothesis.• Find out the (lower/upper?) bound of the 95% C.I.
![Page 18: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/18.jpg)
18
Assuming Unknown Population Variance
x
–
s/ n ~ t(n-1)
Reject H0: 0 if
x
– 0s/ n
> t(/2, n-1)
Reject H0: < 0 if x
– 0s/ n
<- t(n-1)
Reject H0: > 0 if x
– 0s/ n
> t(n-1)
Inference on the MEAN of a Normal Population – Variance Unknown
n
stx
n
stx 2/2/
00 :H H1
![Page 19: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/19.jpg)
19
![Page 20: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/20.jpg)
20
![Page 21: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/21.jpg)
21
Example: The mean time it takes a crew to restart an aluminum rolling mill after a failure is of interest. The crew was observed over 25 occasions, and the results were mean = 26.42 minutes and variance S2 =12.28 minutes. If repair time is normally distributed,
• Find a 95% confidence interval on the true but unknown mean repair time.
• Test the hypothesis that the true mean repair time is 30 minutes.
![Page 22: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/22.jpg)
22
Example 6-1: The life of a battery used in a cardiac pacemaker is assumed to be normally distributed. A random sample of 10 batteries is subjected to an accelerated life test by running them continuously at an elevated temperature until failure, and the following lives are obtained.
• Construct a 90% two-sided confidence interval on mean life in the accelerated test.
• Test the hypothesis, with a=0.1 that the mean battery life is 26.5 h.
25.5 h 26.1 h
26.8 23.2
24.2 28.4
25.0 27.8
27.3 25.7
![Page 23: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/23.jpg)
23
![Page 24: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/24.jpg)
The Use of P-Values in Hypothesis Testing
1. Traditional hypothesis testing:– Given to determine whether the null hypothesis was rejected– Disadvantage:
• No information on how close to/far away from the rejection region in a probability sense
• predefined may not reflect different decision maker’s risk assessments
2. P-Value approach– P-Value: the smallest level of significance that would lead to
rejection of the null hypothesis– if the predefined >P= min, reject the null hypothesis
) trueis H| valueextremeor statistics test observing(_ 0Pvaluep
Underlying idea: “if H0 is really true, is it possible for test statistic to be such big/small?”
![Page 25: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/25.jpg)
0
1x
2x
00 :H
Two-sidedp_value
2/Z 2/Z
00
xZ
n
![Page 26: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/26.jpg)
Use of P-Value for the Normal Distribution
H0: =0, standard normal statistic Z0~N(0,1)
– P=2[1-(|Z0|)] with two-sided H1, i.e., H1: 0
– P=1-(Z0) for one-sided H1, H1: >0
– P=(Z0) for one-sided H1, H1: <0n
xZ
/0
0
f(x)
x=0 Z0>0Z0<0
1-(Z0)(Z0)
A small p-value is evidence against the null hypothesis while a large p-value means little or no evidence against the null hypothesis
If p-value is small, it is less likely that the test statistic is small. So, H0 is NOT true.
![Page 27: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/27.jpg)
Inference on the MEAN of a Normal Population – Variance Known
02 1 ( )/
x
n
Assuming Known Population Variance
x – / n
~ N(0,1)
Reject H0: 0 if
x – 0
/ n > Z(/2)
Reject H0: < 0 if x – 0/ n
< -Z()
Reject H0: > 0 if x – 0/ n
> Z()
nZx
nZx
2/2/
00 :H H1
)/
(1 0
n
x
)/
( 0
n
x
p_value
27
![Page 28: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/28.jpg)
28
Example: The response time of a distributed computer system is an important quality characteristic. The system manager wants to know whether the mean response time to a specific type of command exceeds 75 millisec. From past experience, he knows that the standard deviation of response time is 8 millisec. If the command is executed 25 times and the response time for each trial is recorded. The sample average response time is 79.25 millisec. Formulate an appropriate hypothesis and test the hypothesis.
• Calculate the p-value of the true mean response time is as low as 75 millisec.
![Page 29: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/29.jpg)
29
Assuming Unknown Population Variance
x – s/ n
~ t(n-1)
Reject H0: 0 if
x – 0
s/ n > t(/2, n-1)
Reject H0: < 0 if x – 0s/ n
<- t(n-1)
Reject H0: > 0 if x – 0s/ n
> t(n-1)
Inference on the MEAN of a Normal Population – Variance Unknown
n
stx
n
stx 2/2/
00 :H H1
)/
( 01
ns
xtn
p_value
)/
(1 01
ns
xtn
CDF
0( 1)2 1 ( )
/n
xt
s n
![Page 30: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/30.jpg)
30
Example: The mean time it takes a crew to restart an aluminum rolling mill after a failure is of interest. The crew was observed over 25 occasions, and the results were mean = 26.42 minutes and variance S2 =12.28 minutes. If repair time is normally distributed, find a 95% confidence interval on the true but unknown mean repair time.
• Test the H0: μ = 30 v.s. μ ≠ 30.• Calculate the p-value of the hypothesis that μ = 30.
![Page 31: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/31.jpg)
31
Example: The life of a battery used in a cardiac pacemaker is assumed to be normally distributed. A random sample of 10 batteries is subjected to an accelerated life test by running them continuously at an elevated temperature until failure, and the following lives are obtained.
Construct a 90% two-sided confidence interval on mean life in the accelerated test. Test the H0: μ = 26.5 v.s. μ ≠ 26.5.
• Calculate the p-value of the hypothesis that μ = 26.5.
25.5 h 26.1 h
26.8 23.2
24.2 28.4
25.0 27.8
27.3 25.7
![Page 32: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/32.jpg)
32
Confidence Interval v.s. Hypothesis Testing
• If the value of the parameter specified by the null hypothesis is contained in the 100(1- )% interval, then the null hypothesis cannot be rejected at the level.
• If the value specified by the null hypothesis is not in the interval, then the null hypothesis will be rejected at the level
![Page 33: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/33.jpg)
33
Understanding the result of Hypothesis Test
• When we reject the null hypothesis, it is a strong conclusion: there is a strong evidence that the null hypothesis is false.
• When we fail to reject the null hypothesis, it is a weak conclusion: It does not mean that the null hypothesis is correct. It only means we do not have strong evidence to reject it.
![Page 34: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/34.jpg)
34
Court System and Hypothesis Testing
Hypothesis testing in science is a lot like the criminal court system in the United States. How do we decide guilt?
• Assume innocence until “proven” guilty. • Evidence is presented at a trial. • Proof has to be “beyond a reasonable doubt.”
A jury's possible decision:
• guilty • not guilty
Note that a jury cannot declare somebody ``innocent,'' just ``not guilty.'' This is an important point.
![Page 35: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/35.jpg)
Interrelationships between statistical inferences
StatisticalDistribution
Confidence Interval
HypothesisTesting
p_Value
![Page 36: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/36.jpg)
Interrelationships between statistical inferences
Assuming Known Population Variance
x – / n
~ N(0,1)
Reject H0: 0 if
x – 0
/ n > Z(/2)
Reject H0: < 0 if x – 0/ n
< -Z()
Reject H0: > 0 if x – 0/ n
> Z()
nZx
nZx
2/2/
Assuming Known Population Variance
x – / n
~ N(0,1)
Reject H0: 0 if
x – 0
/ n > Z(/2)
Reject H0: < 0 if x – 0/ n
< -Z()
Reject H0: > 0 if x – 0/ n
> Z()
P=2[1-(|Z0|)] with two-sided H1, i.e., H1: 0
![Page 37: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/37.jpg)
37
Inference on the Difference in Means of Two Populations – Variance Known
nnxxnnxx2
22
1
21
2/2
_
1
_
21
2
22
1
21
2/2
_
1
_
--
ZZ
Assume Known Population Variances
)1,0(~-
nn
xx
2
22
1
21
2
_
1
_
N
Reject 210 :H if 2/
2
22
1
21
2
_
1
_
xx -
Z
nn
Reject 210 : H if
Z
nn 2
22
1
21
2
_
1
_
xx -
Reject 210 : H if
Z
nn 2
22
1
21
2
_
1
_
xx -
210 :H H1
p_value
)-
(
2
22
1
21
2
_
1
_
xx
nn
)-
(1
2
22
1
21
2
_
1
_
xx
nn
_ _
1 2
2 21 2
1 2
-2[1 ( )]x x
n n
Observations in TWO samples are all i.i.d.
![Page 38: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/38.jpg)
38
Example: A bakery has a line making Binkies, a big-selling junk food. Another line has just been installed, and the plant manager wants to know if the output of the new line is greater than that of the old line, as promised by the bakery equipment firm. 12 days of data are selected at random from line 1 and 10 days of data are selected at random from line
2, with x– 1 = 1124.3 cases and x–
2 = 1138.7. It is known that
12= 52
and 2
2 = 60. Test the appropriate hypotheses at = 0.05, given that
the outputs are normally distributed.
![Page 39: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/39.jpg)
a) Assume Homogeneity (22
21
2 )
)2(~11
-21
21
2
_
1
_
xx
nnt
nnS p
where 2
)12
( 22
)11
( 21
21
2
nn
snsnS p
Reject 210 :H if )2,2/(
11
-21
21
2
_
1
_
xx
nnt
nnS p
Reject 210 : H if )2,(
11
-21
21
2
_
1
_
xx
nnt
nnS p
Reject 210 : H if )2,(
11
-21
21
2
_
1
_
xx
nnt
nnS p
nnxxnnxx21
2,2/2
_
1
_
21
21
2,2/2
_
1
_ 11-
11-
2121 pnnpnn StSt;
210 :H H1
Inference on the Difference in Means of Two Populations – Variance Unknown
1 2
1 2( 2)
1 2
2[1 ( )]1 1
n n
p
x xt
Sn n
p_value
)11
(
21
21)2( 21
nnS
xxt
p
nn
)11
(1
21
21)2( 21
nnS
xxt
p
nn
i.i.d.
Equal variance
39
![Page 40: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/40.jpg)
40
b) Assume Heterogeneity (22
21 )
)(~-
2
22
1
21
2
_
1
_
xx vt
n
s
n
s
where 2
1
)/
1
)/
)//
2
22
2
2
1
21
2
1
22
2
21
2
1
(((
n
n
n
n
nnv
ssss
Reject 210 :H if ),2/(-
2
22
1
21
2
_
1
_
xx vt
ns
ns
Reject 210 : H if ),(-
2
22
1
21
2
_
1
_
xx vt
n
s
n
s
Reject 210 : H if ),(-
2
22
1
21
2
_
1
_
xx vt
n
s
n
s
Inference on the Difference in Means of Two Populations – Variance Unknown
210 :H H1
![Page 41: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/41.jpg)
41
Example: Two quality-control technicians measured the surface finish of a metal part, obtaining the data shown below. Assume that the measurements are normally distributed. Technician 1 Technician 2
1.45 1.54 1.37 1.41 1.21 1.56 1.54 1.37 1.48 1.20 1.29 1.31 1.34 1.27
1.35 Assuming that the variances are equal, construct a 95% confidence interval on the mean difference in surface-finish measurements. Also, test H0: μ1= μ2 v.s. H1: μ1≠ μ2 and compute the p-value.
![Page 42: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/42.jpg)
42
![Page 43: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/43.jpg)
43
,t
Text Book Page P696
![Page 44: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/44.jpg)
Review
• P-value: a probability value
• With the same α value, C.I., Hypothesis testing and p-value
give the same inferential conclusion.
• Inferences on mean of two populations: what are the
statistics used? What are the reference distributions? How
to define the reject region?
) trueis H| valueextremeor statistics test observing(_ 0Pvaluep
![Page 45: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/45.jpg)
45
Inference on the Variance of a Normal Distribution
2
2s)1n(
~ 2(n – 1)
Reject H0: o
if (n - 1) s2
o2 > 2(/2,n - 1) or
(n - 1) s2
o2 < 2(1 - /2,n - 1)
Reject H0: < o if
(n - 1) s2
o2 < 2(1-,n - 1)
Reject H0: > o if
(n - 1) s2
o2 > 2(,n - 1)
2/}Pr{,)1()1( 2
1,2/2
121,2/1
22
21,2/
2
nnnn
SnSn
00 :H H1
22 21 / 2, 1 / 2, 12
( 1)n n
n s
C.I.
![Page 46: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/46.jpg)
46
Example Construct a 90% two-sided confidence interval on the variance of battery life. Convert this into a corresponding confidence interval on the standard deviation of battery life. 25.5 h 26.1 h
26.8 23.2
24.2 28.4
25.0 27.8
27.3 25.7
![Page 47: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/47.jpg)
47
Text P695
![Page 48: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/48.jpg)
48
Inference on the Variances of Two Normal Distributions
1,122
22
21
21
21~
/
/
nnF
S
S W i t h H 0 :
12
= 2
2
f o r H 1 : 1
2
22
R e j e c t H 0 i f s 1
2
s 22 > F ( / 2 , n 1 – 1 , n 2 – 1 ) o r
s 12
s 22 < F ( 1 – / 2 , n 1 – 1 , n 2 – 1 )
f o r H 1 : 1
2 <
22
R e j e c t H 0 i f s 2
2
s 12 > F ( , n 2 – 1 , n 1 – 1 )
f o r H 1 : 1
2 >
22
R e j e c t H 0 i f s 1
2
s 22 > F ( , n 1 – 1 , n 2 – 1 )
,,2/,,2/11,1,2/22
21
22
21
1,1,2/122
21 /1,
1212FFF
S
SF
S
Snnnn
The two d.f. are exchanged
C.I.
![Page 49: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/49.jpg)
49
Example:Two quality-control technicians measured the surface finish of a metal part, obtaining the data shown below. Assume that the measurements are normally distributed. b. Construct a 95% confidence interval estimate of the ratio of the variances of technician measurement error. c. Construct a 95% confidence interval on the variance of measurement error for Technician 2.
Technician 1 Technician 21.45 1.541.37 1.411.21 1.561.54 1.371.48 1.201.29 1.311.34 1.27 1.35
![Page 50: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/50.jpg)
50
![Page 51: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/51.jpg)
51
Text P700
![Page 52: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/52.jpg)
52
Testing on Binomial Parameters
• To test whether the parameter p of a binomial distribution equals a standard value p0
• The test is based on the normal approximation to the binomial distribution
01
00
:
:
ppH
ppH
0
00
0
0
00
0
0
)1(
)5.0()1(
)5.0(
npxifpnp
npx
npxifpnp
npx
Z
npp
pxZ
/)1( 00
00
Or using the central limit theorem
211
210
:
:
ppH
ppH
21
2211
21
210
ˆˆˆ;
)11
)(ˆ1(ˆ
ˆˆ
nn
pnpnp
nnpp
ppZ
21 ppif
2/0 Z|Z| H0 is rejected if
Example 4.5,4.6 on p122
![Page 53: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/53.jpg)
53
Test on Poisson Distribution
• A random sample of n observation is taken, say x1, x2, ..,xn. Each {xi} is Poisson distributed with parameter . Then the sum x= x1+ x2 +...+xn is Poisson distributed with parameter n.
• If n is large, =x/n is approximately normal with mean and variance /n
• Test hypothesis
H0: =0
H1: 0
• The null hypothesis would be rejected if |Z0|>Z/2.
n/
xZ
0
00
x
![Page 54: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/54.jpg)
54
Two Types of Hypothesis Test Errors
• Type I error ( producer’s risk):– = P{type I error} = P{reject H0 |H0 is true}
=P{conclude bad | although actually good}
• Type II error (consumer’s risk):– = P{type II error} = P{fail to reject H0 |H0 is false}
=P{conclude good | although actually bad}
• Power of the test:– Power = 1- = P{reject H0 |H0 is false}
1
f(x)
x
0 UCLLCL
/2/2H0: = 0
H1: = 1 0 with known 2
![Page 55: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/55.jpg)
55
Summary of Type I and Type II Errors
" H0 is True "
Reality
:
"
"
"
Yo
u C
on
clu
de
"
"
"
C o n f i d e n c e
1 –
P r o d u c e r
E r r o r ,
P o w e r
1 –
C o n s u m e r
E r r o r ,
H1 is True
H0 is True
H1 is True
![Page 56: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/56.jpg)
56
Properties of Type I & Type II Errors
Both types of errors can be reduced by increasing the sample size at the price of increased inspection costs.
For a given sample size, one risk can only be reduced at the expense of increasing the other risk.
![Page 57: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/57.jpg)
57
The Probability of Type II Error— Detection of a mean shift with a known
• Type II error= =Pr{H0 |H1 |}=Pr{within the control limits| mean shift}
H0: = 0
H1: = 1 0 with known 2 0if,01
)n
Z()n
Z(
}H|n/Zxn/ZPr{
}H|HPr{
2/2/
12/02/0
10
![Page 58: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/58.jpg)
58
OC curve with =0.05• The larger the mean shift, the smaller the type II error• The larger the sample size, the smaller the type II error
/||d
![Page 59: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/59.jpg)
59
OC CurvesOC curve see Fig. 4.7 P126• The larger the mean shift, the smaller the type II error• The larger the sample size, the smaller the type II error
a=0.05
1n
2n
3n
4n
![Page 60: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/60.jpg)
60
OC Curves
OC curve see Fig. 4.7 P126• The larger the mean shift, the smaller the type II error• The larger the sample size, the smaller the type II error
a=0.05
1n
2n
3n
4n
![Page 61: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/61.jpg)
61
Example: Suppose we wish to test the hypotheses
H0: =15
H1: 15
where we know that 2=9.0. If the true mean is really 20, what sample size must be used to ensure that the probability of type II error is no greater than 0.10? Assume that =0.05.
![Page 62: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/62.jpg)
62
Use OC Curve
n=4
![Page 63: Chapter 4 Inference About Process Quality Motivation Estimation – point estimation – interval estimation Hypothesis Testing – Definition – Testing on means](https://reader035.vdocuments.net/reader035/viewer/2022081415/551aa0f6550346e0158b58e4/html5/thumbnails/63.jpg)
63
Example 7-4: The mean contents of coffee cans filled on a particular production line are being studied. Standards specify that the mean contents must be 16.0 oz, and from past experience it is known that the standard deviation of the can contents is 0.1 oz. The hypotheses are
H0: m=16.0
H1: m16.0
A random sample of nine cans is to be used, and the type I error probability is specified as a=0.05. What is the type II error if the true mean contents are m1=16.1 oz?