1 / 34

Chapter 14

Chapter 14. Multiple Regression and Model Building. Multiple Regression and Model Building. 14.1 The Multiple Regression Model and the Least Squares Point Estimate 14.2 Model Assumptions and the Standard Error 14.3 R ² and Adjusted R ² 14.4 The Overall F Test

Download Presentation

Chapter 14

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 14 Multiple Regression and Model Building

  2. Multiple Regression and Model Building 14.1 The Multiple Regression Model and the Least Squares Point Estimate 14.2 Model Assumptions and the Standard Error 14.3 R² and Adjusted R² 14.4 The Overall F Test 14.5 Testing the Significance of an Independent Variable

  3. Multiple Regression and Model Building Continued 14.6 Confidence and Prediction Intervals 14.7 Using Dummy Variables to Model Qualitative Independent Variables 14.8 Model Building and the Effects of Multicollinearity 14.9 Residual Analysis in Multiple Regression

  4. 14.1 The Multiple Regression Model and the Least Squares Point Estimate • Simple linear regression used one independent variable to explain the dependent variable • Multiple regression uses two or more independent variables to describe the dependent variable • This allows multiple regression models to handle more complex situations • There is no limit to the number of independent variables a model can use • Has only one dependent variable

  5. The Multiple Regression Model • The linear regression model relating y to x1, x2,…, xk is y = β0 + β1x1 + β2x2 +…+ βkxk +  • µy = β0 + β1x1 + β2x2 +…+ βkxk is the mean value of the dependent variable y • β0, β1, β2,… βk are unknown the regression parameters relating the mean value of y to x1, x2,…, xk •  is an error term that describes the effects on y of all factors other than the independent variables x1, x2,…, xk

  6. The Least Squares Estimates and Point Estimation and Prediction • Estimation/prediction equationŷ = b0 + b1x01 + b2x02 + … + bkx0k is the point estimate of the dependent variable when the independent variables are x1, x2,…, xk • It is also the point prediction of an individual value of the dependent variable when the independent variables are x1, x2,…, xk • b0, b1, b2,…, bk are the least squares point estimates of the parameters β0, β1, β2,…, βk • x01, x02,…, x0k are specified values of the independent predictor variables x1, x2,…, xk

  7. Fuel Consumption Case MINITAB Output Figure 14.4 (a)

  8. 14.2 Model Assumptions and the Standard Error • The model isy = β0 + β1x1 + β2x2 + … + βkxk +  • Assumptions for multiple regression are stated about the model error terms, ’s

  9. The Regression Model Assumptions • Mean of Zero Assumption • Constant Variance Assumption • Normality Assumption • Independence Assumption

  10. Sum of Squares

  11. 14.3 R2 and Adjusted R2 • Total variation is given by the formulaΣ(yi - ȳ)2 • Explained variation is given by the formulaΣ(ŷi - ȳ)2 • Unexplained variation is given by the formulaΣ(yi - ŷi)2 • Total variation is the sum of explained and unexplained variation

  12. R2 and Adjusted R2 Continued • The multiple coefficient of determination is the ratio of explained variation to total variation • R2 is the proportion of the total variation that is explained by the overall regression model • Multiple correlation coefficient R is the square root of R2

  13. Multiple Correlation Coefficient R • The multiple correlation coefficient R is just the square root of R2 • With simple linear regression, r would take on the sign of b1 • There are multiple bi’s with multiple regression • For this reason, R is always positive • To interpret the direction of the relationship between the x’s and y, you must look to the sign of the appropriate bi coefficient

  14. The Adjusted R2 • Adding an independent variable to multiple regression will raise R2 • R2 will rise slightly even if the new variable has no relationship to y • The adjusted R2 corrects this tendency in R2 • As a result, it gives a better estimate of the importance of the independent variables

  15. 14.4 The Overall F Test • H0: β1= β2 = …= βk = 0 versusHa: At least one of β1, β2,…, βk ≠ 0 • The test statistic is • Reject H0 in favor of Ha if F(model) > F* orp-value <  • *F is based on k numerator and n-(k+1) denominator degrees of freedom

  16. 14.5 Testing the Significance of an Independent Variable • A variable in a multiple regression model is not likely to be useful unless there is a significant relationship between it and y • To test significance, we use the null hypothesis H0: βj = 0 • Versus the alternative hypothesisHa: βj ≠ 0

  17. Testing Significance of an Independent Variable #2

  18. Testing Significance of an Independent Variable #3 • Test Statistics • 100(1-)% Confidence Interval for βj[b1± t/2Sbj] • t, t/2 and p-values are based on n-(k+1) degrees of freedom

  19. Testing Significance of an Independent Variable #4 • It is customary to test the significance of every independent variable • If we can reject H0: βj = 0 at the 0.05 level of significance, we have strong evidence that the independent variable xj is significantly related to y • At the 0.01 level of significance, we have very strong evidence • The smaller the significance level  at which H0 can be rejected, the stronger the evidence that xj is significantly related to y

  20. A Confidence Interval for the Regression Parameter βj • If the regression assumptions hold, 100(1-)% confidence interval for βjis [b1± t/2Sbj] • t/2 is based on n – (k + 1) degrees of freedom

  21. 14.6 Confidence and Prediction Intervals • The point corresponding to a particular value of x01, x02,…, x0k, of the independent variables isŷ = b0 + b1x01 + b2x02 + … + bkx0k • It is unlikely that this value will equal the mean value of y for these x values • Need bounds on how far the predicted value might be from the actual value • We can do this by calculating a confidence interval for the mean value of y and a prediction interval for an individual value of y

  22. A Confidence Interval and a Prediction Interval

  23. 14.7 Using Dummy Variables to Model Qualitative Independent Variables • So far, we have only looked at including quantitative data in a regression model • However, we may wish to include descriptive qualitative data as well • For example, might want to include the gender of respondents • We can model the effects of different levels of a qualitative variable by using what are called dummy variables • Also known as indicator variables

  24. How to Construct Dummy Variables • A dummy variable always has a value of either 0 or 1 • For example, to model sales at two locations, would code the first location as a zero and the second as a 1 • Operationally, it does not matter which is coded 0 and which is coded 1

  25. What If We Have More Than TwoCategories? • Consider having three categories, say A, B and C • Cannot code this using one dummy variable • A = 0, B = 1 and C = 2 would be invalid • Assumes the difference between A and B is the same as B and C • We must use multiple dummy variables • Specifically, k categories requires k - 1 dummy variables

  26. What If We Have More Than TwoCategories? Continued • For A, B, and C, would need two dummy variables • x1 is 1 for A, zero otherwise • x2 is 1 for B, zero otherwise • If x1 and x2 are zero, must be C • This is why the third dummy variable is not needed

  27. Interaction Models • So far, have only considered dummy variables as stand-alone variables • Model so far is y = β0 + β1x + β2D +  • Where D is dummy variable • However, can also look at interaction between dummy variable and other variables • That model would take the formy = β0 + β1x + β2D + β3xD +  • With an interaction term, both the intercept and slope are shifted

  28. 14.8 Model Building and the Effects of Multicollinearity • Multicollinearity causes problems evaluating the p-values of the model • Therefore, we need to evaluate more than the additional importance of each independent variable • We also need to evaluate how the variables work together • One way to do this is to determine if the overall model gives a high R² and adjusted R², a small s, and short prediction intervals

  29. Effect of Adding Independent Variable • Adding any independent variable will increase R² • Even adding an unimportant independent variable • Thus, R² cannot tell us that adding an independent variable is undesirable

  30. A Better Criterion • A better criterion is the size of the standard error s • If s increases when an independent variable is added, we should not add that variable • However, decreasing s alone is not enough • An independent variable should only be included if it reduces s enough to offset the higher t value and reduces the length of the desired prediction interval for y

  31. C Statistic • Another quantity for comparing regression models is called the C (a.k.a. Cp) statistic • First, calculate mean square error for the model containing all p potential independent variables (s2p) • Next, calculate SSE for a reduced model with k independent variables

  32. C Statistic Continued • We want the value of C to be small • Adding unimportant independent variables will raise the value of C • While we want C to be small, we also wish to find a model for which C roughly equals k+1 • A model with C substantially greater than k+1 has substantial bias and is undesirable • If a model has a small value of C and C for this model is less than k+1, then it is not biased and the model should be considered desirable

  33. 14.9 Residual Analysis in MultipleRegression • For an observed value of yi, the residual isei = yi - ŷ = yi – (b0 + b1xi1 + … + bkxik) • If the regression assumptions hold, the residuals should look like a random sample from a normal distribution with mean 0 and variance σ2

  34. Residual Plots • Residuals versus each independent variable • Residuals versus predicted y’s • Residuals in time order (if the response is a time series)

More Related