1. Learn
  2. /
  3. Courses
  4. /
  5. Modeling with Data in the Tidyverse

Connected

Exercise

Refresher: sum of squared residuals

Let's remind you how to compute the sum of squared residuals. You'll do this for two models.

Instructions 1/2

undefined XP
    1
    2
  • Use the appropriate function to get a dataframe with the residuals for model_price_2.
  • Add a new column of squared residuals called sq_residuals.
  • Then summarize sq_residuals with their sum. Call this sum sum_sq_residuals.