Skip to main content

Confidence Interval Coverage Normal

A learning component illustrating coverage of confidence intervals for the mean of a normal distribution.

Options

  • intro | (node|string): overrides default (interactive) intro text. Default: none.
  • quartileNotation | boolean: controls whether to use alpha/2 as the subscript for the critical value or just critical. Default: true.
  • sampleStats | boolean: controls whether one should be able to switch between using the sample standard deviation or the known population standard deviation when calculating the standard error. Default: true.

Examples

Live Editor
Result

Confidence Interval Coverage for Sample Mean

. Then . Our confidence interval is then .For our choice of sample size (n), , , and confidence level, we will simulate 20 different samples from our normal distribution and calculate the corresponding sample means and confidence intervals.

Change parameters


0.010.99

Confidence Intervals

12345678910111213141516171819200.40.60.81.01.21.4

Of the 20 confidence intervals, 19 capture the true proportion (coverage: 0.95).