Linear Regression Stats Question
Consider maximum temperatures in January at Seattle (X) and Chicago (Y), (in data.R file). Assuming that X and Y are related according to a linear regression model: (a) Find the estimated regression line. What is the average maximum temperature at Chicago for 65*F at Seattle? (b) Construct a 95% CI for the slope of the regression line. (c) Construct a 95% CI for the average maximum temperature at Chicago when x=23. (d) Construct a 95% CI for the maximum temperature at Chicago when x = 23.
data from file:
x <-
c(33,32,30,29,25,30,37,37,29,30,36,32,33,34,53,45,25,28,32,27,26,28,24,26,9,22,17,26,27,30,34)
y <-
c(34,36,30,29,30,35,44,38,31,33,39,33,34,39,51,44,25,34,36,29,27,29,27,24,11,21,19,26,28,31,38)
Please give answer in R code! Will upvote answer
C and D gives you the confidence interval for x=23 and predict the confidence interval.
Get Answers For Free
Most questions answered within 1 hours.