Learning Outcomes
- Conduct a hypothesis test for a difference in two population proportions and interpret the conclusion in context
When conducting a hypothesis test that compares two independent population proportions, the following characteristics should be present:
- The two independent samples are simple random samples that are independent.
- The number of successes is at least five, and the number of failures is at least five for each of the samples.
- Growing literature states that the population must be at least ten or 20 times the size of the sample. This keeps each population from being over-sampled and causing incorrect results.
Comparing two proportions, like comparing two means, is common. If two estimated proportions are different, it may be due to a difference in the populations or it may be due to chance. A hypothesis test can help determine if a difference in the estimated proportions reflects a difference in the population proportions.
The difference of two proportions follows an approximate normal distribution. Generally, the null hypothesis states that the two proportions are the same. That is, H0: pA = pB. To conduct the test, we use a pooled proportion, pc.
The pooled proportion is calculated as follows: [latex]\displaystyle{p}_{{c}}=\dfrac{{{x}_{{A}}+{x}_{B}}}{{{n}_{{A}}+{n}_{{B}}}}[/latex]
The distribution for the differences is: [latex]\displaystyle{P}\prime_{{A}}-{P}\prime_{{B}}[/latex] [latex]\sim[/latex] [latex]{N}{\Bigg[{0},\sqrt{{{p}_{{c}}{\big({1}-{p}_{{c}}\big)}{\bigg(\dfrac{{1}}{{n}_{{A}}}+\dfrac{{1}}{{n}_{{B}}}\bigg)}}}\Bigg]}[/latex]
The test statistic (z-score) is: [latex]\displaystyle{z}=\dfrac{(p\prime_{A}-p\prime_{B})-(p_A-p_B)}{\sqrt{p_c(1-p_c)(\dfrac{1}{n_A}+\dfrac{1}{n_B})}}[/latex]
Recall: ORDER OF OPERATIONS
Please | Excuse | My | Dear | Aunt | Sally |
parentheses | exponents | multiplication | division | addition | subtraction |
[latex]( \ )[/latex] | [latex]x^2[/latex] | [latex]\times \ \mathrm{or} \ \div[/latex] | [latex]+ \ \mathrm{or} \ -[/latex] |
To calculate the test statistic (z-score) follow these steps:
First, find the numerator. Calculate the difference in the estimated proportions [latex](p'_A- p"_B)[/latex] and subtract the difference in the population proportions [latex](p_A-p_B)[/latex].
Second, find the denominator. You will end up taking the square root of the entire bottom; a square root can be understood as a parentheses.
Step 1: Calculate the pooled proportion, [latex]p_C[/latex], where [latex]p_C = \frac{x_A + x_B}{n_A + n_B}[/latex].
Step 2: Subtract the pooled proportion by [latex]1[/latex], [latex]1-p_C[/latex]
Step 3: Add [latex](\frac{1}{n_A})[/latex] and [latex](\frac{1}{n_B})[/latex].
Step 4: Multiply Step 1, Step 2, and Step 3.
Step 5: Find the square root of the value you found in Step 4.
Third, take the numerator and divide by the denominator.
Example 1
Two types of medication for hives are being tested to determine if there is a difference in the proportions of adult patient reactions. Twenty out of a random sample of 200 adults given medication A still had hives 30 minutes after taking the medication. Twelve out of another random sample of 200 adults given medication B still had hives 30 minutes after taking the medication. Test at a 1% level of significance.
try it 1
Two types of valves are being tested to determine if there is a difference in pressure tolerances. Fifteen out of a random sample of 100 of Valve A cracked under 4,500 psi. Six out of a random sample of 100 of ValveB cracked under 4,500 psi. Test at a 5% level of significance.
Example 2
A research study was conducted about gender differences in “sexting.” The researcher believed that the proportion of girls involved in “sexting” is less than the proportion of boys involved. The data collected in the spring of 2010 among a random sample of middle and high school students in a large school district in the southern United States is summarized in the table. Is the proportion of girls sending sexts less than the proportion of boys “sexting?” Test at a 1% level of significance.
Males | Females | |
---|---|---|
Sent “sexts” | 183 | 156 |
Total number surveyed | 2231 | 2169 |
Example 3
Researchers conducted a study of smartphone use among adults. A cell phone company claimed that iPhone smartphones are more popular with Whites (non-Hispanic) than with African Americans. The results of the survey indicate that of the 232 African American cell phone owners randomly sampled, 5% have an iPhone. Of the 1,343 White cell phone owners randomly sampled, 10% own an iPhone. Test at the 5% level of significance. Is the proportion of White iPhone owners greater than the proportion of African American iPhone owners?
try it 2
A concerned group of citizens wanted to know if the proportion of forcible rapes in Texas was different in 2011 than in 2010. Their research showed that of the 113,231 violent crimes in Texas in 2010, 7,622 of them were forcible rapes. In 2011, 7,439 of the 104,873 violent crimes were in the forcible rape category. Test at a 5% significance level. Answer the following questions:
- Is this a test of two means or two proportions?
- Which distribution do you use to perform the test?
- What is the random variable?
- What are the null and alternative hypothesis? Write the null and alternative hypothesis in symbols.
- Is this test right-, left-, or two-tailed?
- What is the p-value?
- Do you reject or not reject the null hypothesis?
- At the ___ level of significance, from the sample data, there ______ (is/is not) sufficient evidence to conclude that ____________.
Candela Citations
- Statistics, Comparing Two Independent Population Proportions,. Provided by: OpenStax. Located at: https://openstax.org/books/statistics/pages/10-3-comparing-two-independent-population-proportions. License: CC BY: Attribution. License Terms: Access for free at https://openstax.org/books/statistics/pages/1-introduction
- Introductory Statistics. Authored by: Barbara Illowsky, Susan Dean. Provided by: OpenStax. Located at: https://openstax.org/books/introductory-statistics/pages/1-introduction. License: CC BY: Attribution. License Terms: Access for free at https://openstax.org/books/introductory-statistics/pages/1-introduction