{"id":2871,"date":"2022-05-09T15:18:57","date_gmt":"2022-05-09T19:18:57","guid":{"rendered":"https:\/\/openbooks.macewan.ca\/rcommander\/?post_type=chapter&#038;p=2871"},"modified":"2025-05-07T18:10:54","modified_gmt":"2025-05-07T22:10:54","slug":"12-6-review-questions","status":"publish","type":"chapter","link":"https:\/\/openbooks.macewan.ca\/introstats\/chapter\/12-6-review-questions\/","title":{"raw":"12.6 Review Questions","rendered":"12.6 Review Questions"},"content":{"raw":"<ol>\r\n \t<li>The data on monthly rents, in dollars, for independent random samples of newly completed apartments in the four U.S. regions are presented in the following table.\r\n<div class=\"center\">\r\n<table class=\"aligncenter\">\r\n<thead>\r\n<tr class=\"shaded\">\r\n<th style=\"text-align: center;\">Northeast<\/th>\r\n<th style=\"text-align: center;\">Midwest<\/th>\r\n<th style=\"text-align: center;\">South<\/th>\r\n<th style=\"text-align: center;\">West<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr class=\"odd\">\r\n<td style=\"text-align: center;\">1005<\/td>\r\n<td style=\"text-align: center;\">870<\/td>\r\n<td style=\"text-align: center;\">891<\/td>\r\n<td style=\"text-align: center;\">1025<\/td>\r\n<\/tr>\r\n<tr class=\"even\">\r\n<td style=\"text-align: center;\">898<\/td>\r\n<td style=\"text-align: center;\">748<\/td>\r\n<td style=\"text-align: center;\">630<\/td>\r\n<td style=\"text-align: center;\">1012<\/td>\r\n<\/tr>\r\n<tr class=\"odd\">\r\n<td style=\"text-align: center;\">948<\/td>\r\n<td style=\"text-align: center;\">699<\/td>\r\n<td style=\"text-align: center;\">861<\/td>\r\n<td style=\"text-align: center;\">1090<\/td>\r\n<\/tr>\r\n<tr class=\"even\">\r\n<td style=\"text-align: center;\">1181<\/td>\r\n<td style=\"text-align: center;\">814<\/td>\r\n<td style=\"text-align: center;\">1036<\/td>\r\n<td style=\"text-align: center;\">926<\/td>\r\n<\/tr>\r\n<tr class=\"odd\">\r\n<td style=\"text-align: center;\">1244<\/td>\r\n<td style=\"text-align: center;\">721<\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<td style=\"text-align: center;\">1269<\/td>\r\n<\/tr>\r\n<tr class=\"even\">\r\n<td style=\"text-align: center;\"><\/td>\r\n<td style=\"text-align: center;\">606<\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\nGiven the ANOVA table, test at the 5% significance level whether a difference exists in the mean rent of newly completed apartments in the four U.S. regions.\r\n<div class=\"center\">\r\n<table class=\"aligncenter first-col-border\" style=\"width: 100%;\">\r\n<thead>\r\n<tr class=\"border-bottom\">\r\n<th style=\"text-align: center; width: 15%;\" scope=\"col\">Source<\/th>\r\n<th style=\"text-align: center; width: 15%;\" scope=\"col\"><em>df<\/em><\/th>\r\n<th style=\"text-align: center; width: 20%;\" scope=\"col\"><em>SS<\/em><\/th>\r\n<th style=\"text-align: center; width: 20%;\" scope=\"col\"><em>MS<\/em> = [latex]\\frac{SS}{df}[\/latex]<\/th>\r\n<th style=\"text-align: center; width: 15%;\" scope=\"col\">F-statistic<\/th>\r\n<th style=\"text-align: center; width: 15%;\" scope=\"col\"><em>P<\/em>-value<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr style=\"height: 50px;\">\r\n<th style=\"text-align: center;\" scope=\"row\">Region<\/th>\r\n<td style=\"text-align: center;\">3<\/td>\r\n<td style=\"text-align: center;\"><em>SSTR<\/em> = 400513<\/td>\r\n<td style=\"text-align: center;\"><em>MSTR<\/em> = 133504<\/td>\r\n<td style=\"text-align: center;\">[latex]F_o[\/latex] = 7.541<\/td>\r\n<td style=\"text-align: center;\">0.0023<\/td>\r\n<\/tr>\r\n<tr class=\"border-bottom\" style=\"height: 50px;\">\r\n<th style=\"text-align: center;\" scope=\"row\">Error<\/th>\r\n<td style=\"text-align: center;\">16<\/td>\r\n<td style=\"text-align: center;\"><em>SSE<\/em> = 283265<\/td>\r\n<td style=\"text-align: center;\"><em>MSE<\/em> = 17704<\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<\/tr>\r\n<tr style=\"height: 50px;\">\r\n<th style=\"text-align: center;\" scope=\"row\">Total<\/th>\r\n<td style=\"text-align: center;\">19<\/td>\r\n<td style=\"text-align: center;\"><em>SST<\/em> = 683778<\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div><\/li>\r\n \t<li>The following table gives the salaries (in thousand dollars) for computer science (CS) majors obtaining a bachelor\u2019s degree, a master\u2019s degree, or a Ph.D.\r\n<div class=\"center\">\r\n<table class=\"aligncenter\">\r\n<thead>\r\n<tr class=\"shaded\">\r\n<th style=\"text-align: center;\">Bachelor<\/th>\r\n<th style=\"text-align: center;\">Master<\/th>\r\n<th style=\"text-align: center;\">PhD<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr class=\"odd\">\r\n<td style=\"text-align: center;\">50.8<\/td>\r\n<td style=\"text-align: center;\">65.8<\/td>\r\n<td style=\"text-align: center;\">73.3<\/td>\r\n<\/tr>\r\n<tr class=\"even\">\r\n<td style=\"text-align: center;\">59.4<\/td>\r\n<td style=\"text-align: center;\">57.5<\/td>\r\n<td style=\"text-align: center;\">65.7<\/td>\r\n<\/tr>\r\n<tr class=\"odd\">\r\n<td style=\"text-align: center;\">55.9<\/td>\r\n<td style=\"text-align: center;\">66.9<\/td>\r\n<td style=\"text-align: center;\">71.7<\/td>\r\n<\/tr>\r\n<tr class=\"even\">\r\n<td style=\"text-align: center;\">45.1<\/td>\r\n<td style=\"text-align: center;\">62.8<\/td>\r\n<td style=\"text-align: center;\">72.5<\/td>\r\n<\/tr>\r\n<tr class=\"odd\">\r\n<td style=\"text-align: center;\">54.1<\/td>\r\n<td style=\"text-align: center;\">68.5<\/td>\r\n<td style=\"text-align: center;\">73<\/td>\r\n<\/tr>\r\n<tr class=\"even\">\r\n<td style=\"text-align: center;\">50.7<\/td>\r\n<td style=\"text-align: center;\">69.3<\/td>\r\n<td style=\"text-align: center;\">67.2<\/td>\r\n<\/tr>\r\n<tr class=\"odd\">\r\n<td style=\"text-align: center;\">46.8<\/td>\r\n<td style=\"text-align: center;\">61.5<\/td>\r\n<td style=\"text-align: center;\">67.5<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<ol type=\"a\">\r\n \t<li>Fill in missing entries of the following ANOVA table.\r\n<div class=\"center\">\r\n<table class=\"aligncenter first-col-border\" style=\"width: 100%;\">\r\n<thead>\r\n<tr class=\"border-bottom\" style=\"height: 50px;\">\r\n<th style=\"text-align: center; width: 10%;\" scope=\"col\">Source<\/th>\r\n<th style=\"text-align: center; width: 10%;\" scope=\"col\"><em>df<\/em><\/th>\r\n<th style=\"text-align: center; width: 17%;\" scope=\"col\"><em>SS<\/em><\/th>\r\n<th style=\"text-align: center; width: 29%;\" scope=\"col\"><em>MS<\/em> = [latex]\\frac{SS}{df}[\/latex]<\/th>\r\n<th style=\"text-align: center; width: 24%;\" scope=\"col\">F-statistic<\/th>\r\n<th style=\"text-align: center; width: 10%;\" scope=\"col\"><em>P<\/em>-value<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr class=\"odd\" style=\"height: 80px;\">\r\n<th style=\"text-align: center;\" scope=\"row\">Group<\/th>\r\n<td style=\"text-align: center;\"><em>k<\/em>-1 = ?<\/td>\r\n<td style=\"text-align: center;\"><em>SSTR<\/em> = ?<\/td>\r\n<td style=\"text-align: center;\">[latex]\\text{MSTR} = \\frac{SSTR}{k-1} = 616.9[\/latex]<\/td>\r\n<td style=\"text-align: center;\">[latex]F_o = \\frac{MSTR}{MSE} = 34.62[\/latex]<\/td>\r\n<td style=\"text-align: center;\">&lt;0.0001<\/td>\r\n<\/tr>\r\n<tr class=\"border-bottom\" style=\"height: 80px;\">\r\n<th style=\"text-align: center;\" scope=\"row\">Error<\/th>\r\n<td style=\"text-align: center;\"><em>n<\/em>-<em>k<\/em> = ?<\/td>\r\n<td style=\"text-align: center;\"><em>SSE<\/em> = ?<\/td>\r\n<td style=\"text-align: center;\">[latex]\\text{MSE} = \\frac{SSE}{n-k} = 17.8[\/latex]<\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<\/tr>\r\n<tr class=\"odd\" style=\"height: 50px;\">\r\n<th style=\"text-align: center;\" scope=\"row\">Total<\/th>\r\n<td style=\"text-align: center;\"><em>n<\/em>-1 = 20<\/td>\r\n<td style=\"text-align: center;\"><em>SST<\/em> = 1554.5<\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<td style=\"text-align: center;\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div><\/li>\r\n \t<li>Test at the 1% significance level whether a difference exists in mean salary for computer science (CS) majors obtaining a bachelor\u2019s degree, a master\u2019s degree, or a Ph.D.<\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<details><summary>Show\/Hide Answer<\/summary>\r\n<ol>\r\n \t<li>From the first table, we have [latex]k=4, n_1=5, n_2=6, n_3=4, n_4=5 \\longrightarrow n=n_1+n_2+n_3+n_4=20[\/latex].\r\nWe assume the assumptions of the one-way ANOVA F test are satisfied. Steps of one-way ANOVA F test:\r\nStep 1: Hypotheses.\r\n[latex]H_0:[\/latex] all means are equal, [latex]\\mu_1=\\mu_2=\\mu_3=\\mu_4[\/latex]versus [latex]H_a:[\/latex]\u00a0not all means are equal, i.e., at least one pair of means are different.\r\nStep 2: Significance level [latex]\\alpha=0.05.[\/latex]\r\nStep 3: Test statistic [latex]F_o[\/latex]=7.541 with degrees of freedom [latex]df_{TR}=k-1=4-1=3, df_E=n-k=20-4=16.[\/latex]\r\nStep 4: P-value=0.0023.\r\nStep 5: Decision. Reject [latex]H_0[\/latex] since P-value=0.0023 &lt;0.01 [latex](\\alpha)[\/latex].\r\nStep 6: Conclusion. At the 5% significance level, we have sufficient evidence that a difference exists in the mean rent of newly completed apartments in the four U.S. regions.<\/li>\r\n \t<li>\u200c\r\n<ol type=\"a\">\r\n \t<li>\r\n<table class=\"first-col-border\" style=\"height: 105px; width: 100%;\">\r\n<thead>\r\n<tr class=\"border-bottom\" style=\"height: 15px;\">\r\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"col\">Source<\/th>\r\n<th style=\"text-align: center; width: 7.67661%; height: 15px;\" scope=\"col\"><em><span class=\"math inline\">df<\/span><\/em><\/th>\r\n<th style=\"text-align: center; width: 21.3157%; height: 15px;\" scope=\"col\"><em><span class=\"math inline\">SS<\/span><\/em><\/th>\r\n<th style=\"text-align: center; width: 28.9174%; height: 15px;\" scope=\"col\"><span class=\"math inline\"><em>MS<\/em>=[latex]\\frac{SS}{df}[\/latex]<\/span><\/th>\r\n<th style=\"text-align: center; width: 27.9544%; height: 15px;\" scope=\"col\">F-statistic<\/th>\r\n<th style=\"text-align: center; width: 8.18704%; height: 15px;\" scope=\"col\"><em><span class=\"math inline\">P<\/span><\/em>-value<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"text-align: center; width: 5.83889%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><\/td>\r\n<\/tr>\r\n<tr class=\"odd\" style=\"height: 15px;\">\r\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"row\">Group<\/th>\r\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><span class=\"math inline\">k-1=?<\/span><\/td>\r\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><span class=\"math inline\">SSTR=?<\/span><\/td>\r\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><span class=\"math inline\">MSTR=[latex]\\frac{SSTR}{k-1}=616.9[\/latex]<\/span><\/td>\r\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><span class=\"math inline\">[latex]F_o=\\frac{MSTR}{MSE}=34.62[\/latex]<\/span><\/td>\r\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><span class=\"math inline\">&lt;0.0001<\/span><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"row\"><\/th>\r\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><\/td>\r\n<\/tr>\r\n<tr class=\"border-bottom\" style=\"height: 15px;\">\r\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"row\">Error<\/th>\r\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><span class=\"math inline\">n-k=?<\/span><\/td>\r\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><span class=\"math inline\">SSE=?<\/span><\/td>\r\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><span class=\"math inline\">MSE=[latex]\\frac{SSE}{n-k}=17.8[\/latex]<\/span><\/td>\r\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"row\"><\/th>\r\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"row\">Total<\/th>\r\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><span class=\"math inline\">n-1=20<\/span><\/td>\r\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><span class=\"math inline\">SST=1554.5<\/span><\/td>\r\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><\/td>\r\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p style=\"text-align: left;\">From the first table, we have [latex]k=3, n_1=n_2=n_3=7 \\Longrightarrow n=n_1+n_2+n_3=21[\/latex].\r\nFrom the second table, we have [latex]df_{T}=n-1=19, SST=1554.5, MSTR=616.0, MSE=17.8[\/latex].\r\n(1) [latex]df_{TR}=k-1=3-1=2.[\/latex]<\/p>\r\n<p style=\"text-align: left;\">(2) [latex]df_E=n-k=21-3=18[\/latex] or [latex]df_E=df_T-df_{TR}=19-2=17.[\/latex]<\/p>\r\n<p style=\"text-align: left;\">(3) [latex]SSTR=MSTR\\times df_{TR}=616.9\\times 2=1233.8.[\/latex]<\/p>\r\n<p style=\"text-align: left;\">(4) [latex]SSE=MSE \\times df_E=17.8 \\times 18=320.4[\/latex] or [latex]SSE=SST-SSTR=1554.5-1233.8=320.7.[\/latex] The difference is due to rounding.<\/p>\r\n<\/li>\r\n \t<li>We assume the assumptions of the one-way ANOVA F test are satisfied.\r\n<span style=\"text-align: initial; font-size: 1em;\">Steps of one-way ANOVA F test:\r\n<\/span><span style=\"text-align: initial; font-size: 1em;\">Step 1: hypotheses.<\/span>[latex]H_0:[\/latex] all means are equal, [latex]\\mu_1=\\mu_2=\\mu_3[\/latex] versus [latex]H_a:[\/latex]\u00a0not all means are equal, i.e., at least one pair of means are different.\r\nStep 2: Significance level [latex]\\alpha=0.01.[\/latex]\r\nStep 3: Test statistic [latex]F_o=34.62[\/latex] with degrees of freedom [latex]df_{TR}=k-1=3-1=2, df_E=n-k=21-3=18.[\/latex]\r\nStep 4: P-value &lt;0.0001.\r\nStep 5: Decision. Reject [latex]H_0[\/latex] since P-value&lt;0.0001 &lt;0.01 [latex](\\alpha)[\/latex].\r\nStep 6: Conclusion. At the 1% significance level, we have sufficient evidence that a difference exists in mean salary for computer science (CS) majors obtaining a bachelor\u2019s degree, a master\u2019s degree or a Ph.D.<\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<\/details>","rendered":"<ol>\n<li>The data on monthly rents, in dollars, for independent random samples of newly completed apartments in the four U.S. regions are presented in the following table.\n<div class=\"center\">\n<table class=\"aligncenter\">\n<thead>\n<tr class=\"shaded\">\n<th style=\"text-align: center;\">Northeast<\/th>\n<th style=\"text-align: center;\">Midwest<\/th>\n<th style=\"text-align: center;\">South<\/th>\n<th style=\"text-align: center;\">West<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<td style=\"text-align: center;\">1005<\/td>\n<td style=\"text-align: center;\">870<\/td>\n<td style=\"text-align: center;\">891<\/td>\n<td style=\"text-align: center;\">1025<\/td>\n<\/tr>\n<tr class=\"even\">\n<td style=\"text-align: center;\">898<\/td>\n<td style=\"text-align: center;\">748<\/td>\n<td style=\"text-align: center;\">630<\/td>\n<td style=\"text-align: center;\">1012<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td style=\"text-align: center;\">948<\/td>\n<td style=\"text-align: center;\">699<\/td>\n<td style=\"text-align: center;\">861<\/td>\n<td style=\"text-align: center;\">1090<\/td>\n<\/tr>\n<tr class=\"even\">\n<td style=\"text-align: center;\">1181<\/td>\n<td style=\"text-align: center;\">814<\/td>\n<td style=\"text-align: center;\">1036<\/td>\n<td style=\"text-align: center;\">926<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td style=\"text-align: center;\">1244<\/td>\n<td style=\"text-align: center;\">721<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\">1269<\/td>\n<\/tr>\n<tr class=\"even\">\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\">606<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Given the ANOVA table, test at the 5% significance level whether a difference exists in the mean rent of newly completed apartments in the four U.S. regions.<\/p>\n<div class=\"center\">\n<table class=\"aligncenter first-col-border\" style=\"width: 100%;\">\n<thead>\n<tr class=\"border-bottom\">\n<th style=\"text-align: center; width: 15%;\" scope=\"col\">Source<\/th>\n<th style=\"text-align: center; width: 15%;\" scope=\"col\"><em>df<\/em><\/th>\n<th style=\"text-align: center; width: 20%;\" scope=\"col\"><em>SS<\/em><\/th>\n<th style=\"text-align: center; width: 20%;\" scope=\"col\"><em>MS<\/em> = [latex]\\frac{SS}{df}[\/latex]<\/th>\n<th style=\"text-align: center; width: 15%;\" scope=\"col\">F-statistic<\/th>\n<th style=\"text-align: center; width: 15%;\" scope=\"col\"><em>P<\/em>-value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 50px;\">\n<th style=\"text-align: center;\" scope=\"row\">Region<\/th>\n<td style=\"text-align: center;\">3<\/td>\n<td style=\"text-align: center;\"><em>SSTR<\/em> = 400513<\/td>\n<td style=\"text-align: center;\"><em>MSTR<\/em> = 133504<\/td>\n<td style=\"text-align: center;\">[latex]F_o[\/latex] = 7.541<\/td>\n<td style=\"text-align: center;\">0.0023<\/td>\n<\/tr>\n<tr class=\"border-bottom\" style=\"height: 50px;\">\n<th style=\"text-align: center;\" scope=\"row\">Error<\/th>\n<td style=\"text-align: center;\">16<\/td>\n<td style=\"text-align: center;\"><em>SSE<\/em> = 283265<\/td>\n<td style=\"text-align: center;\"><em>MSE<\/em> = 17704<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<\/tr>\n<tr style=\"height: 50px;\">\n<th style=\"text-align: center;\" scope=\"row\">Total<\/th>\n<td style=\"text-align: center;\">19<\/td>\n<td style=\"text-align: center;\"><em>SST<\/em> = 683778<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/li>\n<li>The following table gives the salaries (in thousand dollars) for computer science (CS) majors obtaining a bachelor\u2019s degree, a master\u2019s degree, or a Ph.D.\n<div class=\"center\">\n<table class=\"aligncenter\">\n<thead>\n<tr class=\"shaded\">\n<th style=\"text-align: center;\">Bachelor<\/th>\n<th style=\"text-align: center;\">Master<\/th>\n<th style=\"text-align: center;\">PhD<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<td style=\"text-align: center;\">50.8<\/td>\n<td style=\"text-align: center;\">65.8<\/td>\n<td style=\"text-align: center;\">73.3<\/td>\n<\/tr>\n<tr class=\"even\">\n<td style=\"text-align: center;\">59.4<\/td>\n<td style=\"text-align: center;\">57.5<\/td>\n<td style=\"text-align: center;\">65.7<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td style=\"text-align: center;\">55.9<\/td>\n<td style=\"text-align: center;\">66.9<\/td>\n<td style=\"text-align: center;\">71.7<\/td>\n<\/tr>\n<tr class=\"even\">\n<td style=\"text-align: center;\">45.1<\/td>\n<td style=\"text-align: center;\">62.8<\/td>\n<td style=\"text-align: center;\">72.5<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td style=\"text-align: center;\">54.1<\/td>\n<td style=\"text-align: center;\">68.5<\/td>\n<td style=\"text-align: center;\">73<\/td>\n<\/tr>\n<tr class=\"even\">\n<td style=\"text-align: center;\">50.7<\/td>\n<td style=\"text-align: center;\">69.3<\/td>\n<td style=\"text-align: center;\">67.2<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td style=\"text-align: center;\">46.8<\/td>\n<td style=\"text-align: center;\">61.5<\/td>\n<td style=\"text-align: center;\">67.5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<ol type=\"a\">\n<li>Fill in missing entries of the following ANOVA table.\n<div class=\"center\">\n<table class=\"aligncenter first-col-border\" style=\"width: 100%;\">\n<thead>\n<tr class=\"border-bottom\" style=\"height: 50px;\">\n<th style=\"text-align: center; width: 10%;\" scope=\"col\">Source<\/th>\n<th style=\"text-align: center; width: 10%;\" scope=\"col\"><em>df<\/em><\/th>\n<th style=\"text-align: center; width: 17%;\" scope=\"col\"><em>SS<\/em><\/th>\n<th style=\"text-align: center; width: 29%;\" scope=\"col\"><em>MS<\/em> = [latex]\\frac{SS}{df}[\/latex]<\/th>\n<th style=\"text-align: center; width: 24%;\" scope=\"col\">F-statistic<\/th>\n<th style=\"text-align: center; width: 10%;\" scope=\"col\"><em>P<\/em>-value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\" style=\"height: 80px;\">\n<th style=\"text-align: center;\" scope=\"row\">Group<\/th>\n<td style=\"text-align: center;\"><em>k<\/em>-1 = ?<\/td>\n<td style=\"text-align: center;\"><em>SSTR<\/em> = ?<\/td>\n<td style=\"text-align: center;\">[latex]\\text{MSTR} = \\frac{SSTR}{k-1} = 616.9[\/latex]<\/td>\n<td style=\"text-align: center;\">[latex]F_o = \\frac{MSTR}{MSE} = 34.62[\/latex]<\/td>\n<td style=\"text-align: center;\">&lt;0.0001<\/td>\n<\/tr>\n<tr class=\"border-bottom\" style=\"height: 80px;\">\n<th style=\"text-align: center;\" scope=\"row\">Error<\/th>\n<td style=\"text-align: center;\"><em>n<\/em>&#8211;<em>k<\/em> = ?<\/td>\n<td style=\"text-align: center;\"><em>SSE<\/em> = ?<\/td>\n<td style=\"text-align: center;\">[latex]\\text{MSE} = \\frac{SSE}{n-k} = 17.8[\/latex]<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<\/tr>\n<tr class=\"odd\" style=\"height: 50px;\">\n<th style=\"text-align: center;\" scope=\"row\">Total<\/th>\n<td style=\"text-align: center;\"><em>n<\/em>-1 = 20<\/td>\n<td style=\"text-align: center;\"><em>SST<\/em> = 1554.5<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/li>\n<li>Test at the 1% significance level whether a difference exists in mean salary for computer science (CS) majors obtaining a bachelor\u2019s degree, a master\u2019s degree, or a Ph.D.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<details>\n<summary>Show\/Hide Answer<\/summary>\n<ol>\n<li>From the first table, we have [latex]k=4, n_1=5, n_2=6, n_3=4, n_4=5 \\longrightarrow n=n_1+n_2+n_3+n_4=20[\/latex].<br \/>\nWe assume the assumptions of the one-way ANOVA F test are satisfied. Steps of one-way ANOVA F test:<br \/>\nStep 1: Hypotheses.<br \/>\n[latex]H_0:[\/latex] all means are equal, [latex]\\mu_1=\\mu_2=\\mu_3=\\mu_4[\/latex]versus [latex]H_a:[\/latex]\u00a0not all means are equal, i.e., at least one pair of means are different.<br \/>\nStep 2: Significance level [latex]\\alpha=0.05.[\/latex]<br \/>\nStep 3: Test statistic [latex]F_o[\/latex]=7.541 with degrees of freedom [latex]df_{TR}=k-1=4-1=3, df_E=n-k=20-4=16.[\/latex]<br \/>\nStep 4: P-value=0.0023.<br \/>\nStep 5: Decision. Reject [latex]H_0[\/latex] since P-value=0.0023 &lt;0.01 [latex](\\alpha)[\/latex].<br \/>\nStep 6: Conclusion. At the 5% significance level, we have sufficient evidence that a difference exists in the mean rent of newly completed apartments in the four U.S. regions.<\/li>\n<li>\u200c\n<ol type=\"a\">\n<li>\n<table class=\"first-col-border\" style=\"height: 105px; width: 100%;\">\n<thead>\n<tr class=\"border-bottom\" style=\"height: 15px;\">\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"col\">Source<\/th>\n<th style=\"text-align: center; width: 7.67661%; height: 15px;\" scope=\"col\"><em><span class=\"math inline\">df<\/span><\/em><\/th>\n<th style=\"text-align: center; width: 21.3157%; height: 15px;\" scope=\"col\"><em><span class=\"math inline\">SS<\/span><\/em><\/th>\n<th style=\"text-align: center; width: 28.9174%; height: 15px;\" scope=\"col\"><span class=\"math inline\"><em>MS<\/em>=[latex]\\frac{SS}{df}[\/latex]<\/span><\/th>\n<th style=\"text-align: center; width: 27.9544%; height: 15px;\" scope=\"col\">F-statistic<\/th>\n<th style=\"text-align: center; width: 8.18704%; height: 15px;\" scope=\"col\"><em><span class=\"math inline\">P<\/span><\/em>-value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 15px;\">\n<td style=\"text-align: center; width: 5.83889%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><\/td>\n<\/tr>\n<tr class=\"odd\" style=\"height: 15px;\">\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"row\">Group<\/th>\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><span class=\"math inline\">k-1=?<\/span><\/td>\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><span class=\"math inline\">SSTR=?<\/span><\/td>\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><span class=\"math inline\">MSTR=[latex]\\frac{SSTR}{k-1}=616.9[\/latex]<\/span><\/td>\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><span class=\"math inline\">[latex]F_o=\\frac{MSTR}{MSE}=34.62[\/latex]<\/span><\/td>\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><span class=\"math inline\">&lt;0.0001<\/span><\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"row\"><\/th>\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><\/td>\n<\/tr>\n<tr class=\"border-bottom\" style=\"height: 15px;\">\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"row\">Error<\/th>\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><span class=\"math inline\">n-k=?<\/span><\/td>\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><span class=\"math inline\">SSE=?<\/span><\/td>\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><span class=\"math inline\">MSE=[latex]\\frac{SSE}{n-k}=17.8[\/latex]<\/span><\/td>\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"row\"><\/th>\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<th style=\"text-align: center; width: 5.83889%; height: 15px;\" scope=\"row\">Total<\/th>\n<td style=\"text-align: center; width: 7.67661%; height: 15px;\"><span class=\"math inline\">n-1=20<\/span><\/td>\n<td style=\"text-align: center; width: 21.3157%; height: 15px;\"><span class=\"math inline\">SST=1554.5<\/span><\/td>\n<td style=\"text-align: center; width: 28.9174%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 27.9544%; height: 15px;\"><\/td>\n<td style=\"text-align: center; width: 8.18704%; height: 15px;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: left;\">From the first table, we have [latex]k=3, n_1=n_2=n_3=7 \\Longrightarrow n=n_1+n_2+n_3=21[\/latex].<br \/>\nFrom the second table, we have [latex]df_{T}=n-1=19, SST=1554.5, MSTR=616.0, MSE=17.8[\/latex].<br \/>\n(1) [latex]df_{TR}=k-1=3-1=2.[\/latex]<\/p>\n<p style=\"text-align: left;\">(2) [latex]df_E=n-k=21-3=18[\/latex] or [latex]df_E=df_T-df_{TR}=19-2=17.[\/latex]<\/p>\n<p style=\"text-align: left;\">(3) [latex]SSTR=MSTR\\times df_{TR}=616.9\\times 2=1233.8.[\/latex]<\/p>\n<p style=\"text-align: left;\">(4) [latex]SSE=MSE \\times df_E=17.8 \\times 18=320.4[\/latex] or [latex]SSE=SST-SSTR=1554.5-1233.8=320.7.[\/latex] The difference is due to rounding.<\/p>\n<\/li>\n<li>We assume the assumptions of the one-way ANOVA F test are satisfied.<br \/>\n<span style=\"text-align: initial; font-size: 1em;\">Steps of one-way ANOVA F test:<br \/>\n<\/span><span style=\"text-align: initial; font-size: 1em;\">Step 1: hypotheses.<\/span>[latex]H_0:[\/latex] all means are equal, [latex]\\mu_1=\\mu_2=\\mu_3[\/latex] versus [latex]H_a:[\/latex]\u00a0not all means are equal, i.e., at least one pair of means are different.<br \/>\nStep 2: Significance level [latex]\\alpha=0.01.[\/latex]<br \/>\nStep 3: Test statistic [latex]F_o=34.62[\/latex] with degrees of freedom [latex]df_{TR}=k-1=3-1=2, df_E=n-k=21-3=18.[\/latex]<br \/>\nStep 4: P-value &lt;0.0001.<br \/>\nStep 5: Decision. Reject [latex]H_0[\/latex] since P-value&lt;0.0001 &lt;0.01 [latex](\\alpha)[\/latex].<br \/>\nStep 6: Conclusion. At the 1% significance level, we have sufficient evidence that a difference exists in mean salary for computer science (CS) majors obtaining a bachelor\u2019s degree, a master\u2019s degree or a Ph.D.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/details>\n","protected":false},"author":19,"menu_order":6,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-2871","chapter","type-chapter","status-publish","hentry"],"part":1189,"_links":{"self":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/2871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/users\/19"}],"version-history":[{"count":69,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/2871\/revisions"}],"predecessor-version":[{"id":5527,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/2871\/revisions\/5527"}],"part":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/parts\/1189"}],"metadata":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/2871\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/media?parent=2871"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapter-type?post=2871"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/contributor?post=2871"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/license?post=2871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}