{"id":1529,"date":"2023-06-22T02:40:21","date_gmt":"2023-06-22T02:40:21","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/introstatstest\/chapter\/simulation-based-hypothesis-test-for-a-difference-in-proportions-learn-it-1\/"},"modified":"2025-05-17T02:57:43","modified_gmt":"2025-05-17T02:57:43","slug":"simulation-based-hypothesis-test-for-a-difference-in-proportions-learn-it-1","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/introstatstest\/chapter\/simulation-based-hypothesis-test-for-a-difference-in-proportions-learn-it-1\/","title":{"raw":"Simulation-Based Hypothesis Test for a Difference in Proportions - Learn It 1","rendered":"Simulation-Based Hypothesis Test for a Difference in Proportions &#8211; Learn It 1"},"content":{"raw":"<section class=\"textbox learningGoals\">\r\n<ul>\r\n\t<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Complete a randomization test involving a difference in proportions&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:6913,&quot;3&quot;:{&quot;1&quot;:0},&quot;11&quot;:4,&quot;12&quot;:0,&quot;14&quot;:{&quot;1&quot;:2,&quot;2&quot;:0},&quot;15&quot;:&quot;Calibri&quot;}\">Complete a randomization test involving a difference in proportions<\/span><\/li>\r\n<\/ul>\r\n<\/section>\r\n<h2>Randomization Test and Permutation Test<\/h2>\r\n<p>In this section, let's revisit hypothesis testing for a difference in proportions, but rather than calculating a P-value using a traditional two-sample hypothesis test, we will use a tool to simulate a null distribution of sample differences in proportions. Then, we can compare the observed difference in proportions to this distribution to obtain an approximate P-value. This procedure is called a <strong>randomization test<\/strong>.<\/p>\r\n<section class=\"textbox keyTakeaway\">\r\n<h3>randomization test<\/h3>\r\n<p>Randomization procedures use resampling techniques to construct a sampling distribution that can be used to make inferences about the population.<\/p>\r\n<p>Randomization is constructed given that the null hypothesis is true, and its distribution will be centered on the null hypothesis value.<\/p>\r\n<\/section>\r\n<p class=\"para\">Technically, this test procedure is only called a randomization test when the data arise from a randomized experiment, since the simulation mimics the random assignment in the study.<\/p>\r\n<section class=\"textbox proTip\">When data arise from an observational study, the procedure is called a <strong>permutation test<\/strong>.<\/section>\r\n<p>Let's look at an example!<\/p>\r\n<h3>Peanut Allergy<\/h3>\r\n<p>From 2005 to 2015, the proportion of children allergic to peanuts doubled in Western countries. However, the allergy is not very common in some other countries where peanut protein is an important part of people\u2019s diets. The Learning Early about Peanut Allergy (LEAP) randomized trial, reported by Du Toit and others in <em>The<\/em> <em>New England Journal of Medicine<\/em> in February 2015, identified over 500 children ages four to 10 months who showed some sensitivity to peanut protein.[footnote]Du Toit, G., Roberts, G., Sayre, P. H., Bahnson, H. T., Radulovic, S., Santos, A. F., Brough, H. A., Phippard, D., Basting, M., Feeney, M., Turcanu, V., Sever, M. L., Lorenzo, M. G., Plaut, M., &amp; Lack, G. (2015, February 26). Randomized trial of peanut consumption in infants at risk for peanut allergy. The New England Journal of Medicine, 372(9), 803\u2013813. https:\/\/www.nejm.org\/doi\/full\/10.1056\/NEJMoa1414850[\/footnote] They randomly assigned them to two groups:<\/p>\r\n<ul>\r\n\t<li>Peanut avoiders: Parents were told not to give their kids any foods that contained peanuts<\/li>\r\n\t<li>Peanut eaters: Parents were given snacks containing peanut protein and were told to feed them to their children several times per week (target dose was at least six grams of peanut protein per week)<\/li>\r\n<\/ul>\r\n<p>The researchers tracked the children for five years and then recorded whether the children had developed peanut allergies by age five. They hoped to show that feeding children peanut protein at an early age helps prevent peanut allergies.<\/p>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]3125[\/ohm2_question]<\/section>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]3126[\/ohm2_question]<\/section>","rendered":"<section class=\"textbox learningGoals\">\n<ul>\n<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Complete a randomization test involving a difference in proportions&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:6913,&quot;3&quot;:{&quot;1&quot;:0},&quot;11&quot;:4,&quot;12&quot;:0,&quot;14&quot;:{&quot;1&quot;:2,&quot;2&quot;:0},&quot;15&quot;:&quot;Calibri&quot;}\">Complete a randomization test involving a difference in proportions<\/span><\/li>\n<\/ul>\n<\/section>\n<h2>Randomization Test and Permutation Test<\/h2>\n<p>In this section, let&#8217;s revisit hypothesis testing for a difference in proportions, but rather than calculating a P-value using a traditional two-sample hypothesis test, we will use a tool to simulate a null distribution of sample differences in proportions. Then, we can compare the observed difference in proportions to this distribution to obtain an approximate P-value. This procedure is called a <strong>randomization test<\/strong>.<\/p>\n<section class=\"textbox keyTakeaway\">\n<h3>randomization test<\/h3>\n<p>Randomization procedures use resampling techniques to construct a sampling distribution that can be used to make inferences about the population.<\/p>\n<p>Randomization is constructed given that the null hypothesis is true, and its distribution will be centered on the null hypothesis value.<\/p>\n<\/section>\n<p class=\"para\">Technically, this test procedure is only called a randomization test when the data arise from a randomized experiment, since the simulation mimics the random assignment in the study.<\/p>\n<section class=\"textbox proTip\">When data arise from an observational study, the procedure is called a <strong>permutation test<\/strong>.<\/section>\n<p>Let&#8217;s look at an example!<\/p>\n<h3>Peanut Allergy<\/h3>\n<p>From 2005 to 2015, the proportion of children allergic to peanuts doubled in Western countries. However, the allergy is not very common in some other countries where peanut protein is an important part of people\u2019s diets. The Learning Early about Peanut Allergy (LEAP) randomized trial, reported by Du Toit and others in <em>The<\/em> <em>New England Journal of Medicine<\/em> in February 2015, identified over 500 children ages four to 10 months who showed some sensitivity to peanut protein.<a class=\"footnote\" title=\"Du Toit, G., Roberts, G., Sayre, P. H., Bahnson, H. T., Radulovic, S., Santos, A. F., Brough, H. A., Phippard, D., Basting, M., Feeney, M., Turcanu, V., Sever, M. L., Lorenzo, M. G., Plaut, M., &amp; Lack, G. (2015, February 26). Randomized trial of peanut consumption in infants at risk for peanut allergy. The New England Journal of Medicine, 372(9), 803\u2013813. https:\/\/www.nejm.org\/doi\/full\/10.1056\/NEJMoa1414850\" id=\"return-footnote-1529-1\" href=\"#footnote-1529-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a> They randomly assigned them to two groups:<\/p>\n<ul>\n<li>Peanut avoiders: Parents were told not to give their kids any foods that contained peanuts<\/li>\n<li>Peanut eaters: Parents were given snacks containing peanut protein and were told to feed them to their children several times per week (target dose was at least six grams of peanut protein per week)<\/li>\n<\/ul>\n<p>The researchers tracked the children for five years and then recorded whether the children had developed peanut allergies by age five. They hoped to show that feeding children peanut protein at an early age helps prevent peanut allergies.<\/p>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm3125\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=3125&theme=lumen&iframe_resize_id=ohm3125&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm3126\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=3126&theme=lumen&iframe_resize_id=ohm3126&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-1529-1\">Du Toit, G., Roberts, G., Sayre, P. H., Bahnson, H. T., Radulovic, S., Santos, A. F., Brough, H. A., Phippard, D., Basting, M., Feeney, M., Turcanu, V., Sever, M. L., Lorenzo, M. G., Plaut, M., &amp; Lack, G. (2015, February 26). Randomized trial of peanut consumption in infants at risk for peanut allergy. The New England Journal of Medicine, 372(9), 803\u2013813. https:\/\/www.nejm.org\/doi\/full\/10.1056\/NEJMoa1414850 <a href=\"#return-footnote-1529-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":8,"menu_order":25,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":1502,"module-header":"learn_it","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1529"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/users\/8"}],"version-history":[{"count":5,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1529\/revisions"}],"predecessor-version":[{"id":6935,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1529\/revisions\/6935"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/parts\/1502"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1529\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/media?parent=1529"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapter-type?post=1529"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/contributor?post=1529"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/license?post=1529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}