Exercise

Assessing model performance

To test which approach is best — the whole dataset model or the models for each house age category — you need to calculate some metrics. Here, you'll compare the coefficient of determination and the residual standard error for each model.

Four models of price versus no. of convenience stores (mdl_all_ages, mdl_0_to_15, mdl_15_to_30, and mdl_30_to_45) are available.

Instructions 1/2

undefined XP
  • 1
    • Print the coefficient of determination for mdl_all_ages, mdl_0_to_15, mdl_15_to_30, and mdl_30_to_45.
  • 2
    • Print the residual standard error (RSE) for mdl_all_ages, mdl_0_to_15, mdl_15_to_30, and mdl_30_to_45.