The explanatory variable is the number of calories, and the response variable is the number of carbs.
we are able to prefict the amount of carbohydrates based on calories.
Yes, since the residuals are normal and the histogram is symmetric.
Yh= 105.967+0.608Xs
The slope means that the height would increase 0.608 cm for every 1 cm increase of shoulder girth. The intercept means when shoulder girth is 0 cm, the height is 105.9651 cm.
R=0.67
R2=R*R
R2
## [1] 0.4489
x <- 100
r<- 0.608*x + 105.967
r
## [1] 166.767
the residual is the difference between actual value minus the estimate
Res=160 - 166.7545
Res
## [1] -6.7545
No, since is not within the range of this model.
y=-0.357+4.034x
when body weight equal 0, the heart weight will be -0.357g.
For every 1 kg increases in body weight, the heart weight increase 4.034 g.
64.66% of the variation in heart weight is explained by the other vaiable body weight.
R2 <- 0.6466
r <- sqrt(R2)
r
## [1] 0.8041144
b40 <- (3.9983 - 4.010)/-0.0883
b40
## [1] 0.1325028
The p-value equals 0, which is less than the alpha level 0.05. Then we have sufficient evidence to reject the null hypothesis.
the histogram of the residuals shows a symmetric and unimodal shape.