# Interactive Demonstrations for Statistics Education on the World Wide Web

R. Webster West and R. Todd Ogden
University of South Carolina

Journal of Statistics Education v.6, n.3 (1998)

Copyright (c) 1998 by R. Webster West and R. Todd Ogden, all rights reserved. This text may be freely shared among individuals, but it may not be republished in any medium without express written consent from the authors and advance notification of the editor.

# Confidence Interval Applet

The applet running below is designed to help students understand confidence intervals. Each of the 50 lines on the graph below represents a confidence interval for the mean (assuming known variance). Each interval is based on a sample of size 5 taken from a standard normal distribution (mean = 0 and variance = 1). By changing alpha, students can see how the confidence intervals are affected by this parameter. Also, students can get a good idea of what a confidence interval really means in terms of covering the true mean.

Pick an alpha for which a large number of confidence intervals are to be calculated by sliding the arrow along the alpha scale. When the desired value is found, simply click More Intervals! Each time this button is clicked subsequently the default alpha-level for a new set of 50 confidence intervals will be the value chosen. When clicking this button, be careful to wait and make sure the applet has performed all the necessary calculations before clicking it again. The first line of text allows you to see how many intervals cover the true mean of 0 for the current set of 50 intervals as you change alpha. The second line of text gives the total number of intervals that have covered 0 at the default alpha level.

Perform this simulation task for a wide range of alpha values. To change the default value, simply click New Alpha!, and slide the arrow along the alpha scale to the desired value of alpha and proceed with the steps above.