{"id":601,"date":"2024-10-18T02:58:18","date_gmt":"2024-10-18T02:58:18","guid":{"rendered":"https:\/\/pressbooks.ccconline.org\/mat1260\/?post_type=chapter&#038;p=601"},"modified":"2025-07-07T19:05:51","modified_gmt":"2025-07-07T19:05:51","slug":"10-1-two-proportions","status":"publish","type":"chapter","link":"https:\/\/pressbooks.ccconline.org\/mat1260\/chapter\/10-1-two-proportions\/","title":{"raw":"10.1: Inference for Two Proportions","rendered":"10.1: Inference for Two Proportions"},"content":{"raw":"<p class=\"lt-stats-20917\">In Chapter 9, we covered the test for comparing a proportion to a hypothesized value. In this section we want to explore a test to compare two population proportions.<\/p>\r\n<p class=\"lt-stats-20917\">Like testing means, the usual null hypothesis will be that proportions are the same. We will usually denote each of the two proportions with a subscript, say 1 and 2. Here are some possible two\u2010tailed and one\u2010tailed Hypotheses:<\/p>\r\n[latex]H_{0}:p_{1}=p_{2}[\/latex]\u00a0 [latex]H_{0}:p_{1}\\geq p_{2}[\/latex]\u00a0 [latex]H_{0}:p_{1} \\leq p_{2}[\/latex]\r\n\r\n[latex]H_{a}:p_{1}\\neq p_{2}[\/latex]\u00a0 [latex]H_{a}:p_{1}&lt; p_{2}[\/latex]\u00a0 [latex]H_{a}:p_{1}&gt; p_{2}[\/latex]\r\n<p class=\"lt-stats-20917\">Notice that the Null Hypothesis can be written as [latex]H_{0}:p_{1}-p_{2}=0[\/latex], meaning we want to look at the distribution of the <span style=\"color: #0000ff\"><em><strong>difference of sample proportions<\/strong><\/em><\/span> as a random variable.<\/p>\r\n\r\n<div id=\"section_1\" class=\"mt-section\">\r\n<h2 class=\"lt-stats-20917 editable\"><span style=\"color: #800080\">Distribution of difference of sample proportions<\/span><\/h2>\r\n<p class=\"lt-stats-20917\">Suppose we take a sample of <em><strong>n<sub>1 <\/sub><\/strong><\/em>from population 1 and <em><strong>n<sub>2<\/sub><\/strong><\/em> from population 2. Let<em><strong> X<sub>1 <\/sub><\/strong><\/em>be the number of successes in sample 1 and <em><strong>X<sub>2<\/sub><\/strong><\/em> be the number of successes in sample 2.<\/p>\r\n[latex]\\hat{p_{1}}=\\frac{X_{1}}{n_{1}}[\/latex] <span style=\"text-align: initial;font-size: 1em\">represents the proportion of successes in sample 1<\/span>\r\n\r\n<span style=\"text-align: initial;font-size: 1em\">[latex]\\hat{p_{2}}=\\frac{X_{2}}{n_{2}}[\/latex] <\/span>represents the proportion of successes in sample 2\r\n<p class=\"lt-stats-20917\">As long as there are at least 10 successes and 10 failures in each sample, then the difference of sample proportions [latex]\\hat{p_{1}}-\\hat{p_{2}}[\/latex] will have a Normal Distribution.<\/p>\r\n\r\n<\/div>\r\n<section class=\"box-note\">\r\n<div class=\"mt-section\">\r\n<h5 class=\"box-legend lt-stats-20917 editable\"><span class=\"lt-icon-default\">Central Limit Theorem for the difference of proportions [latex]\\hat{p}_{1}-\\hat{p}_{2}[\/latex]<\/span><\/h5>\r\n<\/div>\r\n<\/section>[latex]\\mu _{\\hat{p}_{1}-\\hat{p}_{1}}=p_{1}-p_{2}[\/latex]\r\n\r\n[latex]\\sigma _{\\hat{p}_{1}-\\hat{p}_{2}}=\\sqrt{\\frac{p_{1}(1-p_{1})}{n_{1}}+\\frac{p_{2}(1-p_{2})}{n_{2}}}[\/latex]\r\n\r\nIf [latex]n_{1}p_{1},n_{1}(1-p_{1}),n_{2}p_{2},n_{2}(1-p_{2})[\/latex] are all at least 10, then the Probability Distribution of [latex]\\hat{p}_{1}-\\hat{p}_{2}[\/latex] is approximately Normal.\r\n<p class=\"lt-stats-20917\">Combining all of the above into a single formula:<\/p>\r\n<p class=\"lt-stats-20917\">[latex]\\large Z=\\frac{(\\hat{p}_{1}-\\hat{p}_{2})-(p_{1}-\\hat{p}_{2})}{\\sqrt{\\frac{p_{1}(1-p_{1})}{n_{1}}+\\frac{p_{2}(1-p_{2})}{n2}}}[\/latex]<\/p>\r\n\r\n<div class=\"MathJax_Display\"><\/div>\r\n<section class=\"box-note\">\r\n<div class=\"mt-section\">\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<h3 class=\"textbox__title\">Example<\/h3>\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<div class=\"example clearfix\">\r\n<div class=\"box-example\">\r\n<p class=\"lt-stats-20917\">12% of North Americans claim left\u2010handedness. With regard to <strong>gender<\/strong>, men are slightly more likely than women to be left\u2010handed, with most studies indicating that about <strong>13% of men <\/strong>and about <strong>11% of women<\/strong> are left\u2010handed<sup>82<\/sup>.<\/p>\r\n<p class=\"lt-stats-20917\"><em>p<sub>m <\/sub><\/em>= 0.13 = proportion of men who are left\u2010handed<\/p>\r\n\r\n<\/div>\r\n<p class=\"lt-stats-20917\"><em>p<sub>w <\/sub><\/em>= 0.11 = proportion of women who are left\u2010handed<\/p>\r\n<p class=\"lt-stats-20917\">p<sub>m <\/sub>- p<sub>w<\/sub> = <strong>difference<\/strong> in proportion of men and women who are left\u2010handed<\/p>\r\n<p class=\"lt-stats-20917\"><strong>Solution<\/strong><\/p>\r\n<p class=\"lt-stats-20917\">Suppose we take a sample of 100 men and 150 women. Let's investigate the random variable [latex]\\hat{p_{m}}-\\hat{p_{w}}[\/latex]<\/p>\r\n<p class=\"lt-stats-20917\">100(0.13) = 13\u00a0 \u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0100(1\u20100.13) = 87<\/p>\r\n<p class=\"lt-stats-20917\">150(0.11) = 16.5 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0150(1\u20100.11) = 133.5<\/p>\r\n<p class=\"lt-stats-20917\">Since all values are greater than 10, [latex]\\hat{p_{m}}-\\hat{p_{w}}[\/latex] has approximately a normal distribution.<\/p>\r\n[latex]\\mu _{\\hat{p}_{m}-\\hat{p}_{w}}=0.13-0.11=0.02[\/latex]\r\n[latex]\\sigma_{\\hat{p}_{m}-\\hat{p_{w}}}=\\sqrt{\\frac{0.13(1-0.13)}{100}+\\frac{0.11(1-0.11)}{150}}=0.0422[\/latex]\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/section>\r\n<div class=\"box-example\">\r\n<p class=\"box-legend lt-stats-20917\"><span style=\"color: #800080;font-family: 'Cormorant Garamond', serif;font-size: 1.602em;font-weight: bold\">Hypothesis test for difference of proportions<\/span><\/p>\r\n\r\n<\/div>\r\n<div id=\"section_2\" class=\"mt-section\">\r\n<p class=\"lt-stats-20917\">In conducting a Hypothesis test where the Null hypothesis assumes equal proportions, it is best practice to pool or combine the sample proportions into a single estimated proportion [latex]\\bar{p}[\/latex], and use an estimated standard error, [latex]S_{\\hat{p}_{m}-\\hat{p}_{w}}[\/latex]:<\/p>\r\n\r\n<\/div>\r\n<p class=\"lt-stats-20917\">[latex]\\bar{p}=\\frac{X_{1}+X_{2}}{n_{1}+n_{2}}[\/latex]<\/p>\r\n<p class=\"lt-stats-20917\">[latex]S_{\\hat{p}_{1}-\\hat{p}_{2}}=\\sqrt{\\frac{\\bar{p}(1-\\bar{p})}{n_{1}}+\\frac{\\bar{p}(1-\\bar{p})}{n_{2}}}[\/latex]<\/p>\r\n<p class=\"lt-stats-20917\">The test statistic will have a Normal Distribution as long as there are at least 10 successes and 10 failures in both samples.<\/p>\r\n[latex]\\large Z=\\frac{(\\hat{p}_{1}-\\hat{p}_{2})-(p_{1}-p_{2})}{\\sqrt{\\frac{\\bar{p}(1-\\bar{p})}{n_{1}}+\\frac{\\bar{p}(1-\\bar{p})}{n_{2}}}}[\/latex]\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<h3 class=\"textbox__title\">Example<\/h3>\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<div class=\"example clearfix\">\r\n<div class=\"box-example\">\r\n<p class=\"mt-align-center lt-stats-20917\"><img class=\"internal\" src=\"https:\/\/stats.libretexts.org\/@api\/deki\/files\/17125\/clipboard_e22bc23857f2ae9154d71fd0d5a6db557.png?revision=1\" alt=\"clipboard_e22bc23857f2ae9154d71fd0d5a6db557.png\" \/><\/p>\r\n<p class=\"lt-stats-20917\">Under current United States law, private sales between owners are exempt from background check requirements. This is sometimes called the \"Gun Show Loophole\" as it may allow criminals, terrorists and the mentally ill to purchase assault weapons, such as those used in mass shootings.<sup>83<\/sup><\/p>\r\n<p class=\"lt-stats-20917\">In an August 2016 Study, Pew Research analyzed American's opinions about gun laws and rights.<sup>84<\/sup> Pew took a representative sample of 990 men and 1020 women and asked them several questions. In particular, they asked the sampled Americans if background checks required at gun stores should be\u00a0made universal and extended to all sales of guns between private owners or at gun shows. 772 out 990 men said yes, while 857 out of 1020 women said yes.<\/p>\r\n<p class=\"lt-stats-20917\">Is there a difference in the proportion of men and women who support universal background checks for purchasing guns? Design and conduct the test with a significance level of 1%.<\/p>\r\n<p class=\"lt-stats-20917\"><strong>Solution<\/strong><\/p>\r\n<p class=\"lt-stats-20917\"><strong>Design<\/strong><\/p>\r\n[latex]H_{0}:p_{m}=p_{w}[\/latex] <span style=\"text-align: initial;font-size: 1em\">(There is no difference in the proportion of support for background checks by gender)<\/span>\r\n\r\n<\/div>\r\n<p class=\"mt-indent-1 lt-stats-20917\">[latex]H_{a}:p_{m}\\neq p_{w}[\/latex] (There is a difference in the proportion of support for background checks by gender)<\/p>\r\n<p class=\"lt-stats-20917\">Model: Two proportion [latex]Z[\/latex] test. This is a two\u2010tailed test with [latex]\\alpha =0.01[\/latex]<\/p>\r\n<p class=\"lt-stats-20917\">Model Assumptions: for men there are 772 yes and 218 no. For women there are 857 yes and 163 no. Since all these numbers exceed 10, the model is appropriate.<\/p>\r\n<p class=\"lt-stats-20917\">Decision Rules:<\/p>\r\n<p class=\"lt-stats-20917\">Critical Value Method \u2010 Reject\u00a0[latex]H_{0}[\/latex] if [latex]Z&gt;2.58[\/latex] or [latex]Z&lt;-2.58[\/latex].<\/p>\r\n<p class=\"lt-stats-20917\">&gt;\ud835\udc43\u2010value method\u00a0\u2010\u00a0Reject [latex]H_{0}[\/latex] if \ud835\udc5d\u2010value &lt;0.01<\/p>\r\n<p class=\"lt-stats-20917\"><strong>Data\/Results<\/strong><\/p>\r\n[latex]\\hat{P}_{m}=\\frac{772}{990}=0.870[\/latex]\r\n\r\n[latex]\\hat{P}_{w}=\\frac{857}{1020}=0.840[\/latex]\r\n\r\n[latex]\\bar{P}=\\frac{772+857}{990+1020}=0.810[\/latex]\r\n\r\n[latex]Z=\\frac{(0.780-0.840)-0}{\\sqrt{\\frac{0.810)(1-0.810}{990}+\\frac{0.810(1-0.810)}{1020}}}=-3.45[\/latex], p-value [latex]=0.0005&lt;\\alpha[\/latex]\r\n<p class=\"lt-stats-20917\">Reject [latex]H_{0}[\/latex] under both methods<\/p>\r\n<p class=\"lt-stats-20917\"><strong>Conclusion<\/strong><\/p>\r\n<p class=\"lt-stats-20917\">There is a difference in the proportion of support for background checks by gender. Women are more likely to support background checks.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"box-example\">\r\n<p class=\"box-legend lt-stats-20917\"><\/p>\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<span id=\"output\" class=\"attribution-output\"><a href=\"https:\/\/stats.libretexts.org\/Bookshelves\/Introductory_Statistics\/Inferential_Statistics_and_Probability_-_A_Holistic_Approach_(Geraghty)\/11%3A_Two_Populations_Inference\/11.05%3A_Comparing_Two_Proportions\" target=\"_blank\" rel=\"noopener\">\"Introductory Statistics Inferential Statistics and Probability - A Holistic Approach (Geraghty) Inferential Statistics and Probability - A Holistic Approach\"<\/a> by <a>Maurice A. Geraghty<\/a> is licensed under <a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\" target=\"_blank\" rel=\"noopener\">CC BY-SA 4.0<\/a><\/span>","rendered":"<p class=\"lt-stats-20917\">In Chapter 9, we covered the test for comparing a proportion to a hypothesized value. In this section we want to explore a test to compare two population proportions.<\/p>\n<p class=\"lt-stats-20917\">Like testing means, the usual null hypothesis will be that proportions are the same. We will usually denote each of the two proportions with a subscript, say 1 and 2. Here are some possible two\u2010tailed and one\u2010tailed Hypotheses:<\/p>\n<p>[latex]H_{0}:p_{1}=p_{2}[\/latex]\u00a0 [latex]H_{0}:p_{1}\\geq p_{2}[\/latex]\u00a0 [latex]H_{0}:p_{1} \\leq p_{2}[\/latex]<\/p>\n<p>[latex]H_{a}:p_{1}\\neq p_{2}[\/latex]\u00a0 [latex]H_{a}:p_{1}< p_{2}[\/latex]\u00a0 [latex]H_{a}:p_{1}> p_{2}[\/latex]<\/p>\n<p class=\"lt-stats-20917\">Notice that the Null Hypothesis can be written as [latex]H_{0}:p_{1}-p_{2}=0[\/latex], meaning we want to look at the distribution of the <span style=\"color: #0000ff\"><em><strong>difference of sample proportions<\/strong><\/em><\/span> as a random variable.<\/p>\n<div id=\"section_1\" class=\"mt-section\">\n<h2 class=\"lt-stats-20917 editable\"><span style=\"color: #800080\">Distribution of difference of sample proportions<\/span><\/h2>\n<p class=\"lt-stats-20917\">Suppose we take a sample of <em><strong>n<sub>1 <\/sub><\/strong><\/em>from population 1 and <em><strong>n<sub>2<\/sub><\/strong><\/em> from population 2. Let<em><strong> X<sub>1 <\/sub><\/strong><\/em>be the number of successes in sample 1 and <em><strong>X<sub>2<\/sub><\/strong><\/em> be the number of successes in sample 2.<\/p>\n<p>[latex]\\hat{p_{1}}=\\frac{X_{1}}{n_{1}}[\/latex] <span style=\"text-align: initial;font-size: 1em\">represents the proportion of successes in sample 1<\/span><\/p>\n<p><span style=\"text-align: initial;font-size: 1em\">[latex]\\hat{p_{2}}=\\frac{X_{2}}{n_{2}}[\/latex] <\/span>represents the proportion of successes in sample 2<\/p>\n<p class=\"lt-stats-20917\">As long as there are at least 10 successes and 10 failures in each sample, then the difference of sample proportions [latex]\\hat{p_{1}}-\\hat{p_{2}}[\/latex] will have a Normal Distribution.<\/p>\n<\/div>\n<section class=\"box-note\">\n<div class=\"mt-section\">\n<h5 class=\"box-legend lt-stats-20917 editable\"><span class=\"lt-icon-default\">Central Limit Theorem for the difference of proportions [latex]\\hat{p}_{1}-\\hat{p}_{2}[\/latex]<\/span><\/h5>\n<\/div>\n<\/section>\n<p>[latex]\\mu _{\\hat{p}_{1}-\\hat{p}_{1}}=p_{1}-p_{2}[\/latex]<\/p>\n<p>[latex]\\sigma _{\\hat{p}_{1}-\\hat{p}_{2}}=\\sqrt{\\frac{p_{1}(1-p_{1})}{n_{1}}+\\frac{p_{2}(1-p_{2})}{n_{2}}}[\/latex]<\/p>\n<p>If [latex]n_{1}p_{1},n_{1}(1-p_{1}),n_{2}p_{2},n_{2}(1-p_{2})[\/latex] are all at least 10, then the Probability Distribution of [latex]\\hat{p}_{1}-\\hat{p}_{2}[\/latex] is approximately Normal.<\/p>\n<p class=\"lt-stats-20917\">Combining all of the above into a single formula:<\/p>\n<p class=\"lt-stats-20917\">[latex]\\large Z=\\frac{(\\hat{p}_{1}-\\hat{p}_{2})-(p_{1}-\\hat{p}_{2})}{\\sqrt{\\frac{p_{1}(1-p_{1})}{n_{1}}+\\frac{p_{2}(1-p_{2})}{n2}}}[\/latex]<\/p>\n<div class=\"MathJax_Display\"><\/div>\n<section class=\"box-note\">\n<div class=\"mt-section\">\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<h3 class=\"textbox__title\">Example<\/h3>\n<\/header>\n<div class=\"textbox__content\">\n<div class=\"example clearfix\">\n<div class=\"box-example\">\n<p class=\"lt-stats-20917\">12% of North Americans claim left\u2010handedness. With regard to <strong>gender<\/strong>, men are slightly more likely than women to be left\u2010handed, with most studies indicating that about <strong>13% of men <\/strong>and about <strong>11% of women<\/strong> are left\u2010handed<sup>82<\/sup>.<\/p>\n<p class=\"lt-stats-20917\"><em>p<sub>m <\/sub><\/em>= 0.13 = proportion of men who are left\u2010handed<\/p>\n<\/div>\n<p class=\"lt-stats-20917\"><em>p<sub>w <\/sub><\/em>= 0.11 = proportion of women who are left\u2010handed<\/p>\n<p class=\"lt-stats-20917\">p<sub>m <\/sub>&#8211; p<sub>w<\/sub> = <strong>difference<\/strong> in proportion of men and women who are left\u2010handed<\/p>\n<p class=\"lt-stats-20917\"><strong>Solution<\/strong><\/p>\n<p class=\"lt-stats-20917\">Suppose we take a sample of 100 men and 150 women. Let&#8217;s investigate the random variable [latex]\\hat{p_{m}}-\\hat{p_{w}}[\/latex]<\/p>\n<p class=\"lt-stats-20917\">100(0.13) = 13\u00a0 \u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0100(1\u20100.13) = 87<\/p>\n<p class=\"lt-stats-20917\">150(0.11) = 16.5 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0150(1\u20100.11) = 133.5<\/p>\n<p class=\"lt-stats-20917\">Since all values are greater than 10, [latex]\\hat{p_{m}}-\\hat{p_{w}}[\/latex] has approximately a normal distribution.<\/p>\n<p>[latex]\\mu _{\\hat{p}_{m}-\\hat{p}_{w}}=0.13-0.11=0.02[\/latex]<br \/>\n[latex]\\sigma_{\\hat{p}_{m}-\\hat{p_{w}}}=\\sqrt{\\frac{0.13(1-0.13)}{100}+\\frac{0.11(1-0.11)}{150}}=0.0422[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<div class=\"box-example\">\n<p class=\"box-legend lt-stats-20917\"><span style=\"color: #800080;font-family: 'Cormorant Garamond', serif;font-size: 1.602em;font-weight: bold\">Hypothesis test for difference of proportions<\/span><\/p>\n<\/div>\n<div id=\"section_2\" class=\"mt-section\">\n<p class=\"lt-stats-20917\">In conducting a Hypothesis test where the Null hypothesis assumes equal proportions, it is best practice to pool or combine the sample proportions into a single estimated proportion [latex]\\bar{p}[\/latex], and use an estimated standard error, [latex]S_{\\hat{p}_{m}-\\hat{p}_{w}}[\/latex]:<\/p>\n<\/div>\n<p class=\"lt-stats-20917\">[latex]\\bar{p}=\\frac{X_{1}+X_{2}}{n_{1}+n_{2}}[\/latex]<\/p>\n<p class=\"lt-stats-20917\">[latex]S_{\\hat{p}_{1}-\\hat{p}_{2}}=\\sqrt{\\frac{\\bar{p}(1-\\bar{p})}{n_{1}}+\\frac{\\bar{p}(1-\\bar{p})}{n_{2}}}[\/latex]<\/p>\n<p class=\"lt-stats-20917\">The test statistic will have a Normal Distribution as long as there are at least 10 successes and 10 failures in both samples.<\/p>\n<p>[latex]\\large Z=\\frac{(\\hat{p}_{1}-\\hat{p}_{2})-(p_{1}-p_{2})}{\\sqrt{\\frac{\\bar{p}(1-\\bar{p})}{n_{1}}+\\frac{\\bar{p}(1-\\bar{p})}{n_{2}}}}[\/latex]<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<h3 class=\"textbox__title\">Example<\/h3>\n<\/header>\n<div class=\"textbox__content\">\n<div class=\"example clearfix\">\n<div class=\"box-example\">\n<p class=\"mt-align-center lt-stats-20917\"><img decoding=\"async\" class=\"internal\" src=\"https:\/\/stats.libretexts.org\/@api\/deki\/files\/17125\/clipboard_e22bc23857f2ae9154d71fd0d5a6db557.png?revision=1\" alt=\"clipboard_e22bc23857f2ae9154d71fd0d5a6db557.png\" \/><\/p>\n<p class=\"lt-stats-20917\">Under current United States law, private sales between owners are exempt from background check requirements. This is sometimes called the &#8220;Gun Show Loophole&#8221; as it may allow criminals, terrorists and the mentally ill to purchase assault weapons, such as those used in mass shootings.<sup>83<\/sup><\/p>\n<p class=\"lt-stats-20917\">In an August 2016 Study, Pew Research analyzed American&#8217;s opinions about gun laws and rights.<sup>84<\/sup> Pew took a representative sample of 990 men and 1020 women and asked them several questions. In particular, they asked the sampled Americans if background checks required at gun stores should be\u00a0made universal and extended to all sales of guns between private owners or at gun shows. 772 out 990 men said yes, while 857 out of 1020 women said yes.<\/p>\n<p class=\"lt-stats-20917\">Is there a difference in the proportion of men and women who support universal background checks for purchasing guns? Design and conduct the test with a significance level of 1%.<\/p>\n<p class=\"lt-stats-20917\"><strong>Solution<\/strong><\/p>\n<p class=\"lt-stats-20917\"><strong>Design<\/strong><\/p>\n<p>[latex]H_{0}:p_{m}=p_{w}[\/latex] <span style=\"text-align: initial;font-size: 1em\">(There is no difference in the proportion of support for background checks by gender)<\/span><\/p>\n<\/div>\n<p class=\"mt-indent-1 lt-stats-20917\">[latex]H_{a}:p_{m}\\neq p_{w}[\/latex] (There is a difference in the proportion of support for background checks by gender)<\/p>\n<p class=\"lt-stats-20917\">Model: Two proportion [latex]Z[\/latex] test. This is a two\u2010tailed test with [latex]\\alpha =0.01[\/latex]<\/p>\n<p class=\"lt-stats-20917\">Model Assumptions: for men there are 772 yes and 218 no. For women there are 857 yes and 163 no. Since all these numbers exceed 10, the model is appropriate.<\/p>\n<p class=\"lt-stats-20917\">Decision Rules:<\/p>\n<p class=\"lt-stats-20917\">Critical Value Method \u2010 Reject\u00a0[latex]H_{0}[\/latex] if [latex]Z>2.58[\/latex] or [latex]Z<-2.58[\/latex].<\/p>\n<p class=\"lt-stats-20917\">&gt;\ud835\udc43\u2010value method\u00a0\u2010\u00a0Reject [latex]H_{0}[\/latex] if \ud835\udc5d\u2010value &lt;0.01<\/p>\n<p class=\"lt-stats-20917\"><strong>Data\/Results<\/strong><\/p>\n<p>[latex]\\hat{P}_{m}=\\frac{772}{990}=0.870[\/latex]<\/p>\n<p>[latex]\\hat{P}_{w}=\\frac{857}{1020}=0.840[\/latex]<\/p>\n<p>[latex]\\bar{P}=\\frac{772+857}{990+1020}=0.810[\/latex]<\/p>\n<p>[latex]Z=\\frac{(0.780-0.840)-0}{\\sqrt{\\frac{0.810)(1-0.810}{990}+\\frac{0.810(1-0.810)}{1020}}}=-3.45[\/latex], p-value [latex]=0.0005<\\alpha[\/latex]\n\n\n<p class=\"lt-stats-20917\">Reject [latex]H_{0}[\/latex] under both methods<\/p>\n<p class=\"lt-stats-20917\"><strong>Conclusion<\/strong><\/p>\n<p class=\"lt-stats-20917\">There is a difference in the proportion of support for background checks by gender. Women are more likely to support background checks.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"box-example\">\n<p class=\"box-legend lt-stats-20917\">\n<\/div>\n<p>&nbsp;<\/p>\n<p><span id=\"output\" class=\"attribution-output\"><a href=\"https:\/\/stats.libretexts.org\/Bookshelves\/Introductory_Statistics\/Inferential_Statistics_and_Probability_-_A_Holistic_Approach_(Geraghty)\/11%3A_Two_Populations_Inference\/11.05%3A_Comparing_Two_Proportions\" target=\"_blank\" rel=\"noopener\">&#8220;Introductory Statistics Inferential Statistics and Probability &#8211; A Holistic Approach (Geraghty) Inferential Statistics and Probability &#8211; A Holistic Approach&#8221;<\/a> by <a>Maurice A. Geraghty<\/a> is licensed under <a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\" target=\"_blank\" rel=\"noopener\">CC BY-SA 4.0<\/a><\/span><\/p>\n","protected":false},"author":150,"menu_order":13,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[48],"contributor":[],"license":[],"class_list":["post-601","chapter","type-chapter","status-publish","hentry","chapter-type-numberless"],"part":421,"_links":{"self":[{"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/pressbooks\/v2\/chapters\/601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/wp\/v2\/users\/150"}],"version-history":[{"count":25,"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/pressbooks\/v2\/chapters\/601\/revisions"}],"predecessor-version":[{"id":1193,"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/pressbooks\/v2\/chapters\/601\/revisions\/1193"}],"part":[{"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/pressbooks\/v2\/parts\/421"}],"metadata":[{"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/pressbooks\/v2\/chapters\/601\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/wp\/v2\/media?parent=601"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/pressbooks\/v2\/chapter-type?post=601"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/wp\/v2\/contributor?post=601"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.ccconline.org\/mat1260\/wp-json\/wp\/v2\/license?post=601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}