Download presentation

Presentation is loading. Please wait.

Published byHeriberto Ruffin Modified about 1 year ago

1
Multiple Regression STAT E-150 Statistical Methods

2
2 Three percent of a man's body is essential fat, which is necessary for a healthy body. However, too much body fat can be dangerous. For men between the ages of 18 and 39, a healthy body fat percent is 8% to 19%. (For women it is 21% to 32%.) It is not easy to measure body fat percent, but we can find a model for the relationship between body fat percent and waist size and use it to find the body weight percent associated with a given waist size.

3
3 The scatterplot indicates a positive linear relationship between waist size and body fat percent:

4
4 The SPSS output shows a significant linear relationship between the two variables. R 2 =.678, so we know that almost 68% of the variability in the body fat percentage is accounted for by the waist size. What other variables might be used to predict body fat percentage? Can we improve the prediction by including additional variables? Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist a. Dependent Variable: Pct BF Model Summary ModelRR Square Adjusted R Square Std. Error of the Estimate a

5
5 The Multiple Linear Regression Model We have n observations on k explanatory variables X 1, X 2, X 3, …, X k and a response variable, Y. The multiple regression model is: Y = β 0 + β 1 x 1 + β 2 x 2 + + β k x k + ε where ε ~ N(0, σ ε ) and the errors are independent from one another. The predictor variables may be higher powers or other functions of quantitative variables, coded categorical variables, or interaction terms. The main restriction is that the model is linear; that is, each term is a constant multiple of a predictor.

6
6 Fitting a Multiple Linear Regression Model As we did in Simple Linear Regression, we will choose a possible set of predictors, estimate the coefficients based on sample data, and assess the fit. We will again use the sum of squared residuals, where the residuals are the differences between the actual Y values and the Y values predicted by the prediction equation and use SPSS to determine the estimates of the coefficients β i that minimize the sum of the squared residuals.

7
7 We will test the hypotheses H 0 : β 1 = β 2 = β 3 = = β k = 0 H a : The slopes are not all zero. Our assumptions are: - The y-values are independent of each other - Y has a constant variance for any combination of predictors - The values of y are normally distributed for any fixed set of values for the explanatory variables That is, the errors are independent values from a N(0, σ ε ) distribution.

8
8 If the null hypothesis is rejected, then test a null hypothesis for each of the coefficients: H 0 : β j = 0 H a : β j ≠ 0 Note: If the null hypothesis is not rejected, it does not mean that the corresponding predictor variable has no relationship to y; it means that the predictor variable contributes nothing to modeling y after allowing for all the other predictors.

9
The hypotheses for fitting a multiple linear regression model to predict body fat percentage based on waist size and height are H 0 : β height = β weight = 0 H a : The slopes are not both zero. 9

10
Here are the scatterplots using the individual predictors: Although this suggests a linear relationship between waist size and body fat percentage, there doesn't appear to be a linear relationship between height and body fat percentage. 10

11
Here are some of the results for a multiple regression analysis with both height and waist as predictors: The p-value for height is close to 0, so we know that height does contribute to the multiple regression model. 11 Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

12
12 The graph shown below is called a scatterplot matrix. It shows the scatterplots for all pairs of the variables we are using Which pair of variables shows a strong linear relationship? Which pair of variables shows a weak linear relationship? Which pair of variables shows no linear relationship?

13
13 The graph shown below is called a scatterplot matrix. It shows the scatterplots for all pairs of the variables we are using Which pair of variables shows a strong linear relationship? Pct BF and Waist Which pair of variables shows a weak linear relationship? Height and Waist Which pair of variables shows no linear relationship? Pct BF and Height

14
Residual Analysis These plots tell us that there is no particular scatter to the residuals, and that the distribution of the residuals is close to normal. 14

15
Use the SPSS output provided to answer the questions below: What is the fitted regression equation? 15 Model Summary b ModelRR Square Adjusted R Square Std. Error of the Estimate a a. Predictors: (Constant), Height, Waist b. Dependent Variable: Pct BF Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

16
Use the SPSS output provided to answer the questions below: What is the fitted regression equation? %BodyFat = waist height Model Summary b ModelRR Square Adjusted R Square Std. Error of the Estimate a a. Predictors: (Constant), Height, Waist b. Dependent Variable: Pct BF Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

17
Use the SPSS output provided to answer the questions below: %BodyFat = waist height What does the value tell you? An increase of one inch in the waist measurement is associated with an increase of in body fat percentage. 17 Model Summary b ModelRR Square Adjusted R Square Std. Error of the Estimate a a. Predictors: (Constant), Height, Waist b. Dependent Variable: Pct BF Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

18
Use the SPSS output provided to answer the questions below: %BodyFat = waist height What does the value tell you? An increase of one inch in the waist measurement is associated with an increase of in body fat percentage for men of a particular height. 18 Model Summary b ModelRR Square Adjusted R Square Std. Error of the Estimate a a. Predictors: (Constant), Height, Waist b. Dependent Variable: Pct BF Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

19
Use the SPSS output provided to answer the questions below: %BodyFat = waist height What change in Body Fat Percentage is associated with each additional inch of height? An increase of one inch of height is associated with an decrease of.601 in body fat percentage for men of a particular weight. 19 Model Summary b ModelRR Square Adjusted R Square Std. Error of the Estimate a a. Predictors: (Constant), Height, Waist b. Dependent Variable: Pct BF Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

20
Use the SPSS output provided to answer the questions below: %BodyFat = waist height What change in Body Fat Percentage is associated with each additional inch of height? An increase of one inch of height is associated with an decrease of.601 in body fat percentage for men of a particular weight. 20 Model Summary b ModelRR Square Adjusted R Square Std. Error of the Estimate a a. Predictors: (Constant), Height, Waist b. Dependent Variable: Pct BF Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

21
Use the SPSS output provided to answer the questions below: What is the value of R 2 ? What does it tell you? 21 Model Summary b ModelRR Square Adjusted R Square Std. Error of the Estimate a a. Predictors: (Constant), Height, Waist b. Dependent Variable: Pct BF Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

22
Use the SPSS output provided to answer the questions below: What is the value of R 2 ? What does it tell you? R 2 =.713 which tells us that height and waist size together account for about 71.3% of the variation in the body fat percentage for men. 22 Model Summary b ModelRR Square Adjusted R Square Std. Error of the Estimate a a. Predictors: (Constant), Height, Waist b. Dependent Variable: Pct BF Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

23
Use the SPSS results to complete the hypothesis test: The value the test statistic is: p = 0 + What can you conclude? Since p is close to zero, the null hypothesis is rejected. This data indicates that there is a linear relationship between body fat percentage and the predictor variables Waist and Height. 23

24
Use the SPSS results to complete the hypothesis test: The value the test statistic is: p = 0 + What can you conclude? is close to zero, the null hypothesis is rejected. This data indicates that there is a linear relationship between body fat percentage and the predictor variables Waist and Height. 24

25
Use the SPSS results to complete the hypothesis test: The value the test statistic is: p = 0 + What can you conclude? Since p is close to zero, the null hypothesis is rejected. This data indicates that there is a linear relationship between body fat percentage and the predictor variables waist and height.is close to zero, the null hypothesis is rejected. This data indicates that there is a linear relationship between body fat percentage and the predictor variables Waist and Height. 25

26
We also want to estimate the standard deviation of the error term, σ ε As we add a new predictor to the model, we have a new coefficient to estimate, and so we lose one more degree of freedom. The estimate for the standard error of the multiple regression model with k predictors is 26

27
Use the SPSS output to find the standard error of this regression model: 27

28
Use the SPSS output to find the standard error of this regression model: 28

29
Assessing a Multiple Regression Model Individual t-Tests for Coefficients in Multiple Regression In order to determine whether any one of the predictor variables is helpful to include in the model, we test the coefficient for that predictor: H 0 : β i = 0 H a : β i ≠ 0 The test statistic is with n - k - 1 degrees of freedom. 29

30
It is important to remember that the meaning of each coefficient depends on all of the predictors in the regression model. If we fail to reject the null hypothesis, it means that the corresponding predictor variable contributes nothing to the multiple regression model after allowing for all other predictors. 30

31
Use the SPSS output to test the coefficients in our model: H 0 : β height = 0 H a : β height ≠ 0t = p = What is your conclusion? 31 Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

32
Use the SPSS output to test the coefficients in our model: H 0 : β height = 0 H a : β height ≠ 0t = p = 0 + What is your conclusion? 32 Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

33
Use the SPSS output to test the coefficients in our model: H 0 : β height = 0 H a : β height ≠ 0t = p = 0 + What is your conclusion? Since p is close to 0, we will reject the null hypothesis. There is evidence that the percent of body fat is related to the height. We can conclude that the body fat percentage changes as the height changes, for men with the same waist size. 33 Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

34
Use the SPSS output to test the coefficients in our model: H 0 : β waist = 0 H a : β waist ≠ 0t = p = What is your conclusion? 34 Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

35
Use the SPSS output to test the coefficients in our model: H 0 : β waist = 0 H a : β waist ≠ 0t = p = 0 + What is your conclusion? 35 Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

36
Use the SPSS output to test the coefficients in our model: H 0 : β waist = 0 H a : β waist ≠ 0t = p = 0 + What is your conclusion? Since p is close to 0, we will reject the null hypothesis. There is evidence that the percent of body fat is related to the waist size. We can conclude that the body fat percentage changes as the waist size changes, for men of the same height. 36 Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

37
Can we do a one-tailed test? H 0 : β waist = 0 H a : β waist > 0t = p = What is your conclusion? Since p is close to 0, we will reject the null hypothesis. There is evidence that the percent of body fat is related to the waist size. We can conclude that the body fat percentage changes as the waist size changes, for men of the same height. 37 Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

38
Can we do a one-tailed test? H 0 : β waist = 0 H a : β waist > 0t = p =.000/2 = 0 + What is your conclusion? Since p is close to 0, we will reject the null hypothesis. There is evidence that the percent of body fat is related to the waist size. We can conclude that the body fat percentage changes as the waist size changes, for men of the same height. 38 Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

39
Can we do a one-tailed test? H 0 : β waist = 0 H a : β waist > 0t = p =.000/2 = 0 + What is your conclusion? Since p is close to 0, we will reject the null hypothesis. There is evidence that the percent of body fat is related to the waist size. We can conclude that the body fat percentage increases as the waist size changes, for men of the same height.to 0, we will 39 Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Waist Height a. Dependent Variable: Pct BF

40
Adjusted R 2 The adjusted R 2 is an adjustment to R 2 that takes the sample size and the number of parameters (β j ) into consideration. The adjusted R 2 increases as more predictors are added to the model, and so it can be useful in comparing regression models with different numbers of predictor variables. 40

41
Creating a Scatterplot Matrix Click on Graphs > Chart Builder. Select Scatter/Dot from the list of charts. Drag the Scatterplot Matrix to the window. 41

42
42 Drag the matrix variables to the horizontal axis. Click on OK. The scatterplot matrix will appear in the Output Viewer.

43
43

44
44 Estimating the Model Click on Analyze > Regression > Linear Drag the dependent variable and all independent variables to the appropriate locations. Click on OK.

45
45 This will produce several tables: Model Summary ModelRR SquareAdjusted R SquareStd. Error of the Estimate a a. Predictors: (Constant), Waist, Height Coefficients a Model Unstandardized Coefficients Standardized Coefficients tSig. BStd. ErrorBeta 1(Constant) Height Waist a. Dependent Variable: Pct BF ANOVA b Model Sum of SquaresdfMean SquareFSig. 1Regression a Residual Total a. Predictors: (Constant), Waist, Height b. Dependent Variable: Pct BF

46
46 If you click on Plots in the Linear Regression dialog box, you will get this dialog box: Plot the *ZRESIDS on the Y axis against the *ZPRED values on the X axis. You may also choose to create a Normal Probability Plot and/or histogram of the residuals.

47
47 Click on Continue and then OK. Here are the results:

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google