Professional Documents
Culture Documents
INTRODUCTION: The simple linear regression model is used to determine the effect of a
single independent variable on the dependent variable.
y=β 0 +β 1 x+ε
However, we are often interested in testing whether a dependent variable (y) is related to
more than one independent variable ( x 2 , x3, x4, …) and there by the emphasis is on the
estimation and inferences. The above said process is known as multiple regressions and
indeed, this is commonly done. However, it is possible that the independent variables could
observe each other’s effects. For example, a choice of a restaurant can depend on factors like
cost, convenience and ambience. The cost effect might over rid the convenience effect,
leading to a regression for cost which would not appear very interesting.
One possible solution is to perform a regression with one independent variable, and then test
whether a second independent variable is significant with respect to the residuals from this
regression. Then the second variable is included. Continue in a similar manner to include
other independent variables.
A multiple regression allows the simultaneous testing and modeling of multiple independent
variables.
The model for a multiple regression (called the POPULATION REGRESSION MODEL) takes
the form:
Example
(X2) (X3) (X4) (X5) (X6) (X7) (y1)
1.27
1974-75 70.58 22.03 18.29 1.48 3.61 4.3
1.39
1975-76 75.39 21.93 18.56 1.7 4.38 4.71
3.2
1976-77 74.43 23.6 16.77 1.81 5.88 4.63
3.12
1977-78 73.51 21.27 15.16 1.77 7.8 4.48
3.19
1978-79 74.78 20.04 15.43 1.96 6.92 4.1
3.28
1979-80 71.73 19.34 16.92 2.62 6.11 4
4.41
1980-81 72.34 18.27 17.92 3.39 5.31 3.75
5.06
1981-82 73.14 18.91 16.06 2.97 5.18 3.64
4.17
1982-83 76.31 17.33 15.93 2.12 5.63 3.85
3.27
1983-84 75.4 17.72 15.52 1.88 4.11 3.9
3.41
1984-85 75.37 18.76 14.23 2.6 4.49 3.91
2.52
1985-86 73.03 18.32 16.03 2.16 3.37 3.9
1.08
1986-87 74.66 17.56 17.35 1.6 2.64 3.96
1.16
1987-88 77.51 16.79 16.44 1.84 2.91 4
2.24
1988-89 77.32 17.76 16.04 1.6 3.4 3.62
3.06
1989-90 77.3 18.14 15.34 1.94 4.38 3.73
Y is
1.27
(16*1)
1.39
3.2
3.12
3.19
3.28
4.41
5.06
4.17
3.27
3.41
2.52
1.08
1.16
2.24
3.06 Mean(Y): 2.864375
The Model is: y Predicted = -3.0472 +0*x1+ 0.0930465 * x2 +0.2502425 * x3
- 0.101457 * X4+ 1.1340792 * x5 + 0.3784979 * x6 - 2.071527 * x7
X is:
(16*7)
1 70.58 22.03 18.29 1.48 3.61 4.3
1 75.39 21.93 18.56 1.7 4.38 4.71
1 74.43 23.6 16.77 1.81 5.88 4.63
1 73.51 21.27 15.16 1.77 7.8 4.48
1 74.78 20.04 15.43 1.96 6.92 4.1
1 71.73 19.34 16.92 2.62 6.11 4
1 72.34 18.27 17.92 3.39 5.31 3.75
1 73.14 18.91 16.06 2.97 5.18 3.64
1 76.31 17.33 15.93 2.12 5.63 3.85
1 75.4 17.72 15.52 1.88 4.11 3.9
1 75.37 18.76 14.23 2.6 4.49 3.91
1 73.03 18.32 16.03 2.16 3.37 3.9
1 74.66 17.56 17.35 1.6 2.64 3.96
1 77.51 16.79 16.44 1.84 2.91 4
1 77.32 17.76 16.04 1.6 3.4 3.62
1 77.3 18.14 15.34 1.94 4.38 3.73
Y is
1.27
(16*1)
1.39
3.2
3.12
3.19
3.28
4.41
5.06
4.17
3.27
3.41
2.52
1.08
1.16
2.24
3.06 Mean(Y): 2.864375
X transpose (7*16) =transpose(array) Ctrl+shift+enter
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
70.5 75.3 74.4 73.5 74.7 71.7 72.3 73.1 76.3 75.3 73.0 74.6 77.5 77.3
75.4 77.3
8 9 3 1 8 3 4 4 1 7 3 6 1 2
22.0 21.9 21.2 20.0 19.3 18.2 18.9 17.3 17.7 18.7 18.3 17.5 16.7 17.7 18.1
23.6
3 3 7 4 4 7 1 3 2 6 2 6 9 6 4
18.2 18.5 16.7 15.1 15.4 16.9 17.9 16.0 15.9 15.5 14.2 16.0 17.3 16.4 16.0 15.3
9 6 7 6 3 2 2 6 3 2 3 3 5 4 4 4
1.48 1.7 1.81 1.77 1.96 2.62 3.39 2.97 2.12 1.88 2.6 2.16 1.6 1.84 1.6 1.94
3.61 4.38 5.88 7.8 6.92 6.11 5.31 5.18 5.63 4.11 4.49 3.37 2.64 2.91 3.4 4.38
4.3 4.71 4.63 4.48 4.1 4 3.75 3.64 3.85 3.9 3.91 3.9 3.96 4 3.62 3.73
X Transpose * X
(7*16)*(16*7)= (7*7)
16 1192.8 307.77 261.99 33.44 76.12 64.48
88986.4 22917.
1192.8 19515.86 2487.3966 5662.9271 4804.8274
9 1
5979.2
307.77 22917.1 5051.255 639.2941 1483.4898 1248.7249
6
19515.8 5051.2
261.99 4311.4599 546.8335 1239.4346 1057.9917
6 6
2487.39 639.29
33.44 546.8335 74.232 162.3257 133.5284
7 4
5662.92 1483.4
76.12 1239.4346 162.3257 394.166 309.0441
7 9
4804.82 1248.7
64.48 1057.9917 133.5284 309.0441 261.533
7 2
minverse(array)
-
3.047200
3
0.093046
51
0.250242
49
-
0.101456
5
1.134079
22
0.378497
93
-
2.071527
2
The Model is: y Predicted = -3.0472 + 0.0930465 * x2 +0.2502425 * x3 -
0.101457 * X4+ 1.1340792 * x5 + 0.3784979 * x6 - 2.071527 * x7