{"id":3409,"date":"2015-04-12T01:18:05","date_gmt":"2015-04-12T06:18:05","guid":{"rendered":"http:\/\/www.ssc.wisc.edu\/~jfrees\/?page_id=3409"},"modified":"2015-08-16T09:52:00","modified_gmt":"2015-08-16T14:52:00","slug":"2-8-illustrative-regression-computer-output","status":"publish","type":"page","link":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/regression\/basic-linear-regression\/2-8-illustrative-regression-computer-output\/","title":{"rendered":"2.8 Illustrative Regression Computer Output"},"content":{"rendered":"<p>Computers and statistical software packages that perform specialized calculations play a vital role in modern-day statistical analyses. Inexpensive computing capabilities have allowed data analysts to focus on relationships of interest. Specifying models that are attractive merely for their computational simplicity is much less important now compared to times before the widespread availability of inexpensive computing. An important theme of this text is to focus on relationships of interest and to rely on widely available statistical software to estimate the models that we specify. <\/p>\n<p> With any computer package, generally the most difficult parts of operating the package are the (i) input, (ii) using the commands and (iii) interpreting the output. You will find that most modern statistical software packages accept spreadsheet or text-based files, making input of data relatively easy. Personal computer statistical software packages have menu-driven command languages with easily accessible on-line help facilities. Once you decide what to do, finding the right commands is relatively easy. <\/p>\n<p> This section provides guidance in interpreting the output of statistical packages. Most statistical packages generate similar output. Below, three examples of standard statistical software packages, EXCEL, SAS and R are given. The annotation symbol &#8220;[.]&#8221; marks a statistical quantity that is described in the legend. Thus, this section provides a link between the notation used in the text and output from some of the standard statistical software packages. <\/p>\n<p><strong>EXCEL Output<\/strong><\/p>\n<pre>\r\nRegression Statistics \r\nMultiple R              0.886283[F]\r\nR Square                0.785497[k]\r\nAdjusted R Square       0.781028[l]\r\nStandard Error          3791.758[j]\r\nObservations                  50[a]\r\n\r\nANOVA          df         SS              MS             F       Significance F \r\nRegression   1[m]   2527165015 [p]  2527165015 [s]  175.773[u]   1.15757E-17[v] \r\nResidual    48[n]   690116754.8[q]  14377432.39[t] \r\nTotal       49[o]   3217281770 [r] \r\n\r\n         Coefficients    Standard Error      t Stat         P-value \r\nIntercept    469.7036[b] 702.9061896[d]   0.668230846[f] 0.507187[h] \r\nX Variable 1 0.647095[c] 0.048808085[e]   13.25794257[g] 1.16E-17[i] \r\n<\/pre>\n<p><strong>SAS Output<\/strong><\/p>\n<pre>\r\n                           The SAS System\r\n                          The REG Procedure \r\n                      Dependent Variable: SALES \r\n\r\n                         Analysis of Variance                                \r\n                                   Sum of           Mean \r\nSource                   DF        Squares         Square     F Value      Pr > F \r\nModel                  1[m]   2527165015[p]   2527165015[s]   175.77[u]    &lt;.0001[v] \r\nError                 48[n]    690116755[q]     14377432[t] \r\nCorrected Total       49[o]   3217281770[r] \r\n\r\n         Root MSE           3791.75848[j]    R-Square     0.7855[k]\r\n         Dependent Mean     6494.82900[H]    Adj R-Sq     0.7810[l]\r\n         Coeff Var            58.38119[I] \r\n\r\n                         Parameter Estimates\r\n                                Parameter       Standard \r\nVariable     Label        DF     Estimate        Error      t  Value    Pr > |t|\r\nIntercept    Intercept     1   469.70360[b]  702.90619[d]    0.67[f]    0.5072[h] \r\nPOP          POP           1     0.64709[c]    0.04881[e]   13.26[g]    &lt;.0001[i] \r\n<\/pre>\n<p><strong>R Output<\/strong><\/p>\n<pre>\r\nAnalysis of Variance Table \r\n\r\nResponse: SALES\r\n           Df     Sum Sq      Mean Sq        F value         Pr(>F) \r\nPOP        1[m] 2527165015[p] 2527165015[s] 175.77304[u] &lt;2.22e-16[v]*** \r\nResiduals 48[n]  690116755[q]   14377432[t] \r\n--- \r\nCall: lm(formula = SALES ~ POP) \r\n\r\nResiduals:\r\n    Min     1Q Median     3Q    Max\r\n  -6047  -1461   -670    486  18229 \r\n\r\nCoefficients:\r\n             Estimate     Std. Error t value     Pr(>|t|) \r\n(Intercept) 469.7036[b] 702.9062[c]  0.67[f]    0.51     [h] \r\nPOP           0.6471[c]   0.0488[e] 13.26[g]   &lt;2e-16 ***[i] \r\n--- \r\nSignif. codes:  0 \u2018***\u2019 0.001 \u2018**\u2019 0.01 \u2018*\u2019 0.05 \u2018.\u2019 0.1 \u2018 \u2019 1 \r\n\r\nResidual standard error: 3790[j] on 48[n] degrees of freedom\r\nMultiple R-Squared: 0.785[k],      Adjusted R-squared: 0.781[l] \r\nF-statistic:  176[u] on 1[m] and 48[n] DF,  p-value: &lt;2e-16[v]\r\n<\/pre>\n<p><strong>Legend Annotation Definition, Symbol <\/strong> <\/p>\n<p> [a] Number of observations \\(n\\).<br \/>\n [b] The estimated intercept \\(b_0\\).<br \/>\n [c] The estimated slope \\(b_1\\).<br \/>\n [d] The standard error of the intercept, \\(se(b_0)\\).<br \/>\n [e] The standard error of the intercept, \\(se(b_1)\\).<br \/>\n [f] The \\(t\\)-ratio associated with the intercept, \\(t(b_0) = b_0\/se(b_0)\\).<br \/>\n [g] The \\(t\\)-ratio associated with the slope, \\(t(b_1) = b_1\/se(b_1)\\).<br \/>\n [h] The \\(p\\)-value associated with the intercept; here, \\( p-value=Pr(|t_{n-2}|>|t(b_0)|)\\), where \\(t(b_0)\\) is the realized value (0.67 here) and \\(t_{n-2}\\) has a \\(t\\)-distribution with \\(df=n-2\\).<br \/>\n [i] The \\(p\\)-value associated with the slope; here, \\( p-value=Pr(|t_{n-2}|>|t(b_1)|)\\), where \\(t(b_1)\\) is the realized value (13.26 here) and \\(t_{n-2}\\) has a \\(t\\)-distribution with \\( df=n-2 \\).<br \/>\n [j] The residual standard deviation, \\(s\\).<br \/>\n [k] The coefficient of determination, \\(R^2\\).<br \/>\n [l] The coefficient of determination adjusted for degrees of freedom, \\(R_{a}^2\\). (This term will be defined in Chapter 3.)<br \/>\n [m] Degree of freedom for the regression component. This is 1 for one explanatory variable.<br \/>\n [n] Degree of freedom for the error component, \\(n-2\\), for regression with one explanatory variable.<br \/>\n [o] Total degrees of freedoms, \\(n-1\\).<br \/>\n [p] The regression sum of squares, \\(Regression~SS\\).<br \/>\n [q] The error sum of squares, \\(Error~SS\\).<br \/>\n [r] The total sum of squares, \\(Total~SS\\).<br \/>\n [s] The regression mean square, \\(Regression~MS = Regression~SS\/1\\), for one explanatory variable.<br \/>\n [t] The error mean square, \\(s^2=Error~MS = Error~SS\/(n-2)\\), for one explanatory variable.<br \/>\n [u] The \\(F-ratio=(Regression~MS)\/(Error~MS)\\). (This term will be defined in Chapter 3.)<br \/>\n [v] The \\(p\\)-value associated with the \\(F-ratio\\). (This term will be defined in Chapter 3.)<br \/>\n [w] The observation number, \\(i\\).<br \/>\n [x] The value of the explanatory variable for the \\(i\\)th observation, \\(x_i\\).<br \/>\n [y] The response for the \\(i\\)th observation, \\(y_i\\).<br \/>\n [z] The fitted value for the \\(i\\)th  observation, \\(\\widehat{y}_i\\).<br \/>\n [A] The standard error of the fit, \\(se(\\widehat{y}_i)\\).<br \/>\n [B] The residual for the \\(i\\)th observation, \\(e_i\\).<br \/>\n [C] The standardized residual for the \\(i\\)th  observation, \\(e_i\/se(e_i)\\). The standard error \\(se(e_i)\\) will be defined in Section 5.3.1.<br \/>\n [F] The multiple correlation coefficient is the square root of the coefficient of determination, \\(R=\\sqrt{R^2}\\). This will be defined in Chapter 3.<br \/>\n [G] The standardized coefficient is \\(b_1s_x\/s_y\\) For regression with one explanatory variable, this is equivalent to \\(r\\), the correlation coefficient.<br \/>\n [H] The average response, \\(\\overline{y}\\).<br \/>\n [I] The coefficient of variation of the response is \\(s_y\/\\overline{y}\\). SAS prints out \\(100s_y\/\\overline{y}\\). <\/p>\n<p><div class=\"alignleft\"><a href=\"https:\/\/users.ssc.wisc.edu\/~ewfrees\/regression\/basic-linear-regression\/2-7-application-capital-asset-pricing-model\/sensitivity-analysis\/\" title=\"Sensitivity Analysis\">&#9668 Previous page<\/a><\/div><div class=\"alignright\"><a href=\"https:\/\/users.ssc.wisc.edu\/~ewfrees\/regression\/basic-linear-regression\/2-9-technical-supplement-elements-of-matrix-algebra\/\" title=\"2.9 Technical Supplement &#8211; Elements of Matrix Algebra\">Next page &#9658<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Computers and statistical software packages that perform specialized calculations play a vital role in modern-day statistical analyses. Inexpensive computing capabilities have allowed data analysts to focus on relationships of interest. Specifying models that are attractive &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3243,"menu_order":8,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P8cLPd-SZ","acf":[],"_links":{"self":[{"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/pages\/3409"}],"collection":[{"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/comments?post=3409"}],"version-history":[{"count":8,"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/pages\/3409\/revisions"}],"predecessor-version":[{"id":4804,"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/pages\/3409\/revisions\/4804"}],"up":[{"embeddable":true,"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/pages\/3243"}],"wp:attachment":[{"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/media?parent=3409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}