1. Learn
  2. /
  3. Courses
  4. /
  5. Data Analysis and Statistical Inference

Exercise

The 99%

Calculate 50 confidence intervals at the 99% confidence level. You do not need to obtain new samples, simply calculate new intervals based on the sample means and standard deviations you have already collected. Using the plot_ci() function, plot all intervals and calculate the proportion of intervals that include the true population mean.

If you don't remember, here is the formula for the lower and upper bound for a 99% confidence level respectively:

$$ \overline{x} - 2.58 \times \frac{\sigma}{\sqrt(n)} $$

$$ \overline{x} + 2.58 \times \frac{\sigma}{\sqrt(n)} $$

Instructions

100 XP
  • Calculate lower and upper bounds using the formula described above.
  • Inspect the plot that was generated with the provided custom function plot_ci().