{"id":1418,"date":"2023-06-22T02:22:59","date_gmt":"2023-06-22T02:22:59","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/introstatstest\/chapter\/chi-square-test-of-homogeneity-apply-it-1\/"},"modified":"2026-11-20T18:07:56","modified_gmt":"2026-11-20T18:07:56","slug":"chi-square-test-of-homogeneity-apply-it-1","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/introstatstest\/chapter\/chi-square-test-of-homogeneity-apply-it-1\/","title":{"raw":"Chi-Square Test of Homogeneity \u2013 Apply It 1","rendered":"Chi-Square Test of Homogeneity \u2013 Apply 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 chi-square test of homogeneity&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:12801,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;arial&quot;,&quot;16&quot;:9}\">Complete a chi-square test of homogeneity<\/span><\/li>\r\n\t<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Write the conclusion of a chi-square test of homogeneity in context of the problem&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:12801,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;arial&quot;,&quot;16&quot;:9}\">Write the conclusion of a chi-square test of homogeneity in context of the problem<\/span><\/li>\r\n<\/ul>\r\n<\/section>\r\n<h2>Coffee Preferences Across Age Groups<\/h2>\r\n<p>In October 2023, coffee expert James Hoffmann and the coffee company Cometeer held the \u201cGreat American Coffee Taste Test,\u201d a livestream on YouTube. Viewers who had ordered a set of four coffees tasted them during the stream and filled out a survey about the coffees, their own coffee habits, and their age.[footnote]Hoffmann, J., &amp; Cometeer. (2023, October). The Great American Coffee Taste Test [Survey data]. Distributed via TidyTuesday, 2024-05-14. https:\/\/github.com\/rfordatascience\/tidytuesday\/tree\/main\/data\/2024\/2024-05-14[\/footnote]<\/p>\r\n<p>Let's use the data from this survey to investigate the following question: <em>Does the proportion of coffee drinkers who like their coffee \u201cvery strong\u201d differ for three age groups?<\/em><\/p>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1 ]2866[\/ohm2_question]<\/section>\r\n<p><strong>A note about these data:<\/strong> The survey participants were viewers who chose to respond, so they are <strong>not a random sample<\/strong> of coffee drinkers. This means the results cannot be generalized to all coffee drinkers, and the randomness condition for a chi-square test is not met. We use these data here only to practice the mechanics of the test and the interpretation of its results. For this practice, we also treat the respondents in each age group as a sample from that age group. The table includes only respondents ages 18\u201344 who answered both questions.<\/p>\r\n<p>Below are the summarized survey data for the three age groups in a two-way table.<\/p>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<th>\u00a0<\/th>\r\n<th colspan=\"2\">Prefer Very Strong Coffee<\/th>\r\n<th>\u00a0<\/th>\r\n<\/tr>\r\n<tr>\r\n<th>\u00a0<\/th>\r\n<th>Yes<\/th>\r\n<th>No<\/th>\r\n<th>Totals<\/th>\r\n<\/tr>\r\n<tr>\r\n<th>Ages 18\u201324<\/th>\r\n<td>46<\/td>\r\n<td>386<\/td>\r\n<td>432<\/td>\r\n<\/tr>\r\n<tr>\r\n<th>Ages 25\u201334<\/th>\r\n<td>201<\/td>\r\n<td>1,744<\/td>\r\n<td>1,945<\/td>\r\n<\/tr>\r\n<tr>\r\n<th>Ages 35\u201344<\/th>\r\n<td>104<\/td>\r\n<td>835<\/td>\r\n<td>939<\/td>\r\n<\/tr>\r\n<tr>\r\n<th>Totals<\/th>\r\n<td>351<\/td>\r\n<td>2,965<\/td>\r\n<td>3,316<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<section>Let's use the statistical tool to conduct the Chi-Squared test of Homogeneity.<\/section>\r\n<section>Remember to select \"Contingency Table\" under Enter Data and input our values accordingly.<\/section>\r\n<section><iframe src=\"https:\/\/lumen-learning.shinyapps.io\/chisquaredtest\/\" width=\"100%\" height=\"1100\" frameborder=\"no\"><\/iframe><br \/>\r\n[<a href=\"https:\/\/lumen-learning.shinyapps.io\/chisquaredtest\/\" target=\"_blank\" rel=\"noopener\">Trouble viewing? Click to open in a new tab.<\/a>]<\/section>\r\n<section>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1 ]2868[\/ohm2_question]<\/section>\r\n<\/section>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1 ]2867[\/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 chi-square test of homogeneity&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:12801,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;arial&quot;,&quot;16&quot;:9}\">Complete a chi-square test of homogeneity<\/span><\/li>\n<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Write the conclusion of a chi-square test of homogeneity in context of the problem&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:12801,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;arial&quot;,&quot;16&quot;:9}\">Write the conclusion of a chi-square test of homogeneity in context of the problem<\/span><\/li>\n<\/ul>\n<\/section>\n<h2>Coffee Preferences Across Age Groups<\/h2>\n<p>In October 2023, coffee expert James Hoffmann and the coffee company Cometeer held the \u201cGreat American Coffee Taste Test,\u201d a livestream on YouTube. Viewers who had ordered a set of four coffees tasted them during the stream and filled out a survey about the coffees, their own coffee habits, and their age.<a class=\"footnote\" title=\"Hoffmann, J., &amp; Cometeer. (2023, October). The Great American Coffee Taste Test [Survey data]. Distributed via TidyTuesday, 2024-05-14. https:\/\/github.com\/rfordatascience\/tidytuesday\/tree\/main\/data\/2024\/2024-05-14\" id=\"return-footnote-1418-1\" href=\"#footnote-1418-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a><\/p>\n<p>Let&#8217;s use the data from this survey to investigate the following question: <em>Does the proportion of coffee drinkers who like their coffee \u201cvery strong\u201d differ for three age groups?<\/em><\/p>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm2866\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=2866&theme=lumen&iframe_resize_id=ohm2866&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<p><strong>A note about these data:<\/strong> The survey participants were viewers who chose to respond, so they are <strong>not a random sample<\/strong> of coffee drinkers. This means the results cannot be generalized to all coffee drinkers, and the randomness condition for a chi-square test is not met. We use these data here only to practice the mechanics of the test and the interpretation of its results. For this practice, we also treat the respondents in each age group as a sample from that age group. The table includes only respondents ages 18\u201344 who answered both questions.<\/p>\n<p>Below are the summarized survey data for the three age groups in a two-way table.<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u00a0<\/th>\n<th colspan=\"2\">Prefer Very Strong Coffee<\/th>\n<th>\u00a0<\/th>\n<\/tr>\n<tr>\n<th>\u00a0<\/th>\n<th>Yes<\/th>\n<th>No<\/th>\n<th>Totals<\/th>\n<\/tr>\n<tr>\n<th>Ages 18\u201324<\/th>\n<td>46<\/td>\n<td>386<\/td>\n<td>432<\/td>\n<\/tr>\n<tr>\n<th>Ages 25\u201334<\/th>\n<td>201<\/td>\n<td>1,744<\/td>\n<td>1,945<\/td>\n<\/tr>\n<tr>\n<th>Ages 35\u201344<\/th>\n<td>104<\/td>\n<td>835<\/td>\n<td>939<\/td>\n<\/tr>\n<tr>\n<th>Totals<\/th>\n<td>351<\/td>\n<td>2,965<\/td>\n<td>3,316<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<section>Let&#8217;s use the statistical tool to conduct the Chi-Squared test of Homogeneity.<\/section>\n<section>Remember to select &#8220;Contingency Table&#8221; under Enter Data and input our values accordingly.<\/section>\n<section><iframe loading=\"lazy\" src=\"https:\/\/lumen-learning.shinyapps.io\/chisquaredtest\/\" width=\"100%\" height=\"1100\" frameborder=\"no\"><\/iframe><br \/>\n[<a href=\"https:\/\/lumen-learning.shinyapps.io\/chisquaredtest\/\" target=\"_blank\" rel=\"noopener\">Trouble viewing? Click to open in a new tab.<\/a>]<\/section>\n<section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm2868\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=2868&theme=lumen&iframe_resize_id=ohm2868&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm2867\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=2867&theme=lumen&iframe_resize_id=ohm2867&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-1418-1\">Hoffmann, J., &amp; Cometeer. (2023, October). The Great American Coffee Taste Test [Survey data]. Distributed via TidyTuesday, 2024-05-14. https:\/\/github.com\/rfordatascience\/tidytuesday\/tree\/main\/data\/2024\/2024-05-14 <a href=\"#return-footnote-1418-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":[],"class_list":["post-1418","chapter","type-chapter","status-publish","hentry"],"part":1388,"module-header":"apply_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\/1418","targetHints":{"allow":["GET"]}}],"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":8,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1418\/revisions"}],"predecessor-version":[{"id":7183,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1418\/revisions\/7183"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/parts\/1388"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1418\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/media?parent=1418"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapter-type?post=1418"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/contributor?post=1418"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/license?post=1418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}