Question 6
To assess whether the linear model is reliable, you need to check for three things: 1. linearity 2. nearly normal residuals 3. constant variability.
You already checked if the relationship between runs and at-bats is linear using a scatterplot. You should also verify this condition with a plot of the residuals vs. at-bats. The lty=3
argument adds a horizontal dashed line at y = 0:
plot(m1$residuals ~ mlb11$at_bats)
abline(h = 0, lty = 3).
Which of the following statements about the residual plot is false?
This exercise is part of the course
Data Analysis and Statistical Inference
Exercise instructions
The residuals appear to be randomly distributed around 0.,The residuals show a curved pattern.,The plot is indicative of a linear relationship between runs and at-bats.,The team with a very high residual compared to the others appears to be an outlier.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
