Processing math: 100%

Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

STAT 301 Lab

Lab 11: Multiple Linear Regression

T.A.: Yixuan Qiu

Multiple Linear Regression

  • Multiple linear regression is a generalization to simple linear regression
  • One Response v.s. multiple predictors
  • y=β0+β1x1+β2x2++βpxp+ε

Scatterplot Matrix

  • A convenient way to draw scatterplots for many variables
  • Each cell is a scatterplot for the two corresponding variables

Fitting the Model

  • Model summary
  • Coefficients

Fitting the Model

  • ANOVA

Refine the Model

  • Drop insignificant variables
  • R2 not decreasing much
    • Before: 0.581; After: 0.575
  • Std. error not increasing much
    • Before: 0.93273; After: 0.93478

Prediction and residual

  • Using the regression equation to do prediction

ˆy=0.302+1.151Var1+0.155Var2

  • Residual = True value - predicted value
    • Look into original data to find the true value
    • Use the predicted value above