9.1 Two Proportions
There are times you want to test a claim about two population proportions or construct a confidence interval estimate of the difference between two population proportions. As with all other hypothesis tests and confidence intervals, the process is the same though the formulas and assumptions are different.
Hypothesis Test for Two Populations Proportion (2-Prop Test)
- State the random variables and the parameters in words.
= number of successes from group 1
= number of successes from group 2
= proportion of successes in group 1
= proportion of successes in group 2 - State the null and alternative hypotheses and the level of significance
Also, state your level here. - State and check the assumptions for a hypothesis test
- A simple random sample of size is taken from population 1, and a simple random sample of size is taken from population 2.
- The samples are independent.
- The assumptions for the binomial distribution are satisfied for both populations.
- To determine the sampling distribution of , you need to show that and , where . If this requirement is true, then the sampling distribution of is well approximated by a normal curve. To determine the sampling distribution of , you need to show that and , where . If this requirement is true, then the sampling distribution of is well approximated by a normal curve. However, you do not know and , so you need to use and instead . This is not perfect, but it is the best you can do. Since (and similar for the other calculations) you just need to make sure that , , ,and are all more than 5.
- Find the sample statistics, test statistic, and p-value
Sample Proportion:
Pooled Sample Proportion, :
Test Statistic:
Usually , since
p-value: On TI-83/84: use normalcdf(lower limit, upper limit, 0, 1) On R: use pnorm(z, 0, 1) - Conclusion This is where you write reject or fail to reject . The rule is: if the p-value < , then reject . If the p-value , then fail to reject .
- Interpretation This is where you interpret in real world terms the conclusion to the test. The conclusion for a hypothesis test is that you either have enough evidence to show is true, or you do not have enough evidence to show is true.
Confidence Interval for the Difference Between Two Population Proportion (2-Prop Interval)
The confidence interval for the difference in proportions has the same random variables and proportions and the same assumptions as the hypothesis test for two proportions. If you have already completed the hypothesis test, then you do not need to state them again. If you haven’t completed the hypothesis test, then state the random variables and proportions and state and check the assumptions before completing the confidence interval step
- Find the sample statistics and the confidence interval
Sample Proportion:
Confidence Interval:
The confidence interval estimate of the difference is
where the margin of error E is given by
= critical value - Statistical Interpretation: In general this looks like, “there is a C% chance that contains the true difference in proportions.”
- Real World Interpretation: This is where you state how much more (or less) the first proportion is from the second proportion.
The critical value is a value from the normal distribution. Since a confidence interval is found by adding and subtracting a margin of error amount from the sample proportion, and the interval has a probability of being true, then you can think of this as the statement . So you can use the invNorm command on the TI-83/84 calculator or qnorm on R to find the critical value. These are always the same value, so it is easier to just look at the table A.1 in the Appendix.
Example 2 confidence interval for two population properties
Do more husbands cheat on their wives more than wives cheat on the husbands ("Statistics brain," 2013)? Suppose you take a group of 1000 randomly selected husbands and find that 231 had cheated on their wives. Suppose in a group of 1200 randomly selected wives, 176 cheated on their husbands. Estimate the difference in the proportion of husbands and wives who cheat on their spouses using a 95% confidence level.
- State the random variables and the parameters in words.
- State and check the assumptions for the confidence interval.
- Find the sample statistics and the confidence interval.
- Statistical Interpretation
- Real World Interpretation
Show solution
1. These were stated in Example , but are reproduced here for reference.
= number of husbands who cheat on his wife
= number of wives who cheat on her husband
= proportion of husbands who cheat on his wife
= proportion of wives who cheat on her husband
2. The assumptions were stated and checked in Example .
3. Sample Proportion:
Confidence Interval:
The confidence interval estimate of the difference is


On R: prop.test, where C is in decimal form. For this example, prop.test(c(231,176), c(1000, 1200), conf.level=0.95)
prop.test(c(231, 176), c(1000, 1200), conf.level=0.95)
2-sample test for equality of proportions with continuity correction
data: c(231, 176) out of c(1000, 1200)
X-squared = 25.173, df = 1, p-value = 5.241e-07
alternative hypothesis: two.sided
95 percent confidence interval:
0.05050705 0.11815962
sample estimates:
prop 1 prop 2
0.2310000 0.1466667
Note
Note
The answer from R is the confidence interval. It is different from the formula or the TI-83/84 calculator due to a continuity correction that R does.
4. Statistical Interpretation: There is a 95% chance that contains the true difference in proportions.
5. Real World Interpretation: The proportion of husbands who cheat is anywhere from 5.05% to 11.82% higher than the proportion of wives who cheat.
Homework
Your Turn
In each problem show all steps of the hypothesis test or confidence interval. If some of the assumptions are not met, note that the results of the test or interval may not be correct and then continue the process of the hypothesis test or confidence interval.
- Many high school students take the AP tests in different subject areas. In 2007, of the 144,796 students who took the biology exam 84,199 of them were female. In that same year, of the 211,693 students who took the calculus AB exam 102,598 of them were female ("AP exam scores," 2013). Is there enough evidence to show that the proportion of female students taking the biology exam is higher than the proportion of female students taking the calculus AB exam? Test at the 5% level.
- Many high school students take the AP tests in different subject areas. In 2007, of the 144,796 students who took the biology exam 84,199 of them were female. In that same year, of the 211,693 students who took the calculus AB exam 102,598 of them were female ("AP exam scores," 2013). Estimate the difference in the proportion of female students taking the biology exam and female students taking the calculus AB exam using a 90% confidence level.
- Many high school students take the AP tests in different subject areas. In 2007, of the 211,693 students who took the calculus AB exam 102,598 of them were female and 109,095 of them were male ("AP exam scores," 2013). Is there enough evidence to show that the proportion of female students taking the calculus AB exam is different from the proportion of male students taking the calculus AB exam? Test at the 5% level.
- Many high school students take the AP tests in different subject areas. In 2007, of the 211,693 students who took the calculus AB exam 102,598 of them were female and 109,095 of them were male ("AP exam scores," 2013). Estimate using a 90% level the difference in proportion of female students taking the calculus AB exam versus male students taking the calculus AB exam.
- Are there more children diagnosed with Autism Spectrum Disorder (ASD) in states that have larger urban areas over states that are mostly rural? In the state of Pennsylvania, a fairly urban state, there are 245 eight year olds diagnosed with ASD out of 18,440 eight year olds evaluated. In the state of Utah, a fairly rural state, there are 45 eight year olds diagnosed with ASD out of 2,123 eight year olds evaluated ("Autism and developmental," 2008). Is there enough evidence to show that the proportion of children diagnosed with ASD in Pennsylvania is more than the proportion in Utah? Test at the 1% level.
- Are there more children diagnosed with Autism Spectrum Disorder (ASD) in states that have larger urban areas over states that are mostly rural? In the state of Pennsylvania, a fairly urban state, there are 245 eight year olds diagnosed with ASD out of 18,440 eight year olds evaluated. In the state of Utah, a fairly rural state, there are 45 eight year olds diagnosed with ASD out of 2,123 eight year olds evaluated ("Autism and developmental," 2008). Estimate the difference in proportion of children diagnosed with ASD between Pennsylvania and Utah. Use a 98% confidence level.
- A child dying from an accidental poisoning is a terrible incident. Is it more likely that a male child will get into poison than a female child? To find this out, data was collected that showed that out of 1830 children between the ages one and four who pass away from poisoning, 1031 were males and 799 were females (Flanagan, Rooney & Griffiths, 2005). Do the data show that there are more male children dying of poisoning than female children? Test at the 1% level.
- A child dying from an accidental poisoning is a terrible incident. Is it more likely that a male child will get into poison than a female child? To find this out, data was collected that showed that out of 1830 children between the ages one and four who pass away from poisoning, 1031 were males and 799 were females (Flanagan, Rooney & Griffiths, 2005). Compute a 99% confidence interval for the difference in proportions of poisoning deaths of male and female children ages one to four.
Answer
For all hypothesis tests, just the conclusion is given. For all confidence intervals, just the interval using technology (Software R) is given. See solution for the entire answer.
- Reject Ho
- Reject Ho
- Fail to reject Ho
- Reject Ho