Question 2
- A real estate analyst is studying the relationship between the size of a house (, in square feet) and its selling price ( , in thousands of dollars). The analyst collects data from houses in a city and wants to determine if there is a statistically significant relationship between the size of the house and its selling price.
The relationship between the variables is modeled as:
where:
- : Selling price of the house (in thousands of dollars).
- : Size of the house (in square feet).
- : The intercept, representing the average selling price of a house with size .
- : The slope, representing the change in selling price for every additional square foot of house size.
- : Random error terms, assumed to follow a normal distribution .
The following output has been obtained for a particular dataset :
Call:lm(formula = y ~ x, data = house_data)
Residuals: Min 1Q Median 3Q Max-6.458 -4.247 -2.036 2.631 12.253
Coefficients: Estimate Std. Error t value Pr(>|t|)(Intercept) 26.857367 7.262252 3.698 0.00606 **x 0.183111 0.002945 62.172 4.98e-12 ***---Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 6.654 on 8 degrees of freedomMultiple R-squared: 0.9979, Adjusted R-squared: 0.9977F-statistic: 3865 on 1 and 8 DF, p-value: 4.98e-12(a) Define the null and alternative hypotheses. [1 Mark]
(b) What are the estimates of and . Interpret the meaning with respect to the given model. [2 Marks]
(c) Write the fitted linear regression model. [1 Mark]
(d) Based on the output obtained, justify if we can reject the null hypothesis. Also, what can you conclude about the relationship between (Size of house) and (Selling price)? [2 Marks]
I have written answers on the answer sheets
Not applicable