Question 3
- Consider a linear model as
where, .
For the given linear model, we want to perform hypothesis testing at 5% significance level, i.e. , to check if there is a relationship between the variables and . The following output has been obtained for a particular model :
Call:lm(formula = y ~ x)
Residuals: Min 1Q Median 3Q Max-14.039 -6.295 -2.028 5.343 31.007
Coefficients: Estimate Std. Error t value Pr(>|t|)(Intercept) 101.88323 1.88248 54.12 <2e-16 ***x -2.03429 0.03236 -62.86 <2e-16 ***---Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 9.342 on 98 degrees of freedomMultiple R-squared: 0.9758, Adjusted R-squared: 0.9756F-statistic: 3951 on 1 and 98 DF, p-value: < 2.2e-16(a) Define null and alternative hypothesis. [1 Mark]
(b) Write the fitted linear regression model. [2 Marks]
(c) Based on the output obtained, justify if we can reject the null hypothesis. Also, what can you conclude about the relationship between and ? [2 Marks]
I have written answers on the answer sheets
Not applicable