Multiple Regression Analysis Part II

Multiple Regression

  • If there is more than one independent variable available, multiple regression can be used.
  • Multiple regression lets us explore how several variables influence the dependent variable.

Multiple Regression Model

  • Examine the linear relationship between one dependent (Y) & 2 or more independent variables (XiX_i).
  • Multiple Regression Model with k Independent Variables: Y=β<em>0+β</em>1X<em>1+β</em>2X<em>2++β</em>KXK+εY = \beta<em>0 + \beta</em>1X<em>1 + \beta</em>2X<em>2 + \ldots + \beta</em>KX_K + \varepsilon
    • Y-intercept
    • Population slopes
    • Random Error

Multiple Regression Equation

  • The coefficients of the multiple regression model are estimated using sample data.
  • y<em>i^=b</em>0+b<em>1x</em>1i+b<em>2x</em>2i++b<em>Kx</em>Ki\hat{y<em>i} = b</em>0 + b<em>1x</em>{1i} + b<em>2x</em>{2i} + \ldots + b<em>Kx</em>{Ki}
    • yi^\hat{y_i} Estimated (or predicted) value of y
    • b0b_0 Estimated intercept
    • b<em>1,b</em>2,,bKb<em>1, b</em>2, …, b_K Estimated slope coefficients
  • Multiple regression equation with k independent variables:
  • A computer is typically used to obtain the regression slope coefficients and other regression summary measures.
  • The slopes b<em>1b<em>1 through b</em>kb</em>k show “partial” influences.

Three Dimensional Graphing

  • Two variable model
    • y, x1, x2
    • y^=b<em>0+b</em>1x<em>1+b</em>2x2\hat{y} = b<em>0 + b</em>1x<em>1 + b</em>2x_2
  • The best fit equation, y^\hat{y}, is found by minimizing the sum of squared errors, e2\sum e^2

Multiple Regression: Goodness-of-Fit Measures

  • Three measures to judge how well the sample regression fits the data:
    • The Standard Error of the Estimate
    • The Coefficient of Determination: R2R^2 and adjusted R2R^2
    • Tests of Significance: Individual Significance and Joint Significance

The Standard Error of the Estimate

  • The square root of the MSE is the standard error of the estimate, ses_e.
  • In general, the less variation around the regression line, the smaller the ses_e, which implies a better fit to the model.
  • s<em>e=MSE=</em>i=1n(y<em>iy</em>i^)2nk1=<em>i=1ne</em>i2nk1s<em>e = \sqrt{MSE} = \sqrt{\frac{\sum</em>{i=1}^n (y<em>i - \hat{y</em>i})^2}{n - k - 1}} = \sqrt{\frac{\sum<em>{i=1}^n e</em>i^2}{n - k - 1}}

Goodness-of-Fit Measures: R2

  • The coefficient of determination is computed as R2=1SSESSTR^2 = 1 - \frac{SSE}{SST}, where
    • SST: the total sum of squares
    • SST = SSR + SSE
    • SSR: the sum of squares due to regression
    • SSE: the sum of squares due to error
    • SSE=(yiy^)2SSE = \sum (y_i - \hat{y})^2
    • SST=(yiyˉ)2SST = \sum (y_i - \bar{y})^2

Difference between R2 and adjusted R2

  • More explanatory variables always result in a higher R2R^2.
  • Some of these variables may be unimportant and should not be in the model.
  • The Adjusted R2R^2 tries to balance the raw explanatory power against the desire to include only important predictors.

Goodness-of-Fit Measures: Adjusted R2

  • The Adjusted R2R^2 is computed as:
    • Adjusted R2=1(1R2)n1nk1R^2 = 1 - (1 - R^2) \frac{n - 1}{n - k - 1}
  • The Adjusted R2R^2 penalizes the R2R^2 for adding additional independent variables.

Tests of Individual Significance

  • Linear multiple regression model: y=b<em>0+b</em>1x<em>1+b</em>2x<em>2++b</em>kxk+ey = b<em>0 + b</em>1x<em>1 + b</em>2x<em>2 + \ldots + b</em>kx_k + e
  • The most common hypothesis test for an individual slope coefficient is to test whether its value differs from zero.
  • If a coefficient is equal to zero, then it implies that the explanatory variable is not a significant predictor of the dependent variable:
    • H<em>0:β</em>j=0H<em>0: \beta</em>j = 0
    • H<em>1:β</em>j0H<em>1: \beta</em>j \neq 0

Tests of Individual Significance

  • The test statistic will follow a t-distribution with degrees of freedom df = n – k – 1. It is calculated as:
    • t=b<em>j0S</em>b<em>j=b</em>jS<em>b</em>jt = \frac{b<em>j - 0}{S</em>{b<em>j}} = \frac{b</em>j}{S<em>{b</em>j}}
    • S<em>b</em>jS<em>{b</em>j} is the standard error of the estimator bjb_j

Tests of Joint Significance

  • In addition to conducting tests of individual significance, we also may want to test the joint significance of all k variables at once -> F-Test for Overall Significance of the Model
  • The competing hypotheses for a test of joint significance are:
    • H<em>0:β</em>1=β<em>2==β</em>K=0H<em>0: \beta</em>1 = \beta<em>2 = \ldots = \beta</em>K = 0
    • H<em>1H<em>1: at least one β</em>i0\beta</em>i \neq 0 (at least one independent variable affects Y)

Tests of Joint Significance

  • The test statistic for a test of joint significance is
    • F=MSRMSE=SSR/kSSE/(nk1)F = \frac{MSR}{MSE} = \frac{SSR / k}{SSE / (n - k - 1)},
    • where MSR and MSE are, respectively, the mean square regression and the mean square error.
  • The numerator degrees of freedom is df<em>1=kdf<em>1 = k, while the denominator degrees of freedom is df</em>2=nk1df</em>2 = n – k – 1

Multiple Regression Analysis: Application Procedure Assumptions

  • The errors are normally distributed
  • Errors have a constant variance
  • The model errors are independent
  • e<em>i=(y</em>iyi^)e<em>i = (y</em>i – \hat{y_i}) < Errors (residuals) from the regression model:

Analysis of Residuals

  • These residual plots are used in multiple regression:
    • Residuals vs. yi^\hat{y_i}
    • Residuals vs. x1ix_{1i}
    • Residuals vs. x2ix_{2i}
    • Residuals vs. time (if time series data)
  • Use the residual plots to check for violations of regression assumptions