<< Chapter < Page | Chapter >> Page > |

- 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.

Comparing two proportions, like comparing two means, is common. If two estimated proportions are different, it may be due to a difference in the populationsor it may be due to chance. A hypothesis test can help determine if a difference in the estimated proportions $({P}_{A}-{P}_{B})$ 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, ${H}_{o}:{p}_{A}={p}_{B}$ . To conduct the test, we use a pooled proportion, ${p}_{c}$ .

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.

*This is a test of 2 population proportions.*

How do you know?

The problem asks for a difference in proportions.

Let $A$ and $B$ be the subscripts for medication A and medication B. Then ${p}_{A}$ and ${p}_{B}$ are the desired population proportions.

${H}_{o}:{p}_{A}={p}_{B}\phantom{\rule{50pt}{0ex}}{p}_{A}-{p}_{B}=0$

${H}_{a}:{p}_{A}\ne {p}_{B}\phantom{\rule{50pt}{0ex}}{p}_{A}-{p}_{B}\ne 0$

The words
*"is a difference"* tell you the test is two-tailed.

*Distribution for the test:* Since this is a test of two binomial population proportions,
the distribution is normal:

${p}_{c}=\frac{{x}_{A}+{x}_{B}}{{n}_{A}+{n}_{B}}=\frac{20+12}{200+200}=0.08\phantom{\rule{12pt}{0ex}}1-{p}_{c}=0.92$

Therefore, $\phantom{\rule{10pt}{0ex}}{\mathrm{P\text{'}}}_{A}-{\mathrm{P\text{'}}}_{B}~N[0,\sqrt{\left(0.08\right)\cdot \left(0.92\right)\cdot (\frac{1}{200}+\frac{1}{200})}]$

${\mathrm{P\text{'}}}_{A}-{\mathrm{P\text{'}}}_{B}$ follows an approximate normal distribution.

*Calculate the p-value using the normal distribution:* p-value = 0.1404.

Estimated proportion for group A: $\phantom{\rule{12pt}{0ex}}{\mathrm{p\text{'}}}_{A}=\frac{{x}_{A}}{{n}_{A}}=\frac{20}{200}=0.1$

Estimated proportion for group B: $\phantom{\rule{12pt}{0ex}}{\mathrm{p\text{'}}}_{B}=\frac{{x}_{B}}{{n}_{B}}=\frac{12}{200}=0.06$

${\mathrm{P\text{'}}}_{A}-{\mathrm{P\text{'}}}_{B}=0.1-0.06=0.04$ .

Half the p-value is below -0.04 andhalf is above 0.04.

Compare $\alpha $ and the p-value: $\alpha =0.01$ and the $\text{p-value}=0.1404$ . $\alpha <$ p-value.

Make a decision: Since $\alpha <\text{p-value}$ , do not reject ${H}_{o}$ .

*Conclusion:* At a 1% level of significance, from the sample data, there is not
sufficient evidence to conclude that there is a difference in the proportions of adultpatients who did not react after 30 minutes to medication A and medication B.

TI-83+ and TI-84: Press

`STAT`

. Arrow over to
`TESTS`

and press
`6:2-PropZTest`

. Arrow down and enter
`20`

for
$\mathrm{x1}$ ,
`200`

for
$\mathrm{n1}$ ,
`12`

for
$\mathrm{x2}$ ,
and
`200`

for
$\mathrm{n2}$ . Arrow down to
`p1`

: and arrow to
`not equal p2`

. Press
`ENTER`

. Arrow down to
`Calculate`

and press
`ENTER`

. The p-value is
$p=0.1404$ and the test statistic is 1.47. Do the procedure again but instead
of
`Calculate`

do
`Draw`

.-
100% Free
*Android Mobile*Application - Complete Textbook by OpenStax
- Multiple Choices Questions (MCQ)
- Essay Questions Flash Cards
- Key-Terms Flash Cards

Source:
OpenStax, Collaborative statistics. OpenStax CNX. Jul 03, 2012 Download for free at http://cnx.org/content/col10522/1.40

Google Play and the Google Play logo are trademarks of Google Inc.

*Notification Switch*

Would you like to follow the *'Collaborative statistics'* conversation and receive update notifications?