Question 7.26
sy = 9.41
sx = 10.37
R = 0.67
slope = (sy/sx) * R
#slope*(107.20) + intercept = 171.14
intercept = 171.14 - (slope*107.20)
round(slope,digits=3)
## [1] 0.608
round(intercept,digits=3)
## [1] 105.965
R^2
## [1] 0.4489
predicted = slope*100 + intercept
round(predicted,digits=2)
## [1] 166.76
actual = 160
round(actual - predicted,digits=2)
## [1] -6.76
- y = .608x + 105.965
- The slope means that for every cm of shoulder girth, height increases by .608cm. The intercept here would mean that someone with 0cm shoulder girth would still have a height of 105.965cm. Since this does not make sense (can’t have 0cm shoulders), we say that the purpose of the intercept here is to adjust the height of the line.
- R^2 here is .4489. This means that the regression line here explains 44.89% of the variance.
- The model predicts the height of the student as 166.76 cm.
- The residual here is -6.76cm. A negative residual means that the model overestimated the response variable (height).
- No, it would not be appropriate to use the linear model to predict the height of this child. The child’s shoulder girth falls too many standard deviations away from the mean, so we would be extrapolating if we applied the model.