Professional Documents
Culture Documents
1a)
And X1, X2 (Independent Variables) represent Ages and Number of Rooms respectively
^
y b0 b1 x1 b2 x2 ------------------------------------------------------------------(a)
From equation (a) above we can form 3 normal equations by differentiation process
^
y nb0 b1 x1 b2 x2 -------------------------------------------------------(b)
^
2
x1 y b0 x1 b1 x1 b2 x1 x2 --------------------------------------------(c)
^
2 --------------------------------------------(d)
x2 y b0 x2 b1 x1 x2 b2 x2
Substituting
14 257 115
= 257 7829 2065
115 2065 967
=14 7829 967 2065 2065 257 257 967 2065115 115 257 2065 115 7829
By Cramer’s Rule
i
bi i = 0, 1, 2
i Determinant of the matrix obtained by replacing the ith Column of matrix A by a right hand vector b
=8684 7829 967 2065 2065 257 134016 967 2065 72432 115
134016 2065 72432 7829
2.871293391 1010 5,134,502,256 3.338761512 1010
0 459,821,046
0
b0
459,821,046
b0
944,094
b0 487.05
14 8684 115
1 = 257 134016 2065
115 72432 967
=14 134016 967 2065 72432 8684 257 967 2065115 115
257 72432 134016115
279,700,512 95,906,096 368,366,160
1 7,240,448
1
b1
7,240,448
b1
944,094
b1 7.6692
14 257 8684
2 = 257 7829 134016
115 2065 72432
2 31,494,024
2
b2
31,494,024
b2
944,094
b2 33.359
^
y 487.05 7.6692 x1 33.359 x2
1b) The value -7.6692 means that County Taxes decreases by 7.6692 for every unit increase in Age. The
value 33.3590 means that County Taxes increase by 33.3590 for every unit increase in the Number of
Rooms for single family houses.
1c) Substituting x1 and x2 into equation (e) above to calculate the predicted values of Y
^
y 487.05 7.6692 x1 33.359 x2
y1 487.05-7.6692+333.59 y 2 487.05-15.3384+300.231
y1 812.9708 y 2 771.9426
y 3 487.05-30.6768+300.231 y 4 487.05-38.346+300.231
y 3 756.6042 y 4 748.935
To test whether or not there is a significant relationship between the dependent variable Y and the
independent variables x1 and x2 in multiple regressions.
We could have
Versus
Otherwise the null hypothesis is rejected in favour of Hi: b1≠0 for i=1&2
e2 2102.5386
Var (e) = = = 175.21155
nk 14 2
^ 2
SSreg = ∑ y
2
^
y
n
= 5,618,006.1
8684 2 = 231,444.2128
14
SSTotal = ∑y 2
y
2
n
= 5,620,108
8684 2 = 233,546.8571
14
Sum of Squares of Error
SS
MS = d . f
MS Re g
F-Ratio =
MS Error
ANOVA TABLE
2 ,11
F-Ratio from Table i.e. F 0.95 = 3.98 (From F-distribution Table)
For an accuracy of 95%
Since F-Ratio Calculated> F-Ratio from Table well reject the null hypothesis and we conclude that at
least one variable contributes significantly to the regression
Coefficient of Determination
SS Re g
R2=
SS y
This gives the amount of variation explained by the model (i.e. lies between 0≤ R2≤1)
231,444.2128
R2= 233,546.8571 =0.991
This shows that the Age and Number of rooms for single family houses explains 99.1% of the total
variation in County Taxes.
Furthermore, it implies a high goodness of fit of the regression model to the sample data and can be used
for meaningful analysis and decision.
2a)
And X1, X2 (Independent Variables) represent Book Value and Return on Common
Equity respectively
^
y b0 b1 x1 b2 x2 ------------------------------------------------------------------(a)
From equation (a) above we can form 3 normal equations by differentiation process
^
y nb0 b1 x1 b2 x2 -------------------------------------------------------(b)
^
2
x1 y b0 x1 b1 x1 b2 x1 x2 --------------------------------------------(c)
^
2 --------------------------------------------(d)
x2 y b0 x2 b1 x1 x2 b2 x2
Substituting
40 850 400.7
= 850 31702 9421.8
400.7 9421.8 9567.07
31702 9421.8 850 9421.8 850 31702
=40 9421.8 850 400.7
9567.07 400.7 9567.07 400.7 9421.8
=40 31702 9567.07 9421.8 9421.8 850 850 9567.07 9421.8 400.7 400.7
850 9421.8 115 7829
8,580,997,516 3,703,190,104 1,881,070,683
2,996,736,729
By Cramer’s Rule
i
bi i = 0, 1, 2
i Determinant of the matrix obtained by replacing the ith Column of matrix A by a right hand vector b
=1374 31702 9567.07 9421.8 9421.8 850 41024 9567.07 9421.817766.2 400.7
41024 9421.8 31702 17766.2
2.947572647 1011 1.91326412 1011 7.080535258 1010
0 3,262550012 1010
0 3.262550012 1010
b0 =10.8870
2,996,736,729
40 1374 400.7
1 = 850 41024 9421.8
400.7 17766.2 9567.07
41024 9421.8 850 9421.8 850 41024
=40 17766.2 1374 400.7
9567.07 400.7 9567.07 400.7 17766.2
=40 41024 9567.07 9421.817766.2 1374 850 9567.07 9421.8 400.7 400.7
17766.2 850 41024 400.7
9,003,595,861 5,986,097,886 535,754,652.8
1 2,481,743,322
1 2,481,743,322
b1 = 0.8281
2,996,736,729
40 850 1374
2 = 850 31702 41024
400.7 9421.8 17766.2
31702 41024 850 41024 850 31702
=40 850 1374
9421.8 17766.2 400.7 17766.2 400.7 9421.8
2 1,754,465,784
2 1,754,465,784
b2 = 0.5850
2,996,736,729
2b)
YA YP e e2 YA2 YP2
4 -2.8748 6.8748 47.26288 16 8.264475
17 25.954 -8.954 80.17412 289 673.6101
19 28.4786 -9.4786 89.84386 361 811.0307
26 24.9816 1.0184 1.037139 676 624.0803
-
32 48.4024 16.4024 269.0387 1024 2342.792
-
21 58.7764 37.7764 1427.056 441 3454.665
-
46 56.6119 10.6119 112.6124 2116 3204.907
34 27.0967 6.9033 47.65555 1156 734.2312
-
37 55.0727 18.0727 326.6225 1369 3033.002
44 29.1715 14.8285 219.8844 1936 850.9764
23 19.4111 3.5889 12.8802 529 376.7908
-
10 24.9192 14.9192 222.5825 100 620.9665
110 82.0126 27.9874 783.2946 12100 6726.067
-
22 33.6097 11.6097 134.7851 484 1129.612
29 36.2461 -7.2461 52.50597 841 1313.78
32 22.457 9.543 91.06885 1024 504.3168
32 36.1655 -4.1655 17.35139 1024 1307.943
39 33.9204 5.0796 25.80234 1521 1150.594
5 -8.2464 13.2464 175.4671 25 68.00311
-
13 26.5923 13.5923 184.7506 169 707.1504
43 31.7871 11.2129 125.7291 1849 1010.42
23 27.2462 -4.2462 18.03021 529 742.3554
23 24.667 -1.667 2.778889 529 608.4609
70 45.2876 24.7124 610.7027 4900 2050.967
85 67.3278 17.6722 312.3067 7225 4533.033
24 33.2808 -9.2808 86.13325 576 1107.612
35 28.7711 6.2289 38.7992 1225 827.7762
52 56.6613 -4.6613 21.72772 2704 3210.503
41 27.2631 13.7369 188.7024 1681 743.2766
110 55.3236 54.6764 2989.509 12100 3060.701
-
41 56.0945 15.0945 227.8439 1681 3146.593
30 36.0979 -6.0979 37.18438 900 1303.058
13 14.1916 -1.1916 1.419911 169 201.4015
34 24.2393 9.7607 95.27126 1156 587.5437
16 21.6874 -5.6874 32.34652 256 470.3433
21 33.559 -12.559 157.7285 441 1126.206
24 21.9539 2.0461 4.186525 576 481.9737
25 28.645 -3.645 13.28603 625 820.536
28 26.9888 1.0112 1.022525 784 728.3953
41 53.943 -12.943 167.5212 1681 2909.847
1374 1373.775 9453.906 68788 59313.79
e2 9453.906
Var (e) = = = 248.787
nk 40 2
^ 2
SSreg = ∑ y
2
y
^
n
= 59313.79
1373.775 2 = 12,132.3462
40
SSTotal = ∑y2
y 2
n
= 68788
1374 2 = 21,591.1
40
SS
MS = d . f
Mean Squares
SS Re g 12,132.3462
MSreg = = =6066.1731
d. f 2
SS Error 9458.7538
MSError = = =255.6420
d. f 47
MS Re g
F-Ratio =
MS Error
Coefficient of Determination
SS Re g
R2=
SS y
This gives the amount of variation explained by the model (i.e. lies between 0≤ R2≤1)
12,132.3462
R2= = 0.56
21591.1000
56% of the total variation is explained (accounted for) by the regression model
The Adjusted R2: R 2
n 1
1 1 R 2
R = 2
nk
40 1
= 1 1 0.56 =1-0.4516=0.5484
40 2
Adjusting R2 taking into account of degree of freedom we have 54.84% of the total variation being
explained by the regression model
MS Re g 6066.1731
F-Ratio = = =23.7292
MS Error 255.6420
2 , 37
F-Ratio from Table i.e. F 0.95 = 3.25 (From F-distribution Table)
(For a α=0.05 level of significance)
Since F-Ratio Calculated> F-Ratio from Table well reject the null hypothesis and we conclude that at
least one variable contributes significantly to the regression
Sum of Squares
SSreg =12,132.3462
SSTotal =21,591.1
Mean Squares
SS Re g 12,132.3462
MSreg = = =6066.1731
d. f 2
SS Error 12,132.3462
MSError = = =255.6420
d. f 47
We could have
Versus
Otherwise the null hypothesis is rejected in favour of Hi: b1≠0 for i=1&2
ANOVA TABLE
MS Re g 6066.1731
F-Ratio = = =23.7292
MS Error 255.6420
2 , 37
F-Ratio from Table i.e. F 0.95 = 3.25 (From F-distribution Table)
(For a α=0.05 level of significance)
Since F-Ratio Calculated> F-Ratio from Table well reject the null hypothesis and we conclude that at
least one variable contributes significantly to the regression