Module 6
Module 6
Module 6
COLLEGE OF ENGINEERING
DEPARTMENT OF INDUSTRIAL ENGINEERING
MODULE 6
MULTIPLE LINEAR REGRESSION
Y = 0 + 1 x1 + 2 x 2 +
Y = 0 + 1 x + 2 x 2 + 3 x 3 +
If we let x1 = x, x 2 = x , x3 = x :
2 3
Y = 0 + 1 x + 2 x2 + 3 x3 +
Y = 0 + 1 x + 2 x2 + 3 x3 +
n n n n
n0 + 1 xi1 + 2 xi 2 + + k xik = yi
i =1 i =1 i =1 i =1
n n n n n
0 xi1 + 1 xi1 xi1 + 2 xi1 xi 2 + + k xi1 xik = xi1 y i
i =1 i =1 i =1 i =1 i =1
n n n n n
0 xik + 1 xik xi1 + 2 xik xi 2 + + k xik xik = xik y i
i =1 i =1 i =1 i =1 i =1
EXAMPLE:
You are given the wire bond data in the succeeding table. Fit a
multiple linear regression model for the given data.
25 25 25
n = 25 yi = 725.82 xi1 = 206 xi 2 = 8,294
i =1 i =1 i =1
25 25 25
xi1 xi1 = 2,396 xi 2 xi 2 = 3,531,848 xi1 xi 2 = 77,177
i =1 i =1 i =1
25 25
xi1 yi = 8,008.37 xi 2 yi = 274,811.31
i =1 i =1
The equation above can now be used to predict pull strength for
pairs of values of the regressor variables wire length and die
height.
y i = 0 + 1 xi1 + 2 xi 2 + + k xik + i i = 1, 2, ,n
y = X +
where
yn 1 x n1 xn2 x nk k n
= ( X ' X )1 X ' y
725.82
X'y = 8,008.37
274,811.31
= ( X ' X )1 X ' y
0 2.26379143
1 = 2.74426964
2 0.01252781
Estimating
2
SS E
2 =
n2
Remember that the reason why we subtracted 2 from n is
because we estimated two parameters in our regression model,
0 and 1 . However, in multiple linear regression, we estimate
more than two parameters in our regression model. We adjust
the previous equation to take this fact into consideration. Thus, a
more general equation for estimating the variance of the error
term is
n
ei2
SS E
2 = i =1
=
n p n p