Hypothesis Testing for Two Proportions

Comparing Two Independent Proportions

The inference two independent proportions entails comparing the proportions of successes of two populations. In this chapter, the measurement is the number of successes and failures of individuals or observations from each population. We can also compare success rates between two treatments.
Examples
- We compare the proportion of employees (%) who got bonuses in the Marketing and IT departments (two populations).
- We compare the survival rates (%) between natural remedies and medication (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 x1 (number of successes in Sample 1)
- Sample 2 is drawn from Population 2 with x2 (number of successes in Sample 2)
- The two populations are independent (there is no matching of individuals or observations in the two samples)
- One group could be split into two randomly assigned treatments (randomized comparative experiment), in which case we can then compare the responses (comparing two proportions).
- Let i=1,2. Each of the two samples will consist of:
- Sample proportion p^i=nixi
- 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

Example

To make inferences about the difference in the population proportions p1−p2 (parameter), we use the difference in the sample means p^1−p^2 (statistic).

Hypothesis Test Steps: Comparing Two Proportions
We can compare the two population proportions 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 proportions μ1−μ2 (two-sided test), the hypotheses are:
- You can also test if one population proportion is greater/less than the other population proportion at either direction (one-sided test), depending on the question:
OR
- Step 2: Note the significance level α
- You may find the critical value, depending on α and # of sides
- Step 3: Locate the relevant variables and run the appropriate test
- Find x1, x2, n1, n2
- Solve for p^1and p^2:
- Test statistic for comparing two proportions:
- where p^ is the pooled sample proportion (or combined sample proportion):
- q^=1−p^
- 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 ∣z∣>∣CV∣→ Reject Ho
- If ∣z∣<∣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 proportions differ."
- If you fail to reject Ho, you conclude that there is no evidence for Ha. Example: "There is no evidence that the proportions differ."

Example: Hypothesis Test for Differences in Population Proportions
Don King is running for mayor in Twin Pines. Based on a random sample of 60 male voters in Twin Pines, 44 of them said they view him favorably. Based on a random sample of 50 female voters in Twin Pines, 30 of them said they view him favorably.
At the 5% significance level, is there evidence that there is a difference between male and females in terms of the proportion of those who view him favorably?
(a) Solve for p^1and p^2:
x1=44n1=60
x2=30n2=50
(b) Solve for the pooled sample proportion p^:
(c) State the hypotheses.
We are testing for the difference in proportions, so this is a two-sided test.
(d) Find the critical value z⋆.
This is a two-sided test with a 5% significance level. Although we are looking for z⋆, we will use the z column at the bottom of the t-table. (This is easier than using the z-table.)

z⋆=1.96
(e) Solve for the test statistic for comparing two proportions:
(f) What is the p-value?
We will use the z-table to find the p-value.

p-value =2⋅(1−0.9306)=0.1388
(g) Draw your conclusion.
- p-value >α→ Fail to reject Ho
- You can also say that the absolute value of the test statistic (z=1.484) is greater than the absolute value of the critical value ((z∗=1.96)→ Fail to reject Ho
At the 5% significance level, there is no evidence that there is a difference between male and females in terms of the proportion of those who view him favorably.