Exercise

Visualizing the strategy

Now you have the extended strategy table strat_df. The table is not so big that it's difficult to analyze, but visuals can help you see the overview all at once.

You should check at the distribution of each column with a box plot. If the distribution of Acceptance Rate looks the same as the Bad Rate column, that could be a problem. That means that the model's calibration is likely much worse than you thought.

You can also visualize the strategy curve with a line plot. The Acceptance Rate would be the independent variable with the Bad Rate as the dependent variable.

The strategy table strat_df has been loaded in the workspace.

Instructions 1/2

undefined XP
    1
    2
  • Create a simple boxplot of the values within strat_df using the pandas boxplot method.