Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

R Squared and Standard Error Formulas


Coefficient of Determination (R Squared)


R2=SSRSST=1− SSESST\displaystyle\boxed{R^2=\frac{SSR}{SST}=1-\ \frac{SSE}{SST}}



R2R^2 measures the how much of the variation in Y is explained by X.


Residual Standard Deviation Se\colorOne{S_e}

Other names:

  • Standard deviation of the estimate
  • Standard error
  • Overall standard deviation


Se=SSEn−k−1=MSE\displaystyle\boxed{S_e=\sqrt{\frac{SSE}{n-k-1}}=\sqrt{MSE}}

where,

  • k=k= # of explanatory variables, xi′sx_i^{'}s
  • SeS_e measures the overall spread of the residuals (or errors).
  • It is the vertical distances between the actual points and the predicted points obtained using the regression line.





Sum of Squared Errors (SSE)

SSE=SSyy−SSxy2SSxx\boxed{SSE=SS_{yy}-\frac{SS_{xy}^2}{SS_{xx}}}


SSE=∑y2−b0∑y−b1∑xy\boxed{SSE=\sum_{ }^{ }y_{ }^2-b_0\sum_{ }^{ }y_{ }-b_1\sum_{ }^{ }xy_{ }}


This is where SST, SSM, and SSE are located in the ANOVA table:



Image illustrating Standard Error and R Square Formulas

R.E.T. "Really Exciting Table"




Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Example: Residual Standard Deviation and R-Square

Image illustrating Example

What is the residual standard deviation?


Se=SSEn−k−1=\displaystyle{S_e=\sqrt{\frac{SSE}{n-k-1}}=}


Se=1422.515610−1−1=477.81445=13.3347\displaystyle{Se=\sqrt{\frac{1422.5156}{10-1-1}}=\sqrt{477.81445}=13.3347}

As you can see, this is the Standard Error in the above output.


What is the coefficient of determination?


R2=SSRSST=\displaystyle{R^2=\frac{SSR}{SST}=}


R2=417.48441840=0.2269\displaystyle{R^2=\frac{417.4844}{1840}=0.2269}


________% of the variation in yy can be attributed to its linear relationship with xx.


As you can see, this is the R Square in the above output.



A restaurateur wants to see if there is a relationship between the number of chefs working in the kitchen and profit. Here is the limited output:

Illustration for practice question: Coefficient of correlation and standard errors



(i) Find the coefficient of determination R2R^2 .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors