{"id":128,"date":"2018-03-17T01:30:00","date_gmt":"2018-03-17T00:30:00","guid":{"rendered":"https:\/\/kindsonthegenius.com\/blog\/2018\/03\/17\/chi-square-test-for-independence-question-18-a-publisher-is-interested\/"},"modified":"2020-11-05T13:49:39","modified_gmt":"2020-11-05T12:49:39","slug":"chi-square-test-for-independence-question-18-a-publisher-is-interested","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/blog\/chi-square-test-for-independence-question-18-a-publisher-is-interested\/","title":{"rendered":"Chi-Square Test for independence &#8211; Question 18 (A publisher is interested&#8230;)"},"content":{"rendered":"<div style=\"color: #555555; font-size: 18px; line-height: 30px; text-align: justify;\">\n<div style=\"font-family: 'segoe ui';\"><span style=\"color: #cc0000;\"><span style=\"font-size: large;\"><b>Question 18<\/b><\/span><\/span><br \/>A publisher is interested in determing whinf of three book cover is most attractive. He interviews 400 people in each of the three states (Califonia, Illinois and New York), and asks each person which of the&nbsp; cover he or she prefers. The number of preference for each cover is as follows:<\/p>\n<table border=\"1\" style=\"height: 140px; width: 447px;\">\n<tbody>\n<tr>\n<td><\/td>\n<td><b>Califonia<\/b><\/td>\n<td><b>Illinois<\/b><\/td>\n<td><b>New York<\/b><\/td>\n<td><b>Total<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>First Cover<\/b><\/td>\n<td>81<\/td>\n<td>60<\/td>\n<td>182<\/td>\n<td>323<\/td>\n<\/tr>\n<tr>\n<td><b>Second Cover<\/b><\/td>\n<td>78<\/td>\n<td>93<\/td>\n<td>95<\/td>\n<td>266<\/td>\n<\/tr>\n<tr>\n<td><b>Third Cover<\/b><\/td>\n<td>241<\/td>\n<td>247<\/td>\n<td>123<\/td>\n<td>611<\/td>\n<\/tr>\n<tr>\n<td><b>Total<\/b><\/td>\n<td>400<\/td>\n<td>400<\/td>\n<td>400<\/td>\n<td>1200<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Table 1<\/p>\n<p>Do these data indicate that there are regional differences in people&#8217;s preferences concerning these covers? Use the 0.05 level of significance.<\/p>\n<p><span style=\"font-size: large;\"><span style=\"color: #274e13;\"><b>Solution Steps<\/b><\/span><\/span><br \/>As usual, we need to understand the problem and decide on which particular test to carry out.<\/p>\n<p>In  this case, since the question asks if there are regional differences in people&#8217;s preference, it means we need to test if the groups of data depends on other groups. So it would be Chi-Square test for independence. <br \/>That is the hypothesis we are going to test.<\/p>\n<p><b>Step 1: State the null and alternate hypothesis<\/b><br \/><b>H<sub>0<\/sub>:<\/b> there are no differences in peoples preference<br \/><b>H<sub>a<\/sub><\/b>: there are&nbsp; significant differneces in people&#8217;s cover<\/p>\n<p>Since  we are going to be using Excel to simplify the solving of this problem,  I have transfered the table to MS Excel. This is shown in Table 1. <a href=\"https:\/\/kindsonthegenius.com\/blog\/statistical-tables\/\" target=\"_blank\" rel=\"noopener noreferrer\">You can get the completed excel sheet from here<\/a><br \/>&nbsp; <\/p>\n<p><b>Step 2: Calculate the Expected values<\/b><br \/>In this case totals have already been calculated for us. So we go ahead to calculate the expected values.<br \/>The expected value for each cell is calculated by multiplying the row total by the column total and dividing by the grand total<\/p>\n<p>For example, the expected value for the first cell, containing 81 is given by<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-DClWWMCMpRI\/WqxlB_SH-4I\/AAAAAAAABaQ\/85TdR-Sj1SUfPIm07_6yXzQlVjA3uaUsACLcBGAs\/s1600\/Q18-Single-Expected%2Bvalue.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"82\" data-original-width=\"340\" height=\"48\" src=\"https:\/\/4.bp.blogspot.com\/-DClWWMCMpRI\/WqxlB_SH-4I\/AAAAAAAABaQ\/85TdR-Sj1SUfPIm07_6yXzQlVjA3uaUsACLcBGAs\/s200\/Q18-Single-Expected%2Bvalue.jpg\" width=\"200\" \/><\/a><\/div>\n<p>I have calculated for the rest of the values and the result is given in Table 2.<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-Zd84DneFLho\/Wqxl5kGsFdI\/AAAAAAAABac\/STDYAFfwXd02d28KqSYr1N_dx6C1m66igCLcBGAs\/s1600\/Q18-First2Tables.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"647\" data-original-width=\"794\" height=\"325\" src=\"https:\/\/4.bp.blogspot.com\/-Zd84DneFLho\/Wqxl5kGsFdI\/AAAAAAAABac\/STDYAFfwXd02d28KqSYr1N_dx6C1m66igCLcBGAs\/s400\/Q18-First2Tables.jpg\" width=\"400\" \/>&nbsp;<\/a><\/div>\n<div style=\"clear: both; text-align: center;\">Table 2<\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<p><b>Step 4: Calculate Squared Difference (O-E)2<\/b><br \/>Where O is the observed values in Table 2 and E is the expected values  calcualted in Table 3. The first squared for:<br \/>O = 81<br \/>E = 107.667<\/p>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-08Mt_l93eTk\/WqxnUGS8xBI\/AAAAAAAABao\/Shy5cSysPu8VofTtBvnLXAgaeU00WLBFQCLcBGAs\/s1600\/Q18%2BFormula%2Bfor%2BSquared%2BDifference.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"81\" data-original-width=\"531\" height=\"48\" src=\"https:\/\/3.bp.blogspot.com\/-08Mt_l93eTk\/WqxnUGS8xBI\/AAAAAAAABao\/Shy5cSysPu8VofTtBvnLXAgaeU00WLBFQCLcBGAs\/s320\/Q18%2BFormula%2Bfor%2BSquared%2BDifference.jpg\" width=\"320\" \/><\/a><\/div>\n<p>I have calculated for the rest of the values and the result is shown in Table 3 <\/p>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-OintOQvmkRg\/WqxoM8WqbCI\/AAAAAAAABa0\/35iGee3u6BQTXD14IYd_ydeRb5SFUugsgCLcBGAs\/s1600\/Q18-Table%2B3.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"642\" data-original-width=\"1371\" height=\"297\" src=\"https:\/\/3.bp.blogspot.com\/-OintOQvmkRg\/WqxoM8WqbCI\/AAAAAAAABa0\/35iGee3u6BQTXD14IYd_ydeRb5SFUugsgCLcBGAs\/s640\/Q18-Table%2B3.jpg\" width=\"640\" \/>&nbsp;<\/a><\/div>\n<div style=\"clear: both; text-align: center;\">Table 3: Squared Differences <\/div>\n<p><b>Step 5: Divide by Expected Value<\/b><br \/>This is the squared deviation you calculated in step 4 divided by the  corresponding expected values. For the first value it would be<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-frGSMS5Jhps\/WqxpU8-UQwI\/AAAAAAAABbA\/qRKj_QoEWAgj6Ayb9yxltxi_weay45NngCLcBGAs\/s1600\/Q18-Divition%2Bby%2BExpected.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"100\" data-original-width=\"373\" height=\"53\" src=\"https:\/\/2.bp.blogspot.com\/-frGSMS5Jhps\/WqxpU8-UQwI\/AAAAAAAABbA\/qRKj_QoEWAgj6Ayb9yxltxi_weay45NngCLcBGAs\/s200\/Q18-Divition%2Bby%2BExpected.jpg\" width=\"200\" \/><\/a><\/div>\n<p>I have done it for all the values and the result is tabulated in Table 4.<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-U1aZ1mFJhmg\/WqxriO8UufI\/AAAAAAAABbM\/pD3wX4l0xwAd2lkgRRR1M1MPiQBHZxuowCLcBGAs\/s1600\/Last%2BTable.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"659\" data-original-width=\"1331\" height=\"315\" src=\"https:\/\/1.bp.blogspot.com\/-U1aZ1mFJhmg\/WqxriO8UufI\/AAAAAAAABbM\/pD3wX4l0xwAd2lkgRRR1M1MPiQBHZxuowCLcBGAs\/s640\/Last%2BTable.jpg\" width=\"640\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/kindsonthegenius.com\/blog\/statistical-tables\/\" target=\"_blank\" rel=\"noopener noreferrer\">All Tables(Get this table) <\/a><\/div>\n<p><b>Step 6: Calculate the Test Statistic<\/b><br \/>This is simply the sum&nbsp; of all the values in the last table<\/p>\n<p>= 6.605 + 21.103 + 51.32 + 1.283 + 0.212 + 0.452 + 6.843 + 9.22 + 31.95<br \/><b>= 128.998<\/b><\/p>\n<p><b>Step 7: Look up the critical Value from Chi-Square table<\/b><br \/><a href=\"http:\/\/kindsonthegenius.blogspot.com\/2018\/03\/statistical-tables.html\" target=\"_blank\" rel=\"noopener noreferrer\">Get Statistical table from here <\/a><br \/>First we calcuale the degrees of freedom<br \/>df = (3-1) * (3-1) =&nbsp; 4<br \/>alpha = 0.01<\/p>\n<p>The critical value from the table of Chi-Square distribution is written as<\/p>\n<p>K<sub>0.05, 4<\/sub> = <b>14.86<\/b><\/p>\n<p><b>Step 8: State your conclusion<\/b><br \/>Since the calculated value of the test statistic is greater than the  critical value, we therefore reject the null hypothesis and conclude  that there are no differences between the groups of data.<\/p>\n<p>The whole tables are shown below, you can also <a href=\"https:\/\/kindsonthegenius.com\/blog\/statistical-tables\/\" target=\"_blank\" rel=\"noopener noreferrer\">download it for free<\/a><\/p>\n<p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Question 18A publisher is interested in determing whinf of three book cover is most attractive. He interviews 400 people in each of the three states &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[223],"tags":[],"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/128"}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":2,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":1727,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/128\/revisions\/1727"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}