EXPLORE BEFORE YOU READ · CHAPTER 7
How often does an interval catch the truth?
The population mean stays at 100. The samples—and intervals—change.
Horizontal: Measurement units; population mean = 100Vertical: Independent samples
Thirty independently simulated samples from a normal population with mean 100 and known SD 10. Solid intervals contain 100; dashed intervals miss it. Confidence describes long-run coverage of the method—not the probability that this fixed mean moves into a computed interval. The horizontal range expands when needed to show every endpoint.
Static starting view. JavaScript enables the controls; the data, explanation and downloads work without it.
Data and method
Authored teaching model connected to Rachel Webb, Mostly Harmless Statistics §7.4, CC BY-SA 4.0. Parameters are illustrative, not claimed as observed data. Authored simulation; no measured observations are claimed.
Simulation generator: Mulberry32; reproducible local seed 20260915. This is not a Crunch launch seed.
| Sample | Mean | Lower bound | Upper bound | Contains model mean |
|---|---|---|---|---|
| 1 | 98.435242 | 94.515316 | 102.355167 | covers |
| 2 | 99.706695 | 95.78677 | 103.626621 | covers |
| 3 | 101.680619 | 97.760693 | 105.600544 | covers |
| 4 | 101.803856 | 97.883931 | 105.723782 | covers |
| 5 | 99.306983 | 95.387057 | 103.226908 | covers |
| 6 | 99.720552 | 95.800626 | 103.640477 | covers |
| 7 | 99.265076 | 95.34515 | 103.185002 | covers |
| 8 | 97.429019 | 93.509093 | 101.348944 | covers |
| 9 | 100.178079 | 96.258154 | 104.098005 | covers |
| 10 | 99.9137 | 95.993774 | 103.833625 | covers |
| 11 | 99.775458 | 95.855532 | 103.695384 | covers |
| 12 | 101.615396 | 97.69547 | 105.535321 | covers |
| 13 | 97.737333 | 93.817408 | 101.657259 | covers |
| 14 | 97.729465 | 93.809539 | 101.64939 | covers |
| 15 | 97.975339 | 94.055414 | 101.895265 | covers |
| 16 | 106.838732 | 102.918807 | 110.758658 | misses |
| 17 | 100.514238 | 96.594312 | 104.434163 | covers |
| 18 | 101.035639 | 97.115714 | 104.955565 | covers |
| 19 | 99.89798 | 95.978054 | 103.817906 | covers |
| 20 | 102.932607 | 99.012682 | 106.852533 | covers |
| 21 | 101.693425 | 97.7735 | 105.613351 | covers |
| 22 | 99.636115 | 95.716189 | 103.55604 | covers |
| 23 | 102.633959 | 98.714033 | 106.553884 | covers |
| 24 | 99.394662 | 95.474736 | 103.314587 | covers |
| 25 | 97.856084 | 93.936158 | 101.77601 | covers |
| 26 | 99.810814 | 95.890888 | 103.730739 | covers |
| 27 | 101.35995 | 97.440024 | 105.279875 | covers |
| 28 | 101.253412 | 97.333486 | 105.173337 | covers |
| 29 | 102.386624 | 98.466699 | 106.30655 | covers |
| 30 | 101.52028 | 97.600354 | 105.440205 | covers |
Continue in XYZ Crunch · MH07B
Known population SD and the cost of precision
This authored coverage simulation uses population mean 100, known SD 10, and 30 repeated samples. MH07B instead studies the book's penny-age summary and hypothetical interval-width scenarios. Its Crunch link opens a standard-normal inverse lookup with cumulative left area .975; it does not seed penny records, compute intervals, or reproduce this coverage simulation. For the penny interval, use the penny problem's own mean, sample size and known population SD in x-bar ± z* sigma/sqrt(n), following the workbook steps. The SD 10 belongs only to this coverage simulation. Z Interval from Data still requires an independently known SD and actual observations. If SD must be estimated from observations, use the t method. §7.4 supplies the interval method and §7.5 explains long-run coverage. Changed n/confidence and the simulation seed stay here; the current interval CSV is a separate export.
- Use inverse standard normal with left area .975 for 95% confidence and .995 for 99%.
- Use the supplied known σ in the printed interval formula.
- The current Z Interval (from Data, known σ) requires actual observations plus an independently known population SD. Only summaries are supplied for the penny example, so use Z Interval (known σ).
- Known-sigma z interval: Margin uses a known population SD, not an SD estimated from the sample. Notation: x-bar±z*σ/√n. Source: §7.4.
- Mean sample size: Round up after applying the precision formula. Notation: n=(z*σ/E)². Source: §7.6.
Open activity MH07B in XYZ Crunch
The link opens the activity’s stated Crunch starting point. Confirm the panel, lists and settings in the steps above, and enter data only when those steps require it. Crunch links do not transfer what-if edits; export them separately as CSV.
Chapter 7: Confidence Intervals for One Population
Statistical inference is used to draw conclusions about a population based on a sample. We can use the probability distributions and Central Limit Theorem to understand what is going on in the population. The population can be difficult to measure so we take a sample from that population and use descriptive statistics to measure the sample. We can then use those sample statistics to infer back to what is happening in our population. Although there are many types of statistical inference tools, we will only cover some of the more common techniques.
Distinguishing between a population and a sample is important in statistics. We frequently use a representative sample to generalize a population.
Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University, https://mostlyharmlessstat.wixsite.com/webpage), © Rachel Webb, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.