Copy of 4 In-class Examples (Excel)
Copy of 4 In-class Examples (Excel)
Regression Statistics
Multiple R 0.97666825
R Square 0.95388087
Adjusted R S 0.94893953
Standard Erro 88.9145121
Observations 32
ANOVA
df SS MS F Significance F
Regression 3 4578427.37 1526142.46 193.041096 8.34956E-19
Residual 28 221362.133 7905.79047
Total 31 4799789.5
CoefficientsStandard Error t Stat P-value Lower 95% Upper 95% Lower 95.0%
Intercept 320.457993 295.141285 1.08577827 0.28683695 -284.111523 925.027509 -284.111523
Age 0.87814248 2.03215593 0.43212357 0.66896132 -3.28454024 5.0408252 -3.28454024
No. of Bidder-93.2648244 29.8916162 -3.12009976 0.00416459 -154.495024 -32.0346244 -154.495024
Interaction 1.29784582 0.2123326 6.11232488 1.35347E-06 0.86290221 1.73278943 0.86290221
Upper 95.0%
925.027509
5.0408252
-32.0346244
1.73278943
Price Age No. of Bidders Interaction SUMMARY OUTPUT
$1,235 127 13 1651
$1,080 115 12 1380 Regression Statistics
$845 127 7 889 Multiple R 0.9446395695
$1,522 150 9 1350 R Square 0.8923439164
$1,047 156 6 936 Adjusted R Square 0.8849193589
$1,979 182 11 2002 Standard Error 133.48466784
$1,822 156 12 1872 Observations 32
$1,253 132 10 1320
$1,297 137 9 1233 ANOVA
$946 113 9 1017 df
$1,713 137 15 2055 Regression 2
$1,024 117 11 1287 Residual 29
$1,147 137 8 1096 Total 31
$1,092 153 6 918
$1,152 117 13 1521 Coefficients
$1,336 126 10 1260 Intercept -1338.95134
$2,131 170 14 2380 Age 12.740574097
$1,550 182 8 1456 No. of Bidders 85.952984369
$1,884 162 11 1782
$2,041 184 10 1840
$845 143 6 858 Regression SS (4283062.96): The variation in Price explained by
$1,483 159 9 1431 Residual SS (516726.54): The unexplained variation (error).
$1,055 108 14 1512 Total SS (4799789.5): The total variation in Price.
$1,545 175 8 1400 F-statistic (120.1881617): Measures the overall significance of th
$729 108 6 648 p-value (9.21636E-15): Since this value is much smaller than 0.0
$1,792 179 9 1611
$1,175 111 15 1665 Interpretation of Coefficients
$1,593 187 8 1496
$785 111 7 777 Intercept (-1338.95):
$744 115 7 805
$1,356 194 5 970 If Age and No. of Bidders were zero, the predicted price would b
$1,262 168 7 1176
Age (12.74):
$2,131 194 15 Max
$729 108 5 Min For each additional year in Age, the Price increases by $12.74, a
p-value (1.69276E-14) is much smaller than 0.05, meaning Age i
were zero, the predicted price would be negative, which is not realistic. This happens because extrapolation beyond the observed data ra
n Age, the Price increases by $12.74, assuming the Number of Bidders remains constant.
much smaller than 0.05, meaning Age is a highly significant predictor of Price.
14.08202331 critical t-value= 2.04523 If |t-statistic| > critical t-value, we reject the null hypothesis and conclude that the
9.847368395 critical t-value= 2.04523
1.692756E-14
9.344953E-11
14.59097579 10.890172403
Page 9
Car
Page 10
Car
Page 11
Price Age No. of Bidders Interaction SUMMARY OUTPUT
$1,235 127 13 1651
$1,080 115 12 1380 Regression Statistics
$845 127 7 889 Multiple R 0.9766682479
$1,522 150 9 1350 R Square 0.9538808664
$1,047 156 6 936 Adjusted R Square 0.9489395307
$1,979 182 11 2002 Standard Error 88.91451215
$1,822 156 12 1872 Observations 32
$1,253 132 10 1320
$1,297 137 9 1233 ANOVA
$946 113 9 1017 df
$1,713 137 15 2055 Regression 3
$1,024 117 11 1287 Residual 28
$1,147 137 8 1096 Total 31
$1,092 153 6 918
$1,152 117 13 1521 Coefficients
$1,336 126 10 1260 Intercept 320.45799335
$2,131 170 14 2380 Age 0.8781424755
$1,550 182 8 1456 No. of Bidders -93.264824365
$1,884 162 11 1782 Interaction 1.2978458238
$2,041 184 10 1840
$845 143 6 858
$1,483 159 9 1431
$1,055 108 14 1512
$1,545 175 8 1400
$729 108 6 648
$1,792 179 9 1611
$1,175 111 15 1665
$1,593 187 8 1496
$785 111 7 777
$744 115 7 805
$1,356 194 5 970
$1,262 168 7 1176
gression Statistics
0.9969597
0.9939287
0.9917604
0.4427784
20
df SS MS F Significance F
5 449.34076 89.868152 458.38763 5.371E-15
14 2.7447384 0.1960527
19 452.0855
CoefficientsStandard Ert Stat P-value Lower 95% Upper 95% Lower 95.0 Upper 95.0%
0.8270158 0.7022894 1.1775999 0.2585877 -0.679245 2.3332767 -0.679245 2.3332767
-0.609137 0.1799041 -3.3859 0.0044356 -0.994993 -0.223281 -0.994993 -0.223281
0.0040207 0.0079984 0.5026877 0.6229985 -0.013134 0.0211756 -0.013134 0.0211756
0.0073271 0.0006374 11.494696 1.622E-08 0.0059599 0.0086943 0.0059599 0.0086943
0.0897508 0.0202054 4.4419201 0.000558 0.0464145 0.1330872 0.0464145 0.1330872
1.507E-05 2.243E-05 0.6717804 0.5126573 -3.304E-05 6.318E-05 -3.304E-05 6.318E-05
SUMMARY OUTPUT
Regression Statistics
Multiple R 0.9969597
R Square 0.9939287
Adjusted R 0.9917604
Standard Er0.4427784
Observatio 20
ANOVA
df SS MS F Significance F
Regression 5 449.34076 89.868152 458.38763 5.371E-15
Residual 14 2.7447384 0.1960527
Total 19 452.0855
Coefficients
Standard Error t Stat P-value Lower 95% Upper 95%Lower 95.0% Upper 95.0%
Intercept 0.8270158 0.7022894 1.1775999 0.2585877 -0.679245 2.3332767 -0.679245 2.3332767
Weight -0.609137 0.1799041 -3.3859 0.0044356 -0.994993 -0.223281 -0.994993 -0.223281
Distance 0.0040207 0.0079984 0.5026877 0.6229985 -0.013134 0.0211756 -0.013134 0.0211756
interaction 0.0073271 0.0006374 11.494696 1.622E-08 0.0059599 0.0086943 0.0059599 0.0086943
weight squ 0.0897508 0.0202054 4.4419201 0.000558 0.0464145 0.1330872 0.0464145 0.1330872
distance sq 1.507E-05 2.243E-05 0.6717804 0.5126573 -3.304E-05 6.318E-05 -3.304E-05 6.318E-05
COST CARGO X1 X2 SUMMARY OUTPUT
17.2 Fragile 1 0
11.1 Fragile 1 0 Regression Statistics
12 Fragile 1 0 Multiple R 0.8800517
10.9 Fragile 1 0 R Square 0.7744909
13.8 Fragile 1 0 Adjusted R 0.7369061
6.5 SemiFrag 0 1 Standard Er 2.404371
10 SemiFrag 0 1 Observatio 15
11.5 SemiFrag 0 1
7 SemiFrag 0 1 ANOVA
8.5 SemiFrag 0 1 df SS MS F
2.1 Durable 0 0 Regression 2 238.252 119.126 20.606469
1.3 Durable 0 0 Residual 12 69.372 5.781
3.4 Durable 0 0 Total 14 307.624
7.5 Durable 0 0
2 Durable 0 0 Coefficients
Standard Error t Stat P-value
Intercept 3.26 1.0752674 3.031804 0.0104316
X1 9.74 1.5206578 6.405123 3.377E-05
X2 5.44 1.5206578 3.5773993 0.0038004
Significance F
0.0001315
Regression Statistics
Multiple R 0.9885738963
R Square 0.9772783485
Adjusted R Square 0.9767822426
Standard Error 296.64294042
Observations 235
ANOVA
df SS MS F Significance F
Regression 5 866726151.0541 173345230.21 1969.8985538 5.877182E-186
Residual 229 20151320.80869 87997.034099
Total 234 886877471.8628
Property Size
$ 3,967,000 3,849 44 169,356 14,814,801 1936 (sq. feet)
$ 6,135,000 6,545 46 301,070 42,837,025 2116 Age
$ 3,141,000 1,722 52 89,544 2,965,284 2704 interaction
$ 3,635,000 1,435 78 111,930 2,059,225 6084
$ 3,643,000 2,755 71 195,605 7,590,025 5041
$ 3,051,000 1,148 97 111,356 1,317,904 9409
$ 4,417,000 3,636 45 163,620 13,220,496 2025 525822538767
$ 3,531,000 1,474 41 60,434 2,172,676 1681 2.383168E+12
$ 4,633,000 2,281 40 91,240 5,202,961 1600 0.2206401525
$ 3,200,000 4,626 82 379,332 21,399,876 6724
$ 3,328,400 1,889 54 102,006 3,568,321 2916
$ 2,766,000 1,228 44 54,032 1,507,984 1936
$ 3,970,000 1,492 34 50,728 2,226,064 1156
$ 2,219,000 852 94 80,088 725,904 8836
$ 6,814,000 2,828 54 152,712 7,997,584 2916
$ 6,060,000 1,148 74 84,952 1,317,904 5476
$ 4,579,000 2,169 23 49,887 4,704,561 529
$ 9,127,000 3,761 41 154,201 14,145,121 1681
$ 4,167,000 1,359 31 42,129 1,846,881 961
$ 7,266,000 2,427 54 131,058 5,890,329 2916
$ 3,931,000 1,540 76 117,040 2,371,600 5776
$ 6,124,000 2,348 54 126,792 5,513,104 2916
$ 3,554,000 2,217 85 188,445 4,915,089 7225
$ 2,990,000 1,750 19 33,250 3,062,500 361
$ 4,710,000 2,130 51 108,630 4,536,900 2601
$ 5,107,000 1,377 44 60,588 1,896,129 1936
$ 5,177,000 2,497 52 129,844 6,235,009 2704
$ 8,733,000 4,116 45 185,220 16,941,456 2025
$ 8,547,000 3,372 37 124,764 11,370,384 1369
$ 3,748,000 1,503 88 132,264 2,259,009 7744
$ 5,430,000 2,348 54 126,792 5,513,104 2916
$ 5,540,000 1,148 22 25,256 1,317,904 484
$ 3,652,000 1,377 53 72,981 1,896,129 2809
$ 8,118,000 4,560 43 196,080 20,793,600 1849
$ 7,118,000 5,563 65 361,595 30,946,969 4225
$ 5,987,000 2,778 54 150,012 7,717,284 2916
$ 6,513,000 2,775 52 144,300 7,700,625 2704
$ 5,111,000 2,296 104 238,784 5,271,616 10816
$ 3,793,000 1,377 65 89,505 1,896,129 4225
$ 7,860,000 2,116 72 152,352 4,477,456 5184
$ 7,687,000 3,535 36 127,260 12,496,225 1296
$ 6,799,000 2,348 54 126,792 5,513,104 2916
$ 6,158,000 3,329 49 163,121 11,082,241 2401
$ 7,664,000 3,606 34 122,604 13,003,236 1156
Regression Statistics
0.56968711
0.3245434
0.28835823
1515933.64
60
df SS MS F Significance F
3 6.18335E+13 2.06112E+13 8.9689605 6.039E-05
56 1.28691E+14 2.29805E+12
59 1.90525E+14
Coefficients Standard Error t Stat P-value Lower 95% Upper 95%Lower 95.0%Upper 95.0%
3102453.42 1056525.887 2.93646702 0.0048096 985977.75 5218929 985977.75 5218929
0.410896594
0.68643603
Step 3: Compare with the Critical Value
Using an F-distribution table or Excel (=F.DIST.RT(F, df1, df2)), we find the critical value for F(1,56)F(1,56)F(1
The critical value is 4.00.
Since F = 0.6864 < 4.00, we fail to reject H0H_0H0.
Step 4: Conclusion
The interaction term does not significantly improve the model (p=0.41p = 0.41p=0.41, which is much greater tha
We should use the reduced model, as it is simpler and does not lose predictive accuracy.
Final Answer:
The F-test value is 0.6864, which is not significant, meaning the interaction term can be removed from the mod
Would you like a step-by-step Excel or Python guide to perform this test? 😊
SUMMAR
Y
OUTPUT
Regression Statistics
Multiple R 0.5623734
R Square 0.3162638
Adjusted R 0.2922731
Standard Er 1511758
Observatio 60
ANOVA
df SS MS F Significance F
Regression 2 6.0256E+13 3.0128E+13 13.182743 1.969E-05
Residual 57 1.30269E+14 2.2854E+12
Total 59 1.90525E+14
Property
Size
(sq. feet) 752.41435 163.2589685 4.60871681 2.328E-05 425.49391 1079.3348 425.49391 1079.3348
Age -13720.84 9499.300224 -1.44440493 0.1540999 -32742.86 5301.1845 -32742.86 5301.1845