Regression Line and Confidence Intervals using R
See the attached file.
The question asks to fit a regression line for an independent variable and its dependent variable response.
Data needs to be plotted in R (with code) and regression line.
Confidence intervals for different responses is also needed.
Here X is the predictor (independent variable), and Y is the response (dependent variable).
(a) Fit a regression line, and provide estimates for the intercept ?0, the slope ?1, and the residual standard deviation ?.
(b) Plot the data, and show the regression line.
(c) What is the expected response for X = 60? What is the expected response for X = 70? Provide 95% confidence intervals.
(d) For both X = 60 and X = 70, provide 95% prediction intervals.
(e) Comment on the lengths of the four intervals.