Hypothesis Tests for Two Means: Paired-Sample Z-Test

Test a hypothesis about the mean of paired differences when the population standard deviation of the differences is known, using a normal (Z) test statistic.

Step 1 of 119%

Tutorial

Paired Data and the Z Statistic

A paired sample consists of two measurements taken on the same individual or matched unit. Typical examples include before/after observations on the same subject, twin studies, and left-vs-right comparisons.

The key idea is to collapse the two samples into a single sample of differences:

Di=XiYi,i=1,2,,n.D_i = X_i - Y_i, \qquad i = 1, 2, \ldots, n.

The two-sample paired problem then becomes a one-sample problem on DD.

To test H0:μD=μ0H_0 : \mu_D = \mu_0 when the population standard deviation σD\sigma_D is known, the paired-sample Z statistic is

Z=Dˉμ0σD/n,Z = \dfrac{\bar D - \mu_0}{\sigma_D / \sqrt{n}},

where Dˉ=1ni=1nDi\bar D = \dfrac{1}{n}\sum\limits_{i=1}^n D_i is the sample mean of the differences. Under H0H_0, ZN(0,1)Z \sim N(0,1).

For example, suppose n=4n=4 paired differences are D=1,3,4,0D = 1, 3, 4, 0, with σD=2\sigma_D = 2, and we test H0:μD=0H_0: \mu_D = 0. Then Dˉ=8/4=2\bar D = 8/4 = 2 and

Z=202/4=21=2.Z = \dfrac{2 - 0}{2/\sqrt{4}} = \dfrac{2}{1} = 2.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle