{"id":1340,"date":"2019-04-24T16:56:03","date_gmt":"2019-04-24T20:56:03","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/simplestats\/?post_type=chapter&#038;p=1340"},"modified":"2019-11-15T19:04:31","modified_gmt":"2019-11-16T00:04:31","slug":"10-2-2-elements-of-the-linear-regression-model","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/10-2-2-elements-of-the-linear-regression-model\/","title":{"raw":"10.2.2 Elements of the Linear Regression Model","rendered":"10.2.2 Elements of the Linear Regression Model"},"content":{"raw":"[latexpage]\r\n\r\nThe secret to minimizing the residuals -- and to ensuring the regression line is indeed <em>the best fitting<\/em> (to the data) line -- lies in the way the elements of the line are calculated. The regression\/preditcion line is, after all, created through <em>a<\/em> and <em>b<\/em>, as I explained in Section 10.2:\r\n\r\n&nbsp;\r\n\r\n$$\\hat{y}=a+bx=$$ = <em>predicted values<\/em>\r\n\r\n&nbsp;\r\n\r\nWe can calculate <em>a<\/em> and <em>b<\/em> such that they minimize the residuals through the following formulas:\r\n\r\n&nbsp;\r\n\r\n$$b=\\frac{\\Sigma{(x-\\overline{x})(y-\\overline{y})}}{\\Sigma{(x-\\overline{x})^2}}=\\frac{SP}{SS_x}=$$ = <em>slope<\/em>, or <em>regression coefficient<\/em>\r\n\r\n&nbsp;\r\n\r\n$$a=\\overline{y}-b\\overline{x}=$$ = <em>Y-intercept<\/em>, or <em>constant<\/em>\r\n\r\n&nbsp;\r\n\r\nwhere <em>SP<\/em> is, again, the sum of products, <em>SS<sub>x<\/sub><\/em> is the sum of squares for <em>x<\/em>, and $\\overline{x}$ and $\\overline{y}$ are the variable means of <em>x<\/em> and <em>y<\/em>, respectively.\r\n\r\n&nbsp;\r\n\r\nAs with the correlation coefficient <em>r<\/em>, once again, everything revolves around variances (and means)[footnote]So much so that the correlation coefficient <em>r<\/em> and the regression coefficient <em>b<\/em> are related: $b=r\\frac{s_y}{s_x}$ where <em>s<sub>y<\/sub><\/em> and <em>s<sub>x<\/sub><\/em> are, of course, the standard deviations of <em>y<\/em> and <em>x<\/em>, respectively.[\/footnote].\r\n\r\n&nbsp;\r\n\r\nAn example will serve best to illustrate all this.\r\n\r\n&nbsp;\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\"><em>Example 10.3 Assignment Requirements and Marks<\/em><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\n&nbsp;\r\n\r\nHere I continue with the fictitious data on which Figure 10.2 is based. In a \"sample\" of <em>N<\/em>=11, I have data about the \"respondents\"' completed assignment requirements (<em>x<\/em>) and their assignment marks (<em>y<\/em>). In Table 10.3, I calculate the necessary means, sums of squares, and sum of products.\r\n\r\n&nbsp;\r\n\r\n<em>Table 10.3 Assignment Requirements and Marks: Calculating a and b<\/em>\r\n<table class=\"lines\" style=\"border-collapse: collapse;width: 99.9998%;height: 210px\" border=\"0\">\r\n<tbody>\r\n<tr style=\"height: 30px\">\r\n<td style=\"width: 1.41643%;height: 30px;text-align: center\">$x$<\/td>\r\n<td style=\"width: 2.31468%;height: 30px;text-align: center\">$y$<\/td>\r\n<td style=\"width: 21.1225%;height: 30px;text-align: center\">\u00a0$(x-\\overline{x})$<\/td>\r\n<td style=\"width: 18.0203%;height: 30px;text-align: center\">$(x-\\overline{x})^2$<\/td>\r\n<td style=\"width: 21.4724%;height: 30px;text-align: center\">$(y-\\overline{y})$<\/td>\r\n<td style=\"width: 16.8352%;height: 30px;text-align: center\">$(y-\\overline{y})^2$<\/td>\r\n<td style=\"width: 18.8183%;height: 30px;text-align: center\">\u00a0$(x-\\overline{x})(y-\\overline{y})$<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">0<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">10<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">-1.64<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">2.68<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" width=\"64\" height=\"19\">-41.82<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">1748.76<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">68.43<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">1<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">40<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">-0.64<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.40<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" height=\"19\">-11.82<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">139.67<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">7.52<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">2<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">70<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">0.36<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.13<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" height=\"19\">18.18<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">330.58<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">6.61<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">3<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">100<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">1.36<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">1.86<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" height=\"19\">48.18<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">2321.49<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">65.70<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">1<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">30<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">-0.64<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.40<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" height=\"19\">-21.82<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">476.03<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">13.88<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">1<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">45<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">-0.64<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.40<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" height=\"19\">-6.82<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">46.49<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">4.34<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">2<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">55<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">0.36<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.13<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" height=\"19\">3.18<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">10.12<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">1.16<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">2<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">40<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">0.36<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.13<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" height=\"19\">-11.82<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">139.67<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">-4.30<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">3<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">85<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">1.36<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">1.86<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" height=\"19\">33.18<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">1101.03<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">45.25<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">3<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">90<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">1.36<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">1.86<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" height=\"19\">38.18<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">1457.85<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">52.07<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">0<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">5<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">-1.64<\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">2.68<\/td>\r\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center\" align=\"right\" height=\"19\">-46.82<\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">2191.94<\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">76.61<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 1.41643%;height: 15px;text-align: center\"><img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg\" alt=\"\\overline{x}\" \/>1.6<\/td>\r\n<td style=\"width: 2.31468%;height: 15px;text-align: center\"><img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-01881adf9c51d256ce0a5af82c2e7024_l3.svg\" alt=\"\\overline{y}\" \/>51.8<\/td>\r\n<td style=\"width: 21.1225%;height: 15px;text-align: center\"><\/td>\r\n<td style=\"width: 18.0203%;height: 15px;text-align: center\"><strong><em>SS<sub>x<\/sub><\/em>=12.55<\/strong><\/td>\r\n<td style=\"width: 21.4724%;height: 15px;text-align: center\"><\/td>\r\n<td style=\"width: 16.8352%;height: 15px;text-align: center\"><strong><em>SS<sub>y<\/sub><\/em>=9963.64<\/strong><\/td>\r\n<td style=\"width: 18.8183%;height: 15px;text-align: center\"><strong><em>SP<sub>xy<\/sub><\/em>=337.27<\/strong><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nThen, I substitute the relevant numbers into the formulas for <em>a<\/em> and <em>b<\/em>:\r\n\r\n&nbsp;\r\n\r\n$$b=\\frac{SP}{SS_x}={337.27}{12.55}=26.88$$\r\n\r\n&nbsp;\r\n\r\n$$a=\\overline{y}-b\\overline{x}=51.8-26.88\\times 1.6=51.8-43.99=7.83$$\r\n\r\n&nbsp;\r\n\r\nThis makes our <strong>best-fitting\/regression line<\/strong> this:\r\n\r\n&nbsp;\r\n\r\n$$\\hat{y}=a+bx=7.83+26.88x$$\r\n\r\n&nbsp;\r\n\r\n... which is exactly what SPSS had already told us, if you care to go back to Figure 10.2 in the previous section and check.\r\n\r\n&nbsp;\r\n\r\nYou may or might not be impressed by this, but you certainly need to know how to interpret it. In this case the regression tells us that <strong>a student who doesn't complete even one requirement of their assignment is expected to receive 7.83 points <\/strong>(that's the constant, or Y-intercept)<strong>; further, for every requirement completed, their mark would increase by 26.88 points\u00a0<\/strong>(that's the regression coefficient)<strong>. That is, the effect of one completed requirement on the assignment mark is 26.88 points.<\/strong>\r\n\r\n&nbsp;\r\n\r\nWe can also calculate the actual predicted values (which form the regression line itself):\r\n<ul>\r\n \t<li>for <em>x<\/em>=0, $\\hat{y}=7.83+26.88\\times 0=7.83+0=7.83$;<\/li>\r\n \t<li>for <em>x<\/em>=1,\u00a0$\\hat{y}=7.83+26.88\\times 1=7.83+26.88=34.71$;<\/li>\r\n \t<li>for <em>x<\/em>=2,\u00a0$\\hat{y}=7.83+26.88\\times 2=7.83+53.76=61.59$;<\/li>\r\n \t<li>for <em>x<\/em>=3,\u00a0$\\hat{y}=7.83+26.88\\times 3=7.83+80.64=88.47$.<\/li>\r\n<\/ul>\r\nAs you can see, these are different values than the ones we had in the deterministic version with which we started in Section 10.1 (i.e., 0 requirements = 10 points, 1 requirement = 40 points, 2 requirements = 70 points, 3 requirements = 100 points). The difference between the certainty of the deterministic version and the <em>un<\/em>certainty of the current probabilistic version is the unexplained (by number of requirements) variance[footnote]That is, in the deterministic version, we could say that $y=\\hat{y}$ (<em>reality<\/em> = <em>prediction<\/em>), or rather, that there is no prediction at all -- we know what the true relationship between the variables is as the assignment mark depends entirely on the number of fulfilled requirements. In the actual\/probabilistic version, $y=\\hat{y}+e$ (<em>reality<\/em> = <em>prediction plus residual\/error<\/em>), where the residual is what is left unexplained, or simply the difference between reality and prediction. [\/footnote]. How much variance we <em>have<\/em> explained we will see in the next section. Before that, here is Figure 10.2 again so that you can pinpoint the predicted values for yourselves. (Hint: they're on the line.)\r\n\r\n&nbsp;\r\n\r\n<em>Figure 10.2 Assignment Requirements and Mark (Redux)<\/em>\r\n\r\n<img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/04\/scatterplot-class-assignment-requirements-mark-with-variability.png\" alt=\"\" width=\"462\" height=\"370\" class=\"wp-image-1345 size-full aligncenter\" \/>\r\n\r\n&nbsp;\r\n\r\n<\/div>\r\n<\/div>\r\n&nbsp;\r\n\r\n<strong>Testing the regression coefficient for statistical significance.\u00a0<\/strong>Of course, as with any statistics obtained through a sample, we have to be able to check whether the regression coefficient is generalizable to the population, i.e., whether it is statistically significant. In other words, we have to examine the evidence whether the identified effect of the independent variable on the dependent variable exists in the population or whether it is a result of random sampling.\r\n\r\n&nbsp;\r\n\r\nThe significance test for <em>b<\/em> is your familiar <em>t<\/em>-test, given by the following formula[footnote]The population version is $z=\\frac{b}{\\sigma_b}$. Since we generally do not know $\\sigma_b$, we substitute it with its estimate, the sample-based <em>s<sub>b<\/sub><\/em>. This of course also means we move to the <em>t<\/em>-distribution.[\/footnote]:\r\n\r\n&nbsp;\r\n\r\n$$t=\\frac{b}{s_b}$$\r\n\r\n&nbsp;\r\n\r\nwhere <em>s<sub>b<\/sub><\/em> is <em>b<\/em>'s standard error.[footnote]The standard error of <em>b<\/em> is calculated by this, admittedly scary-looking, formula:\r\n\r\n&nbsp;\r\n\r\n$$s_b =\\sqrt{\\frac{\\frac{\\Sigma{(y-\\hat{y})^2}}{(N-2)}}{\\sqrt{\\Sigma{(x-\\overline{x})^2}}\u00a0 \u00a0 }}$$\r\n\r\n&nbsp;\r\n\r\n<span style=\"font-size: 14pt;text-indent: 18.6667px\">This can be simplified to be more user-friendly but then I will need to introduce additional concepts (like the\u00a0<\/span><em style=\"font-size: 14pt;text-indent: 18.6667px\">mean squared error<\/em><span style=\"font-size: 14pt;text-indent: 18.6667px\">\u00a0and\u00a0<\/span><em style=\"font-size: 14pt;text-indent: 18.6667px\">the standard error of the estimate<\/em><span style=\"font-size: 14pt;text-indent: 18.6667px\">) which are not necessary for you at this stage and are therefore beyond the scope of this book. You will be happy to know that the hand calculation of <em>s<sub>b<\/sub><\/em> also falls in that category.[\/footnote]:<\/span>\r\n\r\n&nbsp;\r\n\r\nThe degrees of freedom for <em>t<sub>b<\/sub><\/em> are <em>N<\/em>-2 in the bivariate case. We can see what we can do with the test in hypothesis testing, next,\r\n\r\n&nbsp;","rendered":"<p>The secret to minimizing the residuals &#8212; and to ensuring the regression line is indeed <em>the best fitting<\/em> (to the data) line &#8212; lies in the way the elements of the line are calculated. The regression\/preditcion line is, after all, created through <em>a<\/em> and <em>b<\/em>, as I explained in Section 10.2:<\/p>\n<p>&nbsp;<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 17px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-b8f7541da408bc5f6fb28eb3ee301981_l3.png\" height=\"17\" width=\"99\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#61;&#97;&#43;&#98;&#120;&#61;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\n<p> = <em>predicted values<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>We can calculate <em>a<\/em> and <em>b<\/em> such that they minimize the residuals through the following formulas:<\/p>\n<p>&nbsp;<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 42px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-b3516c26a1e5d1de1949bbf65ea4072b_l3.png\" height=\"42\" width=\"235\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#98;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#83;&#105;&#103;&#109;&#97;&#123;&#40;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;&#40;&#121;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#121;&#125;&#41;&#125;&#125;&#123;&#92;&#83;&#105;&#103;&#109;&#97;&#123;&#40;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;&#94;&#50;&#125;&#125;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#83;&#80;&#125;&#123;&#83;&#83;&#95;&#120;&#125;&#61;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\n<p> = <em>slope<\/em>, or <em>regression coefficient<\/em><\/p>\n<p>&nbsp;<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 17px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-ad420ab778d5cad52cd84be15928a9b1_l3.png\" height=\"17\" width=\"99\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#97;&#61;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#121;&#125;&#45;&#98;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#61;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\n<p> = <em>Y-intercept<\/em>, or <em>constant<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>where <em>SP<\/em> is, again, the sum of products, <em>SS<sub>x<\/sub><\/em> is the sum of squares for <em>x<\/em>, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\" \/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-01881adf9c51d256ce0a5af82c2e7024_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#121;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"10\" style=\"vertical-align: -4px;\" \/> are the variable means of <em>x<\/em> and <em>y<\/em>, respectively.<\/p>\n<p>&nbsp;<\/p>\n<p>As with the correlation coefficient <em>r<\/em>, once again, everything revolves around variances (and means)<a class=\"footnote\" title=\"So much so that the correlation coefficient r and the regression coefficient b are related:  where sy and sx are, of course, the standard deviations of y and x, respectively.\" id=\"return-footnote-1340-1\" href=\"#footnote-1340-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>An example will serve best to illustrate all this.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><em>Example 10.3 Assignment Requirements and Marks<\/em><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>&nbsp;<\/p>\n<p>Here I continue with the fictitious data on which Figure 10.2 is based. In a &#8220;sample&#8221; of <em>N<\/em>=11, I have data about the &#8220;respondents&#8221;&#8216; completed assignment requirements (<em>x<\/em>) and their assignment marks (<em>y<\/em>). In Table 10.3, I calculate the necessary means, sums of squares, and sum of products.<\/p>\n<p>&nbsp;<\/p>\n<p><em>Table 10.3 Assignment Requirements and Marks: Calculating a and b<\/em><\/p>\n<table class=\"lines\" style=\"border-collapse: collapse;width: 99.9998%;height: 210px\">\n<tbody>\n<tr style=\"height: 30px\">\n<td style=\"width: 1.41643%;height: 30px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\" \/><\/td>\n<td style=\"width: 2.31468%;height: 30px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0af556714940c351c933bba8cf840796_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: -4px;\" \/><\/td>\n<td style=\"width: 21.1225%;height: 30px;text-align: center\">\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-2be8c227df65e8134dad5fb1b20474f0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"54\" style=\"vertical-align: -4px;\" \/><\/td>\n<td style=\"width: 18.0203%;height: 30px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-044ade8b43a3571c6d6e964117980bf0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"62\" style=\"vertical-align: -4px;\" \/><\/td>\n<td style=\"width: 21.4724%;height: 30px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-293fcf26d7743d8ceeac73d9c706910b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#121;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#121;&#125;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"52\" style=\"vertical-align: -4px;\" \/><\/td>\n<td style=\"width: 16.8352%;height: 30px;text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-532d7ff9cbe6d68b91e39c1bcc2d6620_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#121;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#121;&#125;&#41;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"60\" style=\"vertical-align: -4px;\" \/><\/td>\n<td style=\"width: 18.8183%;height: 30px;text-align: center\">\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-5845ded70fd4fcb506551f41ac83a76a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;&#40;&#121;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#121;&#125;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"108\" style=\"vertical-align: -4px;\" \/><\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">0<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">10<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">-1.64<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">2.68<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; width: 64px; height: 19px;\" align=\"right\">-41.82<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">1748.76<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">68.43<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">1<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">40<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">-0.64<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.40<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; height: 19px;\" align=\"right\">-11.82<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">139.67<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">7.52<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">2<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">70<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">0.36<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.13<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; height: 19px;\" align=\"right\">18.18<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">330.58<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">6.61<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">3<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">100<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">1.36<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">1.86<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; height: 19px;\" align=\"right\">48.18<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">2321.49<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">65.70<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">1<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">30<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">-0.64<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.40<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; height: 19px;\" align=\"right\">-21.82<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">476.03<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">13.88<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">1<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">45<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">-0.64<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.40<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; height: 19px;\" align=\"right\">-6.82<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">46.49<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">4.34<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">2<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">55<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">0.36<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.13<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; height: 19px;\" align=\"right\">3.18<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">10.12<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">1.16<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">2<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">40<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">0.36<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">0.13<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; height: 19px;\" align=\"right\">-11.82<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">139.67<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">-4.30<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">3<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">85<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">1.36<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">1.86<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; height: 19px;\" align=\"right\">33.18<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">1101.03<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">45.25<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">3<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">90<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">1.36<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">1.86<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; height: 19px;\" align=\"right\">38.18<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">1457.85<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">52.07<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\">0<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\">5<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\">-1.64<\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\">2.68<\/td>\n<td class=\"xl65\" style=\"height: 15px;width: 21.4724%;text-align: center; height: 19px;\" align=\"right\">-46.82<\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\">2191.94<\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\">76.61<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 1.41643%;height: 15px;text-align: center\"><img decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg\" alt=\"\\overline{x}\" \/>1.6<\/td>\n<td style=\"width: 2.31468%;height: 15px;text-align: center\"><img decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-01881adf9c51d256ce0a5af82c2e7024_l3.svg\" alt=\"\\overline{y}\" \/>51.8<\/td>\n<td style=\"width: 21.1225%;height: 15px;text-align: center\"><\/td>\n<td style=\"width: 18.0203%;height: 15px;text-align: center\"><strong><em>SS<sub>x<\/sub><\/em>=12.55<\/strong><\/td>\n<td style=\"width: 21.4724%;height: 15px;text-align: center\"><\/td>\n<td style=\"width: 16.8352%;height: 15px;text-align: center\"><strong><em>SS<sub>y<\/sub><\/em>=9963.64<\/strong><\/td>\n<td style=\"width: 18.8183%;height: 15px;text-align: center\"><strong><em>SP<sub>xy<\/sub><\/em>=337.27<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Then, I substitute the relevant numbers into the formulas for <em>a<\/em> and <em>b<\/em>:<\/p>\n<p>&nbsp;<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 39px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-7a746103c70938eea284a29c22a17e2b_l3.png\" height=\"39\" width=\"244\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#98;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#83;&#80;&#125;&#123;&#83;&#83;&#95;&#120;&#125;&#61;&#123;&#51;&#51;&#55;&#46;&#50;&#55;&#125;&#123;&#49;&#50;&#46;&#53;&#53;&#125;&#61;&#50;&#54;&#46;&#56;&#56;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\n<p>&nbsp;<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 17px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-6add20feed3b66e87aedc3552ab9c584_l3.png\" height=\"17\" width=\"416\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#97;&#61;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#121;&#125;&#45;&#98;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#61;&#53;&#49;&#46;&#56;&#45;&#50;&#54;&#46;&#56;&#56;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#46;&#54;&#61;&#53;&#49;&#46;&#56;&#45;&#52;&#51;&#46;&#57;&#57;&#61;&#55;&#46;&#56;&#51;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>This makes our <strong>best-fitting\/regression line<\/strong> this:<\/p>\n<p>&nbsp;<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 17px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-184103952e3bbcdeeaf583d830b03b8b_l3.png\" height=\"17\" width=\"210\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#61;&#97;&#43;&#98;&#120;&#61;&#55;&#46;&#56;&#51;&#43;&#50;&#54;&#46;&#56;&#56;&#120;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&#8230; which is exactly what SPSS had already told us, if you care to go back to Figure 10.2 in the previous section and check.<\/p>\n<p>&nbsp;<\/p>\n<p>You may or might not be impressed by this, but you certainly need to know how to interpret it. In this case the regression tells us that <strong>a student who doesn&#8217;t complete even one requirement of their assignment is expected to receive 7.83 points <\/strong>(that&#8217;s the constant, or Y-intercept)<strong>; further, for every requirement completed, their mark would increase by 26.88 points\u00a0<\/strong>(that&#8217;s the regression coefficient)<strong>. That is, the effect of one completed requirement on the assignment mark is 26.88 points.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>We can also calculate the actual predicted values (which form the regression line itself):<\/p>\n<ul>\n<li>for <em>x<\/em>=0, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-16b5234b74b35657cb162ec512cae5e6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#61;&#55;&#46;&#56;&#51;&#43;&#50;&#54;&#46;&#56;&#56;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#48;&#61;&#55;&#46;&#56;&#51;&#43;&#48;&#61;&#55;&#46;&#56;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"298\" style=\"vertical-align: -4px;\" \/>;<\/li>\n<li>for <em>x<\/em>=1,\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-6dd7c987d9e15a0fe9a8b0429296672c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#61;&#55;&#46;&#56;&#51;&#43;&#50;&#54;&#46;&#56;&#56;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#61;&#55;&#46;&#56;&#51;&#43;&#50;&#54;&#46;&#56;&#56;&#61;&#51;&#52;&#46;&#55;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"338\" style=\"vertical-align: -4px;\" \/>;<\/li>\n<li>for <em>x<\/em>=2,\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-b7e8e5b63ccb449986d6a633cf9636cd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#61;&#55;&#46;&#56;&#51;&#43;&#50;&#54;&#46;&#56;&#56;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#50;&#61;&#55;&#46;&#56;&#51;&#43;&#53;&#51;&#46;&#55;&#54;&#61;&#54;&#49;&#46;&#53;&#57;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"339\" style=\"vertical-align: -4px;\" \/>;<\/li>\n<li>for <em>x<\/em>=3,\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0be0fb9fcba95582e6023df2d3f101a5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#61;&#55;&#46;&#56;&#51;&#43;&#50;&#54;&#46;&#56;&#56;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#51;&#61;&#55;&#46;&#56;&#51;&#43;&#56;&#48;&#46;&#54;&#52;&#61;&#56;&#56;&#46;&#52;&#55;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"339\" style=\"vertical-align: -4px;\" \/>.<\/li>\n<\/ul>\n<p>As you can see, these are different values than the ones we had in the deterministic version with which we started in Section 10.1 (i.e., 0 requirements = 10 points, 1 requirement = 40 points, 2 requirements = 70 points, 3 requirements = 100 points). The difference between the certainty of the deterministic version and the <em>un<\/em>certainty of the current probabilistic version is the unexplained (by number of requirements) variance<a class=\"footnote\" title=\"That is, in the deterministic version, we could say that  (reality = prediction), or rather, that there is no prediction at all -- we know what the true relationship between the variables is as the assignment mark depends entirely on the number of fulfilled requirements. In the actual\/probabilistic version,  (reality = prediction plus residual\/error), where the residual is what is left unexplained, or simply the difference between reality and prediction.\" id=\"return-footnote-1340-2\" href=\"#footnote-1340-2\" aria-label=\"Footnote 2\"><sup class=\"footnote\">[2]<\/sup><\/a>. How much variance we <em>have<\/em> explained we will see in the next section. Before that, here is Figure 10.2 again so that you can pinpoint the predicted values for yourselves. (Hint: they&#8217;re on the line.)<\/p>\n<p>&nbsp;<\/p>\n<p><em>Figure 10.2 Assignment Requirements and Mark (Redux)<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/04\/scatterplot-class-assignment-requirements-mark-with-variability.png\" alt=\"\" width=\"462\" height=\"370\" class=\"wp-image-1345 size-full aligncenter\" srcset=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/04\/scatterplot-class-assignment-requirements-mark-with-variability.png 462w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/04\/scatterplot-class-assignment-requirements-mark-with-variability-300x240.png 300w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/04\/scatterplot-class-assignment-requirements-mark-with-variability-65x52.png 65w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/04\/scatterplot-class-assignment-requirements-mark-with-variability-225x180.png 225w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/04\/scatterplot-class-assignment-requirements-mark-with-variability-350x280.png 350w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>Testing the regression coefficient for statistical significance.\u00a0<\/strong>Of course, as with any statistics obtained through a sample, we have to be able to check whether the regression coefficient is generalizable to the population, i.e., whether it is statistically significant. In other words, we have to examine the evidence whether the identified effect of the independent variable on the dependent variable exists in the population or whether it is a result of random sampling.<\/p>\n<p>&nbsp;<\/p>\n<p>The significance test for <em>b<\/em> is your familiar <em>t<\/em>-test, given by the following formula<a class=\"footnote\" title=\"The population version is . Since we generally do not know , we substitute it with its estimate, the sample-based sb. This of course also means we move to the t-distribution.\" id=\"return-footnote-1340-3\" href=\"#footnote-1340-3\" aria-label=\"Footnote 3\"><sup class=\"footnote\">[3]<\/sup><\/a>:<\/p>\n<p>&nbsp;<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 40px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-2794fc0558ea76fa1669030b254867f5_l3.png\" height=\"40\" width=\"48\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#116;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#98;&#125;&#123;&#115;&#95;&#98;&#125;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>where <em>s<sub>b<\/sub><\/em> is <em>b<\/em>&#8216;s standard error.<a class=\"footnote\" title=\"The standard error of b is calculated by this, admittedly scary-looking, formula:\n\n\u00a0\n\n \u00a0  \u00a0 \n\n\u00a0\n\nThis can be simplified to be more user-friendly but then I will need to introduce additional concepts (like the\u00a0mean squared error\u00a0and\u00a0the standard error of the estimate) which are not necessary for you at this stage and are therefore beyond the scope of this book. You will be happy to know that the hand calculation of sb also falls in that category.\" id=\"return-footnote-1340-4\" href=\"#footnote-1340-4\" aria-label=\"Footnote 4\"><sup class=\"footnote\">[4]<\/sup><\/a>:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>The degrees of freedom for <em>t<sub>b<\/sub><\/em> are <em>N<\/em>-2 in the bivariate case. We can see what we can do with the test in hypothesis testing, next,<\/p>\n<p>&nbsp;<\/p>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-1340-1\">So much so that the correlation coefficient <em>r<\/em> and the regression coefficient <em>b<\/em> are related: <img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-f6c4439f11bc285adeb8f051769994a4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;&#61;&#114;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#95;&#121;&#125;&#123;&#115;&#95;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"23\" width=\"56\" style=\"vertical-align: -8px;\" \/> where <em>s<sub>y<\/sub><\/em> and <em>s<sub>x<\/sub><\/em> are, of course, the standard deviations of <em>y<\/em> and <em>x<\/em>, respectively. <a href=\"#return-footnote-1340-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><li id=\"footnote-1340-2\">That is, in the deterministic version, we could say that <img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-6aea60ca06833a3ee94b0c31273d8dac_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;&#61;&#92;&#104;&#97;&#116;&#123;&#121;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"42\" style=\"vertical-align: -4px;\" \/> (<em>reality<\/em> = <em>prediction<\/em>), or rather, that there is no prediction at all -- we know what the true relationship between the variables is as the assignment mark depends entirely on the number of fulfilled requirements. In the actual\/probabilistic version, <img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-6b3f71cfcc2fe7ccb7ba2d69839bf722_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;&#61;&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#43;&#101;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"72\" style=\"vertical-align: -4px;\" \/> (<em>reality<\/em> = <em>prediction plus residual\/error<\/em>), where the residual is what is left unexplained, or simply the difference between reality and prediction.  <a href=\"#return-footnote-1340-2\" class=\"return-footnote\" aria-label=\"Return to footnote 2\">&crarr;<\/a><\/li><li id=\"footnote-1340-3\">The population version is <img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-69bcda87f965c6decb188dce89821dcd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#122;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#98;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#98;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"24\" width=\"49\" style=\"vertical-align: -8px;\" \/>. Since we generally do not know <img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-93a754821fffcc826ff6e398a9b96819_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: -3px;\" \/>, we substitute it with its estimate, the sample-based <em>s<sub>b<\/sub><\/em>. This of course also means we move to the <em>t<\/em>-distribution. <a href=\"#return-footnote-1340-3\" class=\"return-footnote\" aria-label=\"Return to footnote 3\">&crarr;<\/a><\/li><li id=\"footnote-1340-4\">The standard error of <em>b<\/em> is calculated by this, admittedly scary-looking, formula:\r\n\r\n&nbsp;\r\n\r\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 64px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-4a5ed7136608f9cf4357210baea33161_l3.png\" height=\"64\" width=\"156\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#115;&#95;&#98;&#32;&#61;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#83;&#105;&#103;&#109;&#97;&#123;&#40;&#121;&#45;&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#41;&#94;&#50;&#125;&#125;&#123;&#40;&#78;&#45;&#50;&#41;&#125;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#83;&#105;&#103;&#109;&#97;&#123;&#40;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;&#94;&#50;&#125;&#125;&#32;&#32;&#32;&#32;&#125;&#125;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\r\n\r\n&nbsp;\r\n\r\n<span style=\"font-size: 14pt;text-indent: 18.6667px\">This can be simplified to be more user-friendly but then I will need to introduce additional concepts (like the\u00a0<\/span><em style=\"font-size: 14pt;text-indent: 18.6667px\">mean squared error<\/em><span style=\"font-size: 14pt;text-indent: 18.6667px\">\u00a0and\u00a0<\/span><em style=\"font-size: 14pt;text-indent: 18.6667px\">the standard error of the estimate<\/em><span style=\"font-size: 14pt;text-indent: 18.6667px\">) which are not necessary for you at this stage and are therefore beyond the scope of this book. You will be happy to know that the hand calculation of <em>s<sub>b<\/sub><\/em> also falls in that category. <a href=\"#return-footnote-1340-4\" class=\"return-footnote\" aria-label=\"Return to footnote 4\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":533,"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-1340","chapter","type-chapter","status-publish","hentry"],"part":128,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/users\/533"}],"version-history":[{"count":25,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1340\/revisions"}],"predecessor-version":[{"id":2150,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1340\/revisions\/2150"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/parts\/128"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1340\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/media?parent=1340"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapter-type?post=1340"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/contributor?post=1340"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/license?post=1340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}