Wize University Statistics Textbook > Inference for Two Population Means
Hypothesis Testing for Two Independent Means

Comparing Two Independent Means

The inference two independent means entails comparing the characteristics of two populations. We can also compare the responses of two treatments groups.
PAGE BREAK
Examples
- We compare the Olympic sponsorship (response) between USA and Tonga (two populations).
- We compare the effectiveness (response) between Drug A and Drug B (two treatments).
How to identify this type of situation
- There are two samples: {Sample 1, Sample 2}
- Each sample is randomly drawn from different, non-overlapping populations.
- Sample 1 is drawn from Population 1 with μ1 and σ1
- Sample 2 is drawn from Population 2 with μ2 and σ2
- The two populations are independent (there is no matching of individuals or observations in the two samples)
PAGE BREAK
- Let i=1,2. Each of the two samples will consist of:
- Sample mean xi
- Sample standard deviation si
- σ1 and σ2 (population standard deviations) are unknown and, instead, s1 and s2 (sample standard deviations) are used.
- Sample size ni
- It's okay if sample sizes differ as they do not need to be equal.
- Central Limit Theorem applies:
- If both population distributions are normal, then the sample sizes do not need to be large.
- If both population distributions are not normal, then the sample sizes need to be large.
- When in doubt, you should have sufficiently large sample sizes.
Summary

To make inferences about the difference in the population means μ1−μ2 (parameter), we use the difference in the sample means xˉ1−xˉ2 (statistic).

Hypothesis Test Steps: Comparing Two Independent Means
We can compare the two population means by running a hypothesis test.
- Step 1: State the hypotheses
- Is this a one-sided or two-sided test?
- To make inferences about the difference in the population means μ1−μ2 (two-sided test), the hypotheses are:
Ho: μ1−μ2=0Ha:μ1−μ2=0
- You can also test if one population mean is greater/less than the other population mean at either direction (one-sided test), depending on the question:
Ho: μ1−μ2=0Ha:μ1−μ2>0
OR
Ho: μ1−μ2=0Ha:μ1−μ2<0
PAGE BREAK
- Step 2: Note the significance level α
- You may find the critical value, depending on α, df, and # of sides
- Step 3: Locate the relevant variables and run the appropriate test
- Find x1, x2, s1, s2, n1, n2
- To Pool or Not to Pool?
- If we can assume σ1 = σ2→ pooled variance t-test
- Otherwise, we assume σ1 = σ2 → unequal variance t-test
- Step 4: Find the p-value
- The p-value is based on your test statistic and # of sides
- If p-value <α → Reject Ho
- If p-value >α → Fail to reject Ho
- You can also compare the critical value with the test statistic
- If ∣t∣>∣CV∣→ Reject Ho
- If ∣t∣<∣CV∣→ Fail to reject Ho
- Step 5: Draw your conclusion
- If you reject Ho, you conclude that there is evidence for Ha. Example: "There is evidence that the means differ."
- If you fail to reject Ho, you conclude that there is no evidence for Ha. Example: "There is no evidence that the means differ."