Fiveable

🎲Intro to Statistics Unit 10 Review

QR code for Intro to Statistics practice questions

10.2 Two Population Means with Known Standard Deviations

10.2 Two Population Means with Known Standard Deviations

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🎲Intro to Statistics
Unit & Topic Study Guides

Comparing Two Population Means with Known Standard Deviations

When you want to test whether two groups truly differ on some measured outcome, and you happen to know the population standard deviations for both groups, you can use a two-sample zz-test. This situation is uncommon in practice (you rarely know σ\sigma), but it builds the foundation for the more common tt-test procedures you'll see next.

The core question: Is the difference we observe between two sample means large enough to conclude the populations themselves differ, or could it just be sampling variability?

Test Statistic for Two Population Means

The test statistic measures how far the observed difference between sample means falls from the hypothesized difference, scaled by the standard error:

z=(xˉ1xˉ2)(μ1μ2)σ12n1+σ22n2z = \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}}

Here's what each piece represents:

  • xˉ1\bar{x}_1 and xˉ2\bar{x}_2: the sample means from group 1 and group 2
  • μ1μ2\mu_1 - \mu_2: the hypothesized difference between population means under the null hypothesis (usually 0, meaning "no difference")
  • σ1\sigma_1 and σ2\sigma_2: the known population standard deviations
  • n1n_1 and n2n_2: the sample sizes for each group

Because the population standard deviations are known, this test statistic follows a standard normal distribution (the zz-distribution) when the null hypothesis is true.

How to use the result: Compare your calculated zz-value to the critical value set by your significance level. For a two-tailed test at α=0.05\alpha = 0.05, the critical value is ±1.96\pm 1.96. If z>1.96|z| > 1.96, you reject the null hypothesis. You can also compare the pp-value to α\alpha directly.

Quick example: Suppose you're comparing average test scores between two schools. School A has xˉ1=78\bar{x}_1 = 78, n1=50n_1 = 50, σ1=10\sigma_1 = 10. School B has xˉ2=74\bar{x}_2 = 74, n2=45n_2 = 45, σ2=12\sigma_2 = 12. Under H0:μ1μ2=0H_0: \mu_1 - \mu_2 = 0:

  1. Calculate the numerator: (7874)0=4(78 - 74) - 0 = 4

  2. Calculate the denominator: 10250+12245=10050+14445=2+3.2=5.22.28\sqrt{\frac{10^2}{50} + \frac{12^2}{45}} = \sqrt{\frac{100}{50} + \frac{144}{45}} = \sqrt{2 + 3.2} = \sqrt{5.2} \approx 2.28

  3. Compute zz: z=42.281.75z = \frac{4}{2.28} \approx 1.75

  4. Since 1.75<1.96|1.75| < 1.96, you fail to reject H0H_0 at α=0.05\alpha = 0.05

Test statistic for population means, Hypothesis Test for a Difference in Two Population Means (1 of 2) | Statistics for the Social ...

Sampling Distribution of Mean Differences

The sampling distribution of xˉ1xˉ2\bar{x}_1 - \bar{x}_2 describes all possible differences between sample means you could get if you repeated the sampling process over and over. Three key properties:

  • Center: The mean of this distribution equals the true difference between population means: μxˉ1xˉ2=μ1μ2\mu_{\bar{x}_1 - \bar{x}_2} = \mu_1 - \mu_2
  • Spread: The standard deviation of this distribution (the standard error) is: σxˉ1xˉ2=σ12n1+σ22n2\sigma_{\bar{x}_1 - \bar{x}_2} = \sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}
  • Shape: The distribution is approximately normal when both sample sizes are large (typically n1>30n_1 > 30 and n2>30n_2 > 30), or when both populations are themselves normally distributed

This all assumes the two samples are independent, meaning the observations in one sample don't influence or relate to the observations in the other.

Test statistic for population means, 10.2 Two Population Means with Known Standard Deviations | Introduction to Statistics

Standard Error of the Difference

The standard error tells you how much the difference xˉ1xˉ2\bar{x}_1 - \bar{x}_2 tends to vary from sample to sample:

σxˉ1xˉ2=σ12n1+σ22n2\sigma_{\bar{x}_1 - \bar{x}_2} = \sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}

This is the denominator of the zz-test statistic, and it plays a critical role. A smaller standard error means your estimate of the difference is more precise, which makes it easier to detect a real difference if one exists. Two things shrink the standard error:

  • Larger sample sizes (n1n_1 and n2n_2 in the denominator)
  • Smaller population standard deviations (σ1\sigma_1 and σ2\sigma_2 in the numerator)

This is why researchers try to collect large samples: it tightens the standard error and gives the test more ability to pick up on real effects.

Statistical Considerations

  • Pooled standard deviation: When you have reason to believe both populations share the same variance (σ12=σ22\sigma_1^2 = \sigma_2^2), you can pool them into a single estimate. In the known-σ\sigma case this simplifies the formula, but it requires that equal-variance assumption to hold.
  • Statistical power: This is the probability of correctly rejecting a false null hypothesis (detecting a real difference when one exists). Power increases with larger sample sizes, larger true effect sizes, and higher significance levels. Low power means you might miss a real difference, so planning adequate sample sizes before collecting data matters.