{"id":298,"date":"2021-07-14T15:59:09","date_gmt":"2021-07-14T15:59:09","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/chapter\/test-for-homogeneity\/"},"modified":"2023-12-05T09:43:02","modified_gmt":"2023-12-05T09:43:02","slug":"test-for-homogeneity","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/chapter\/test-for-homogeneity\/","title":{"raw":"Chi-Square Test of Homogeneity","rendered":"Chi-Square Test of Homogeneity"},"content":{"raw":"<div class=\"textbox learning-objectives\">\r\n<h3>Learning Outcomes<\/h3>\r\n<section>\r\n<ul id=\"element-377\" data-bullet-style=\"bullet\">\r\n \t<li>Conduct a chi-square test of homogeneity and interpret the conclusion in context<\/li>\r\n<\/ul>\r\n<\/section><\/div>\r\nThe 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\u00a0<strong>test for homogeneity<\/strong>, 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.\r\n\r\n<strong>Note: <\/strong>The expected value for each cell needs to be at least five in order for you to use this test.\r\n<h4>Hypotheses<\/h4>\r\n<em>H<sub data-redactor-tag=\"sub\">0<\/sub><\/em>: The distributions of the two populations are the same.\r\n\r\n<em>H<sub data-redactor-tag=\"sub\">a<\/sub><\/em>: The distributions of the two populations are not the same.\r\n<h4>Test Statistic<\/h4>\r\nUse a\u00a0<em>X<sup>2<\/sup><\/em> test statistic. It is computed in the same way as the test for independence.\r\n<h4>Degrees of Freedom (df)<\/h4>\r\n<em>df<\/em> = number of columns \u2013 1\r\n<h4>Requirements<\/h4>\r\nAll values in the table must be greater than or equal to five.\r\n<h4>Common Uses<\/h4>\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 class=\"textbox exercises\">\r\n<h3>Example 1<\/h3>\r\nDo 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 the table below. Do male and female college students have the same distribution of living arrangements?\r\n<table>\r\n<thead>\r\n<tr>\r\n<th colspan=\"5\">Distribution of Living Arrangements for College Males and College Females<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<th><\/th>\r\n<th>Dormitory<\/th>\r\n<th>Apartment<\/th>\r\n<th>With Parents<\/th>\r\n<th>Other<\/th>\r\n<\/tr>\r\n<tr>\r\n<td>Males<\/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>Females<\/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[reveal-answer q=\"605451\"]Show Answer[\/reveal-answer]\r\n[hidden-answer a=\"605451\"]\r\n\r\n<em>H<sub data-redactor-tag=\"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.\r\n\r\n<em>H<sub data-redactor-tag=\"sub\">a<\/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.\r\n\r\n<strong>Degrees of Freedom (<em data-redactor-tag=\"em\">df<\/em>): <\/strong><em>df<\/em> = number of columns \u2013 1 = 4 \u2013 1 = 3\r\n\r\n<strong>Distribution for the test: <\/strong>[latex]\\displaystyle\\chi^2_3[\/latex]\r\n\r\n<strong>Calculate the test statistic:<\/strong> <em data-effect=\"italics\">\u03c7<\/em><sup>2<\/sup> = 10.1287 (calculator or computer)\r\n\r\n<strong>Probability statement:<\/strong> <em data-effect=\"italics\">p<\/em>-value = <em data-effect=\"italics\">P<\/em>(<em data-effect=\"italics\">\u03c7<\/em><sup>2<\/sup> &gt;10.1287) = 0.0175\r\n\r\n<strong>Using a calculator:<\/strong>\r\n<div id=\"eip-101\" class=\"example\" data-type=\"example\"><section>\r\n<div class=\"exercise\" data-type=\"exercise\"><section>\r\n<div id=\"eip-996\" class=\"solution ui-solution-visible\" data-type=\"solution\">\r\n<ul>\r\n \t<li>Press the <code>MATRX<\/code> key and arrow over to <code>EDIT<\/code>.<\/li>\r\n \t<li>Press <code>1:[A]<\/code>. Press <code>2 ENTER 4 ENTER<\/code>. Enter the table values by row. Press <code>ENTER<\/code> after each.<\/li>\r\n \t<li>Press <code>2nd QUIT<\/code>. Press <code>STAT,<\/code> and arrow over to <code>TESTS<\/code>.<\/li>\r\n \t<li>Arrow down to <code>C:\u03c72-TEST<\/code>. Press <code>ENTER<\/code>. You should see <code>Observed:[A] and Expected:[B]<\/code>.<\/li>\r\n \t<li>Arrow down to <code>Calculate<\/code>. Press <code>ENTER<\/code>. The test statistic is 10.1287 and the <em data-effect=\"italics\">p<\/em>-value = 0.0175.<\/li>\r\n \t<li>Do the procedure a second time but arrow down to <code>Draw<\/code> instead of <code>calculate<\/code>.<\/li>\r\n<\/ul>\r\n<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.\r\n\r\n<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.\r\n\r\n<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.\r\n\r\nNotice 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.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<\/section><\/div>\r\n<\/section><\/div>\r\n<\/div>\r\n<div id=\"fs-idp99198384\" class=\"note statistics try ui-has-child-title\" data-type=\"note\" data-has-label=\"true\" data-label=\"\"><header>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it 1<\/h3>\r\n<section>\r\n<div class=\"exercise\" data-type=\"exercise\"><section>\r\n<div id=\"eip-39\" class=\"problem\" data-type=\"problem\">\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 the table. Do families and singles have the same distribution of cars? Test at a level of significance of 0.05.<\/p>\r\n\r\n<table id=\"eip-idm93309648\" summary=\"\">\r\n<thead>\r\n<tr>\r\n<th><\/th>\r\n<th>Sport<\/th>\r\n<th>Sedan<\/th>\r\n<th>Hatchback<\/th>\r\n<th>Truck<\/th>\r\n<th>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[reveal-answer q=\"59220\"]Show Answer[\/reveal-answer]\r\n[hidden-answer a=\"59220\"]\r\n\r\nWith a p-value of almost zero, we reject the null hypothesis. The data show that the distribution of cars is not the same for families and singles.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<\/section><\/div>\r\n<\/section><\/div>\r\n<\/header><section>\r\n<div class=\"exercise\" data-type=\"exercise\"><section>\r\n<div id=\"eip-idp127134288\" class=\"solution ui-solution-visible\" data-type=\"solution\" data-label=\"\"><section class=\"ui-body\">\r\n<div class=\"textbox exercises\">\r\n<h3>Example 2<\/h3>\r\n<div class=\"example\" data-type=\"example\"><section>\r\n<div class=\"exercise\" data-type=\"exercise\"><section>\r\n<div class=\"problem\" data-type=\"problem\">\r\n\r\nBoth 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. The table below\u00a0shows the results of the survey. Has there been a change in the distribution of voter preferences since the earthquake?\r\n<table summary=\"The table contains the number of votes 3 candidates (Perez, Chung, Stevens) could receive before and after an earthquake from a survey. First row: 167; 128; 135; Second row: 214; 197; 225;\">\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<p class=\"ui-toggle-wrapper\">[reveal-answer q=\"704988\"]Show Answer[\/reveal-answer]\r\n[hidden-answer a=\"704988\"]<\/p>\r\n<em data-effect=\"italics\">H<sub>0<\/sub><\/em>: The distribution of voter preferences was the same before and after the earthquake.\r\n\r\n<em data-effect=\"italics\">H<sub>a<\/sub><\/em>: The distribution of voter preferences was not the same before and after the earthquake.\r\n\r\n<strong>Degrees of Freedom (<em data-effect=\"italics\">df<\/em>):\u00a0<\/strong><em data-effect=\"italics\">df<\/em> = number of columns \u2013 1 = 3 \u2013 1 = 2\r\n\r\n<strong>Distribution for the test:<\/strong>\u00a0[latex]\\chi^2_2[\/latex]\r\n\r\n<strong>Calculate the test statistic<\/strong>: <em data-effect=\"italics\">\u03c7<sup>2<\/sup><\/em> = 3.2603 (calculator or computer)\r\n\r\n<strong>Probability statement:<\/strong> <em data-effect=\"italics\">p<\/em>-value =\u00a0<em data-effect=\"italics\">P<\/em>(<em data-effect=\"italics\">\u03c7<sup>2<\/sup><\/em> &gt; 3.2603) = 0.1959\r\n\r\n<strong>Using a calculator:<\/strong>\r\n<div>\r\n<ul>\r\n \t<li>Press the <code>MATRX<\/code> key and arrow over to <code>EDIT<\/code>. Press <code>1:[A]<\/code>.<\/li>\r\n \t<li>Press <code>2 ENTER 3 ENTER<\/code>. Enter the table values by row. Press <code>ENTER<\/code> after each.<\/li>\r\n \t<li>Press <code>2nd QUIT<\/code>. Press <code>STAT,<\/code> and arrow over to <code>TESTS<\/code>.<\/li>\r\n \t<li>Arrow down to <code>C:\u03c72-TEST<\/code>. Press <code>ENTER<\/code>. You should see<code>Observed:[A] and Expected:[B]<\/code>.<\/li>\r\n \t<li>Arrow down to <code>Calculate<\/code>. Press <code>ENTER<\/code>. The test statistic is 3.2603 and the <em data-effect=\"italics\">p<\/em>-value = 0.1959.<\/li>\r\n \t<li>Do the procedure a second time but arrow down to <code>Draw<\/code> instead of <code>calculate<\/code>.<\/li>\r\n<\/ul>\r\n<\/div>\r\n<strong>Compare <em data-effect=\"italics\">\u03b1<\/em> and the <em data-effect=\"italics\">p<\/em>-value:<\/strong> <em data-effect=\"italics\">\u03b1<\/em> = 0.05 and the <em data-effect=\"italics\">p<\/em>-value = 0.1959. <em data-effect=\"italics\">\u03b1<\/em> &lt; <em data-effect=\"italics\">p<\/em>-value.\r\n\r\n<strong>Make a decision:<\/strong> Since <em data-effect=\"italics\">\u03b1<\/em> &lt; <em data-effect=\"italics\">p<\/em>-value, do not reject <em data-effect=\"italics\">H<sub>o<\/sub><\/em>.\r\n\r\n<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.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<\/section><\/div>\r\n<\/section><\/div>\r\n<\/div>\r\n<\/section><\/div>\r\n<\/section><\/div>\r\n<\/section><\/div>\r\n<div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it 2<\/h3>\r\n<div class=\"exercise\" data-type=\"exercise\">\r\n<div class=\"problem\" data-type=\"problem\">\r\n\r\nIvy League schools receive many applications, but only some can be accepted. At the schools listed in the table, two types of applications are accepted: regular and early decision.\r\n\r\n<\/div>\r\n<table id=\"fs-idm19368736\" summary=\"..\">\r\n<thead>\r\n<tr>\r\n<th>Application Type Accepted<\/th>\r\n<th>Brown<\/th>\r\n<th>Columbia<\/th>\r\n<th>Cornell<\/th>\r\n<th>Dartmouth<\/th>\r\n<th>Penn<\/th>\r\n<th>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\nWe 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.\r\n[reveal-answer q=\"870419\"]Show Answer[\/reveal-answer]\r\n[hidden-answer a=\"870419\"]\r\n\r\n<em>H<sub>0<\/sub><\/em>: The distribution of regular applications accepted is the same as the distribution of early applications accepted.\r\n\r\n<em>H<sub>a<\/sub><\/em>: The distribution of regular applications accepted is not the same as the distribution of early applications accepted.\r\n\r\n<em>df<\/em> = 5\r\n\r\n<em>X<sup>2<\/sup><\/em><sup>\u00a0<\/sup>test statistic = 430.06\r\n\r\n<img class=\"alignnone wp-image-1499 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5668\/2021\/07\/25004147\/Try-It-21.jpeg\" alt=\"\" width=\"487\" height=\"167\" \/>\r\n\r\n<strong>Using a calculator:<\/strong>\r\n<ul>\r\n \t<li>Press the <code>MATRX<\/code> key and arrow over to <code>EDIT<\/code>. Press <code>1:[A]<\/code>.<\/li>\r\n \t<li>Press <code>3 ENTER 3 ENTER<\/code>. Enter the table values by row. Press <code>ENTER<\/code> after each.<\/li>\r\n \t<li>Press <code>2nd QUIT<\/code>. Press <code>STAT,<\/code> and arrow over to <code>TESTS<\/code>.<\/li>\r\n \t<li>Arrow down to <code>C:\u03c72-TEST<\/code>. Press <code>ENTER<\/code>. You should see <code>Observed:[A] and Expected:[B]<\/code>.<\/li>\r\n \t<li>Arrow down to <code>Calculate<\/code>. Press <code>ENTER<\/code>. The test statistic is 430.06 and the <em>p<\/em>-value = 9.80E-91.<\/li>\r\n \t<li>Do the procedure a second time but arrow down to <code>Draw<\/code> instead of <code>calculate<\/code>.<\/li>\r\n<\/ul>\r\n<span style=\"font-size: 1rem; text-align: initial;\">[\/hidden-answer]<\/span>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>","rendered":"<div class=\"textbox learning-objectives\">\n<h3>Learning Outcomes<\/h3>\n<section>\n<ul id=\"element-377\" data-bullet-style=\"bullet\">\n<li>Conduct a chi-square test of homogeneity and interpret the conclusion in context<\/li>\n<\/ul>\n<\/section>\n<\/div>\n<p>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\u00a0<strong>test for homogeneity<\/strong>, 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<p><strong>Note: <\/strong>The expected value for each cell needs to be at least five in order for you to use this test.<\/p>\n<h4>Hypotheses<\/h4>\n<p><em>H<sub data-redactor-tag=\"sub\">0<\/sub><\/em>: The distributions of the two populations are the same.<\/p>\n<p><em>H<sub data-redactor-tag=\"sub\">a<\/sub><\/em>: The distributions of the two populations are not the same.<\/p>\n<h4>Test Statistic<\/h4>\n<p>Use a\u00a0<em>X<sup>2<\/sup><\/em> test statistic. It is computed in the same way as the test for independence.<\/p>\n<h4>Degrees of Freedom (df)<\/h4>\n<p><em>df<\/em> = number of columns \u2013 1<\/p>\n<h4>Requirements<\/h4>\n<p>All values in the table must be greater than or equal to five.<\/p>\n<h4>Common Uses<\/h4>\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 class=\"textbox exercises\">\n<h3>Example 1<\/h3>\n<p>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 the table below. Do male and female college students have the same distribution of living arrangements?<\/p>\n<table>\n<thead>\n<tr>\n<th colspan=\"5\">Distribution of Living Arrangements for College Males and College Females<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th><\/th>\n<th>Dormitory<\/th>\n<th>Apartment<\/th>\n<th>With Parents<\/th>\n<th>Other<\/th>\n<\/tr>\n<tr>\n<td>Males<\/td>\n<td>72<\/td>\n<td>84<\/td>\n<td>49<\/td>\n<td>45<\/td>\n<\/tr>\n<tr>\n<td>Females<\/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=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q605451\">Show Answer<\/span><\/p>\n<div id=\"q605451\" class=\"hidden-answer\" style=\"display: none\">\n<p><em>H<sub data-redactor-tag=\"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.<\/p>\n<p><em>H<sub data-redactor-tag=\"sub\">a<\/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.<\/p>\n<p><strong>Degrees of Freedom (<em data-redactor-tag=\"em\">df<\/em>): <\/strong><em>df<\/em> = number of columns \u2013 1 = 4 \u2013 1 = 3<\/p>\n<p><strong>Distribution for the test: <\/strong>[latex]\\displaystyle\\chi^2_3[\/latex]<\/p>\n<p><strong>Calculate the test statistic:<\/strong> <em data-effect=\"italics\">\u03c7<\/em><sup>2<\/sup> = 10.1287 (calculator or computer)<\/p>\n<p><strong>Probability statement:<\/strong> <em data-effect=\"italics\">p<\/em>-value = <em data-effect=\"italics\">P<\/em>(<em data-effect=\"italics\">\u03c7<\/em><sup>2<\/sup> &gt;10.1287) = 0.0175<\/p>\n<p><strong>Using a calculator:<\/strong><\/p>\n<div id=\"eip-101\" class=\"example\" data-type=\"example\">\n<section>\n<div class=\"exercise\" data-type=\"exercise\">\n<section>\n<div id=\"eip-996\" class=\"solution ui-solution-visible\" data-type=\"solution\">\n<ul>\n<li>Press the <code>MATRX<\/code> key and arrow over to <code>EDIT<\/code>.<\/li>\n<li>Press <code>1:[A]<\/code>. Press <code>2 ENTER 4 ENTER<\/code>. Enter the table values by row. Press <code>ENTER<\/code> after each.<\/li>\n<li>Press <code>2nd QUIT<\/code>. Press <code>STAT,<\/code> and arrow over to <code>TESTS<\/code>.<\/li>\n<li>Arrow down to <code>C:\u03c72-TEST<\/code>. Press <code>ENTER<\/code>. You should see <code>Observed:[A] and Expected:[B]<\/code>.<\/li>\n<li>Arrow down to <code>Calculate<\/code>. Press <code>ENTER<\/code>. The test statistic is 10.1287 and the <em data-effect=\"italics\">p<\/em>-value = 0.0175.<\/li>\n<li>Do the procedure a second time but arrow down to <code>Draw<\/code> instead of <code>calculate<\/code>.<\/li>\n<\/ul>\n<p><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.<\/p>\n<p><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.<\/p>\n<p><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.<\/p>\n<p>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>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/section>\n<\/div>\n<\/div>\n<div id=\"fs-idp99198384\" class=\"note statistics try ui-has-child-title\" data-type=\"note\" data-has-label=\"true\" data-label=\"\">\n<header>\n<div class=\"textbox key-takeaways\">\n<h3>try it 1<\/h3>\n<section>\n<div class=\"exercise\" data-type=\"exercise\">\n<section>\n<div id=\"eip-39\" class=\"problem\" data-type=\"problem\">\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 the table. Do families and singles have the same distribution of cars? Test at a level of significance of 0.05.<\/p>\n<table id=\"eip-idm93309648\" summary=\"\">\n<thead>\n<tr>\n<th><\/th>\n<th>Sport<\/th>\n<th>Sedan<\/th>\n<th>Hatchback<\/th>\n<th>Truck<\/th>\n<th>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=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q59220\">Show Answer<\/span><\/p>\n<div id=\"q59220\" class=\"hidden-answer\" style=\"display: none\">\n<p>With a p-value of almost zero, we reject the null hypothesis. The data show that the distribution of cars is not the same for families and singles.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/section>\n<\/div>\n<\/header>\n<section>\n<div class=\"exercise\" data-type=\"exercise\">\n<section>\n<div id=\"eip-idp127134288\" class=\"solution ui-solution-visible\" data-type=\"solution\" data-label=\"\">\n<section class=\"ui-body\">\n<div class=\"textbox exercises\">\n<h3>Example 2<\/h3>\n<div class=\"example\" data-type=\"example\">\n<section>\n<div class=\"exercise\" data-type=\"exercise\">\n<section>\n<div class=\"problem\" data-type=\"problem\">\n<p>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. The table below\u00a0shows the results of the survey. Has there been a change in the distribution of voter preferences since the earthquake?<\/p>\n<table summary=\"The table contains the number of votes 3 candidates (Perez, Chung, Stevens) could receive before and after an earthquake from a survey. First row: 167; 128; 135; Second row: 214; 197; 225;\">\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<p class=\"ui-toggle-wrapper\">\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q704988\">Show Answer<\/span><\/p>\n<div id=\"q704988\" class=\"hidden-answer\" style=\"display: none\">\n<p><em data-effect=\"italics\">H<sub>0<\/sub><\/em>: The distribution of voter preferences was the same before and after the earthquake.<\/p>\n<p><em data-effect=\"italics\">H<sub>a<\/sub><\/em>: The distribution of voter preferences was not the same before and after the earthquake.<\/p>\n<p><strong>Degrees of Freedom (<em data-effect=\"italics\">df<\/em>):\u00a0<\/strong><em data-effect=\"italics\">df<\/em> = number of columns \u2013 1 = 3 \u2013 1 = 2<\/p>\n<p><strong>Distribution for the test:<\/strong>\u00a0[latex]\\chi^2_2[\/latex]<\/p>\n<p><strong>Calculate the test statistic<\/strong>: <em data-effect=\"italics\">\u03c7<sup>2<\/sup><\/em> = 3.2603 (calculator or computer)<\/p>\n<p><strong>Probability statement:<\/strong> <em data-effect=\"italics\">p<\/em>-value =\u00a0<em data-effect=\"italics\">P<\/em>(<em data-effect=\"italics\">\u03c7<sup>2<\/sup><\/em> &gt; 3.2603) = 0.1959<\/p>\n<p><strong>Using a calculator:<\/strong><\/p>\n<div>\n<ul>\n<li>Press the <code>MATRX<\/code> key and arrow over to <code>EDIT<\/code>. Press <code>1:[A]<\/code>.<\/li>\n<li>Press <code>2 ENTER 3 ENTER<\/code>. Enter the table values by row. Press <code>ENTER<\/code> after each.<\/li>\n<li>Press <code>2nd QUIT<\/code>. Press <code>STAT,<\/code> and arrow over to <code>TESTS<\/code>.<\/li>\n<li>Arrow down to <code>C:\u03c72-TEST<\/code>. Press <code>ENTER<\/code>. You should see<code>Observed:[A] and Expected:[B]<\/code>.<\/li>\n<li>Arrow down to <code>Calculate<\/code>. Press <code>ENTER<\/code>. The test statistic is 3.2603 and the <em data-effect=\"italics\">p<\/em>-value = 0.1959.<\/li>\n<li>Do the procedure a second time but arrow down to <code>Draw<\/code> instead of <code>calculate<\/code>.<\/li>\n<\/ul>\n<\/div>\n<p><strong>Compare <em data-effect=\"italics\">\u03b1<\/em> and the <em data-effect=\"italics\">p<\/em>-value:<\/strong> <em data-effect=\"italics\">\u03b1<\/em> = 0.05 and the <em data-effect=\"italics\">p<\/em>-value = 0.1959. <em data-effect=\"italics\">\u03b1<\/em> &lt; <em data-effect=\"italics\">p<\/em>-value.<\/p>\n<p><strong>Make a decision:<\/strong> Since <em data-effect=\"italics\">\u03b1<\/em> &lt; <em data-effect=\"italics\">p<\/em>-value, do not reject <em data-effect=\"italics\">H<sub>o<\/sub><\/em>.<\/p>\n<p><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<\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/section>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/section>\n<\/div>\n<\/section>\n<\/div>\n<div>\n<div class=\"textbox key-takeaways\">\n<h3>try it 2<\/h3>\n<div class=\"exercise\" data-type=\"exercise\">\n<div class=\"problem\" data-type=\"problem\">\n<p>Ivy League schools receive many applications, but only some can be accepted. At the schools listed in the table, two types of applications are accepted: regular and early decision.<\/p>\n<\/div>\n<table id=\"fs-idm19368736\" summary=\"..\">\n<thead>\n<tr>\n<th>Application Type Accepted<\/th>\n<th>Brown<\/th>\n<th>Columbia<\/th>\n<th>Cornell<\/th>\n<th>Dartmouth<\/th>\n<th>Penn<\/th>\n<th>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<p>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 class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q870419\">Show Answer<\/span><\/p>\n<div id=\"q870419\" class=\"hidden-answer\" style=\"display: none\">\n<p><em>H<sub>0<\/sub><\/em>: The distribution of regular applications accepted is the same as the distribution of early applications accepted.<\/p>\n<p><em>H<sub>a<\/sub><\/em>: The distribution of regular applications accepted is not the same as the distribution of early applications accepted.<\/p>\n<p><em>df<\/em> = 5<\/p>\n<p><em>X<sup>2<\/sup><\/em><sup>\u00a0<\/sup>test statistic = 430.06<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1499 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5668\/2021\/07\/25004147\/Try-It-21.jpeg\" alt=\"\" width=\"487\" height=\"167\" \/><\/p>\n<p><strong>Using a calculator:<\/strong><\/p>\n<ul>\n<li>Press the <code>MATRX<\/code> key and arrow over to <code>EDIT<\/code>. Press <code>1:[A]<\/code>.<\/li>\n<li>Press <code>3 ENTER 3 ENTER<\/code>. Enter the table values by row. Press <code>ENTER<\/code> after each.<\/li>\n<li>Press <code>2nd QUIT<\/code>. Press <code>STAT,<\/code> and arrow over to <code>TESTS<\/code>.<\/li>\n<li>Arrow down to <code>C:\u03c72-TEST<\/code>. Press <code>ENTER<\/code>. You should see <code>Observed:[A] and Expected:[B]<\/code>.<\/li>\n<li>Arrow down to <code>Calculate<\/code>. Press <code>ENTER<\/code>. The test statistic is 430.06 and the <em>p<\/em>-value = 9.80E-91.<\/li>\n<li>Do the procedure a second time but arrow down to <code>Draw<\/code> instead of <code>calculate<\/code>.<\/li>\n<\/ul>\n<p><span style=\"font-size: 1rem; text-align: initial;\"><\/div>\n<\/div>\n<p><\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\t\t\t <section class=\"citations-section\" role=\"contentinfo\">\n\t\t\t <h3>Candela Citations<\/h3>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <div id=\"citation-list-298\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>Introductory Statistics. <strong>Authored by<\/strong>: Barbara Illowsky, Susan Dean. <strong>Provided by<\/strong>: OpenStax. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/openstax.org\/books\/introductory-statistics\/pages\/1-introduction\">https:\/\/openstax.org\/books\/introductory-statistics\/pages\/1-introduction<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em>. <strong>License Terms<\/strong>: Access for free at https:\/\/openstax.org\/books\/introductory-statistics\/pages\/1-introduction<\/li><\/ul><\/div>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section>","protected":false},"author":169134,"menu_order":16,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc\",\"description\":\"Introductory Statistics\",\"author\":\"Barbara Illowsky, Susan Dean\",\"organization\":\"OpenStax\",\"url\":\"https:\/\/openstax.org\/books\/introductory-statistics\/pages\/1-introduction\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"Access for free at https:\/\/openstax.org\/books\/introductory-statistics\/pages\/1-introduction\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-298","chapter","type-chapter","status-publish","hentry"],"part":293,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/pressbooks\/v2\/chapters\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/wp\/v2\/users\/169134"}],"version-history":[{"count":40,"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/pressbooks\/v2\/chapters\/298\/revisions"}],"predecessor-version":[{"id":4036,"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/pressbooks\/v2\/chapters\/298\/revisions\/4036"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/pressbooks\/v2\/parts\/293"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/pressbooks\/v2\/chapters\/298\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/pressbooks\/v2\/chapter-type?post=298"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/wp\/v2\/contributor?post=298"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/introstatscorequisite\/wp-json\/wp\/v2\/license?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}