6.2.2 Two Sample z-test and Confidence Interval

Assumptions: Observations are independent of one another. The data come from a normal distribution x1i N(μ112) and x 2i N(μ222), with σ 12 and σ 22 known or large n1 and large n2 with σ12 and σ 22 known. Note: This test will not be stressed as again the population variance is almost always unknown in real life. In addition, software such as SPSS, does not even offer this option for the latter reason.

Typically for two samples z-tests the null hypothesis has μ1 = μ2. The null hypothesis can be written as μ1 = μ2 + δ, where δ is some constant representing the quantity difference between the population means. In this section and other sections difference between μ1 and μ2, is assumed equal to zero, δ = 0.

H  : μ =  μ
  0   1    2

z =  ∘¯x1---¯x2--.
       σ21   σ22
       n1 + n2

A (1 - α)100% confidence interval for μ is,

(               ∘ ---------               ∘ ---------)
(                 σ21   σ22-                  σ21-  σ22-)
  ¯x1 - ¯x2 - zα∕2  n  +  n  ,x¯1 - x¯2 + zα∕2   n  + n    .
                    1    2                    1    2