Polytechnic University of The Philippines College of Engineering Department of Industrial Engineering
Polytechnic University of The Philippines College of Engineering Department of Industrial Engineering
COLLEGE OF ENGINEERING
DEPARTMENT OF INDUSTRIAL ENGINEERING
MODULE 2
STATISTICAL INFERENCE FOR TWO SAMPLES
The previous module presented hypothesis tests for a single
population parameter (the mean, the variance, or a proportion).
This module extends the concepts learned in the first module to the
case of two independent populations.
ASSUMPTIONS:
The test statistic therefore for this type of hypothesis testing is:
Page 1 of 17
z0 =
(X 1 X 2 ) (1 2 )
12 22
+
n1 n2
ANSWER:
2. H 0 : 1 2 = 0 or H 0 : 1 = 2
H1 : 1 2 > 0 or H1 : 1 > 2
Page 2 of 17
3. = 0.05
z0 =
(X 1 X 2 ) 0
12 22
+
n1 n2
z0 =
(121 112) 0 = 2.52
82 82
+
10 10
Page 3 of 17
For large sample sizes, the normal distribution can be assumed.
However, for small sample sizes, the distribution to be used,
though still assumed to be normal, is the t-distribution.
Case 1: 12 = 22
In this particular case, we assume that the two variances are equal.
Since they are equal, it is reasonable to combine the two sample
variances, S12 and S 22 , to form an estimator of 2 . The
combination of the two sample variances is what is known as the
pooled estimator, given by the equation:
S 2
=
(n1 1)S12 + (n2 1)S 22
(formal equation)
p
n1 + n2 2
n1 1 n2 1
S p2 = S12 + S 22 (weighted ave.)
n1 + n2 2 n1 + n2 2
ANSWER:
Page 4 of 17
Formal Equation
S p2 =
(12 1)(5.0) + (15 1)(5.3) = 5.17
12 + 15 2
t0 =
(X 1 X 2 ) (1 2 )
1 1
Sp +
n1 n2
Page 5 of 17
EXAMPLE: Two catalysts are being analyzed to determine how
they affect the mean yield of a chemical process. Specifically,
catalyst 1 is currently in use, but catalyst 2 is acceptable. Since
catalyst 2 is cheaper, it should be adopted, providing it does not
change the process yield. A test is run in the pilot plant and results
in the data shown immediately after this problem. Is there any
difference between the mean yields? Use = 0.05 and assume
equal variances.
ANSWER:
2. H 0 : 1 2 = 0 or H 0 : 1 = 2
H1 : 1 2 0 or H1 : 1 2
3. = 0.05
Page 6 of 17
t0 =
(X 1 X 2 ) (1 2 )
1 1
Sp +
n1 n2
6. Computation:
s 2
=
(n1 1)s12 + (n2 1)s22 (7 )(2.39) + (7 )(2.98)
=
2 2
= 7.30
p
n1 + n2 2 8+82
s p = 7.30 = 2.70
Thus:
t0 =
(X 1 X 2 ) (1 2 ) (92.255 92.733) 0
= = 0.35
1 1 1 1
Sp + 2.70 +
n1 n2 8 8
Page 7 of 17
Case 2: 12 22
t0 =
(X 1 X 2 ) (1 2 )
S12 S 22
+
n1 n2
n1 1 n2 1
Page 8 of 17
Mesa, 15 Buckeye, 33
Paradise Valley, 6 Nogales, 21
Peoria, 12 Black Canyon City, 20
Scottsdale, 25 Sedona, 12
Tempe, 15 Payson, 1
Sun City, 7 Casa Grande, 18
x1 = 12.5 x 2 = 27.5
s1 = 7.63 s2 = 15.3
2. H 0 : 1 2 = 0 or H 0 : 1 = 2
H1 : 1 2 0 or H1 : 1 2
3. = 0.05
t0 =
(X 1 X 2 ) (1 2 )
S12 S 22
+
n1 n2
Page 9 of 17
2
(7.63)2 + (15.3)2
2
S12 S 22
+
n1 n2 10 10
= = = 13.2 13
(S1
2
n1 ) (S n2 )
+
2 2
2
2
[(7.63) 10] + [(15.3) 10]
2 2 2 2
n1 1 n2 1 9 9
6. Computation:
t0 =
(X 1 X 2 ) (1 2 )
=
(12.5 27.5) 0 = 2.77
S
+
S1
2 2
2 (7.63)2 + (15.3)2
n1 n2 10 10
NOTE: For the paired t-test, we test if the mean of the differences
is equal to zero. For the previous cases in this module, we tested
whether the difference of the means is equal to zero.
Page 10 of 17
H 0 : D = 0
H1 : D 0
d 0
t0 =
Sd n
Page 11 of 17
ANSWER:
2. H 0 : D = 0
H1 : D 0
3. = 0.05
d 0
t0 =
Sd n
6. Computation:
d 0 0.2736
t0 = = = 6.05
S d n 0.1356 9
Page 12 of 17
Suppose that two independent normal populations are of interest,
where the population means and variances are unknown. We wish
to test the hypotheses about the equality of the two variances, say
H 0 : 12 = 22 . Assume that two random samples of size n1 from
population 1 and n2 from population 2 are available, and let S12 and
S 22 be the sample variances. We wish to test the hypotheses
H 0 : 12 = 22
H1 : 12 22
s12
f0 = 2
s2
Page 13 of 17
to determine whether one is superior in reducing the variability of
the oxide thickness. Twenty wafers are etched in each gas. The
sample standard deviations of oxide thickness are s1 = 1.96
angstroms and s2 = 2.13 angstroms, respectively. Is there any
evidence to indicate that either gas is preferable? Use = 0.05 .
ANSWER:
2. H 0 : 12 = 22
H1 : 12 22
3. = 0.05
4. Test statistic:
s12
f0 = 2
s2
5. C.R.:
f 0 > f 0.025,19,19 = 2.53 or f 0 < f 0.975,19,19 = 1 = 0.40
f 0.025,19,19
6. Computation:
1.96 2 3.84
f0 = = = 0.85
2.132 4.54
Page 14 of 17
7. Result: Since 0.85 > f 0.975,19,19 = 0.40 , we cannot reject the null
hypothesis.
H 0 : p1 = p2
H1 : p1 p2
Z=
(P P ) ( p p )
1 2 1 2
P (1 P ) +
1 1
n n
1 2
where
Page 15 of 17
x +x
P = 1 2
n1 + n2
ANSWER:
2. H 0 : p1 = p2
H1 : p1 p2
3. = 0.05
Page 16 of 17
Z=
( p 1 p 2 ) ( p1 p2 )
1 1
p (1 p ) +
n1 n2
where
x1 + x2
p =
n1 + n2
6. Computation:
Z=
(0.27 0.19) 0 = 1.35
1 1
0.23(0.77 ) +
100 100
Page 17 of 17