Search for question
Question

3. (50 Points) Consider the data file uploaded in this project named "mydata.csv". Based on the data, do the followings: (a) (3 Points) Create a scatterplot of y vs x (b) (6 Points) Fit a simple linear regression model using y as the response and plot the regression line (with the data) (c) (8 Points) Test whether x is a significant predictor and create a 95% CI around the slope coefficient. (d) (3 Points) Report and interpret the coefficient of determination. (e) (3 Points) For x=20, create a CI for E(Y|X=20). (f) (2 Points) For x=150, can you use the model to estimate E(Y|X =150)? Discuss. (g) (25 Points) Does the model appear to be linear with respect to x? Discuss, and if not, provide alternative model and repeat the previous steps. Justify your answer. [Hint: Did you transform the response or the predictor only? Explain your choice. Recall that Yi independent N (Bo+B1Xi,o) so transforming Y may not only impact fit (Bo+B1Xi), but also normality, independence, homogeneity of variance as well. If a better fit such as (Bo + B1Xi + 32 Xpower to some power, i.e. a transformation only on the predictor addresses the issue that is preferred.]/n