Stata
Stata
------------------------------------------------------------------------------
Price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
Bedrooms | 8.139059 2.844057 2.86 0.005 2.49653 13.78159
Size | .0451595 .016266 2.78 0.007 .0128882 .0774307
Distance | -2.235848 .7797184 -2.87 0.005 -3.782787 -.6889085
Baths | 29.46958 10.16755 2.90 0.005 9.297464 49.64171
_cons | 61.1308 43.78826 1.40 0.166 -25.74385 148.0054
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
Bedrooms | 11.22657 2.703144 4.15 0.000 5.86426 16.58888
Distance | -2.416877 .8023743 -3.01 0.003 -4.008572 -.8251826
Baths | 25.84504 10.41284 2.48 0.015 5.188758 46.50132
_cons | 160.0151 26.3045 6.08 0.000 107.834 212.1961
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
Size | .0702892 .0173334 4.06 0.000 .0359125 .1046659
_cons | 64.79312 38.7841 1.67 0.098 -12.12599 141.7122
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
Bedrooms | 14.6523 2.730867 5.37 0.000 9.236269 20.06833
_cons | 165.4241 11.1519 14.83 0.000 143.3069 187.5413
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
Distance | -3.353993 .8931207 -3.76 0.000 -5.125288 -1.582699
_cons | 270.167 13.7646 19.63 0.000 242.8681 297.4658
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
Baths | 45.80875 10.91403 4.20 0.000 24.16335 67.45414
_cons | 125.777 23.10923 5.44 0.000 79.94533 171.6087
------------------------------------------------------------------------------
| Price Bedrooms
-------------+------------------
Price | 1.0000
Bedrooms | 0.4674 1.0000
| Price Size
-------------+------------------
Price | 1.0000
Size | 0.3710 1.0000
| Price Distance
-------------+------------------
Price | 1.0000
Distance | -0.3470 1.0000
. corr Baths
(obs=105)
| Baths
-------------+---------
Baths | 1.0000
. exit, clear
Interpretation:
1) R-squared is not greater than 0.5, which means it is not a good model.
2) The p value is 0 which is less than 0.05 and so it is a significant variable.
3) SS model is greater than SS residual so this is a good model.
Explanation:
1) R-squared is not greater than 0.5, which means it is not a good model.
2) The p value is 0 which is less than 0.05 and so it is a significant variable.
3) SS model is not greater than SS residual so this is not a good model.
d. Yes, Pool is the dummy variable given in the data set as when you see the data on data browser,
you can clearly see that it is the only variable with values 0 and 1 which are the only values a
dummy variable can take.
e. No, all the variables in the data are significant and none of them need to be deleted.
f. All the variables in this case are significant i.e. Bedrooms, baths, distance and size.