677bdd626199af283a1a44f0_Chapter10Statistic_for_two_sample
677bdd626199af283a1a44f0_Chapter10Statistic_for_two_sample
Samples
Hanoi, 2025
Content
s s
σ12 σ22 σ12 σ22
(x̄1 − x̄2 ) − zα/2 + ≤ µ1 − µ2 ≤ (x̄1 − x̄2 ) + zα/2 +
n1 n2 n1 n2
Example 1
A product developer is interested in reducing the drying time of a primer
paint. Two formulations of the paint are tested; formulation 1 is the
standard chemistry, and formulation 2 has a new drying ingredient that
should reduce the drying time. From experience, it is known that the
standard deviation of drying time is 8 minutes, and this inherent variability
should be unaffected by the addition of the new ingredient. Ten specimens
are painted with formulation 1, and another 10 specimens are painted with
formulation 2; the 20 specimens are painted in random order. The two
sample average drying times are x̄1 = 121 minutes and x̄2 = 112 minutes.
Construct 95% confidence interval on the difference in means.
Example 1 (cont.)
What conclusions can the product developer draw about the effectiveness
of the new ingredient, using α = 0.05?
Content
(n1 − 1) (n2 − 1)
Sp2 = S12 + S 2 = wS12 + (1 − w)S22 ,
n1 + n2 − 2 n1 + n2 − 2 2
X̄1 − X̄2 − ∆0
T0∗ = q 2
S1 S22
n1 + n2
Example 2. Find the test statistic, t, to test the claim that µ1 > µ2 .
Two samples are randomly selected and come from populations that are
normal. Assume that the two population variances are not equal. The
sample statistics are given below.
n1 = 14, x1 = 3, s1 = 2.5
n2 = 12, x2 = 4, s2 = 0.8
A. -1.41
B. 1.41
C. 0.96
D.-0.96
Example 3. Assume that the two population variances are equal and
that they have been randomly selected.
Independent samples from two different populations yield the following
data.
x1 = 383; x2 = 448, s1 = 44; s2 = 18.
The sample size is 177 for both samples. Find the 95 percent confidence
interval for µ1 − µ2 .
A. (−70, −60)
B. (−79, −51)
C. (−66, −64)
D. (−72, −58)
Example 4. Find the critical value to test the claim that µ1 < µ2 with
significant level 0.05. Two samples are randomly selected and come
from populations that are normal with the same variance. The sample
statistics are given below.
Content
H0 : p1 = p2
H1 : p1 6= p2
Test Statistic:
P̂1 − P̂2 − (p1 − p2 )
Z=r ,
p1 (1 − p1 ) p2 (1 − p2 )
+
n1 n2
where P̂1 = X1 /n1 , P̂2 = X2 /n2 .
Set
X1 + X2
P̂ =
n1 + n2
If p̂1 and p̂2 are the sample proportions of observations in two independent
random samples of sizes n1 and n2 that belong to a class of interest, an
approximate twosided 100(1 − α)% confidence interval on the difference in
the true proportions p1 − p2 is
s
p̂1 (1 − p̂1 ) p̂2 (1 − p̂2 )
p̂1 − p̂2 − zα/2 + ≤ p1 − p2
n1 n2
s
p̂1 (1 − p̂1 ) p̂2 (1 − p̂2 )
≤ p̂1 − p̂2 + zα/2 +
n1 n2
where zα/2 is the upper α/2 percentage point of the standard normal
distribution.
Sample Question
Question 1 Find the test statistic, t, to test the claim that µ1 > µ2 .
Two samples are randomly selected and come from populations that are
normal with the same variance. The sample statistics are given below
Let n1 = 14, x̄1 = 3, s1 = 2.5, n2 = 12, x̄2 = 4, s2 = 2.8
A. -0.96
B. 4.59
C. 0.96
D. -4.59
Sample Question
Sample Question
Sample Question
Question 4 Compute the test statistic used to test the null hypothesis
that p1 = p2 .
A random sampling of sixty pitchers from the National League and fifty-
two pitchers from the American League showed that 16 National and 11
American League pitchers had E.R.A’s below 3.5.
A. 0.884
B. 10.184
C. 0.680
D. 12.635