Professional Documents
Culture Documents
11.18.2010
Agenda
Submission of Homework
2. Type II Error and Choice of Sample Size
1.
1.
3.
OC Curves
Goodness of Fit
Type II Error
Finding the probability of Type II Error
Type II Error
Finding the Probability of Type II Error
Example
From the M&Ms weight hypothesis test, we want to design
the test such that if the true mean of the weights differs from
50 grams by as much as 1 gram, the test will detect this (i.e.
H0: = 50) with a high probability of 90% of time.
= 2
= 51 50 = 1
= 0.05
= 0.10
Or
0
d
Appendix
OC Curve Example
Type II Error ()
0
d
Example
From the M&Ms weight hypothesis test, we want to design
the test such that if the true mean of the weights differs from
50 grams by as much as 1 gram, the test will detect this (i.e.
H0: = 50) with a high probability of 90% of time.
= 2
= 51 50 = 1
= 0.05
= 0.10
Example
n 45
Example
We want to know that if we would use 25
OC Curve Example
Type II Error () = 30%
There is approximately
30% chance that if the
true weight is 51
grams, it will not be
detected by the test
with sample size =25
Notes on OC curves
1.
Big Difference
True Mean
Notes on OC Curves
2.
0
d
Example
A 1992 article in the journal of the American Medical Association
OC Curves
Two Means Variance known
One-sided/two-sided formula
1 2 0
1 2
2
1 2
2
n1 n2 n
2
1
2
1
n1
2
2
2
2
n2
Example
The plant manager of an orange juice canning facility is
1 2 0
2
2
Note: Sp
OC Curves must be used with sample size n* = 2n 1
(n1 1) s (n2 1) s
s
n1 n2 2
2
p
2
1
2
2
Example
Two different catalysts are being analyzed to determine how
OC Curves
Test on Variance
Two sided
H1 : upper
2
2
0
H1 : lower
2
2
0
Example
A machine is being used to fill cans with softdrink beverage.
H 0 : 0 0.02
H1 : 2 02 0.02
Example
OC Curves
Test on Ratio of Two Variances
Two Sided:
12 22
1
Example
In semiconductor manufacturing, wet chemical etching is often
Proportions
Cant use OC Curves but Montgomery
outlines a procedure to compute for
sample size, type I and type II error
Section 9-5
Goodness of Fit
(Oi Ei )
Ei
i 1
k
2
0
Rejection Region
Reject H0 if
2
0
where
v=kp1
v = degrees of freedom
k = number of class
p = number of parameters
2
0.05,v
Example
A die is tossed 60 times.
1
15
2
6
3
12
4
14
5
7
6
6
Example
Parameter of interest
Fairness of die
Null Hypothesis
H0: The die is fair
Alternative Hypothesis
H1: The die is not fair
Level of Significance
Alpha = 5%
Test Statistic
Rejection Criteria
1.
2.
3.
4.
5%
5.
2
(
O
E
)
i
02 i
Ei
i 1
k
6.
Reject H0 if
2
0
2
0.05,1
3.84
7.
Computations:
Oi
x < 4.948
12
14
12
13
12
11
12
5.132 x
14
fin