CHAPTER 3 Multiple Linear Regression
CHAPTER 3 Multiple Linear Regression
Chapter 3
Multiple Linear Regression
1
Overview
➢ 3.1 Background
➢ 3.2 Multiple Linear Regression (MLR)
➢ 3.3 Software Output
➢ 3.4 ANOVA
➢ 3.5 Model Evaluation
➢ 3.6 Application/Examples
2
Overview
➢ 3.1 Background
➢ 3.2 Multiple Linear Regression (MLR)
➢ 3.3 Software Output
➢ 3.4 ANOVA
➢ 3.5 Model Evaluation
➢ 3.6 Application/Examples
3
3.1 Background
Simple regression considers
the relation between a single
independent variable and
dependent variable
Multiple regression
simultaneously considers the
influence of multiple
independent variables on a
dependent variable Y
4
3.1 Background
◼ A simple regression model
fits a regression line in 2-
dimensional space
5
Overview
➢ 3.1 Background
➢ 3.2 Multiple Linear Regression (MLR)
➢ 3.3 Software Output
➢ 3.4 ANOVA
➢ 3.5 Model Evaluation
➢ 3.6 Application/Examples
6
3.2 Multiple Linear Regression
Regression coefficients are estimated by minimizing
SSE to derive this model:
+…
7
3.2 Multiple Linear Regression
❑ An extension of a simple linear regression model.
❑ Allows the dependent variable y to be modeled as a linear
function of more than one independent variable xi
8
3.2 Multiple Linear Regression
❑ The value of the dependent variable yi is modeled as
➢ 3.1 Background
➢ 3.2 Multiple Linear Regression (MLR)
➢ 3.3 Software Output
➢ 3.4 ANOVA
➢ 3.5 Model Evaluation
➢ 3.6 Application/Examples
10
3.3 Software Output
The software (Excel) output
Part 2. ANOVA
Part 1. Regression
analysis
11
Overview
➢ 3.1 Background
➢ 3.2 Multiple Linear Regression (MLR)
➢ 3.3 Software Output
➢ 3.4 ANOVA
➢ 3.5 Model Evaluation
➢ 3.6 Application/Examples
12
3.4 ANOVA
Source Sum of Degrees Mean Computed F
Of variation Squares of Square
freedom (Sum of squares /
(df) df)
𝑆𝑆𝑅
Regression SSR k 𝑀𝑆𝑅 = F = MSR/MSE
𝑘
𝑆𝑆𝐸
Error SSE n – (k+1) 𝑀𝑆𝐸 =
𝑛 − (𝑘 + 1)
14
3.5 Model Evaluation - (i) Standard error
of estimate (s)
𝐒𝐒𝐄
𝜎ො 𝟐 =
➢ Compute Standard Error of Estimate by 𝐧−𝑘−1
➢
➢ This is an unbiased estimator for s 2 (for Population)
15
3.5 Model Evaluation – (ii) Coefficient of
Determination
❑ Coefficient of determination 𝑅2 =
𝑆𝑆𝑇 − 𝑆𝑆𝐸 𝑆𝑆𝑅
𝑆𝑆𝑇
=
𝑆𝑆𝑇
=1−
𝑆𝑆𝐸
𝑆𝑆𝑇
16
3.5 Model Evaluation – (iii) The
hypothesis test of the slope (t-test)
▪ The t-test addresses the adequate relationship between
xi and y exists.
▪ Test the hypothesis
H0 : 𝛽𝑖 = 0 (No relationship between xi and y)
H1: 𝛽𝑖 ≠ 0 (There is relationship between xi and y)
𝛽መ𝑖 − 𝛽𝑖 𝛽መ𝑖 − 𝛽𝑖
▪ Test Statistic: T – distribution: 𝑇= =
𝑠𝑒(𝛽መ𝑖 )
𝜎ො 2
𝑠𝑠𝑥𝑥
▪ Critical Region: |T | > tα/2, n-k-1 .
17
3.5 Model Evaluation – (iii) The
hypothesis test of the slope (t-test)
18
3.5 Model Evaluation – (iii) Testing the
significance of regression (F-test)
𝐻0 : 𝛽1 = 𝛽2 = 𝛽3 =. . . . = 𝛽𝑘 = 0
Hypotheses:
𝐻1 : at least one𝛽𝑗 ≠ 0
𝑀𝑆𝑅
Test statistic: 𝐹0 =
𝑀𝑆𝐸
𝑆𝑆𝑅 𝑆𝑆𝐸
𝑀𝑆𝑅 = , 𝑀𝑆𝐸 =
where: 𝑘 𝑛−𝑘−1
𝑀𝑆𝑅
Rejection criteria: 𝐹0 = > 𝑓𝛼,𝑘,𝑛−𝑘−1
𝑀𝑆𝐸
19
3.5 Model Evaluation – (iii) Testing the
significance of regression (F-test)
20
Overview
➢ 3.1 Background
➢ 3.2 Multiple Linear Regression (MLR)
➢ 3.3 Software Output
➢ 3.4 ANOVA
➢ 3.5 Model Evaluation
➢ 3.6 Application/Examples
21
3.5 Application/Examples
Wire Bond Pull Strength Data
22
Wire Bond Pull Strength Data
I. Estimate the Multiple linear regression (MLR) equation
23
Wire Bond Pull Strength Data
Regression Statistics
Multiple R 0.990523843
R Square 0.981137483
ANOVA
df SS MS F Significance F
Regression 2 5990.771221 2995.385611 572.1672 1.07546E-19
Residual 22 115.1734828 5.235158308
Total 24 6105.944704
Upper
Coefficients Standard Error t Stat P-value Lower 95% Upper 95% Lower 95.0% 95.0%
Intercept 2.263791434 1.060066238 2.135518851 0.044099 0.065348613 4.462234256 0.06534861 4.462234
X Variable 1 2.744269643 0.093523844 29.34299438 3.91E-19 2.550313061 2.938226226 2.55031306 2.938226
X Variable 2 0.012527811 0.002798419 4.476746229 0.000188 0.006724246 0.018331377 0.00672425 0.018331
24
Wire Bond Pull Strength Data
The Estimated Multiple Linear regression equation is
25
Wire Bond Pull Strength Data
26
Wire Bond Pull Strength Data
H0 : 𝛽𝑖 = 0 (No relationship between xi and y)
H1: 𝛽𝑖 ≠ 0 (There is relationship between xi and y)
27
Wire Bond Pull Strength Data
Conclusion
Since 𝑇1 = 29.34 & 𝑇2 = 4.48 > 2.074, we reject H0 , and conclude
that pull strength is linearly related wire length and die height
28
Wire Bond Pull Strength Data
𝐻0 : 𝛽1 = 𝛽2 = 0
Hypotheses:
𝐻1 : at least one 𝛽𝑗 ≠ 0
𝑀𝑆𝑅
Test statistic: 𝐹0 = = 2995.4/5.2 = 572.17
𝑀𝑆𝐸
29
Wire Bond Pull Strength Data
𝑀𝑆𝑅
Rejection criteria: 𝐹0 = > 𝑓𝛼,𝑘,𝑛−𝑝
𝑀𝑆𝐸
Conclusion
Since 572.17 > 3.44 we Reject H0 and conclude that pull strength is
linearly related to either wire length or die height or both
30
Example 2
A set of experimental runs were made to determine a way of
predicting cooking time y at various levels of oven width x1, and
temperature x2. The data were recorded as follows:
32
Cooking time, oven width and
temperature
i. MLR equation