Hypothesis Tests for Two Means: Known Population Variances

Use the two-sample z-test to test hypotheses about the difference between two population means when both population variances are known. Covers the test statistic, two-tailed and one-tailed decision rules, and the general case with a nonzero hypothesized difference.

Step 1 of 157%

Tutorial

The Two-Sample z-Test for Means

When two independent samples are drawn from populations with known standard deviations σ1\sigma_1 and σ2,\sigma_2, and we want to test a claim about the difference of the population means μ1μ2,\mu_1 - \mu_2, we use the two-sample zz-test.

The null hypothesis has the form

H0: μ1μ2=δ0,H_0:\ \mu_1 - \mu_2 = \delta_0,

where δ0\delta_0 is the hypothesized value of the difference. Most commonly δ0=0,\delta_0 = 0, which corresponds to testing whether the two population means are equal. The alternative is one of

Ha: μ1μ2δ0,Ha: μ1μ2>δ0,Ha: μ1μ2<δ0.H_a:\ \mu_1 - \mu_2 \ne \delta_0,\qquad H_a:\ \mu_1 - \mu_2 > \delta_0,\qquad H_a:\ \mu_1 - \mu_2 < \delta_0.

Given sample means xˉ1,xˉ2\bar{x}_1,\bar{x}_2 from samples of sizes n1,n2,n_1,n_2, the test statistic is

z=(xˉ1xˉ2)δ0σ12n1+σ22n2.z = \dfrac{(\bar{x}_1 - \bar{x}_2) - \delta_0}{\sqrt{\dfrac{\sigma_1^2}{n_1} + \dfrac{\sigma_2^2}{n_2}}}.

Under H0,H_0, this statistic follows the standard normal distribution N(0,1).N(0,1).

For example, suppose n1=25, xˉ1=30, σ1=4n_1 = 25,\ \bar{x}_1 = 30,\ \sigma_1 = 4 and n2=25, xˉ2=28, σ2=3,n_2 = 25,\ \bar{x}_2 = 28,\ \sigma_2 = 3, and we test H0:μ1μ2=0.H_0: \mu_1 - \mu_2 = 0. Then

z=30281625+925=21=2.z = \dfrac{30 - 28}{\sqrt{\dfrac{16}{25} + \dfrac{9}{25}}} = \dfrac{2}{\sqrt{1}} = 2.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle