# Confidence Interval for a Population Mean

This Demonstration illustrates the interpretation of a 95% confidence for a population mean. Assume that the population is described by a normal distribution with a known population standard deviation of . Also assume that the population mean is . The confidence interval is based on a sample size of .
The formula for the confidence interval is . Many textbooks give an interpretation by saying we have 95% confidence that the population mean is surrounded by the endpoints of the observed confidence interval . Other books say that we should consider replicating the experiment a very large number of times. We expect that 95% of the samples will produce a confidence interval whose endpoints surround the population mean .
A much more direct interpretation is that either the observed confidence interval surrounds the population mean (of in this example) or we got an unusual set of data. This interpretation is adopted in this Demonstration. The graphic displays the probability density of the random sample mean based on a normal distribution with , and a sample size of . The shaded area defines an interval of values of with a probability of . . We call these typical values of . Such a value of also corresponds to a typical set of data. The black horizontal bar has endpoints that are the endpoints of a possible 95% confidence interval. The dot in the center bar is a possible sample mean. If the dot is in the shaded area (corresponding to a typical dataset), then the endpoints of the confidence interval will surround the population mean of . If a deviant value of (outside of the shaded region) is observed, the endpoints of the confidence interval will not be symmetric about .

### DETAILS

References
 J. Devore, Probability and Statistics for Engineering and the Sciences, 9th ed., Boston: Cengage Learning, 2016.
 W. Navidi, Principles of Statistics for Engineers and Scientists, Dubuque, IA: McGraw-Hill, 2010.

### PERMANENT CITATION

 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 » Download Demonstration as CDF » Download Author Code »(preview ») Files require Wolfram CDF Player or Mathematica.

• Confidence Intervals for a MeanChris Boucher
• Exploring Robustness of Mean-Difference Confidence IntervalsIan McLeod
• Confidence Interval ExplorationDavid Gurney
• Confidence Intervals, Confidence Levels, and Average Interval LengthTomas Garza
• Simultaneous Confidence Interval for the Weibull ParametersMichail Bozoudis
• Wald and Bayesian Confidence IntervalsKarl W. Heiner and Stan Wagon
• Bootstrap Percentile Confidence IntervalsSijia Liang and Bruce Atwood
• Hypothesis Tests about a Population MeanChris Boucher
• Confidence Intervals for the Erlang DistributionTomas Garza
• Confidence Intervals for the Binomial DistributionTomas Garza