Session Ready
Exercise

90, 95, and 99% intervals

You are a data scientist for an outdoor adventure company in Fairbanks, Alaska. Recently, customers have been having issues with SO2 pollution, leading to costly cancellations. The company has sensors for CO, NO2, and O3 but not SO2 levels.

You've built a model that predicts SO2 values based on the values of pollutants with sensors (loaded as pollution_model, a statsmodels object). You want to investigate which pollutant's value has the largest effect on your model's SO2 prediction. This will help you know which pollutant's values to pay most attention to when planning outdoor tours. To maximize the amount of information in your report, show multiple levels of uncertainty for the model estimates.

Instructions
100 XP
  • Fill in the appropriate interval width percents (from 90,95, and 99%) according to the values list in alpha.
  • In the for loop, color the interval by its assigned color.
  • Pass the loop's width percentage value to plt.hlines() to label the legend.