1. Learn
  2. /
  3. Courses
  4. /
  5. Statistical Thinking in Python (Part 2)

Connected

Exercise

Confidence interval on the rate of no-hitters

Consider again the inter-no-hitter intervals for the modern era of baseball. Generate 10,000 bootstrap replicates of the optimal parameter \(\tau\). Plot a histogram of your replicates and report a 95% confidence interval.

Instructions

100 XP
  • Generate 10,000 bootstrap replicates of \(\tau\) from the nohitter_times data using your draw_bs_reps() function. Recall that the the optimal \(\tau\) is calculated as the mean of the data.
  • Compute the 95% confidence interval.
  • Print the confidence interval.
  • Plot a histogram of your bootstrap replicates. Be sure to label your axes and use the normed=True keyword argument.
  • Show the plot.