1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Regression with statsmodels in Python

Exercise

Residual standard error

Residual standard error (RSE) is a measure of the typical size of the residuals. Equivalently, it's a measure of how wrong you can expect predictions to be. Smaller numbers are better, with zero being a perfect fit to the data.

Again, you'll look at the models from the advertising pipeline, mdl_click_vs_impression_orig and mdl_click_vs_impression_trans.

Instructions 1/3

undefined XP
    1
    2
    3
  • Calculate the MSE of mdl_click_vs_impression_orig, assigning to mse_orig.
  • Using mse_orig, calculate and print the RSE of mdl_click_vs_impression_orig.
  • Do the same for mdl_click_vs_impression_trans.