What should be his first order of business once President-elect Obama takes office?

Cutting taxes/economic recovery.
Promoting peace in Israel/Gaza.
Ending the war in Iraq.
Creating jobs/dealing with unemployment.
Addressing climate change/environmental issues.

View Results

Two‐Sample z‐Test: Comparing Two Means

Requirements: two normally distributed but independent populations, σ is known

Hypothesis test

Formula:




where x 1 and x 2 are the means of the two samples, Δ is the hypothesized difference between the population means (0 if testing for equal means), σ1 and σ2 are the standard deviations of the two populations, and n1 and n2 are the sizes of the two samples.

Example 1 (two-tailed test): The amount of a certain trace element in blood is known to vary with a standard deviation of 14.1 ppm (parts per million) for male blood donors and 9.5 ppm for female donors. Random samples of 75 male and 50 female donors yield concentration means of 28 and 33 ppm, respectively. What is the likelihood that the population means of concentrations of the element are the same for men and women?

Null hypothesis: H0: μ1 = μ2

or H0: μ1 – μ2 = 0

alternative hypothesis: Ha: μ1 − μ2

or: Ha: μ1 − μ2 ≠ 0




The computed z-value is negative because the (larger) mean for females was subtracted from the (smaller) mean for males. But because the hypothesized difference between the populations is 0, the order of the samples in this computation is arbitrary— x , could just as well have been the female sample mean and x , the male sample mean, in which case z would be 2.37 instead of –2.37. An extreme z-score in either tail of the distribution (plus or minus) will lead to rejection of the null hypothesis of no difference.

The area of the standard normal curve corresponding to a z-score of −2.37 is .0089. Because this test is two-tailed, that figure is doubled to yield a probability of .0178 that the population means are the same. If the test had been conducted at a pre-specified significance level of α < .05, the null hypothesis of equal means could be rejected. If the specified significance level had been the more conservative (more stringent) α < .01, however, the null hypothesis could not be rejected.

In practice, the two-sample z-test is not often used because the two population standard deviations σ1 and σ2 are usually unknown. Instead, sample standard deviations and the t-distribution are used.

Cite this article

Video Interviews with Real Students
Get to know your top college picks without stepping foot on campus.
Watch now!
cover
Get Up to Speed on the Math You Really Need!
Basic math for use in the real world.
Get Math You Can Really Use — Every Day!
Feeling Trapped by Trapezoids?
Get Help with Geometry Now!