1 12 multiple linear regression 12-1 multiple linear regression model 12-1.1 introduction 12-1.2...

93
1 12 Multiple Linear Regression CHAPTER OUTLINE

Upload: miles-simpson

Post on 16-Dec-2015

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

1

12Multiple Linear Regression

CHAPTER OUTLINE

Page 2: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

Learning Objectives for Chapter 12After careful study of this chapter, you should be able to do the

following:1. Use multiple regression techniques to build empirical models to

engineering and scientific data.2. Understand how the method of least squares extends to fitting multiple

regression models.3. Assess regression model adequacy.4. Test hypotheses and construct confidence intervals on the regression

coefficients.5. Use the regression model to estimate the mean response, and to make

predictions and to construct confidence intervals and prediction intervals.6. Build regression models with polynomial terms.7. Use indicator variables to model categorical regressors.8. Use stepwise regression and other model building techniques to select the

appropriate set of variables for a regression model.

2

Page 3: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

• Many applications of regression analysis involve situations in which there are more than one regressor variable. • A regression model that contains more than one regressor variable is called a multiple regression model.

12-1.1 Introduction

3

Page 4: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

• For example, suppose that the effective life of a cutting tool depends on the cutting speed and the tool angle. A possible multiple regression model could be

whereY – tool lifex1 – cutting speedx2 – tool angle

12-1.1 Introduction

4

Page 5: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Figure 12-1 (a) The regression plane for the model E(Y) = 50 + 10x1 + 7x2. (b) The contour plot

12-1.1 Introduction

5

Page 6: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

12-1.1 Introduction

6

Page 7: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Figure 12-2 (a) Three-dimensional plot of the regression model E(Y) = 50 + 10x1 + 7x2 + 5x1x2. (b) The contour plot

12-1.1 Introduction

7

Page 8: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Figure 12-3 (a) Three-dimensional plot of the regression model E(Y) = 800 + 10x1 + 7x2 – 8.5x1

2 – 5x22 +

4x1x2. (b) The contour plot

12-1.1 Introduction

8

Page 9: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

12-1.2 Least Squares Estimation of the Parameters

9

Page 10: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

12-1.2 Least Squares Estimation of the Parameters

• The least squares function is given by

• The least squares estimates must satisfy

10

Page 11: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

12-1.2 Least Squares Estimation of the Parameters

• The solution to the normal Equations are the least squares estimators of the regression coefficients.

• The least squares normal Equations are

11

Page 12: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Example 12-1

12

Page 13: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Example 12-1

13

Page 14: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Figure 12-4 Matrix of scatter plots (from Minitab) for the wire bond pull strength data in Table 12-2.

14

Page 15: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Example 12-1

15

Page 16: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Example 12-1

16

Page 17: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Example 12-1

17

Page 18: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

12-1.3 Matrix Approach to Multiple Linear Regression

Suppose the model relating the regressors to the response is

In matrix notation this model can be written as

18

Page 19: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

12-1.3 Matrix Approach to Multiple Linear Regression

where

19

Page 20: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

12-1.3 Matrix Approach to Multiple Linear Regression

We wish to find the vector of least squares estimators that minimizes:

The resulting least squares estimate is

20

Page 21: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

12-1.3 Matrix Approach to Multiple Linear Regression

21

Page 22: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Example 12-2

22

Page 23: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

Example 12-2

23

Page 24: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Example 12-2

24

Page 25: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Example 12-2

25

Page 26: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Example 12-2

26

Page 27: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Example 12-2

27

Page 28: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

28

Page 29: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

Estimating 2

An unbiased estimator of 2 is

29

Page 30: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

12-1.4 Properties of the Least Squares Estimators

Unbiased estimators:

Covariance Matrix:

30

Page 31: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-1: Multiple Linear Regression Models

12-1.4 Properties of the Least Squares Estimators

Individual variances and covariances:

In general,

31

Page 32: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

12-2.1 Test for Significance of Regression

The appropriate hypotheses are

The test statistic is

32

Page 33: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

12-2.1 Test for Significance of Regression

33

Page 34: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

Example 12-3

34

Page 35: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

Example 12-3

35

Page 36: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

Example 12-3

36

Page 37: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

Example 12-3

37

Page 38: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

R2 and Adjusted R2

The coefficient of multiple determination

• For the wire bond pull strength data, we find that R2 = SSR/SST = 5990.7712/6105.9447 = 0.9811.• Thus, the model accounts for about 98% of the variability in the pull strength response.

38

Page 39: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

R2 and Adjusted R2

The adjusted R2 is

• The adjusted R2 statistic penalizes the analyst for adding terms to the model.• It can help guard against overfitting (including regressors that are not really useful)

39

Page 40: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

12-2.2 Tests on Individual Regression Coefficients and Subsets of Coefficients

The hypotheses for testing the significance of any individual regression coefficient:

40

Page 41: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

12-2.2 Tests on Individual Regression Coefficients and Subsets of Coefficients

The test statistic is

• Reject H0 if |t0| > t/2,n-p.• This is called a partial or marginal test

41

Page 42: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

Example 12-4

42

Page 43: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

Example 12-4

43

Page 44: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

The general regression significance test or the extra sum of squares method:

We wish to test the hypotheses:

44

Page 45: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

A general form of the model can be written:

where X1 represents the columns of X associated with 1 and X2 represents the columns of X associated with 2

45

Page 46: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

For the full model:

If H0 is true, the reduced model is

46

Page 47: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

The test statistic is:

Reject H0 if f0 > f,r,n-p

The test in Equation (12-32) is often referred to as a partial F-test

47

Page 48: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

Example 12-6

48

Page 49: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

Example 12-6

49

Page 50: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-2: Hypothesis Tests in Multiple Linear Regression

Example 12-6

50

Page 51: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-3: Confidence Intervals in Multiple Linear Regression

12-3.1 Confidence Intervals on Individual Regression Coefficients

Definition

51

Page 52: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-3: Confidence Intervals in Multiple Linear Regression

Example 12-7

52

Page 53: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-3: Confidence Intervals in Multiple Linear Regression

12-3.2 Confidence Interval on the Mean Response

The mean response at a point x0 is estimated by

The variance of the estimated mean response is

53

Page 54: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-3: Confidence Intervals in Multiple Linear Regression

12-3.2 Confidence Interval on the Mean Response

Definition

54

Page 55: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-3: Confidence Intervals in Multiple Linear Regression

Example 12-8

55

Page 56: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-3: Confidence Intervals in Multiple Linear Regression

Example 12-8

56

Page 57: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-4: Prediction of New Observations

A point estimate of the future observation Y0 is

A 100(1-)% prediction interval for this future observation is

57

Page 58: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-4: Prediction of New Observations

Figure 12-5 An example of extrapolation in multiple regression

58

Page 59: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-4: Prediction of New Observations

Example 12-9

59

Page 60: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

12-5.1 Residual AnalysisExample 12-10

Figure 12-6 Normal probability plot of residuals

60

Page 61: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

12-5.1 Residual Analysis

Example 12-10

61

Page 62: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

12-5.1 Residual AnalysisExample 12-10

Figure 12-7 Plot of residuals

62

Page 63: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

12-5.1 Residual AnalysisExample 12-10

Figure 12-8 Plot of residuals against x1.

63

Page 64: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

12-5.1 Residual Analysis

Example 12-10

Figure 12-9 Plot of residuals against x2.

64

Page 65: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

12-5.1 Residual Analysis

65

Page 66: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

12-5.1 Residual Analysis

The variance of the ith residual is

66

Page 67: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

12-5.1 Residual Analysis

67

Page 68: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

12-5.2 Influential Observations

Figure 12-10 A point that is remote in x-space.

68

Page 69: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

12-5.2 Influential Observations

Cook’s distance measure

69

Page 70: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

Example 12-11

70

Page 71: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-5: Model Adequacy Checking

Example 12-11

71

Page 72: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

12-6.1 Polynomial Regression Models

72

Page 73: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

Example 12-12

73

Page 74: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

Example 12-11

Figure 12-11 Data for Example 12-11.

74

Page 75: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

Example 12-12

75

Page 76: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

Example 12-12

76

Page 77: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

12-6.2 Categorical Regressors and Indicator Variables

• Many problems may involve qualitative or categorical variables.• The usual method for the different levels of a qualitative variable is to use indicator variables.• For example, to introduce the effect of two different operators into a regression model, we could define an indicator variable as follows:

77

Page 78: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

Example 12-13

78

Page 79: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

Example 12-13

79

Page 80: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

Example 12-13

80

Page 81: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

Example 12-12

81

Page 82: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

Example 12-13

82

Page 83: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

Example 12-13

83

Page 84: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

12-6.3 Selection of Variables and Model Building

84

Page 85: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

12-6.3 Selection of Variables and Model BuildingAll Possible Regressions – Example 12-14

85

Page 86: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

12-6.3 Selection of Variables and Model BuildingAll Possible Regressions – Example 12-14

86

Page 87: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

12-6.3 Selection of Variables and Model BuildingAll Possible Regressions – Example 12-14

Figure 12-12 A matrix of Scatter plots from Minitab for the Wine Quality Data.

87

Page 88: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

88

Page 89: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6.3: Selection of Variables and Model Building - Stepwise Regression

89

Example 12-14

Page 90: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6.3: Selection of Variables and Model Building - Backward Regression

90

Example 12-14

Page 91: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

12-6.4 Multicollinearity

Variance Inflation Factor (VIF)

91

Page 92: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

12-6: Aspects of Multiple Regression Modeling

12-6.4 Multicollinearity

The presence of multicollinearity can be detected in several ways. Two of the more easily understood of these are:

92

Page 93: 1 12 Multiple Linear Regression 12-1 Multiple Linear Regression Model 12-1.1 Introduction 12-1.2 Least squares estimation of the parameters 12-1.3 Matrix

© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.

Important Terms & Concepts of Chapter 12

93