1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Modeling with Data in the Tidyverse

Connected

अभ्यास

Visualizing the distribution of residuals

Let's now compute both the predicted score \(\hat{y}\) and the residual \(y - \hat{y}\) for all \(n = 463\) instructors in the evals dataset. Furthermore, you'll plot a histogram of the residuals and see if there are any patterns to the residuals, i.e. your predictive errors.

model_score_4 from the previous exercise is available in your workspace.

निर्देश 1/2

undefined XP
    1
    2
  • Apply the function that automates making predictions and computing residuals, and save these values to the dataframe model_score_4_points.