9.4 - Comparing Two Proportions | STAT 415 (2024)

So far, all of our examples involved testing whether a single population proportion p equals some value \(p_0\). Now, let's turn our attention for a bit towards testing whether one population proportion \(p_1\) equals a second population proportion \(p_2\). Additionally, most of our examples thus far have involved left-tailed tests in which the alternative hypothesis involved \(H_A \colon p < p_0\) or right-tailed tests in which the alternative hypothesis involved \(H_A \colon p > p_0\). Here, let's consider an example that tests the equality of two proportions against the alternative that they are not equal. Using statistical notation, we'll test:

\(H_0 \colon p_1 = p_2\) versus \(H_A \colon p_1 \ne p_2\)

Example 9-5 Section

9.4 - Comparing Two Proportions | STAT 415 (1)

Time magazine reported the result of a telephone poll of 800 adult Americans. The question posed of the Americans who were surveyed was: "Should the federal tax on cigarettes be raised to pay for health care reform?" The results of the survey were:

Non- SmokersSmokers

\(n_1 = 605\)
\(y_1 = 351 \text { said "yes"}\)
\(\hat{p}_1 = \dfrac{351}{605} = 0.58\)

\(n_2 = 195\)
\(y_2 = 41 \text { said "yes"}\)
\(\hat{p}_2 = \dfrac{41}{195} = 0.21\)

Is there sufficient evidence at the \(\alpha = 0.05\), say, to conclude that the two populations — smokers and non-smokers — differ significantly with respect to their opinions?

Answer

If \(p_1\) = the proportion of the non-smoker population who reply "yes" and \(p_2\) = the proportion of the smoker population who reply "yes," then we are interested in testing the null hypothesis:

\(H_0 \colon p_1 = p_2\)

against the alternative hypothesis:

\(H_A \colon p_1 \ne p_2\)

Before we can actually conduct the hypothesis test, we'll have to derive the appropriate test statistic.

Theorem

The test statistic for testing the difference in two population proportions, that is, for testing the null hypothesis \(H_0:p_1-p_2=0\) is:

\(Z=\dfrac{(\hat{p}_1-\hat{p}_2)-0}{\sqrt{\hat{p}(1-\hat{p})\left(\dfrac{1}{n_1}+\dfrac{1}{n_2}\right)}}\)

where:

\(\hat{p}=\dfrac{Y_1+Y_2}{n_1+n_2}\)

the proportion of "successes" in the two samples combined.

Proof

Recall that:

\(\hat{p}_1-\hat{p}_2\)

is approximately normally distributed with mean:

\(p_1-p_2\)

and variance:

\(\dfrac{p_1(1-p_1)}{n_1}+\dfrac{p_2(1-p_2)}{n_2}\)

But, if we assume that the null hypothesis is true, then the population proportions equal some common value p, say, that is, \(p_1 = p_2 = p\). In that case, then the variance becomes:

\(p(1-p)\left(\dfrac{1}{n_1}+\dfrac{1}{n_2}\right)\)

So, under the assumption that the null hypothesis is true, we have that:

\( {\displaystyle Z=\frac{\left(\hat{p}_{1}-\hat{p}_{2}\right)-
\color{blue}\overbrace{\color{black}\left(p_{1}-p_{2}\right)}^0}{\sqrt{p(1-p)\left(\frac{1}{n_{1}}+\frac{1}{n_{2}}\right)}} } \)

follows (at least approximately) the standard normal N(0,1) distribution. Since we don't know the (assumed) common population proportion p any more than we know the proportions \(p_1\) and \(p_2\) of each population, we can estimate p using:

\(\hat{p}=\dfrac{Y_1+Y_2}{n_1+n_2}\)

the proportion of "successes" in the two samples combined. And, hence, our test statistic becomes:

\(Z=\dfrac{(\hat{p}_1-\hat{p}_2)-0}{\sqrt{\hat{p}(1-\hat{p})\left(\dfrac{1}{n_1}+\dfrac{1}{n_2}\right)}}\)

as was to be proved.

Example 9-5 (continued) Section

9.4 - Comparing Two Proportions | STAT 415 (2)

Time magazine reported the result of a telephone poll of 800 adult Americans. The question posed of the Americans who were surveyed was: "Should the federal tax on cigarettes be raised to pay for health care reform?" The results of the survey were:

Non- SmokersSmokers

\(n_1 = 605\)
\(y_1 =351 \text { said "yes"}\)
\(\hat{p}_1 = \dfrac{351}{605} = 0.58\)

\(n_2 = 195\)
\(y_2 = 41 \text { said "yes"}\)
\(\hat{p}_2 = \dfrac{41}{195} = 0.21\)

Is there sufficient evidence at the \(\alpha = 0.05\), say, to conclude that the two populations — smokers and non-smokers — differ significantly with respect to their opinions?

Answer

The overall sample proportion is:

\(\hat{p}=\dfrac{41+351}{195+605}=\dfrac{392}{800}=0.49\)

That implies then that the test statistic for testing:

\(H_0:p_1=p_2\) versus \(H_0:p_1 \neq p_2\)

is:

\(Z=\dfrac{(0.58-0.21)-0}{\sqrt{0.49(0.51)\left(\dfrac{1}{195}+\dfrac{1}{605}\right)}}=8.99\)

Errr.... that Z-value is off the charts, so to speak. Let's go through the formalities anyway making the decision first using the rejection region approach, and then using the P-value approach. Putting half of the rejection region in each tail, we have:

That is, we reject the null hypothesis \(H_0\) if \(Z ≥ 1.96\) or if \(Z ≤ −1.96\). We clearly reject \(H_0\), since 8.99 falls in the "red zone," that is, 8.99 is (much) greater than 1.96. There is sufficient evidence at the 0.05 level to conclude that the two populations differ with respect to their opinions concerning imposing a federal tax to help pay for health care reform.

Now for the P-value approach:

That is, the P-value is less than 0.0001. Because \(P < 0.0001 ≤ \alpha = 0.05\), we reject the null hypothesis. Again, there is sufficient evidence at the 0.05 level to conclude that the two populations differ with respect to their opinions concerning imposing a federal tax to help pay for health care reform.

Thankfully, as should always be the case, the two approaches.... the critical value approach and the P-value approach... lead to the same conclusion

Note! Section

9.4 - Comparing Two Proportions | STAT 415 (3)

For testing \(H_0 \colon p_1 = p_2\), some statisticians use the test statistic:

\(Z=\dfrac{(\hat{p}_1-\hat{p}_2)-0}{\sqrt{\dfrac{\hat{p}_1(1-\hat{p}_1)}{n_1}+\dfrac{\hat{p}_2(1-\hat{p}_2)}{n_2}}}\)

instead of the one we used:

\(Z=\dfrac{(\hat{p}_1-\hat{p}_2)-0}{\sqrt{\hat{p}(1-\hat{p})\left(\dfrac{1}{n_1}+\dfrac{1}{n_2}\right)}}\)

An advantage of doing so is again that the interpretation of the confidence interval — does it contain 0? — is always consistent with the hypothesis test decision.

9.4 - Comparing Two Proportions | STAT 415 (2024)

FAQs

How do you compare two proportions? ›

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, H 0: p A = p B.

What is the 90% confidence interval for the difference between the two population proportions? ›

We are 90% confident that the difference in the population proportions lies in the interval [−0.20,−0.06 ], in the sense that in repeated sampling 90% of all intervals constructed from the sample data in this manner will contain p1−p2.

What is the formula for two proportions? ›

Here, the sample statistic is the difference between the two proportions ( p ^ 1 − p ^ 2 ) and the standard error is computed using the formula p 1 ( 1 − p 1 ) n 1 + p 2 ( 1 − p 2 ) n 2 . Putting this information together, we can derive the formula for a confidence interval for the difference between two proportions.

What is the 2 proportion test? ›

TThe 2-proportion z-test is the statistical procedure used to compare the proportions of two independent groups. This test is used when the researcher wants to know if there is a significant difference between the two groups, specifically if one group is significantly higher than the other.

What is the ratio of two proportions? ›

If there are x1 and x2 successes in the two groups out of totals n1 and n2, then the obvious estimate for the ratio of proportions is ˆθ=x1/n1x2/n2.

How do you identify proportions? ›

Ratios are proportional if they represent the same relationship. One way to see if two ratios are proportional is to write them as fractions and then reduce them. If the reduced fractions are the same, your ratios are proportional.

How to compare confidence intervals? ›

If a 95% confidence interval includes the null value, then there is no statistically meaningful or statistically significant difference between the groups. If the confidence interval does not include the null value, then we conclude that there is a statistically significant difference between the groups.

What is the point estimate for two proportions? ›

The point estimate for the difference between the two population proportions, p 1 − p 2 , is the difference between the two sample proportions written as p ^ 1 − p ^ 2 .

How do I solve proportions? ›

The 3 ways to solve a proportion are: vertically, horizontally and diagonally (cross-multiplication). The vertical method is used if one of the ratios has a common multiple between the two quantities. The horizontal method is used if there is a common multiple between both numerators or denominators.

How do you calculate proportion? ›

The proportion formula is used to depict if two ratios or fractions are equal. We can find the missing value by dividing the given values. The proportion formula can be given as a: b::c : d = a/b = c/d where a and d are the extreme terms and b and c are the mean terms.

What is the formula for proportion? ›

Proportion Formula

The two terms 'b' and 'c' are called 'means or mean terms', whereas the terms 'a' and 'd' are known as 'extremes or extreme terms. ' a/b = c/d or a:b::c:d.

How to compare two proportions? ›

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.

How to find p-value for proportion? ›

p - value Approach
  1. State the null hypothesis H0 and the alternative hypothesis HA.
  2. Set the level of significance .
  3. Calculate the test statistic: z = p ^ − p o p 0 ( 1 − p 0 ) n.
  4. Calculate the p-value.
  5. Make a decision. Check whether to reject the null hypothesis by comparing the p-value to .

How to find p-value? ›

The p-value is calculated using the sampling distribution of the test statistic under the null hypothesis, the sample data, and the type of test being done (lower-tailed test, upper-tailed test, or two-sided test). The p-value for: a lower-tailed test is specified by: p-value = P(TS ts | H 0 is true) = cdf(ts)

How to statistically compare two percentages? ›

The z-test is used to compare two percentage scores to see if the difference between them is statistically significant. This means: Is the difference in percentage scores in the table purely a result of the sample used, or does it indicate a real difference in percentages in the target population?

How can we compare two ratios to determine if they are proportional? ›

Trying to figure out if two ratios are proportional? If they're in fraction form, set them equal to each other to test if they are proportional. Cross multiply and simplify. If you get a true statement, then the ratios are proportional!

How to interpret difference in proportions? ›

So, to interpret a confidence interval for a difference in proportions, a statistician needs to determine whether or not the confidence interval contains zero. If the confidence interval contains zero, then zero can be regarded as a likely value for the difference in proportions.

What statistical analysis should I use to compare two groups? ›

Standard ttest – The most basic type of statistical test, for use when you are comparing the means from exactly TWO Groups, such as the Control Group versus the Experimental Group.

References

Top Articles
100+ Creative And Fun 40th Birthday Party Ideas For 2024
Za'atar Spice Recipe
Pau.blaz
Tales From The Crib Keeper 14
Lkq Pull-A-Part
Ray Romano Made a Movie for Sports Parents Everywhere
Petco Westerly Ri
Lkq Pull-A-Part
Tyrones Unblocked Games Basketball Stars
Stanford Rival Crossword Clue
Site : Storagealamogordo.com Easy Call
Fnv Mr Cuddles
Guardians Of The Galaxy Showtimes Near Athol Cinemas 8
Joann Ally Employee Portal
Madden 23 Playbooks Database
Chelsea Marie Boutique
Parents & Students · Infinite Campus
Inloggen bij AH Sam - E-Overheid
Craiglist Tulsa Ok
Job Skills That Start With Y
Does Publix Have Sephora Gift Cards
Apria Healthcare - 26 Reviews - Sacramento, CA
Contenidos del nivel A2
Craigslist For Cars Los Angeles
Kristine Leahy Spouse
suggest - Englisch-Deutsch Übersetzung | PONS
Hulu documentary delves deeper into the Randall Emmett scandal
Gary Keesee Kingdom Principles Pdf
Kaelis Dahlias
Daggett Funeral Home Barryton Michigan
Dom's Westgate Pizza Photos
Spn 102 Fmi 16 Dd15
Dr Yakubu Riverview
Nikki Porsche Girl Head
Why Larry the cat of 10 Downing Street wishes Starmer hadn’t won the election
Solarmovies Rick And Morty
Top French Cities - Saint-Etienne at a glance
Ben Rickert Net Worth
Wiki Jfk Film
Booknet.com Contract Marriage 2
Swrj Mugshots Logan Wv
NUROFEN Junior Fieber-u.Schmerzsaft Oran.40 mg/ml - Beipackzettel
7206990815
Obituaries - The Boston Globe
'We weren't done': Spacebar Arcade closes its doors for good
Oppenheimer Showtimes Near B&B Theatres Liberty Cinema 12
Cetaphil Samples For Providers
Fifty Shades Of Gray 123Movies
Houses For Rent in Eureka, CA
Craigslist Cars By Owner
Dumb Money Showtimes Near Cinema Cafe - Edinburgh
Pnp Telegram Group
Latest Posts
Article information

Author: Kieth Sipes

Last Updated:

Views: 5537

Rating: 4.7 / 5 (67 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Kieth Sipes

Birthday: 2001-04-14

Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

Phone: +9663362133320

Job: District Sales Analyst

Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.