Chapter 2 Two-sample test of proportions

If we wish to compare two proportions from different (independent) populations, we can use the two-sample test of proportions. For example, suppose we wish to know whether there is a significant difference in the proportion of US adults who say they use Facebook between two groups: those aged 18-29, and those aged 30-49. Consider the hypotheses

H0:p1=p2 versus H1:p1p2,

where:

  • p1 denotes the population proportion of US adults aged 18-29 who say they use Facebook
  • p2 denotes the population proportion of US adults aged 30-49 who say they use Facebook

For a two-sample test of proportions, we also have that the sample sizes chosen from each population (or group) are n1 and n2 respectively, and that in the first sample, x1 individuals exhibit the trait of interest, and in the second sample x2 individuals exhibit the trait of interest. The estimated (or sample) proportions are

ˆp1=x1n1 and ˆp2=x2n2.

A survey was carried out (Auxier and Anderson 2021) to better understand Americans' use of social media, online platforms, and messaging apps. Supposing that of the n1=220 and n2=416 respondents from each group respectively, x1=154 and x2=320 said they used Facebook, we have that

  • ˆp1=x1n1=154220=0.7
  • ˆp2=x2n2=320416=0.77.

From these sample proportions, we can see that 70% of 18-29 year olds say they use Facebook, compared with 77% of 30-49 year olds. In the following sections, we will see whether this difference is statistically significant.

References

Auxier, Brooke, and Monica Anderson. 2021. “Social Media Use in 2021.” Pew Research Center. 2021. https://www.pewresearch.org/internet/2021/04/07/social-media-use-in-2021/.