Foundations for Inference
OpenIntro Statistics · Ch. 5 · openintro.org/book/os
Statistical inference draws conclusions about a population from a sample. Two main tools: confidence intervals estimate a parameter with a margin of error, and hypothesis tests evaluate whether evidence supports a claim. Both rest on the sampling distribution.
Keep the population fixed and watch how its sample means vary. Read the guided introduction β
One sample becomes one mean
Dashed line: population mean = 20.3.
Read the chart as a table
| Value range | Count |
|---|---|
| 0.0β2.5 | 40 |
| 2.5β5.0 | 8 |
| 5.0β7.5 | 5 |
| 7.5β10.0 | 4 |
| 10.0β12.5 | 3 |
| 12.5β15.0 | 3 |
| 15.0β17.5 | 2 |
| 17.5β20.0 | 2 |
| 20.0β22.5 | 2 |
| 22.5β25.0 | 2 |
| 25.0β27.5 | 2 |
| 27.5β30.0 | 2 |
| 30.0β32.5 | 1 |
| 32.5β35.0 | 1 |
| 35.0β37.5 | 2 |
| 37.5β40.0 | 1 |
| 40.0β42.5 | 1 |
| 42.5β45.0 | 1 |
| 45.0β47.5 | 2 |
| 47.5β50.0 | 1 |
| 50.0β52.5 | 1 |
| 52.5β55.0 | 1 |
| 55.0β57.5 | 1 |
| 57.5β60.0 | 1 |
| 60.0β62.5 | 0 |
| 62.5β65.0 | 1 |
| 65.0β67.5 | 1 |
| 67.5β70.0 | 1 |
| 70.0β72.5 | 1 |
| 72.5β75.0 | 1 |
| 75.0β77.5 | 0 |
| 77.5β80.0 | 1 |
| 80.0β82.5 | 1 |
| 82.5β85.0 | 1 |
| 85.0β87.5 | 0 |
| 87.5β90.0 | 1 |
| 90.0β92.5 | 1 |
| 92.5β95.0 | 0 |
| 95.0β97.5 | 1 |
| 97.5β100.0 | 1 |
Each range includes its lower end and excludes its upper end, except the last range, which includes both.
Draw independently with replacement: each observation uses the same population again. Average the values, and place that one mean in the lower chart.
0 sample means recorded.
Dashed line: population mean = 20.3.
Read the chart as a table
| Value range | Count |
|---|---|
| 0.0β1.3 | 0 |
| 1.3β2.5 | 0 |
| 2.5β3.8 | 0 |
| 3.8β5.0 | 0 |
| 5.0β6.3 | 0 |
| 6.3β7.5 | 0 |
| 7.5β8.8 | 0 |
| 8.8β10.0 | 0 |
| 10.0β11.3 | 0 |
| 11.3β12.5 | 0 |
| 12.5β13.8 | 0 |
| 13.8β15.0 | 0 |
| 15.0β16.3 | 0 |
| 16.3β17.5 | 0 |
| 17.5β18.8 | 0 |
| 18.8β20.0 | 0 |
| 20.0β21.3 | 0 |
| 21.3β22.5 | 0 |
| 22.5β23.8 | 0 |
| 23.8β25.0 | 0 |
| 25.0β26.3 | 0 |
| 26.3β27.5 | 0 |
| 27.5β28.8 | 0 |
| 28.8β30.0 | 0 |
| 30.0β31.3 | 0 |
| 31.3β32.5 | 0 |
| 32.5β33.8 | 0 |
| 33.8β35.0 | 0 |
| 35.0β36.3 | 0 |
| 36.3β37.5 | 0 |
| 37.5β38.8 | 0 |
| 38.8β40.0 | 0 |
| 40.0β41.3 | 0 |
| 41.3β42.5 | 0 |
| 42.5β43.8 | 0 |
| 43.8β45.0 | 0 |
| 45.0β46.3 | 0 |
| 46.3β47.5 | 0 |
| 47.5β48.8 | 0 |
| 48.8β50.0 | 0 |
| 50.0β51.3 | 0 |
| 51.3β52.5 | 0 |
| 52.5β53.8 | 0 |
| 53.8β55.0 | 0 |
| 55.0β56.3 | 0 |
| 56.3β57.5 | 0 |
| 57.5β58.8 | 0 |
| 58.8β60.0 | 0 |
| 60.0β61.3 | 0 |
| 61.3β62.5 | 0 |
| 62.5β63.8 | 0 |
| 63.8β65.0 | 0 |
| 65.0β66.3 | 0 |
| 66.3β67.5 | 0 |
| 67.5β68.8 | 0 |
| 68.8β70.0 | 0 |
| 70.0β71.3 | 0 |
| 71.3β72.5 | 0 |
| 72.5β73.8 | 0 |
| 73.8β75.0 | 0 |
| 75.0β76.3 | 0 |
| 76.3β77.5 | 0 |
| 77.5β78.8 | 0 |
| 78.8β80.0 | 0 |
| 80.0β81.3 | 0 |
| 81.3β82.5 | 0 |
| 82.5β83.8 | 0 |
| 83.8β85.0 | 0 |
| 85.0β86.3 | 0 |
| 86.3β87.5 | 0 |
| 87.5β88.8 | 0 |
| 88.8β90.0 | 0 |
| 90.0β91.3 | 0 |
| 91.3β92.5 | 0 |
| 92.5β93.8 | 0 |
| 93.8β95.0 | 0 |
| 95.0β96.3 | 0 |
| 96.3β97.5 | 0 |
| 97.5β98.8 | 0 |
| 98.8β100.0 | 0 |
Each range includes its lower end and excludes its upper end, except the last range, which includes both.
All horizontal axes stay at 0β100. Each vertical axis counts its own observations. At most the latest 10,000 means are shown. Changing sample size clears the current means; changing population clears both runs.
Put a number on the narrowing
The populationβs standard deviation is 27.17. For samples of 1, the standard error of the mean is 27.17 Γ· β1 = 27.17. The populationβs spread stays the same; the estimates become steadier.
Point estimates and the sampling distribution
A point estimate is a single number computed from data (like the sample mean). Different samples give different estimates. The distribution of all possible estimates is the sampling distribution. By the π° Central Limit Theorem, means of independent observations from the same distribution with finite, positive variance are approximately normal for sufficiently large n. The population itself need not be normal.
Confidence intervals
A confidence interval combines a point estimate with a margin of error. For independent observations from a normal population with unknown standard deviation, a 95% t interval is xΜ ± t* × s/βn. Here n = 10, so there are 9 degrees of freedom and t* β 2.262. Under those assumptions, the procedure covers the population mean in 95% of repeated samples. See the interval experiment for the coverage idea.
Hypothesis testing and p-values
Start with a null hypothesis H₀, such as a specified population mean. The p-value is the probability, under the null model, of a test statistic at least as extreme as observed according to the chosen test. Set a decision threshold α before seeing the data. The example below uses a two-sided t test with 9 degrees of freedom and independent normal observations; its critical value assumes the ten observations shown.
Significance level and errors
The significance level α is the threshold for rejecting H₀. Type I error: rejecting H₀ when it is true (probability at most α for a valid level-α test). Type II error: failing to reject H₀ when it is false (probability = β). Power = 1 - β: the probability of correctly detecting a real effect.
Neighbors
Foundations (Wikipedia)
① Confidence interval
① P-value
① Hypothesis testing
① Central Limit Theorem
- π¬ Fisher 1935 — the inventor of significance testing and p-values
- π¬ Ioannidis 2005 — why the tools in this chapter are often misused
- π€ ML Ch.1 — statistical learning as inference from data
Translation notes
OpenIntro builds inference from the sampling distribution of the sample proportion, then generalizes. We use the sample mean for clarity. The original covers decision errors with medical testing analogies and uses simulation to build intuition for sampling distributions. With many degrees of freedom, t critical values approach normal critical values. The examples here use the t-distribution because the population standard deviation is estimated from ten observations; Ch. 7 develops this method further.