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.
> model = lm(Y~X)
lm(formula = Y ~ X)
Min 1Q Median 3Q Max
-129.65 -60.53 -13.03 58.57 247.90
Estimate Std. Error t value ...
Regression line and confidence intervals using R is provided in the solution.