← back to statistics

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

The population stays this shape
The population stays this shape. 101 values; exact bin counts are available below.02040Frequency050100Individual values

Dashed line: population mean = 20.3.

Read the chart as a table
The population stays this shape
Value rangeCount
0.0–2.540
2.5–5.08
5.0–7.55
7.5–10.04
10.0–12.53
12.5–15.03
15.0–17.52
17.5–20.02
20.0–22.52
22.5–25.02
25.0–27.52
27.5–30.02
30.0–32.51
32.5–35.01
35.0–37.52
37.5–40.01
40.0–42.51
42.5–45.01
45.0–47.52
47.5–50.01
50.0–52.51
52.5–55.01
55.0–57.51
57.5–60.01
60.0–62.50
62.5–65.01
65.0–67.51
67.5–70.01
70.0–72.51
72.5–75.01
75.0–77.50
77.5–80.01
80.0–82.51
82.5–85.01
85.0–87.50
87.5–90.01
90.0–92.51
92.5–95.00
95.0–97.51
97.5–100.01

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.

Means of samples of 1
Means of samples of 1. 0 values; exact bin counts are available below.012Frequency050100Sample meansRun an experiment to add values.

Dashed line: population mean = 20.3.

Read the chart as a table
Means of samples of 1
Value rangeCount
0.0–1.30
1.3–2.50
2.5–3.80
3.8–5.00
5.0–6.30
6.3–7.50
7.5–8.80
8.8–10.00
10.0–11.30
11.3–12.50
12.5–13.80
13.8–15.00
15.0–16.30
16.3–17.50
17.5–18.80
18.8–20.00
20.0–21.30
21.3–22.50
22.5–23.80
23.8–25.00
25.0–26.30
26.3–27.50
27.5–28.80
28.8–30.00
30.0–31.30
31.3–32.50
32.5–33.80
33.8–35.00
35.0–36.30
36.3–37.50
37.5–38.80
38.8–40.00
40.0–41.30
41.3–42.50
42.5–43.80
43.8–45.00
45.0–46.30
46.3–47.50
47.5–48.80
48.8–50.00
50.0–51.30
51.3–52.50
52.5–53.80
53.8–55.00
55.0–56.30
56.3–57.50
57.5–58.80
58.8–60.00
60.0–61.30
61.3–62.50
62.5–63.80
63.8–65.00
65.0–66.30
66.3–67.50
67.5–68.80
68.8–70.00
70.0–71.30
71.3–72.50
72.5–73.80
73.8–75.00
75.0–76.30
76.3–77.50
77.5–78.80
78.8–80.00
80.0–81.30
81.3–82.50
82.5–83.80
83.8–85.00
85.0–86.30
86.3–87.50
87.5–88.80
88.8–90.00
90.0–91.30
91.3–92.50
92.5–93.80
93.8–95.00
95.0–96.30
96.3–97.50
97.5–98.80
98.8–100.00

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.

reject reject fail to reject -z* μ₀ +z* α/2 α/2 Two-tailed hypothesis test at significance level α
Scheme

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.

Scheme

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.

Scheme

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.

Scheme
Neighbors

Foundations (Wikipedia)

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.

Want the full treatment? Read OpenIntro Statistics, Ch. 5.