Statistics with Technology 2eXYZ Homework Edition

⇩ Download ▾

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)

  1. State the random variables and the parameters in words.
    x1x_{1}= number of successes from group 1
    x2x_{2} = number of successes from group 2
    p1p_{1} = proportion of successes in group 1
    p2p_{2} = proportion of successes in group 2
  2. State the null and alternative hypotheses and the level of significance
    Ho:p1=p2 or Ho:p1p2=0HA:p1<p2HA:p1p2<0HA:p1>p2HA:p1p2>0HA:p1p2HA:p1p20\begin{array}{ll}{H_{o}: p_{1}=p_{2}} & {\text { or } \quad H_{o}: p_{1}-p_{2}=0} \\ {H_{A}: p_{1}<p_{2}} &\quad\quad\: {H_{A}: p_{1}-p_{2}<0} \\ {H_{A}: p_{1}>p_{2}} &\quad\quad\: {H_{A}: p_{1}-p_{2}>0} \\ {H_{A}: p_{1} \neq p_{2}} & \quad\quad\:{H_{A}: p_{1}-p_{2} \neq 0}\end{array}
    Also, state your α\alpha level here.
  3. State and check the assumptions for a hypothesis test
    1. A simple random sample of size n1n_{1} is taken from population 1, and a simple random sample of size n2n_{2} is taken from population 2.
    2. The samples are independent.
    3. The assumptions for the binomial distribution are satisfied for both populations.
    4. To determine the sampling distribution of p^1\hat{p}_{1}, you need to show that n1p15n_{1} p_{1} \geq 5 and n1q15n_{1} q_{1} \geq 5, where q1=1p1q_{1}=1-p_{1}. If this requirement is true, then the sampling distribution of p^1\hat{p}_{1} is well approximated by a normal curve. To determine the sampling distribution of p^2\hat{p}_{2}, you need to show that n2p25n_{2} p_{2} \geq 5 and n2q25n_{2} q_{2} \geq 5, where q2=1p2q_{2}=1-p_{2}. If this requirement is true, then the sampling distribution of p^2\hat{p}_{2} is well approximated by a normal curve. However, you do not know p1p_{1} and p2p_{2}, so you need to use p^1\hat{p}_{1} and instead p^2\hat{p}_{2}. This is not perfect, but it is the best you can do. Since n1p^1=n1x1n1=x1n_{1} \hat{p}_{1}=n_{1} \dfrac{x_{1}}{n_{1}}=x_{1} (and similar for the other calculations) you just need to make sure that x1x_{1}, n1x1n_{1}-x_{1}, n2x2n_{2}-x_{2},and are all more than 5.
  4. Find the sample statistics, test statistic, and p-value
    Sample Proportion:
    n1= size of sample 1n2= size of sample 2p^1=x1n1( sample 1 proportion) p^2=x2n2 (sample 2 proportion) q^1=1p^1 (complement of p^1)q^2=1p^2 (complement of p^2)\begin{array}{ll}{n_{1}=\text { size of sample } 1} & {n_{2}=\text { size of sample } 2} \\ {\hat{p}_{1}=\dfrac{x_{1}}{n_{1}}(\text { sample } 1 \text { proportion) }} & {\hat{p}_{2}=\dfrac{x_{2}}{n_{2}} \text { (sample } 2 \text { proportion) }} \\ {\hat{q}_{1}=1-\hat{p}_{1} \text { (complement of } \hat{p}_{1} )} & {\hat{q}_{2}=1-\hat{p}_{2} \text { (complement of } \hat{p}_{2} )}\end{array}
    Pooled Sample Proportion, p¯\overline{p}:
    p¯=x1+x2n1+n2q¯=1p¯\begin{aligned} \overline{p} &=\dfrac{x_{1}+x_{2}}{n_{1}+n_{2}} \\ \overline{q} &=1-\overline{p} \end{aligned}
    Test Statistic:
    z=(p^1p^2)(p1p2)p¯q¯n1+p¯q¯n2z=\dfrac{\left(\hat{p}_{1}-\hat{p}_{2}\right)-\left(p_{1}-p_{2}\right)}{\sqrt{\dfrac{\overline{p} \overline{q}}{n_{1}}+\dfrac{\overline{p} \overline{q}}{n_{2}}}}
    Usually p1p2=0p_{1} - p_{2} = 0, since Ho:p1=p2H_{o}: p_{1}=p_{2}
    p-value: On TI-83/84: use normalcdf(lower limit, upper limit, 0, 1) On R: use pnorm(z, 0, 1)
  5. Conclusion This is where you write reject HoH_{o} or fail to reject HoH_{o}. The rule is: if the p-value < α\alpha, then reject HoH_{o}. If the p-value α\geq \alpha, then fail to reject HoH_{o}.
  6. 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 HAH_{A} is true, or you do not have enough evidence to show HAH_{A} 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

  1. Find the sample statistics and the confidence interval
    Sample Proportion:
    n1= size of sample 1n2= size of sample 2p^1=x1n1( sample 1 proportion) p^2=x2n2 (sample 2 proportion) q^1=1p^1( complement of p^1)q^2=1p^2 (complement of p^2)\begin{array}{ll}{n_{1}=\text { size of sample } 1} & {n_{2}=\text { size of sample } 2} \\ {\hat{p}_{1}=\dfrac{x_{1}}{n_{1}}(\text { sample } 1 \text { proportion) }} & {\hat{p}_{2}=\dfrac{x_{2}}{n_{2}} \text { (sample } 2 \text { proportion) }} \\ {\hat{q}_{1}=1-\hat{p}_{1}\left(\text { complement of } \hat{p}_{1}\right)} & {\hat{q}_{2}=1-\hat{p}_{2} \text { (complement of } \hat{p}_{2} )}\end{array}
    Confidence Interval:
    The confidence interval estimate of the difference p1p2p_{1}-p_{2} is
    (p^1p^2)E<p1p2<(p^1p^2)+E\left(\hat{p}_{1}-\hat{p}_{2}\right)-E<p_{1}-p_{2}<\left(\hat{p}_{1}-\hat{p}_{2}\right)+E
    where the margin of error E is given by E=zcp^1q^1n1+p^2q^2n2E=z_{c} \sqrt{\dfrac{\hat{p}_{1} \hat{q}_{1}}{n_{1}}+\dfrac{\hat{p}_{2} \hat{q}_{2}}{n_{2}}}
    zcz_{c} = critical value
  2. Statistical Interpretation: In general this looks like, “there is a C% chance that (p^1p^2)E<p1p2<(p^1p^2)+E\left(\hat{p}_{1}-\hat{p}_{2}\right)-E<p_{1}-p_{2}<\left(\hat{p}_{1}-\hat{p}_{2}\right)+E contains the true difference in proportions.”
  3. 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 P((p^1p^2)E<p1p2<(p^1p^2)+E)=CP\left(\left(\hat{p}_{1}-\hat{p}_{2}\right)-E<p_{1}-p_{2}<\left(\hat{p}_{1}-\hat{p}_{2}\right)+E\right)=C. 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.

Homework

Adapted from Statistics with Technology, 2nd Edition, by Kathryn Kozak (Coconino Community College), © Kathryn Kozak, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.