Confidence Interval Exploration

Use the sliders to change the various quantities that go into determining the confidence interval for the population mean and see how the upper (red) interval is affected. The lower (blue) interval was found using the default starting values and remains unchanged for comparison purposes. The intervals are approximate, and for small samples require some normality in the underlying population to be good approximations.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Formulas for the confidence interval for the population mean can be found in most elementary statistics texts. In the case when the population standard deviation is known, the confidence interval formula is given in A. G. Bluman, Elementary Statistics, 6th ed., New York: McGraw–Hill, 2007 p. 351.
Instead of using a single number as an estimate for the population mean, statisticians use interval estimates because the interval's probability of containing the population mean is much higher than a single number's probability of matching the population mean. Roughly speaking, the probability that an interval contains the population mean is called the confidence level. Confidence levels usually range from 80% to just below 100%.
Without data from the entire population, which is the usual case, statisticians cannot be 100% certain that an interval will contain the population mean. If the confidence level is increased, the interval must be larger and there is less information about where the population mean might be; but if the interval is made smaller, there is less chance that the interval contains the population mean. This type of trade-off happens a lot in statistics.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2017 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+