Session Ready
Exercise

The bootstrap histogram

You are considering a vacation to Cincinnati in May, but you have a severe sensitivity to NO2. You pull a few years of pollution data from Cincinnati in May and look at a bootstrap estimate of the average NO2 levels. You only have one estimate to look at the best way to visualize the results of your bootstrap estimates is with a histogram.

While you like the intuition of the bootstrap histogram by itself, your partner who will be going on the vacation with you, likes seeing percent intervals. To accommodate them, you decide to highlight the 95% interval by shading the region.

Instructions
100 XP
  • Provide the percentile() function with the upper and lower percentiles needed to get a 95% interval.
  • Shade the background of the plot in the 95% interval.
  • Draw histogram of bootstrap means with 100 bins.