Multiple Linear Regression
Multiple Linear Regression
REGRESSION
Presented by:
Juanito S. Chan
Introduction
Multiple linear regression model is a linear
model where more than one independent
variable is needed. For the case of k
independent variables, x1, x2, , xk, the mean
of Y|x1, x2,.., xk is given by the multiple linear
regression model
Y x1 , x2 , xk 0 1 x1 k xk
y b0 b1 x1 bk xk
where each regression coefficient i is
estimated by bi from the sample data using the
method of least squares.
y b b x b x b x
ab
y
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
b0 y b1 x1 b2 x2
Sample Problem
An experiment was conducted to determine if
the weight of an animal can be predicted after
a given period of time on the basis of the initial
weight of the animal and the amount of feed
eaten. The following data, measured in
kilograms, were recorded: (in the next slide)
Fit a multiple linear regression equation of the
form Y x , x , x 0 1 x1 k xk and then
predict the final weight of an animal having an
initial weight of 35 kg that is fed 250 kg of
feed.
1
Final weight,
y
Initial weight,
x1
Feed eaten,
x2
95
42
272
77
33
226
80
33
259
100
45
292
97
39
311
70
36
183
50
32
173
80
41
236
92
40
230
84
38
235
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
b0 xi b1 xi2 b2 xi3 xi yi
b0 xi2 b1 xi3 b2 xi4 xi2 yi
Sample Problem
Given the data
x
9.1
7.3
3.2
4.6
4.8
2.9
5.7
7.1
8.8
10.2
Y x 0 1 x 2 x 2
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
i 1
n
2
x
i
i 1
i 1
n
2
i
i 1
n
3
x
i
i 1
x x
i 1
r
i
i 1
r 1
i
2
i
i 1
n
3
i
i 1
n
4
x
i
i 1
x
i 1
r 2
i
r
i
b0
xir 1 b
1
i 1
n
b
xir 2 2
i 1
b
r
n
2r
xi
i 1
i 1
n
y
i 1
n
x y
i 1
n
r
x
i yi
i 1
' 1
o
0
y 0 t 2 s x A x Y x10 , x20 , xk 0 y 0 t 2 s x A x
SST SYY y
i 1
2
i
SSR b j g j
j 0
i 1
n
2
i 1