Statistical AppletsConfidence Interval for Proportions |
|
This applet simulates the process of taking an election poll involving two candidates. Some proportion p
of the population plans to vote for candidate A. If we sample n people from the population, the proportion of people in the
sample who say they plan to vote for candidate A is our best estimate of the population proportion. We can then construct a level
C confidence interval, where C is the probability that the interval actually includes the true value of p.
More specifically, the confidence interval is calculated as the sample proportion |
Set the underlying population proportion p, the desired confidence level, and the sample size n with the sliders, then click SAMPLE to take a sample. On the right you'll see a large dot representing the sample proportion (i.e., the proportion of people in the sample who said they plan to vote for candidate A), and the lines on each side of this dot span the confidence interval. Click SAMPLE 25 take 25 samples all at once. The green line indicates the population proportion p. Intervals that contain p ("hits") will be colored gray; "misses" will be colored red. Click on any confidence interval to reveal the sample proportion and the range of the confidence interval. |
|