{"id":3204,"date":"2022-07-01T07:56:50","date_gmt":"2022-07-01T11:56:50","guid":{"rendered":"https:\/\/openbooks.macewan.ca\/rcommander\/?post_type=chapter&#038;p=3204"},"modified":"2025-05-07T18:10:11","modified_gmt":"2025-05-07T22:10:11","slug":"11-8-assignment-11","status":"publish","type":"chapter","link":"https:\/\/openbooks.macewan.ca\/introstats\/chapter\/11-8-assignment-11\/","title":{"raw":"11.8 Assignment 11","rendered":"11.8 Assignment 11"},"content":{"raw":"<h2 id=\"purposes\">Purposes<\/h2>\r\nThis assignment has two parts. The first part assesses your knowledge of conducting a chi-square goodness-of-fit test and performing a chi-square independence test using the chi-square table. The second part assesses your skills in using R commander to conduct a chi-square goodness-of-fit and chi-square independence tests.\r\n<h2>Resources<\/h2>\r\n<a href=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2022\/07\/M11_Wheel_Chisquare_Q2.xlsx\">M11_Wheel_Chisquare_Q2.xlsx<\/a>\r\n\r\n<a href=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2022\/07\/M11_BloodPressure_Age_Chisquare_Q5.xlsx\">M11_BloodPressure_Age_Chisquare_Q5.xlsx<\/a>\r\n<h2 id=\"instructions\">Instructions<\/h2>\r\n<h3><strong>Part A<\/strong><\/h3>\r\n<strong>Complete the following:<\/strong>\r\n<ol type=\"1\">\r\n \t<li>The <em>t<\/em>-table has entries for areas of 0.10, 0.05, 0.025, 0.01, and 0.005. In contrast, the [latex]\\chi^{2}[\/latex]-table has entries for those areas and for 0.995, 0.99, 0.975, 0.95, and 0.90. Explain why the <em>t<\/em>-values corresponding to these additional areas can be obtained from the existing <em>t<\/em>-table but must be provided explicitly in the [latex]\\chi^{2}[\/latex]-table. (3 marks)<\/li>\r\n \t<li>An American roulette wheel contains 18 red numbers, 18 black numbers, and 2 green numbers. The following table shows the frequency with which the ball landed on each colour in 300 trials. At the 5% significance level, do the data suggest that the wheel is out of balance? (10 marks)\r\n<table class=\"aligncenter first-col-border\" style=\"width: 100%; height: 30px;\"><colgroup> <col style=\"width: 30%;\" \/> <col style=\"width: 23%;\" \/> <col style=\"width: 23%;\" \/> <col style=\"width: 22%;\" \/> <\/colgroup>\r\n<thead>\r\n<tr class=\"header border-bottom\" style=\"height: 15px;\">\r\n<th style=\"height: 15px;\" scope=\"row\"><strong>Color<\/strong><\/th>\r\n<th style=\"height: 15px;\" scope=\"col\">Red<\/th>\r\n<th style=\"height: 15px;\" scope=\"col\">Black<\/th>\r\n<th style=\"height: 15px;\" scope=\"col\">Green<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr class=\"odd\" style=\"height: 15px;\">\r\n<th style=\"height: 15px;\" scope=\"row\"><strong>Frequency<\/strong><\/th>\r\n<td style=\"height: 15px;\">140<\/td>\r\n<td style=\"height: 15px;\">120<\/td>\r\n<td style=\"height: 15px;\">40<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n \t<li>A gambler thinks a die may not be landed on the six numbers with equal chance. To test his suspicion, he rolled the die 150 times and obtained the data in the following table. Test at the 1% significance level whether the die is balanced. (10 marks)\r\n<table class=\"aligncenter first-col-border\"><colgroup> <col style=\"width: 19%;\" \/> <col style=\"width: 14%;\" \/> <col style=\"width: 14%;\" \/> <col style=\"width: 13%;\" \/> <col style=\"width: 12%;\" \/> <col style=\"width: 12%;\" \/> <col style=\"width: 12%;\" \/> <\/colgroup>\r\n<thead>\r\n<tr class=\"header border-bottom\">\r\n<th scope=\"row\"><strong>Number<\/strong><\/th>\r\n<th scope=\"col\">1<\/th>\r\n<th scope=\"col\">2<\/th>\r\n<th scope=\"col\">3<\/th>\r\n<th scope=\"col\">4<\/th>\r\n<th scope=\"col\">5<\/th>\r\n<th scope=\"col\">6<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr class=\"odd\">\r\n<th scope=\"row\"><strong>Frequency<\/strong><\/th>\r\n<td>23<\/td>\r\n<td>26<\/td>\r\n<td>23<\/td>\r\n<td>21<\/td>\r\n<td>31<\/td>\r\n<td>26<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n \t<li>The following table reported the survey results on how members would prefer to receive ballots in annual elections. At the 5% significance level, do the data provide sufficient evidence to conclude that gender (column) and preference (row) are associated? (10 marks)\r\n<table class=\"aligncenter first-col-border last-col-border\">\r\n<thead>\r\n<tr class=\"border-bottom\">\r\n<td><\/td>\r\n<th scope=\"col\"><strong>Male<\/strong><\/th>\r\n<th scope=\"col\"><strong>Female<\/strong><\/th>\r\n<th scope=\"col\"><strong>Total<\/strong><\/th>\r\n<\/tr>\r\n<\/thead>\r\n<colgroup> <col style=\"width: 30%;\" \/> <col style=\"width: 28%;\" \/> <col style=\"width: 26%;\" \/> <col style=\"width: 15%;\" \/> <\/colgroup>\r\n<tbody>\r\n<tr>\r\n<th scope=\"row\"><strong>Mail<\/strong><\/th>\r\n<td>60<\/td>\r\n<td>30<\/td>\r\n<td>90<\/td>\r\n<\/tr>\r\n<tr>\r\n<th scope=\"row\"><strong>Email<\/strong><\/th>\r\n<td>150<\/td>\r\n<td>90<\/td>\r\n<td>240<\/td>\r\n<\/tr>\r\n<tr>\r\n<th scope=\"row\"><strong>Both<\/strong><\/th>\r\n<td>70<\/td>\r\n<td>40<\/td>\r\n<td>110<\/td>\r\n<\/tr>\r\n<tr class=\"border-bottom\">\r\n<th scope=\"row\"><strong>N\/A<\/strong><\/th>\r\n<td>80<\/td>\r\n<td>50<\/td>\r\n<td>130<\/td>\r\n<\/tr>\r\n<tr>\r\n<th scope=\"row\"><strong>Total<\/strong><\/th>\r\n<td>360<\/td>\r\n<td>210<\/td>\r\n<td>570<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n \t<li>The following table summarizes the age (column) and blood pressure (BP; row) status of 474 randomly selected Canadian adults in 2017. At the 10% significance level, do the data provide sufficient evidence to conclude that age and blood pressure are associated? (10 marks)\r\n<table class=\"aligncenter first-col-border last-col-border\">\r\n<thead>\r\n<tr class=\"border-bottom\">\r\n<td><\/td>\r\n<th scope=\"col\"><strong>Under 30<\/strong><\/th>\r\n<th scope=\"col\"><strong>30-49<\/strong><\/th>\r\n<th scope=\"col\"><strong>Over 50<\/strong><\/th>\r\n<th scope=\"col\"><strong>Total<\/strong><\/th>\r\n<\/tr>\r\n<\/thead>\r\n<colgroup> <col style=\"width: 25%;\" \/> <col style=\"width: 24%;\" \/> <col style=\"width: 18%;\" \/> <col style=\"width: 18%;\" \/> <col style=\"width: 13%;\" \/> <\/colgroup>\r\n<tbody>\r\n<tr>\r\n<th scope=\"row\"><strong>High BP<\/strong><\/th>\r\n<td>23<\/td>\r\n<td>51<\/td>\r\n<td>73<\/td>\r\n<td>147<\/td>\r\n<\/tr>\r\n<tr>\r\n<th scope=\"row\"><strong>Normal BP<\/strong><\/th>\r\n<td>48<\/td>\r\n<td>91<\/td>\r\n<td>93<\/td>\r\n<td>232<\/td>\r\n<\/tr>\r\n<tr class=\"border-bottom\">\r\n<th scope=\"row\"><strong>Low BP<\/strong><\/th>\r\n<td>27<\/td>\r\n<td>37<\/td>\r\n<td>31<\/td>\r\n<td>95<\/td>\r\n<\/tr>\r\n<tr>\r\n<th scope=\"row\"><strong>Total<\/strong><\/th>\r\n<td>98<\/td>\r\n<td>179<\/td>\r\n<td>197<\/td>\r\n<td>474<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n<\/ol>\r\n<h3><strong>Part B<\/strong><\/h3>\r\n<strong>Finish the following questions using R and R commander. Make sure that you copy and paste the computer outputs as required, and write down your answers in statements.<\/strong>\r\n<ol type=\"1\">\r\n \t<li>Refer to Question 2 in Part A. The data are provided in the data file <strong>M11_Wheel_Chisquare_Q2.xlsx<\/strong>. Import the data into R commander. Re-conduct the test in Question 2 using R commander. Make sure to include all the six components of a hypothesis test. Copy and paste the computer output first and then compare the answer with the one you obtained by hand in Question 2. (5 marks)<\/li>\r\n \t<li>Refer to Question 4 in Part A. Input the two-way table into R commander and conduct a chi-square test using R commander. Make sure to include all the six components of a hypothesis test. Copy and paste the computer output\u00a0 first and then Compare the answer with the one you obtained by hand in Question 4 in Part A. (6 marks)<\/li>\r\n \t<li>Refer to Question 5 in Part A. The data are provided in the data file <strong>M11_BloodPressure_Age_Chisquare_Q5<\/strong>.<strong>xlsx<\/strong>. Import the data into R commander. Re-conduct the test in Question 5 using R commander. Make sure to include all the six components of a hypothesis test. Copy and paste the computer output first and then compare the answer with the one you obtained by hand in Question 2. (6 marks)<\/li>\r\n<\/ol>","rendered":"<h2 id=\"purposes\">Purposes<\/h2>\n<p>This assignment has two parts. The first part assesses your knowledge of conducting a chi-square goodness-of-fit test and performing a chi-square independence test using the chi-square table. The second part assesses your skills in using R commander to conduct a chi-square goodness-of-fit and chi-square independence tests.<\/p>\n<h2>Resources<\/h2>\n<p><a href=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2022\/07\/M11_Wheel_Chisquare_Q2.xlsx\">M11_Wheel_Chisquare_Q2.xlsx<\/a><\/p>\n<p><a href=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2022\/07\/M11_BloodPressure_Age_Chisquare_Q5.xlsx\">M11_BloodPressure_Age_Chisquare_Q5.xlsx<\/a><\/p>\n<h2 id=\"instructions\">Instructions<\/h2>\n<h3><strong>Part A<\/strong><\/h3>\n<p><strong>Complete the following:<\/strong><\/p>\n<ol type=\"1\">\n<li>The <em>t<\/em>-table has entries for areas of 0.10, 0.05, 0.025, 0.01, and 0.005. In contrast, the [latex]\\chi^{2}[\/latex]-table has entries for those areas and for 0.995, 0.99, 0.975, 0.95, and 0.90. Explain why the <em>t<\/em>-values corresponding to these additional areas can be obtained from the existing <em>t<\/em>-table but must be provided explicitly in the [latex]\\chi^{2}[\/latex]-table. (3 marks)<\/li>\n<li>An American roulette wheel contains 18 red numbers, 18 black numbers, and 2 green numbers. The following table shows the frequency with which the ball landed on each colour in 300 trials. At the 5% significance level, do the data suggest that the wheel is out of balance? (10 marks)<br \/>\n<table class=\"aligncenter first-col-border\" style=\"width: 100%; height: 30px;\">\n<colgroup>\n<col style=\"width: 30%;\" \/>\n<col style=\"width: 23%;\" \/>\n<col style=\"width: 23%;\" \/>\n<col style=\"width: 22%;\" \/> <\/colgroup>\n<thead>\n<tr class=\"header border-bottom\" style=\"height: 15px;\">\n<th style=\"height: 15px;\" scope=\"row\"><strong>Color<\/strong><\/th>\n<th style=\"height: 15px;\" scope=\"col\">Red<\/th>\n<th style=\"height: 15px;\" scope=\"col\">Black<\/th>\n<th style=\"height: 15px;\" scope=\"col\">Green<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\" style=\"height: 15px;\">\n<th style=\"height: 15px;\" scope=\"row\"><strong>Frequency<\/strong><\/th>\n<td style=\"height: 15px;\">140<\/td>\n<td style=\"height: 15px;\">120<\/td>\n<td style=\"height: 15px;\">40<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>A gambler thinks a die may not be landed on the six numbers with equal chance. To test his suspicion, he rolled the die 150 times and obtained the data in the following table. Test at the 1% significance level whether the die is balanced. (10 marks)<br \/>\n<table class=\"aligncenter first-col-border\">\n<colgroup>\n<col style=\"width: 19%;\" \/>\n<col style=\"width: 14%;\" \/>\n<col style=\"width: 14%;\" \/>\n<col style=\"width: 13%;\" \/>\n<col style=\"width: 12%;\" \/>\n<col style=\"width: 12%;\" \/>\n<col style=\"width: 12%;\" \/> <\/colgroup>\n<thead>\n<tr class=\"header border-bottom\">\n<th scope=\"row\"><strong>Number<\/strong><\/th>\n<th scope=\"col\">1<\/th>\n<th scope=\"col\">2<\/th>\n<th scope=\"col\">3<\/th>\n<th scope=\"col\">4<\/th>\n<th scope=\"col\">5<\/th>\n<th scope=\"col\">6<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<th scope=\"row\"><strong>Frequency<\/strong><\/th>\n<td>23<\/td>\n<td>26<\/td>\n<td>23<\/td>\n<td>21<\/td>\n<td>31<\/td>\n<td>26<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>The following table reported the survey results on how members would prefer to receive ballots in annual elections. At the 5% significance level, do the data provide sufficient evidence to conclude that gender (column) and preference (row) are associated? (10 marks)<br \/>\n<table class=\"aligncenter first-col-border last-col-border\">\n<thead>\n<tr class=\"border-bottom\">\n<td><\/td>\n<th scope=\"col\"><strong>Male<\/strong><\/th>\n<th scope=\"col\"><strong>Female<\/strong><\/th>\n<th scope=\"col\"><strong>Total<\/strong><\/th>\n<\/tr>\n<\/thead>\n<colgroup>\n<col style=\"width: 30%;\" \/>\n<col style=\"width: 28%;\" \/>\n<col style=\"width: 26%;\" \/>\n<col style=\"width: 15%;\" \/> <\/colgroup>\n<tbody>\n<tr>\n<th scope=\"row\"><strong>Mail<\/strong><\/th>\n<td>60<\/td>\n<td>30<\/td>\n<td>90<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\"><strong>Email<\/strong><\/th>\n<td>150<\/td>\n<td>90<\/td>\n<td>240<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\"><strong>Both<\/strong><\/th>\n<td>70<\/td>\n<td>40<\/td>\n<td>110<\/td>\n<\/tr>\n<tr class=\"border-bottom\">\n<th scope=\"row\"><strong>N\/A<\/strong><\/th>\n<td>80<\/td>\n<td>50<\/td>\n<td>130<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\"><strong>Total<\/strong><\/th>\n<td>360<\/td>\n<td>210<\/td>\n<td>570<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>The following table summarizes the age (column) and blood pressure (BP; row) status of 474 randomly selected Canadian adults in 2017. At the 10% significance level, do the data provide sufficient evidence to conclude that age and blood pressure are associated? (10 marks)<br \/>\n<table class=\"aligncenter first-col-border last-col-border\">\n<thead>\n<tr class=\"border-bottom\">\n<td><\/td>\n<th scope=\"col\"><strong>Under 30<\/strong><\/th>\n<th scope=\"col\"><strong>30-49<\/strong><\/th>\n<th scope=\"col\"><strong>Over 50<\/strong><\/th>\n<th scope=\"col\"><strong>Total<\/strong><\/th>\n<\/tr>\n<\/thead>\n<colgroup>\n<col style=\"width: 25%;\" \/>\n<col style=\"width: 24%;\" \/>\n<col style=\"width: 18%;\" \/>\n<col style=\"width: 18%;\" \/>\n<col style=\"width: 13%;\" \/> <\/colgroup>\n<tbody>\n<tr>\n<th scope=\"row\"><strong>High BP<\/strong><\/th>\n<td>23<\/td>\n<td>51<\/td>\n<td>73<\/td>\n<td>147<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\"><strong>Normal BP<\/strong><\/th>\n<td>48<\/td>\n<td>91<\/td>\n<td>93<\/td>\n<td>232<\/td>\n<\/tr>\n<tr class=\"border-bottom\">\n<th scope=\"row\"><strong>Low BP<\/strong><\/th>\n<td>27<\/td>\n<td>37<\/td>\n<td>31<\/td>\n<td>95<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\"><strong>Total<\/strong><\/th>\n<td>98<\/td>\n<td>179<\/td>\n<td>197<\/td>\n<td>474<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ol>\n<h3><strong>Part B<\/strong><\/h3>\n<p><strong>Finish the following questions using R and R commander. Make sure that you copy and paste the computer outputs as required, and write down your answers in statements.<\/strong><\/p>\n<ol type=\"1\">\n<li>Refer to Question 2 in Part A. The data are provided in the data file <strong>M11_Wheel_Chisquare_Q2.xlsx<\/strong>. Import the data into R commander. Re-conduct the test in Question 2 using R commander. Make sure to include all the six components of a hypothesis test. Copy and paste the computer output first and then compare the answer with the one you obtained by hand in Question 2. (5 marks)<\/li>\n<li>Refer to Question 4 in Part A. Input the two-way table into R commander and conduct a chi-square test using R commander. Make sure to include all the six components of a hypothesis test. Copy and paste the computer output\u00a0 first and then Compare the answer with the one you obtained by hand in Question 4 in Part A. (6 marks)<\/li>\n<li>Refer to Question 5 in Part A. The data are provided in the data file <strong>M11_BloodPressure_Age_Chisquare_Q5<\/strong>.<strong>xlsx<\/strong>. Import the data into R commander. Re-conduct the test in Question 5 using R commander. Make sure to include all the six components of a hypothesis test. Copy and paste the computer output first and then compare the answer with the one you obtained by hand in Question 2. (6 marks)<\/li>\n<\/ol>\n","protected":false},"author":19,"menu_order":8,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-3204","chapter","type-chapter","status-publish","hentry"],"part":1148,"_links":{"self":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/3204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/users\/19"}],"version-history":[{"count":11,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/3204\/revisions"}],"predecessor-version":[{"id":5525,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/3204\/revisions\/5525"}],"part":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/parts\/1148"}],"metadata":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/3204\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/media?parent=3204"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapter-type?post=3204"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/contributor?post=3204"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/license?post=3204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}