Professional Documents
Culture Documents
Refer to data set below, which reports information on homes sold in PJ area during last
year. Use selling price of the home as the dependent variable and determine the multiple
regression equation with all the independent variables
1
Price = selling price (RM)
Bed = number of bedrooms
sqrft = size of the home in square feet
pool = swimming pool (1 = yes; 0 = no)
distance = distance from the center of the city
garage = garage attached (1 = yes; 0 = no)
bath = number of bathrooms
The value of the intercept is RM92946.25, this means if the value of all
variables is zero then selling price will be decreased by RM92946.25.
Bed (β1 = - 1519.124) the relationship between numbers of bedrooms and
selling price is negative. If number of bedroom increased by one bed then
selling price will be decreased by RM1519.124 given that other variables are
constant.
Bathrooms (β2 = 32937) the relationship between number of bathrooms
and selling price is positive. If number of bathrooms increased by one bath
then selling price will be increased by RM32937 given that other variables
are constant.
Sqrft (β3 = 51.59078) the relationship between size of the home and selling
price is positive. If size increases by one square feet selling price also
increased by RM51.59078 given that other variables are constant.
Distance (β4 = 955.2982) the relationship between distance and selling
price is positive. If distance is increased by one unit then selling price alse
increased by RM955.2982 given that other variables are constant.
Garage (β5 = 34861.33). Garage is a dummy variable. The relationship
between garage and selling price is positive. If garage is include in house then
selling price will be increased by RM34861.33 given that other variables are
constant.
2
Pool (β6 =9734.754). Pool is dummy variable. The relationship between
pool and selling price is positive. If pool is included in the house then selling
price will be increased by RM9734.754 given that other variables are
constant.
R-squared 0.054135
Adjusted R-squared -0.156057
the R2 value of 5.4% indicates that the ability of the predictor variable in explaining
the selling price is bad, it can be seen from the low R2 value of 5.4%
Correlation between predictor variable expect distance and dummy pool with
selling price have weak positive correlation. Distance and dummy pool is negatively
correlated with selling price. Multicoliniearity arise when correlation between two
independent variables is more than 0.70 or less than -0.70. In this case the correlation
between independent variables is in between 0.70 and – 0.70. So there has no problem of
multicoliniearity.
Individual Test
Hypotheses:
a. H0 : β1 = 0
H1 : β1 ≠ 0
b. H0 : β2 = 0
H1 : β2 ≠ 0
c. H0 : β3 = 0
H1 : β3 ≠ 0
3
d. H0 : β4 = 0
H1 : β4 ≠ 0
e. H0 : β5 = 0
H1 : β5 ≠ 0
f. H0 : β6 = 0
H1 : β6 ≠ 0
Test statistic:
Variable Coefficient Std. Error t-Statistic Prob.
Decision :
For all variable we Accept H0, because prob more than 0.05 and T value less than
2.05. So it can be concluded that there is no predictor variable that affects to selling
price. But we can delete variable one by one. In this case first we reject this
independent varible which has the smallest t value and largest prob. Variable bed is
the smallest among them. So first we rejct bed form analysis.
e. Re-run the analysis until only significant net regression coefficients remain in
the analysis. Identify these variables.
Answer
For all variable we Accept H0, because prob more than 0.05 and T value less
than 2.05. So it can be concluded that there is no predictor variable that
affects to selling price. Variable bath is the smallest among them. So first we
rejct distance form analysis.
4
2. Not Included Bed and distance
Variable Coefficient Std. Error t-Statistic Prob.
For all variable we Accept H0, because prob more than 0.05 and T value less
than 2.05. So it can be concluded that there is no predictor variable that
affects to selling price. Variable dummy_pool is the smallest among them. So
first we rejct dummy_pool form analysis.
3. Not Included Bed, distance and dummy Pool
Variable Coefficient Std. Error t-Statistic Prob.
For all variable we Accept H0, because prob more than 0.05 and T value less
than 2.05. So it can be concluded that there is no predictor variable that
affects to selling price. Variable sqrft (size) is the smallest among them. So
first we rejct sqrft (size) form analysis.
4. Not Included Bed, distance,dummy Pool and Sqrft (size)
Variable Coefficient Std. Error t-Statistic Prob.
For all variable we Accept H0, because prob more than 0.05 and T value less
than 2.05. So it can be concluded that there is no predictor variable that
affects to selling price. Variable dummy_garage is the smallest among them.
So first we rejct dummy_garage form analysis.
5. Not Included Bed, distance,dummy Pool,Sqrft (size) and dummy garage
Variable Coefficient Std. Error t-Statistic Prob.
For all variable we Accept H0, because prob more than 0.05 and T value less
than 2.05. So it can be concluded that there is no predictor variable that
affects to selling price.
5
f. Do home that have garage attached sell a higher price? How do you know?
Answer
If the house has a garage, the selling price of the house will be high. it can be seen
from the positive relationship between the garage variable and selling price in the
regression model
g. Do home that have swimming pool sell a higher price? How do you know?
Answer
If the house has a swimming pool, the selling price of the house will be high. it can
be seen from the positive relationship between the pool variable and selling price in
the regression model
h. Test whether that home have garage attached and swimming pool are
statistically significant determinants of selling price.
Answer
Hypotheses:
H0 : β5 = β6 = 0
H1 : Not all the βi are 0; i = 5,6
Level of significance : α = 0.05
Reject H0 if F value is more than 2.45 or prob less than α
Critical value = F0.05(6,27) = 2.45
Test statistic:
Dependent Variable: PRICE__RM_
Method: Least Squares
Date: 01/25/22 Time: 21:51
Sample: 1 34
Included observations: 34
Conclusion :
We Accept H0, because prob more than 0.05 and F value less than 2.45. So it can be
concluded that home have garage attached and swimming pool are not
statistically significant determinats of selling price.