Chapter 10. Statistical Inference for Two Samples
Chapter 10. Statistical Inference for Two Samples
Samples
Hanoi, 2023
where zα/2 is the upper α/2 percentage point of the standard normal
distribution.
Example 1
A product developer is interested in reducing the drying time of a
primer paint (sơn lót). Two formulations of the paint are tested;
formulation 1 is the standard chemistry, and formulation 2 has a
new drying ingredient (thành phần) 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.
Exercise 1
Consider the hypothesis test H0 : µ1 = µ2 against H1 : µ1 6= µ2 with
known variances σ1 = 10 and σ2 = 5. Suppose that sample sizes n1 = 10
and n2 = 15 and that x̄1 = 4.7 and x̄2 = 7.8. Use α = 0.05
Test the hypothesis and find the P-value.
Exercise 1
Consider the hypothesis test H0 : µ1 = µ2 against H1 : µ1 6= µ2 with
known variances σ1 = 10 and σ2 = 5. Suppose that sample sizes n1 = 10
and n2 = 15 and that x̄1 = 4.7 and x̄2 = 7.8. Use α = 0.05
Test the hypothesis and find the P-value.
Exercise 2
Consider the hypothesis test H0 : µ1 = µ2 against H1 : µ1 < µ2 with
known variances σ1 = 10 and σ2 = 5. Suppose that sample sizes n1 = 10
and n2 = 15 and that x̄1 = 14.2 and x̄2 = 19.7. Use α = 0.05
Test the hypothesis and find the P-value.
X̄1 − X̄2 − ∆0
T0∗ = q 2
S1 S22
n1 + n2
Exercise 1
Consider the hypothesis test H0 : µ1 = µ2 against H1 : µ1 6= µ2 . Suppose
that sample sizes n1 = 15 and n2 = 15 and that x̄1 = 4.7 and x̄2 = 7.8,
s21 = 4, s22 = 6.25. Assume that σ12 = σ22 and that the data are drawn from
normal distributions. Use α = 0.05
a) Test the hypothesis.
p1 (1 − p1 ) p2 (1 − p2 )
p̂1 − p̂2 ∼ N (p1 − p2 , + )
n1 n2
Pooled proportion
x1 + x2
p̂ =
n1 + n2
H0 : p1 = p2
H1 : p1 6= p2
Test Statistic:
P̂1 − P̂2 − (p1 − p2 )
Z=q
p1 (1−p1 )
n1 + p2 (1−p
n2
2)