{"id":98,"date":"2021-01-12T22:19:49","date_gmt":"2021-01-12T22:19:49","guid":{"rendered":"https:\/\/textbooks.jaykesler.net\/introstats\/chapter\/test-for-homogeneity\/"},"modified":"2021-05-11T20:12:57","modified_gmt":"2021-05-11T20:12:57","slug":"test-for-homogeneity","status":"publish","type":"chapter","link":"https:\/\/textbooks.jaykesler.net\/introstats\/chapter\/test-for-homogeneity\/","title":{"rendered":"Test for Homogeneity"},"content":{"raw":"<span style=\"display: none;\">\r\n[latexpage]\r\n<\/span>\r\n<div id=\"2c445a24-9229-4306-8910-4ca01e4e89ce\" class=\"chapter-content-module\" data-type=\"page\" data-cnxml-to-html-ver=\"2.1.0\">\r\n<p id=\"delete_me\">The goodness\u2013of\u2013fit test can be used to decide whether a population fits a given distribution, but it will not suffice to decide whether two populations follow the same unknown distribution. A different test, called the <span id=\"term211\" data-type=\"term\">test for homogeneity<\/span>, can be used to draw a conclusion about whether two populations have the same distribution. To calculate the test statistic for a test for homogeneity, follow the same procedure as with the test of independence.<\/p>\r\n\r\n<div id=\"eip-195\" class=\"ui-has-child-title\" data-type=\"note\" data-has-label=\"true\" data-label=\"\"><header>\r\n<h3 class=\"os-title\" data-type=\"title\"><span id=\"1\" class=\"os-title-label\" data-type=\"\">Note<\/span><\/h3>\r\n<\/header><section>\r\n<div class=\"os-note-body\">\r\n<p id=\"eip-idp34705152\">The expected value for each cell needs to be at least five in order for you to use this test.<\/p>\r\n\r\n<\/div>\r\n<\/section><\/div>\r\n<p id=\"eip-705\"><strong>Hypotheses<\/strong><\/p>\r\n<em data-effect=\"italics\">H<sub>0<\/sub><\/em>: The distributions of the two populations are the same.<span data-type=\"newline\">\r\n<\/span><em data-effect=\"italics\">H<sub>1<\/sub><\/em>: The distributions of the two populations are not the same.\r\n<p id=\"eip-703\"><strong>Test Statistic<\/strong><\/p>\r\nUse a $\\chi^2$ test statistic. It is computed in the same way as the test for independence.\r\n<p id=\"eip-577\"><strong>Degrees of Freedom (<em data-effect=\"italics\">df<\/em>)<\/strong><\/p>\r\n<em data-effect=\"italics\">df<\/em> = number of columns - 1\r\n<p id=\"eip-572\"><strong>Requirements<\/strong><\/p>\r\nAll values in the table must be greater than or equal to five.\r\n<p id=\"eip-66\"><strong>Common Uses<\/strong><\/p>\r\nComparing two populations. For example: men vs. women, before vs. after, east vs. west. The variable is categorical with more than two possible response values.\r\n<div id=\"eip-101\" class=\"ui-has-child-title\" data-type=\"example\"><header>\r\n<h3 class=\"os-title\"><span class=\"os-title-label\">Example <\/span><span class=\"os-number\">10.8<\/span><\/h3>\r\n<\/header><section>\r\n<div class=\"body\">\r\n<div id=\"eip-790\" class=\" unnumbered\" data-type=\"exercise\"><header><\/header><section>\r\n<div id=\"eip-886\" data-type=\"problem\">\r\n<div class=\"os-problem-container \">\r\n<p id=\"eip-520\">Do male and female college students have the same distribution of living arrangements? Use a level of significance of 0.05. Suppose that 250 randomly selected male college students and 300 randomly selected female college students were asked about their living arrangements: dormitory, apartment, with parents, other. The results are shown in <a class=\"autogenerated-content\" href=\"#eip-924\">Table 10.19<\/a>. Do male and female college students have the same distribution of living arrangements?<\/p>\r\n\r\n<div id=\"eip-924\" class=\"os-table \">\r\n<table summary=\"Table 10.19 Distribution of Living Arragements for College Males and College Females \" data-id=\"eip-924\">\r\n<tbody>\r\n<tr>\r\n<td><\/td>\r\n<td><strong>Dormitory<\/strong><\/td>\r\n<td><strong>Apartment<\/strong><\/td>\r\n<td><strong>With Parents<\/strong><\/td>\r\n<td><strong>Other<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>Males<\/strong><\/td>\r\n<td>72<\/td>\r\n<td>84<\/td>\r\n<td>49<\/td>\r\n<td>45<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>Females<\/strong><\/td>\r\n<td>91<\/td>\r\n<td>86<\/td>\r\n<td>88<\/td>\r\n<td>35<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<div class=\"os-caption-container\"><span class=\"os-title-label\">Table <\/span><span class=\"os-number\">10.19<\/span> <span class=\"os-title\" data-type=\"title\">Distribution of Living Arragements for College Males and College Females<\/span><\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"eip-996\" data-type=\"solution\" aria-label=\"show solution\" aria-expanded=\"false\">\r\n<div class=\"ui-toggle-wrapper\"><\/div>\r\n<section class=\"ui-body\" style=\"display: block; overflow: hidden;\" role=\"alert\">\r\n<h4 data-type=\"solution-title\"><span class=\"os-title-label\">Solution <\/span><span class=\"os-number\">10.8<\/span><\/h4>\r\n<div class=\"os-solution-container\">\r\n<p id=\"eip-724\"><em data-effect=\"italics\">H<sub>0<\/sub><\/em>: The distribution of living arrangements for male college students is the same as the distribution of living arrangements for female college students.<span data-type=\"newline\">\r\n<\/span>\r\n<span data-type=\"newline\">\r\n<\/span><em data-effect=\"italics\">H<sub>1<\/sub><\/em>: The distribution of living arrangements for male college students is not the same as the distribution of living arrangements for female college students.<span data-type=\"newline\">\r\n<\/span><span data-type=\"newline\">\r\n<\/span>\r\n<strong>Degrees of Freedom (<em data-effect=\"italics\">df<\/em>):<\/strong><span data-type=\"newline\">\r\n<\/span> <em data-effect=\"italics\">df<\/em> = number of columns \u2013 1 = 4 \u2013 1 = 3 <span data-type=\"newline\">\r\n<\/span><span data-type=\"newline\">\r\n<\/span> <strong>Distribution for the test:<\/strong><\/p>\r\n$\\chi_3^2$\r\n\r\n<strong>Create the supporting tables<\/strong>\r\n<ol>\r\n \t<li>Expand the given observed table to include the row totals and column totals.\r\n<div id=\"eip-924\" class=\"os-table \">\r\n<table style=\"width: 329px;\" summary=\"Table 10.19 Distribution of Living Arragements for College Males and College Females \" data-id=\"eip-924\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 59px;\"><\/td>\r\n<td style=\"width: 77px;\"><strong>Dormitory<\/strong><\/td>\r\n<td style=\"width: 78px;\"><strong>Apartment<\/strong><\/td>\r\n<td style=\"width: 67px;\"><strong>With Parents<\/strong><\/td>\r\n<td style=\"width: 44px;\"><strong>Other<\/strong><\/td>\r\n<td style=\"width: 4px;\"><strong>Row Totals\r\n<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 59px;\"><strong>Males<\/strong><\/td>\r\n<td style=\"width: 77px;\">72<\/td>\r\n<td style=\"width: 78px;\">84<\/td>\r\n<td style=\"width: 67px;\">49<\/td>\r\n<td style=\"width: 44px;\">45<\/td>\r\n<td style=\"width: 4px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:250}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>250<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 59px;\"><strong>Females<\/strong><\/td>\r\n<td style=\"width: 77px;\">91<\/td>\r\n<td style=\"width: 78px;\">86<\/td>\r\n<td style=\"width: 67px;\">88<\/td>\r\n<td style=\"width: 44px;\">35<\/td>\r\n<td style=\"width: 4px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:300}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>300<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 59px;\"><strong>Col Totals\r\n<\/strong><\/td>\r\n<td style=\"width: 77px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:163}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>163<\/strong><\/td>\r\n<td style=\"width: 78px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:170}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>170<\/strong><\/td>\r\n<td style=\"width: 67px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:137}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>137<\/strong><\/td>\r\n<td style=\"width: 44px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:80}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>80<\/strong><\/td>\r\n<td style=\"width: 4px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:550}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>550<\/strong><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div><\/li>\r\n \t<li>Create the table of expected values using the same formula for each value as we did with the test for independence in the previous section.\r\n$$E = \\frac{(\\text{row total})(\\text{col total})}{\\text{total num surveyed}}$$\r\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"0\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 26.0143%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:74.091}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">74.091<\/td>\r\n<td style=\"width: 23.6277%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:77.273}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">77.273<\/td>\r\n<td style=\"width: 24.5823%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:62.273}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">62.273<\/td>\r\n<td style=\"width: 25.2983%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:36.364}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">36.364<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 26.0143%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:88.909}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">88.909<\/td>\r\n<td style=\"width: 23.6277%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:92.727}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">92.727<\/td>\r\n<td style=\"width: 24.5823%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:74.727}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">74.727<\/td>\r\n<td style=\"width: 25.2983%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:43.636}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">43.636<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n \t<li>Create the $O-E$ table, subtracting the values in the second table from the values in the first table.\r\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"0\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 24.105%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-2.090999999999994}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-2.091<\/td>\r\n<td style=\"width: 23.6277%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:6.727000000000004}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">6.727<\/td>\r\n<td style=\"width: 26.4916%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-13.273000000000003}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-13.273<\/td>\r\n<td style=\"width: 25.2983%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:8.636000000000003}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">8.636<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 24.105%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:2.090999999999994}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">2.091<\/td>\r\n<td style=\"width: 23.6277%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-6.727000000000004}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-6.727<\/td>\r\n<td style=\"width: 26.4916%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:13.272999999999996}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">13.273<\/td>\r\n<td style=\"width: 25.2983%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-8.636000000000003}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-8.636<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n \t<li>Create the residuals $\\frac{(O-E)^2}{E}$ table by squaring each value in the previous $O-E$ table (step 3) and dividing each value by the values in the expected value $E$ table (step 2).\r\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"0\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 25.5814%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.059}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.059<\/td>\r\n<td style=\"width: 25.323%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.586}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.586<\/td>\r\n<td style=\"width: 24.8062%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:2.829}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">2.829<\/td>\r\n<td style=\"width: 23.7726%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:2.051}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">2.051<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25.5814%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.049}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.049<\/td>\r\n<td style=\"width: 25.323%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.488}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.488<\/td>\r\n<td style=\"width: 24.8062%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:2.358}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">2.358<\/td>\r\n<td style=\"width: 23.7726%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1.709}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">1.709<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n<\/ol>\r\n<\/div>\r\n<div class=\"os-solution-container\"><strong>Calculate the test statistic:<\/strong><\/div>\r\n<div>Add the values together in the $\\frac{(O-E)^2}{E}$ table to get the test statistic.<\/div>\r\n<div class=\"os-solution-container\"><em data-effect=\"italics\">\u03c7<\/em><sup>2<\/sup> = 10.129<span data-type=\"newline\">\r\n<\/span><span data-type=\"newline\">\r\n<\/span> <strong>Probability statement:<\/strong><\/div>\r\n<div>In the same way we did for a Test for Independence, you can use the <a href=\"\/wp-content\/uploads\/sites\/2\/2020\/11\/Chi2Distribution.pdf\">Chi Square Distribution table<\/a> to get a range for the <em>p<\/em>-value, or use the Google Sheets function CHISQ.DIST.RT, along with the test statistic <em data-effect=\"italics\">\u03c7<\/em><sup>2<\/sup> = 10.129 and the degrees of freedom\u00a0<em>df<\/em> = 3, to find the exact value.<\/div>\r\n<div><code><bdo dir=\"ltr\"><span class=\"formula-content\"><span class=\" default-formula-text-color\" dir=\"auto\">=<\/span><span class=\" default-formula-text-color\" dir=\"auto\">CHISQ.DIST.RT<\/span><span class=\" default-formula-text-color\" dir=\"auto\">(<\/span><span class=\"number\" dir=\"auto\">10.129<\/span><span class=\" default-formula-text-color\" dir=\"auto\">,<\/span><span class=\"number\" dir=\"auto\">3<\/span><span class=\" default-formula-text-color\" dir=\"auto\">)<\/span><\/span><\/bdo><\/code><\/div>\r\n<div class=\"os-solution-container\">\r\n\r\n<em data-effect=\"italics\">p<\/em>-value = <em data-effect=\"italics\">P<\/em>(<em data-effect=\"italics\">\u03c7<\/em><sup>2<\/sup> &gt;10.129) = 0.0175\r\n<p id=\"fs-idm273008\"><span data-type=\"newline\">\r\n<\/span><strong>Compare <em data-effect=\"italics\">\u03b1<\/em> and the <em data-effect=\"italics\">p<\/em>-value:<\/strong> Since no <em data-effect=\"italics\">\u03b1<\/em> is given, assume <em data-effect=\"italics\">\u03b1<\/em> = 0.05. <em data-effect=\"italics\">p<\/em>-value = 0.0175. <em data-effect=\"italics\">\u03b1<\/em> &gt; <em data-effect=\"italics\">p<\/em>-value. <span data-type=\"newline\">\r\n<\/span><span data-type=\"newline\">\r\n<\/span> <strong>Make a decision:<\/strong> Since <em data-effect=\"italics\">\u03b1<\/em> &gt; <em data-effect=\"italics\">p<\/em>-value, reject <em data-effect=\"italics\">H<sub>0<\/sub><\/em>. This means that the distributions are not the same. <span data-type=\"newline\">\r\n<\/span><span data-type=\"newline\">\r\n<\/span> <strong>Conclusion:<\/strong> At a 5% level of significance, from the data, there is sufficient evidence to conclude that the distributions of living arrangements for male and female college students are not the same.<span data-type=\"newline\">\r\n<\/span><span data-type=\"newline\">\r\n<\/span> Notice that the conclusion is only that the distributions are not the same. We cannot use the test for homogeneity to draw any conclusions about how they differ.<\/p>\r\n\r\n<div class=\"textbox\">Just like with a Test for Independence, you can find a critical value instead of a <em>p<\/em>-value. Then you compare the critical value to the test statistic to decide whether or not to reject H<sub>0<\/sub>.<\/div>\r\n&nbsp;\r\n\r\n<\/div>\r\n<\/section><\/div>\r\n<\/section><\/div>\r\n<\/div>\r\n<\/section><\/div>\r\n<div id=\"fs-idp99198384\" class=\"statistics try ui-has-child-title\" data-type=\"note\" data-has-label=\"true\" data-label=\"\"><header>\r\n<h3 class=\"os-title\"><span class=\"os-title-label\">Try It <\/span><span class=\"os-number\">10.8<\/span><\/h3>\r\n<\/header><section>\r\n<div id=\"eip-976\" class=\" unnumbered\" data-type=\"exercise\"><header><\/header><section>\r\n<div id=\"eip-39\" data-type=\"problem\">\r\n<div class=\"os-problem-container \">\r\n<p id=\"eip-658\">Do families and singles have the same distribution of cars? Use a level of significance of 0.05. Suppose that 100 randomly selected families and 200 randomly selected singles were asked what type of car they drove: sport, sedan, hatchback, truck, van\/SUV. The results are shown in <a class=\"autogenerated-content\" href=\"#eip-idm93309648\">Table 10.20<\/a>. Do families and singles have the same distribution of cars? Test at a level of significance of 0.05.<\/p>\r\n\r\n<div id=\"eip-idm93309648\" class=\"os-table \">\r\n<table summary=\"Table 10.20 \" data-id=\"eip-idm93309648\">\r\n<thead>\r\n<tr>\r\n<th scope=\"col\"><\/th>\r\n<th scope=\"col\">Sport<\/th>\r\n<th scope=\"col\">Sedan<\/th>\r\n<th scope=\"col\">Hatchback<\/th>\r\n<th scope=\"col\">Truck<\/th>\r\n<th scope=\"col\">Van\/SUV<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td>Family<\/td>\r\n<td>5<\/td>\r\n<td>15<\/td>\r\n<td>35<\/td>\r\n<td>17<\/td>\r\n<td>28<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Single<\/td>\r\n<td>45<\/td>\r\n<td>65<\/td>\r\n<td>37<\/td>\r\n<td>46<\/td>\r\n<td>7<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<div class=\"os-caption-container\"><span class=\"os-title-label\">Table <\/span><span class=\"os-number\">10.20<\/span><\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/section><\/div>\r\n<\/section><\/div>\r\n<div id=\"eip-151\" class=\"ui-has-child-title\" data-type=\"example\"><header>\r\n<h3 class=\"os-title\"><span class=\"os-title-label\">Example <\/span><span class=\"os-number\">10.9<\/span><\/h3>\r\n<\/header><section>\r\n<div class=\"body\">\r\n<div id=\"eip-692\" class=\" unnumbered\" data-type=\"exercise\"><header><\/header><section>\r\n<div id=\"eip-44\" data-type=\"problem\">\r\n<div class=\"os-problem-container \">\r\n<p id=\"eip-558\">Both before and after a recent earthquake, surveys were conducted asking voters which of the three candidates they planned on voting for in the upcoming city council election. Has there been a change since the earthquake? Use a level of significance of 0.05. <a class=\"autogenerated-content\" href=\"#eip-422\">Table 10.21<\/a> shows the results of the survey. Has there been a change in the distribution of voter preferences since the earthquake?<\/p>\r\n\r\n<div id=\"eip-422\" class=\"os-table \">\r\n<table summary=\"Table 10.21 \" data-id=\"eip-422\">\r\n<tbody>\r\n<tr>\r\n<td><\/td>\r\n<td><strong>Perez<\/strong><\/td>\r\n<td><strong>Chung<\/strong><\/td>\r\n<td><strong>Stevens<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>Before<\/strong><\/td>\r\n<td>167<\/td>\r\n<td>128<\/td>\r\n<td>135<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><strong>After<\/strong><\/td>\r\n<td>214<\/td>\r\n<td>197<\/td>\r\n<td>225<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<div class=\"os-caption-container\"><span class=\"os-title-label\">Table <\/span><span class=\"os-number\">10.21<\/span><\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"eip-156\" data-type=\"solution\" aria-label=\"show solution\" aria-expanded=\"false\">\r\n<div class=\"ui-toggle-wrapper\"><\/div>\r\n<section class=\"ui-body\" style=\"display: block; overflow: hidden;\" role=\"alert\">\r\n<h4 data-type=\"solution-title\"><span class=\"os-title-label\">Solution <\/span><span class=\"os-number\">10.9<\/span><\/h4>\r\n<div class=\"os-solution-container\">\r\n<p id=\"eip-969\"><em data-effect=\"italics\">H<sub>0<\/sub><\/em>: The distribution of voter preferences was the same before and after the earthquake. <span data-type=\"newline\">\r\n<\/span><span data-type=\"newline\">\r\n<\/span> <em data-effect=\"italics\">H<sub>1<\/sub><\/em>: The distribution of voter preferences was not the same before and after the earthquake. <span data-type=\"newline\">\r\n<\/span><span data-type=\"newline\">\r\n<\/span> <strong>Degrees of Freedom (<em data-effect=\"italics\">df<\/em>):<\/strong><span data-type=\"newline\">\r\n<\/span> <em data-effect=\"italics\">df<\/em> = number of columns \u2013 1 = 3 \u2013 1 = 2 <span data-type=\"newline\">\r\n<\/span><span data-type=\"newline\">\r\n<\/span> <strong>Distribution for the test:<\/strong> \r\n\r\n$\\chi_2^2$\r\n<div class=\"os-solution-container\">\r\n\r\n<strong>Create the supporting tables<\/strong>\r\n<ol>\r\n \t<li>Expand the given observed table to include the row totals and column totals.\r\n<div id=\"eip-924\" class=\"os-table \">\r\n<table style=\"width: 276px;\" summary=\"Table 10.19 Distribution of Living Arragements for College Males and College Females \" data-id=\"eip-924\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 61px;\"><\/td>\r\n<td style=\"width: 44px;\"><strong>Perez<\/strong><\/td>\r\n<td style=\"width: 50px;\"><strong>Chung<\/strong><\/td>\r\n<td style=\"width: 59px;\"><strong>Stevens<\/strong><\/td>\r\n<td style=\"width: 62px;\"><strong>Row Totals\r\n<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 61px;\"><strong>Before<\/strong><\/td>\r\n<td style=\"width: 44px;\">167<\/td>\r\n<td style=\"width: 50px;\">128<\/td>\r\n<td style=\"width: 59px;\">135<\/td>\r\n<td style=\"width: 62px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:430}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>430<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 61px;\"><strong>After<\/strong><\/td>\r\n<td style=\"width: 44px;\">214<\/td>\r\n<td style=\"width: 50px;\">197<\/td>\r\n<td style=\"width: 59px;\">225<\/td>\r\n<td style=\"width: 62px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:636}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>636<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 61px;\"><strong>Col Totals\r\n<\/strong><\/td>\r\n<td style=\"width: 44px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:381}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>381<\/strong><\/td>\r\n<td style=\"width: 50px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:325}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>325<\/strong><\/td>\r\n<td style=\"width: 59px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:360}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>360<\/strong><\/td>\r\n<td style=\"width: 62px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1066}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>1066<\/strong><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div><\/li>\r\n \t<li>Create the table of expected values using the same formula for each value as we did with the test for independence in the previous section.\r\n$$E = \\frac{(\\text{row total})(\\text{col total})}{\\text{total num surveyed}}$$\r\n<table style=\"width: 209px;\" border=\"0\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 69px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:153.687}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">153.687<\/td>\r\n<td style=\"width: 72px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:131.098}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">131.098<\/td>\r\n<td style=\"width: 68px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:145.216}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">145.216<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 69px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:227.313}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">227.313<\/td>\r\n<td style=\"width: 72px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:193.902}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">193.902<\/td>\r\n<td style=\"width: 68px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:214.784}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">214.784<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n \t<li>Create the $O-E$ table, subtracting the values in the second table from the values in the first table.\r\n<table style=\"width: 208px;\" border=\"0\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 70px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:13.312999999999988}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">13.313<\/td>\r\n<td style=\"width: 68px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-3.098000000000013}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-3.098<\/td>\r\n<td style=\"width: 70px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-10.216000000000008}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-10.216<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 70px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-13.312999999999988}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-13.313<\/td>\r\n<td style=\"width: 68px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:3.098000000000013}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">3.098<\/td>\r\n<td style=\"width: 70px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:10.216000000000008}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">10.216<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n \t<li>Create the residuals $\\frac{(O-E)^2}{E}$ table by squaring each value in the previous $O-E$ table (step 3) and dividing each value by the values in the expected value $E$ table (step 2).\r\n<table style=\"width: 208px;\" border=\"0\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 63px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1.153}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">1.153<\/td>\r\n<td style=\"width: 73px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.073}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.073<\/td>\r\n<td style=\"width: 72px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.719}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.719<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 63px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.78}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.78<\/td>\r\n<td style=\"width: 73px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.049}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.049<\/td>\r\n<td style=\"width: 72px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.486}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.486<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n<\/ol>\r\n<\/div>\r\n<strong>Calculate the test statistic<\/strong>:\r\n\r\n<em data-effect=\"italics\">\u03c7<sup>2<\/sup><\/em> = 3.26\r\n\r\n<strong>Critical Value<\/strong>:\r\n\r\nLook in the <em data-effect=\"italics\">\u03b1<\/em> = 0.05 column and the <em>df<\/em> = 2 row.\r\n\r\nThe critical value is 5.991\r\n\r\n<p id=\"fs-idm10889120\"><strong>Compare the test statistic and the critical value:<\/strong><\/p>\r\n3.26 &lt; 5.991\r\n<p id=\"fs-idp90106784\"><strong>Make a decision:<\/strong> Since the test statistic is less than the critical value, do not reject <em data-effect=\"italics\">H<sub>o<\/sub><\/em>.<\/p>\r\n<p id=\"fs-idm18971600\"><strong>Conclusion:<\/strong> At a 5% level of significance, from the data, there is insufficient evidence to conclude that the distribution of voter preferences was not the same before and after the earthquake.<\/p>\r\n\r\n<\/div>\r\n<\/section><\/div>\r\n<\/section><\/div>\r\n<\/div>\r\n<\/section><\/div>\r\n<div id=\"fs-idm61233888\" class=\"statistics try finger ui-has-child-title\" data-type=\"note\" data-has-label=\"true\" data-label=\"\"><header>\r\n<h3 class=\"os-title\"><span class=\"os-title-label\">Try It <\/span><span class=\"os-number\">10.9<\/span><\/h3>\r\n<\/header><section>\r\n<div id=\"eip-680\" class=\" unnumbered\" data-type=\"exercise\"><header><\/header><section>\r\n<div id=\"eip-625\" data-type=\"problem\">\r\n<div class=\"os-problem-container \">\r\n<p id=\"eip-895\">Ivy League schools receive many applications, but only some can be accepted. At the schools listed in <a class=\"autogenerated-content\" href=\"#fs-idm19368736\">Table 10.22<\/a>, two types of applications are accepted: regular and early decision.<\/p>\r\n\r\n<div id=\"fs-idm19368736\" class=\"os-table \">\r\n<table summary=\"Table 10.22 \" data-id=\"fs-idm19368736\">\r\n<thead>\r\n<tr>\r\n<th scope=\"col\">Application Type Accepted<\/th>\r\n<th scope=\"col\">Brown<\/th>\r\n<th scope=\"col\">Columbia<\/th>\r\n<th scope=\"col\">Cornell<\/th>\r\n<th scope=\"col\">Dartmouth<\/th>\r\n<th scope=\"col\">Penn<\/th>\r\n<th scope=\"col\">Yale<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td>Regular<\/td>\r\n<td>2,115<\/td>\r\n<td>1,792<\/td>\r\n<td>5,306<\/td>\r\n<td>1,734<\/td>\r\n<td>2,685<\/td>\r\n<td>1,245<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Early Decision<\/td>\r\n<td>577<\/td>\r\n<td>627<\/td>\r\n<td>1,228<\/td>\r\n<td>444<\/td>\r\n<td>1,195<\/td>\r\n<td>761<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<div class=\"os-caption-container\"><span class=\"os-title-label\">Table <\/span><span class=\"os-number\">10.22<\/span><\/div>\r\n<\/div>\r\n<p id=\"eip-896\">We want to know if the number of regular applications accepted follows the same distribution as the number of early applications accepted. State the null and alternative hypotheses, the degrees of freedom and the test statistic, sketch the graph of the <em data-effect=\"italics\">p<\/em>-value, and draw a conclusion about the test of homogeneity.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/section><\/div>\r\n<\/section><\/div>\r\n<\/div>","rendered":"<p><span style=\"display: none;\"><br \/>\n[latexpage]<br \/>\n<\/span><\/p>\n<div id=\"2c445a24-9229-4306-8910-4ca01e4e89ce\" class=\"chapter-content-module\" data-type=\"page\" data-cnxml-to-html-ver=\"2.1.0\">\n<p id=\"delete_me\">The goodness\u2013of\u2013fit test can be used to decide whether a population fits a given distribution, but it will not suffice to decide whether two populations follow the same unknown distribution. A different test, called the <span id=\"term211\" data-type=\"term\">test for homogeneity<\/span>, can be used to draw a conclusion about whether two populations have the same distribution. To calculate the test statistic for a test for homogeneity, follow the same procedure as with the test of independence.<\/p>\n<div id=\"eip-195\" class=\"ui-has-child-title\" data-type=\"note\" data-has-label=\"true\" data-label=\"\">\n<header>\n<h3 class=\"os-title\" data-type=\"title\"><span id=\"1\" class=\"os-title-label\" data-type=\"\">Note<\/span><\/h3>\n<\/header>\n<section>\n<div class=\"os-note-body\">\n<p id=\"eip-idp34705152\">The expected value for each cell needs to be at least five in order for you to use this test.<\/p>\n<\/div>\n<\/section>\n<\/div>\n<p id=\"eip-705\"><strong>Hypotheses<\/strong><\/p>\n<p><em data-effect=\"italics\">H<sub>0<\/sub><\/em>: The distributions of the two populations are the same.<span data-type=\"newline\"><br \/>\n<\/span><em data-effect=\"italics\">H<sub>1<\/sub><\/em>: The distributions of the two populations are not the same.<\/p>\n<p id=\"eip-703\"><strong>Test Statistic<\/strong><\/p>\n<p>Use a $\\chi^2$ test statistic. It is computed in the same way as the test for independence.<\/p>\n<p id=\"eip-577\"><strong>Degrees of Freedom (<em data-effect=\"italics\">df<\/em>)<\/strong><\/p>\n<p><em data-effect=\"italics\">df<\/em> = number of columns &#8211; 1<\/p>\n<p id=\"eip-572\"><strong>Requirements<\/strong><\/p>\n<p>All values in the table must be greater than or equal to five.<\/p>\n<p id=\"eip-66\"><strong>Common Uses<\/strong><\/p>\n<p>Comparing two populations. For example: men vs. women, before vs. after, east vs. west. The variable is categorical with more than two possible response values.<\/p>\n<div id=\"eip-101\" class=\"ui-has-child-title\" data-type=\"example\">\n<header>\n<h3 class=\"os-title\"><span class=\"os-title-label\">Example <\/span><span class=\"os-number\">10.8<\/span><\/h3>\n<\/header>\n<section>\n<div class=\"body\">\n<div id=\"eip-790\" class=\"unnumbered\" data-type=\"exercise\">\n<header><\/header>\n<section>\n<div id=\"eip-886\" data-type=\"problem\">\n<div class=\"os-problem-container\">\n<p id=\"eip-520\">Do male and female college students have the same distribution of living arrangements? Use a level of significance of 0.05. Suppose that 250 randomly selected male college students and 300 randomly selected female college students were asked about their living arrangements: dormitory, apartment, with parents, other. The results are shown in <a class=\"autogenerated-content\" href=\"#eip-924\">Table 10.19<\/a>. Do male and female college students have the same distribution of living arrangements?<\/p>\n<div id=\"eip-924\" class=\"os-table\">\n<table summary=\"Table 10.19 Distribution of Living Arragements for College Males and College Females\" data-id=\"eip-924\">\n<tbody>\n<tr>\n<td><\/td>\n<td><strong>Dormitory<\/strong><\/td>\n<td><strong>Apartment<\/strong><\/td>\n<td><strong>With Parents<\/strong><\/td>\n<td><strong>Other<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>Males<\/strong><\/td>\n<td>72<\/td>\n<td>84<\/td>\n<td>49<\/td>\n<td>45<\/td>\n<\/tr>\n<tr>\n<td><strong>Females<\/strong><\/td>\n<td>91<\/td>\n<td>86<\/td>\n<td>88<\/td>\n<td>35<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"os-caption-container\"><span class=\"os-title-label\">Table <\/span><span class=\"os-number\">10.19<\/span> <span class=\"os-title\" data-type=\"title\">Distribution of Living Arragements for College Males and College Females<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"eip-996\" data-type=\"solution\" aria-label=\"show solution\" aria-expanded=\"false\">\n<div class=\"ui-toggle-wrapper\"><\/div>\n<section class=\"ui-body\" style=\"display: block; overflow: hidden;\" role=\"alert\">\n<h4 data-type=\"solution-title\"><span class=\"os-title-label\">Solution <\/span><span class=\"os-number\">10.8<\/span><\/h4>\n<div class=\"os-solution-container\">\n<p id=\"eip-724\"><em data-effect=\"italics\">H<sub>0<\/sub><\/em>: The distribution of living arrangements for male college students is the same as the distribution of living arrangements for female college students.<span data-type=\"newline\"><br \/>\n<\/span><br \/>\n<span data-type=\"newline\"><br \/>\n<\/span><em data-effect=\"italics\">H<sub>1<\/sub><\/em>: The distribution of living arrangements for male college students is not the same as the distribution of living arrangements for female college students.<span data-type=\"newline\"><br \/>\n<\/span><span data-type=\"newline\"><br \/>\n<\/span><br \/>\n<strong>Degrees of Freedom (<em data-effect=\"italics\">df<\/em>):<\/strong><span data-type=\"newline\"><br \/>\n<\/span> <em data-effect=\"italics\">df<\/em> = number of columns \u2013 1 = 4 \u2013 1 = 3 <span data-type=\"newline\"><br \/>\n<\/span><span data-type=\"newline\"><br \/>\n<\/span> <strong>Distribution for the test:<\/strong><\/p>\n<p>$\\chi_3^2$<\/p>\n<p><strong>Create the supporting tables<\/strong><\/p>\n<ol>\n<li>Expand the given observed table to include the row totals and column totals.\n<div class=\"os-table\">\n<table style=\"width: 329px;\" summary=\"Table 10.19 Distribution of Living Arragements for College Males and College Females\" data-id=\"eip-924\">\n<tbody>\n<tr>\n<td style=\"width: 59px;\"><\/td>\n<td style=\"width: 77px;\"><strong>Dormitory<\/strong><\/td>\n<td style=\"width: 78px;\"><strong>Apartment<\/strong><\/td>\n<td style=\"width: 67px;\"><strong>With Parents<\/strong><\/td>\n<td style=\"width: 44px;\"><strong>Other<\/strong><\/td>\n<td style=\"width: 4px;\"><strong>Row Totals<br \/>\n<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 59px;\"><strong>Males<\/strong><\/td>\n<td style=\"width: 77px;\">72<\/td>\n<td style=\"width: 78px;\">84<\/td>\n<td style=\"width: 67px;\">49<\/td>\n<td style=\"width: 44px;\">45<\/td>\n<td style=\"width: 4px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:250}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>250<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 59px;\"><strong>Females<\/strong><\/td>\n<td style=\"width: 77px;\">91<\/td>\n<td style=\"width: 78px;\">86<\/td>\n<td style=\"width: 67px;\">88<\/td>\n<td style=\"width: 44px;\">35<\/td>\n<td style=\"width: 4px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:300}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>300<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 59px;\"><strong>Col Totals<br \/>\n<\/strong><\/td>\n<td style=\"width: 77px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:163}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>163<\/strong><\/td>\n<td style=\"width: 78px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:170}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>170<\/strong><\/td>\n<td style=\"width: 67px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:137}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>137<\/strong><\/td>\n<td style=\"width: 44px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:80}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>80<\/strong><\/td>\n<td style=\"width: 4px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:550}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>550<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/li>\n<li>Create the table of expected values using the same formula for each value as we did with the test for independence in the previous section.<br \/>\n$$E = \\frac{(\\text{row total})(\\text{col total})}{\\text{total num surveyed}}$$<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 26.0143%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:74.091}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">74.091<\/td>\n<td style=\"width: 23.6277%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:77.273}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">77.273<\/td>\n<td style=\"width: 24.5823%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:62.273}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">62.273<\/td>\n<td style=\"width: 25.2983%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:36.364}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">36.364<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 26.0143%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:88.909}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">88.909<\/td>\n<td style=\"width: 23.6277%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:92.727}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">92.727<\/td>\n<td style=\"width: 24.5823%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:74.727}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">74.727<\/td>\n<td style=\"width: 25.2983%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:43.636}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">43.636<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>Create the $O-E$ table, subtracting the values in the second table from the values in the first table.<br \/>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 24.105%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-2.090999999999994}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-2.091<\/td>\n<td style=\"width: 23.6277%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:6.727000000000004}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">6.727<\/td>\n<td style=\"width: 26.4916%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-13.273000000000003}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-13.273<\/td>\n<td style=\"width: 25.2983%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:8.636000000000003}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">8.636<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 24.105%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:2.090999999999994}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">2.091<\/td>\n<td style=\"width: 23.6277%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-6.727000000000004}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-6.727<\/td>\n<td style=\"width: 26.4916%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:13.272999999999996}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">13.273<\/td>\n<td style=\"width: 25.2983%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-8.636000000000003}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-8.636<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>Create the residuals $\\frac{(O-E)^2}{E}$ table by squaring each value in the previous $O-E$ table (step 3) and dividing each value by the values in the expected value $E$ table (step 2).<br \/>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 25.5814%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.059}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.059<\/td>\n<td style=\"width: 25.323%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.586}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.586<\/td>\n<td style=\"width: 24.8062%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:2.829}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">2.829<\/td>\n<td style=\"width: 23.7726%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:2.051}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">2.051<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25.5814%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.049}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.049<\/td>\n<td style=\"width: 25.323%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.488}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.488<\/td>\n<td style=\"width: 24.8062%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:2.358}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">2.358<\/td>\n<td style=\"width: 23.7726%;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1.709}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">1.709<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ol>\n<\/div>\n<div class=\"os-solution-container\"><strong>Calculate the test statistic:<\/strong><\/div>\n<div>Add the values together in the $\\frac{(O-E)^2}{E}$ table to get the test statistic.<\/div>\n<div class=\"os-solution-container\"><em data-effect=\"italics\">\u03c7<\/em><sup>2<\/sup> = 10.129<span data-type=\"newline\"><br \/>\n<\/span><span data-type=\"newline\"><br \/>\n<\/span> <strong>Probability statement:<\/strong><\/div>\n<div>In the same way we did for a Test for Independence, you can use the <a href=\"\/wp-content\/uploads\/sites\/2\/2020\/11\/Chi2Distribution.pdf\">Chi Square Distribution table<\/a> to get a range for the <em>p<\/em>-value, or use the Google Sheets function CHISQ.DIST.RT, along with the test statistic <em data-effect=\"italics\">\u03c7<\/em><sup>2<\/sup> = 10.129 and the degrees of freedom\u00a0<em>df<\/em> = 3, to find the exact value.<\/div>\n<div><code><bdo dir=\"ltr\"><span class=\"formula-content\"><span class=\"default-formula-text-color\" dir=\"auto\">=<\/span><span class=\"default-formula-text-color\" dir=\"auto\">CHISQ.DIST.RT<\/span><span class=\"default-formula-text-color\" dir=\"auto\">(<\/span><span class=\"number\" dir=\"auto\">10.129<\/span><span class=\"default-formula-text-color\" dir=\"auto\">,<\/span><span class=\"number\" dir=\"auto\">3<\/span><span class=\"default-formula-text-color\" dir=\"auto\">)<\/span><\/span><\/bdo><\/code><\/div>\n<div class=\"os-solution-container\">\n<p><em data-effect=\"italics\">p<\/em>-value = <em data-effect=\"italics\">P<\/em>(<em data-effect=\"italics\">\u03c7<\/em><sup>2<\/sup> &gt;10.129) = 0.0175<\/p>\n<p id=\"fs-idm273008\"><span data-type=\"newline\"><br \/>\n<\/span><strong>Compare <em data-effect=\"italics\">\u03b1<\/em> and the <em data-effect=\"italics\">p<\/em>-value:<\/strong> Since no <em data-effect=\"italics\">\u03b1<\/em> is given, assume <em data-effect=\"italics\">\u03b1<\/em> = 0.05. <em data-effect=\"italics\">p<\/em>-value = 0.0175. <em data-effect=\"italics\">\u03b1<\/em> &gt; <em data-effect=\"italics\">p<\/em>-value. <span data-type=\"newline\"><br \/>\n<\/span><span data-type=\"newline\"><br \/>\n<\/span> <strong>Make a decision:<\/strong> Since <em data-effect=\"italics\">\u03b1<\/em> &gt; <em data-effect=\"italics\">p<\/em>-value, reject <em data-effect=\"italics\">H<sub>0<\/sub><\/em>. This means that the distributions are not the same. <span data-type=\"newline\"><br \/>\n<\/span><span data-type=\"newline\"><br \/>\n<\/span> <strong>Conclusion:<\/strong> At a 5% level of significance, from the data, there is sufficient evidence to conclude that the distributions of living arrangements for male and female college students are not the same.<span data-type=\"newline\"><br \/>\n<\/span><span data-type=\"newline\"><br \/>\n<\/span> Notice that the conclusion is only that the distributions are not the same. We cannot use the test for homogeneity to draw any conclusions about how they differ.<\/p>\n<div class=\"textbox\">Just like with a Test for Independence, you can find a critical value instead of a <em>p<\/em>-value. Then you compare the critical value to the test statistic to decide whether or not to reject H<sub>0<\/sub>.<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<\/section>\n<\/div>\n<\/section>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<div id=\"fs-idp99198384\" class=\"statistics try ui-has-child-title\" data-type=\"note\" data-has-label=\"true\" data-label=\"\">\n<header>\n<h3 class=\"os-title\"><span class=\"os-title-label\">Try It <\/span><span class=\"os-number\">10.8<\/span><\/h3>\n<\/header>\n<section>\n<div id=\"eip-976\" class=\"unnumbered\" data-type=\"exercise\">\n<header><\/header>\n<section>\n<div id=\"eip-39\" data-type=\"problem\">\n<div class=\"os-problem-container\">\n<p id=\"eip-658\">Do families and singles have the same distribution of cars? Use a level of significance of 0.05. Suppose that 100 randomly selected families and 200 randomly selected singles were asked what type of car they drove: sport, sedan, hatchback, truck, van\/SUV. The results are shown in <a class=\"autogenerated-content\" href=\"#eip-idm93309648\">Table 10.20<\/a>. Do families and singles have the same distribution of cars? Test at a level of significance of 0.05.<\/p>\n<div id=\"eip-idm93309648\" class=\"os-table\">\n<table summary=\"Table 10.20\" data-id=\"eip-idm93309648\">\n<thead>\n<tr>\n<th scope=\"col\"><\/th>\n<th scope=\"col\">Sport<\/th>\n<th scope=\"col\">Sedan<\/th>\n<th scope=\"col\">Hatchback<\/th>\n<th scope=\"col\">Truck<\/th>\n<th scope=\"col\">Van\/SUV<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Family<\/td>\n<td>5<\/td>\n<td>15<\/td>\n<td>35<\/td>\n<td>17<\/td>\n<td>28<\/td>\n<\/tr>\n<tr>\n<td>Single<\/td>\n<td>45<\/td>\n<td>65<\/td>\n<td>37<\/td>\n<td>46<\/td>\n<td>7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"os-caption-container\"><span class=\"os-title-label\">Table <\/span><span class=\"os-number\">10.20<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/section>\n<\/div>\n<div id=\"eip-151\" class=\"ui-has-child-title\" data-type=\"example\">\n<header>\n<h3 class=\"os-title\"><span class=\"os-title-label\">Example <\/span><span class=\"os-number\">10.9<\/span><\/h3>\n<\/header>\n<section>\n<div class=\"body\">\n<div id=\"eip-692\" class=\"unnumbered\" data-type=\"exercise\">\n<header><\/header>\n<section>\n<div id=\"eip-44\" data-type=\"problem\">\n<div class=\"os-problem-container\">\n<p id=\"eip-558\">Both before and after a recent earthquake, surveys were conducted asking voters which of the three candidates they planned on voting for in the upcoming city council election. Has there been a change since the earthquake? Use a level of significance of 0.05. <a class=\"autogenerated-content\" href=\"#eip-422\">Table 10.21<\/a> shows the results of the survey. Has there been a change in the distribution of voter preferences since the earthquake?<\/p>\n<div id=\"eip-422\" class=\"os-table\">\n<table summary=\"Table 10.21\" data-id=\"eip-422\">\n<tbody>\n<tr>\n<td><\/td>\n<td><strong>Perez<\/strong><\/td>\n<td><strong>Chung<\/strong><\/td>\n<td><strong>Stevens<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>Before<\/strong><\/td>\n<td>167<\/td>\n<td>128<\/td>\n<td>135<\/td>\n<\/tr>\n<tr>\n<td><strong>After<\/strong><\/td>\n<td>214<\/td>\n<td>197<\/td>\n<td>225<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"os-caption-container\"><span class=\"os-title-label\">Table <\/span><span class=\"os-number\">10.21<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"eip-156\" data-type=\"solution\" aria-label=\"show solution\" aria-expanded=\"false\">\n<div class=\"ui-toggle-wrapper\"><\/div>\n<section class=\"ui-body\" style=\"display: block; overflow: hidden;\" role=\"alert\">\n<h4 data-type=\"solution-title\"><span class=\"os-title-label\">Solution <\/span><span class=\"os-number\">10.9<\/span><\/h4>\n<div class=\"os-solution-container\">\n<p id=\"eip-969\"><em data-effect=\"italics\">H<sub>0<\/sub><\/em>: The distribution of voter preferences was the same before and after the earthquake. <span data-type=\"newline\"><br \/>\n<\/span><span data-type=\"newline\"><br \/>\n<\/span> <em data-effect=\"italics\">H<sub>1<\/sub><\/em>: The distribution of voter preferences was not the same before and after the earthquake. <span data-type=\"newline\"><br \/>\n<\/span><span data-type=\"newline\"><br \/>\n<\/span> <strong>Degrees of Freedom (<em data-effect=\"italics\">df<\/em>):<\/strong><span data-type=\"newline\"><br \/>\n<\/span> <em data-effect=\"italics\">df<\/em> = number of columns \u2013 1 = 3 \u2013 1 = 2 <span data-type=\"newline\"><br \/>\n<\/span><span data-type=\"newline\"><br \/>\n<\/span> <strong>Distribution for the test:<\/strong> <\/p>\n<p>$\\chi_2^2$\n<\/p>\n<div class=\"os-solution-container\">\n<p><strong>Create the supporting tables<\/strong><\/p>\n<ol>\n<li>Expand the given observed table to include the row totals and column totals.\n<div class=\"os-table\">\n<table style=\"width: 276px;\" summary=\"Table 10.19 Distribution of Living Arragements for College Males and College Females\" data-id=\"eip-924\">\n<tbody>\n<tr>\n<td style=\"width: 61px;\"><\/td>\n<td style=\"width: 44px;\"><strong>Perez<\/strong><\/td>\n<td style=\"width: 50px;\"><strong>Chung<\/strong><\/td>\n<td style=\"width: 59px;\"><strong>Stevens<\/strong><\/td>\n<td style=\"width: 62px;\"><strong>Row Totals<br \/>\n<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 61px;\"><strong>Before<\/strong><\/td>\n<td style=\"width: 44px;\">167<\/td>\n<td style=\"width: 50px;\">128<\/td>\n<td style=\"width: 59px;\">135<\/td>\n<td style=\"width: 62px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:430}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>430<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 61px;\"><strong>After<\/strong><\/td>\n<td style=\"width: 44px;\">214<\/td>\n<td style=\"width: 50px;\">197<\/td>\n<td style=\"width: 59px;\">225<\/td>\n<td style=\"width: 62px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:636}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>636<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 61px;\"><strong>Col Totals<br \/>\n<\/strong><\/td>\n<td style=\"width: 44px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:381}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>381<\/strong><\/td>\n<td style=\"width: 50px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:325}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>325<\/strong><\/td>\n<td style=\"width: 59px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:360}\" data-sheets-formula=\"=sum(R[-2]C[0]:R[-1]C[0])\"><strong>360<\/strong><\/td>\n<td style=\"width: 62px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1066}\" data-sheets-formula=\"=sum(R[0]C[-4]:R[0]C[-1])\"><strong>1066<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/li>\n<li>Create the table of expected values using the same formula for each value as we did with the test for independence in the previous section.<br \/>\n$$E = \\frac{(\\text{row total})(\\text{col total})}{\\text{total num surveyed}}$$<\/p>\n<table style=\"width: 209px;\">\n<tbody>\n<tr>\n<td style=\"width: 69px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:153.687}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">153.687<\/td>\n<td style=\"width: 72px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:131.098}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">131.098<\/td>\n<td style=\"width: 68px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:145.216}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">145.216<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 69px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:227.313}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">227.313<\/td>\n<td style=\"width: 72px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:193.902}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">193.902<\/td>\n<td style=\"width: 68px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:214.784}\" data-sheets-formula=\"=round(R[-4]C6*R3C[0]\/R3C6,3)\">214.784<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>Create the $O-E$ table, subtracting the values in the second table from the values in the first table.<br \/>\n<table style=\"width: 208px;\">\n<tbody>\n<tr>\n<td style=\"width: 70px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:13.312999999999988}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">13.313<\/td>\n<td style=\"width: 68px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-3.098000000000013}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-3.098<\/td>\n<td style=\"width: 70px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-10.216000000000008}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-10.216<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 70px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:-13.312999999999988}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">-13.313<\/td>\n<td style=\"width: 68px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:3.098000000000013}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">3.098<\/td>\n<td style=\"width: 70px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:10.216000000000008}\" data-sheets-formula=\"=R[-8]C[0]-R[-4]C[0]\">10.216<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>Create the residuals $\\frac{(O-E)^2}{E}$ table by squaring each value in the previous $O-E$ table (step 3) and dividing each value by the values in the expected value $E$ table (step 2).<br \/>\n<table style=\"width: 208px;\">\n<tbody>\n<tr>\n<td style=\"width: 63px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1.153}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">1.153<\/td>\n<td style=\"width: 73px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.073}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.073<\/td>\n<td style=\"width: 72px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.719}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.719<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 63px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.78}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.78<\/td>\n<td style=\"width: 73px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.049}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.049<\/td>\n<td style=\"width: 72px;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.486}\" data-sheets-formula=\"=round(R[-4]C[0]^2\/R[-8]C[0],3)\">0.486<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ol>\n<\/div>\n<p><strong>Calculate the test statistic<\/strong>:<\/p>\n<p><em data-effect=\"italics\">\u03c7<sup>2<\/sup><\/em> = 3.26<\/p>\n<p><strong>Critical Value<\/strong>:<\/p>\n<p>Look in the <em data-effect=\"italics\">\u03b1<\/em> = 0.05 column and the <em>df<\/em> = 2 row.<\/p>\n<p>The critical value is 5.991<\/p>\n<p id=\"fs-idm10889120\"><strong>Compare the test statistic and the critical value:<\/strong><\/p>\n<p>3.26 &lt; 5.991<\/p>\n<p id=\"fs-idp90106784\"><strong>Make a decision:<\/strong> Since the test statistic is less than the critical value, do not reject <em data-effect=\"italics\">H<sub>o<\/sub><\/em>.<\/p>\n<p id=\"fs-idm18971600\"><strong>Conclusion:<\/strong> At a 5% level of significance, from the data, there is insufficient evidence to conclude that the distribution of voter preferences was not the same before and after the earthquake.<\/p>\n<\/div>\n<\/section>\n<\/div>\n<\/section>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<div id=\"fs-idm61233888\" class=\"statistics try finger ui-has-child-title\" data-type=\"note\" data-has-label=\"true\" data-label=\"\">\n<header>\n<h3 class=\"os-title\"><span class=\"os-title-label\">Try It <\/span><span class=\"os-number\">10.9<\/span><\/h3>\n<\/header>\n<section>\n<div id=\"eip-680\" class=\"unnumbered\" data-type=\"exercise\">\n<header><\/header>\n<section>\n<div id=\"eip-625\" data-type=\"problem\">\n<div class=\"os-problem-container\">\n<p id=\"eip-895\">Ivy League schools receive many applications, but only some can be accepted. At the schools listed in <a class=\"autogenerated-content\" href=\"#fs-idm19368736\">Table 10.22<\/a>, two types of applications are accepted: regular and early decision.<\/p>\n<div id=\"fs-idm19368736\" class=\"os-table\">\n<table summary=\"Table 10.22\" data-id=\"fs-idm19368736\">\n<thead>\n<tr>\n<th scope=\"col\">Application Type Accepted<\/th>\n<th scope=\"col\">Brown<\/th>\n<th scope=\"col\">Columbia<\/th>\n<th scope=\"col\">Cornell<\/th>\n<th scope=\"col\">Dartmouth<\/th>\n<th scope=\"col\">Penn<\/th>\n<th scope=\"col\">Yale<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Regular<\/td>\n<td>2,115<\/td>\n<td>1,792<\/td>\n<td>5,306<\/td>\n<td>1,734<\/td>\n<td>2,685<\/td>\n<td>1,245<\/td>\n<\/tr>\n<tr>\n<td>Early Decision<\/td>\n<td>577<\/td>\n<td>627<\/td>\n<td>1,228<\/td>\n<td>444<\/td>\n<td>1,195<\/td>\n<td>761<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"os-caption-container\"><span class=\"os-title-label\">Table <\/span><span class=\"os-number\">10.22<\/span><\/div>\n<\/div>\n<p id=\"eip-896\">We want to know if the number of regular applications accepted follows the same distribution as the number of early applications accepted. State the null and alternative hypotheses, the degrees of freedom and the test statistic, sketch the graph of the <em data-effect=\"italics\">p<\/em>-value, and draw a conclusion about the test of homogeneity.<\/p>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/section>\n<\/div>\n<\/div>\n","protected":false},"author":1,"menu_order":4,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-98","chapter","type-chapter","status-publish","hentry"],"part":89,"_links":{"self":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapters\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":4,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapters\/98\/revisions"}],"predecessor-version":[{"id":395,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapters\/98\/revisions\/395"}],"part":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/parts\/89"}],"metadata":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapters\/98\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapter-type?post=98"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/contributor?post=98"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/license?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}