Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.
Every lesson of the topic, from the first year to the last, ready for paper. Exercise sets are lettered A, B, C… and answered at the end.
To save a PDF, choose “Save as PDF” in the print dialog.
Statistics and probability
Confidence intervals
NicknameDate
Scan to open onlineenglish.sedifier.com/en-us/branch/s/cin/print/
1. Point estimates and margins of error
Warm-up
Three quick questions from earlier lessons.
The population proportion is p = 8/10. Find the standard deviation of p̂ for random samples of size 83.
The population proportion is p = 5/10. What is the mean of the sampling distribution of p̂ for samples of size 351?
The population proportion is p = 1/8. What is the smallest sample size n for which np ≥ 10 and n(1 − p) ≥ 10?
Discover
A poll reports 52% support, "plus or minus 3 points". Which range of values is plausible for the true support?
49% to 55%
52% to 55%
Key idea
An interval estimate: point estimate ± margin of error.
A confidence interval is estimate±margin of error, with margin of error =(critical value)×(standard error). The point estimate is the center of the interval; the margin of error is half its width. Larger samples give smaller margins.
Worked example
Interval (0.42, 0.50).
Point estimate =0.46
Center.
Margin of error =0.04
Half the width.
0.46±0.04
Written as estimate ± ME.
Your turn, guided
Your turn: interval (12, 20). The margin of error.
4
(20 − 12)/2.
Practice ★
A 95% confidence interval for a proportion is (47/100, 51/100). Find the margin of error.
A 95% confidence interval for a proportion is (76/100, 102/100). Find the margin of error.
A confidence interval for a mean is (30, 40). Find the point estimate.
Watch out!
Practice ★★
A 95% interval from a sample of 591 is too wide. Which change makes it narrower?
A larger sample size
A higher confidence level, such as 99%
Nothing: the width is fixed by the population
Exit ticket
Three questions to check you have got it.
A 95% confidence interval for a proportion is (47/100, 51/100). Find the margin of error.
A 95% confidence interval for a proportion is (76/100, 102/100). Find the margin of error.
A 95% confidence interval for a proportion is (43/100, 47/100). Find the margin of error.
Summary card
Interval estimates
Estimate ± ME, ME = critical value × SE; ME = half the width.
Watch out: width = 2 × ME.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
By what factor must the sample size grow to divide the margin of error by 3?
2. Confidence intervals for a proportion
Warm-up
Three quick questions from earlier lessons.
A 95% confidence interval for a proportion is (47/100, 51/100). Find the margin of error.
A confidence interval for a mean is (30, 40). Find the point estimate.
A 95% interval from a sample of 591 is too wide. Which change makes it narrower?
A larger sample size
A higher confidence level, such as 99%
Nothing: the width is fixed by the population
Discover
In a sample of 400, p̂ = 0.5. The standard error is 0.5×0.5/400=0.025. For 95% confidence (z* ≈ 2), what is the margin of error?
0.05
0.025
Key idea
The one-proportion z interval.
p^±z∗np^(1−p^), for a random sample with np^≥10 and n(1−p^)≥10. For 95% confidence, z∗=1.96. Interpret: "we are 95% confident that the interval captures the population proportion".
Worked example
n=100, p^=0.3, 95%.
SE≈0.0458
√(0.3 × 0.7/100).
ME≈0.090
1.96 × SE.
(0.210,0.390)
0.3 ± 0.090.
Your turn, guided
Your turn: SE = 0.02 and z* = 2. The margin of error.
0.04
2 × 0.02.
Practice ★
In a random sample of 400, p̂ = 5/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
In a random sample of 400, p̂ = 9/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
In a random sample of 100, p̂ = 3/10. Using z* = 2, find the upper end of the approximate 95% interval for p.
Watch out!
Practice ★★
A 95% confidence interval for the proportion of voters who support a plan is (0.48, 0.52). Which interpretation is right?
We are 95% confident that the interval from 0.48 to 0.52 captures the true proportion of supporters
95% of the sample supports the plan
There is a 95% probability that p is between 0.48 and 0.52
Exit ticket
Three questions to check you have got it.
In a random sample of 400, p̂ = 5/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
In a random sample of 400, p̂ = 9/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
In a random sample of 400, p̂ = 8/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
Summary card
Interval for p
p^±z∗p^(1−p^)/n; check random and large counts.
Watch out: "confident", not "probability", for a computed interval.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
Using p^=0.5 and z∗=2, how large must a sample be for a margin of error of 501?
3. Confidence level and critical values
Warm-up
Three quick questions from earlier lessons.
In a random sample of 400, p̂ = 5/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
In a random sample of 100, p̂ = 3/10. Using z* = 2, find the upper end of the approximate 95% interval for p.
A 95% confidence interval for the proportion of voters who support a plan is (0.48, 0.52). Which interpretation is right?
We are 95% confident that the interval from 0.48 to 0.52 captures the true proportion of supporters
95% of the sample supports the plan
There is a 95% probability that p is between 0.48 and 0.52
Discover
To be more confident of catching a fish, should you use a wider or a narrower net?
Wider
Narrower
Key idea
The confidence level describes the method.
Common critical values: z∗=1.645 (90%), 1.96 (95%), 2.576 (99%). Higher confidence gives a wider interval. The confidence level is the proportion of intervals, in repeated random sampling, that capture the parameter.
Worked example
p^=0.6, SE=0.04.
90%: ME ≈ 0.066
1.645 × 0.04.
95%: ME ≈ 0.078
1.96 × 0.04.
99%: ME ≈ 0.103
2.576 × 0.04.
Your turn, guided
Your turn: SE = 0.05, 95% (z* = 2 approx). The margin of error.
0.1
2 × 0.05.
Practice ★
From the same sample of 458, a 99% and a 90% interval are computed. Which is wider?
The 99% interval
The 90% interval
They have the same width
A 95% interval (z* = 1.96) has margin of error 0.07. From the same data, find the margin of error of a 99% interval (z* = 2.576).
A 95% interval (z* = 1.96) has margin of error 0.06. From the same data, find the margin of error of a 99% interval (z* = 2.576).
Watch out!
Practice ★★
What does the confidence level 90% mean?
In repeated random sampling, about 90% of the intervals built this way capture the parameter
This interval contains the parameter with probability 90%
90% of the data fall in the interval
Exit ticket
Three questions to check you have got it.
A 95% interval (z* = 1.96) has margin of error 0.07. From the same data, find the margin of error of a 99% interval (z* = 2.576).
A 95% interval (z* = 1.96) has margin of error 0.06. From the same data, find the margin of error of a 99% interval (z* = 2.576).
A 95% interval (z* = 1.96) has margin of error 0.09. From the same data, find the margin of error of a 99% interval (z* = 2.576).
Watch out: the level describes the method over many samples.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
A 95% interval (z* = 1.96) has margin of error 0.07. From the same data, find the margin of error of a 90% interval (z* = 1.645).
4. Choosing a sample size
Warm-up
Three quick questions from earlier lessons.
In a random sample of 400, p̂ = 5/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
In a random sample of 100, p̂ = 3/10. Using z* = 2, find the upper end of the approximate 95% interval for p.
A 95% confidence interval for the proportion of voters who support a plan is (0.48, 0.52). Which interpretation is right?
We are 95% confident that the interval from 0.48 to 0.52 captures the true proportion of supporters
95% of the sample supports the plan
There is a 95% probability that p is between 0.48 and 0.52
Discover
A survey of 100 has margin of error 0.10. About how many people give a margin of 0.05?
400
200
Key idea
Plan the sample size before collecting data.
To get margin of error at most ME for a proportion: n≥(MEz∗)2p(1−p), using a prior estimate of p or p=0.5 (the safest choice), then round up.
Worked example
95% confidence, ME = 0.03, p=0.5.
≈4268.4
(1.96/0.03)².
≈1067.1
× 0.25.
n=1068
Round up.
Your turn, guided
Your turn: with z∗=2, ME = 0.1, p=0.5: (2/0.1)2×0.25.
n=100
400 × 0.25.
Practice ★
A survey of 264 people gives a margin of error you want to halve. About how many people are needed?
1056
528
About half as many
A margin of error is 0.08. If the sample size is multiplied by 9, what is the new margin of error?
A margin of error is 0.07. If the sample size is multiplied by 25, what is the new margin of error?
Watch out!
Practice ★★
Using p = 0.5 and z* = 1.96, find the value of n (before rounding up) needed for a margin of error of 0.04.
Exit ticket
Three questions to check you have got it.
A margin of error is 0.08. If the sample size is multiplied by 9, what is the new margin of error?
A margin of error is 0.07. If the sample size is multiplied by 25, what is the new margin of error?
A margin of error is 0.07. If the sample size is multiplied by 4, what is the new margin of error?
Summary card
Sample size
n≥(z∗/ME)2p(1−p), p=0.5 if unknown; round up.
Watch out: halving ME needs 4 times the sample.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
A pilot study gives p̂ = 0.3. Using z* = 2, which sample size n gives a margin of error of 201?
5. t intervals for a mean
Warm-up
Three quick questions from earlier lessons.
From the same sample of 458, a 99% and a 90% interval are computed. Which is wider?
The 99% interval
The 90% interval
They have the same width
What does the confidence level 90% mean?
In repeated random sampling, about 90% of the intervals built this way capture the parameter
This interval contains the parameter with probability 90%
90% of the data fall in the interval
A 95% interval (z* = 1.96) has margin of error 0.07. From the same data, find the margin of error of a 99% interval (z* = 2.576).
Discover
To estimate a mean we usually do not know σ, so we use the sample's s. Does that add uncertainty?
Yes: we use a slightly larger t critical value
No: s is just as good as σ
Key idea
The one-sample t interval.
xˉ±t∗ns, with t∗ from the t distribution with n−1 degrees of freedom. Conditions: random sample; population roughly normal or n large (about 30 or more), with no strong outliers for small n.
Worked example
n=16, xˉ=50, s=8, t∗=2.131 (15 df, 95%).
SE=2
8/4.
ME=4.262
2.131 × 2.
(45.738,54.262)
50 ± 4.262.
Your turn, guided
Your turn: n=9, s=6. The standard error.
2
6/√9.
Practice ★
A random sample of 25 has standard deviation s = 16. With t* = 2.064 (24 df, 95%), find the margin of error for the mean.
A random sample of 25 has standard deviation s = 13. With t* = 2.064 (24 df, 95%), find the margin of error for the mean.
A one-sample t interval uses a sample of 10. How many degrees of freedom?
Watch out!
Practice ★★
Why is a t critical value used for a confidence interval for a mean from a sample of 40?
Because σ is estimated by s, which adds variability
Because n is less than 1,000
Because the data are skewed
Exit ticket
Three questions to check you have got it.
A random sample of 25 has standard deviation s = 16. With t* = 2.064 (24 df, 95%), find the margin of error for the mean.
A random sample of 25 has standard deviation s = 13. With t* = 2.064 (24 df, 95%), find the margin of error for the mean.
A random sample of 25 has standard deviation s = 19. With t* = 2.064 (24 df, 95%), find the margin of error for the mean.
Summary card
t interval for μ
xˉ±t∗s/n, df =n−1.
Watch out: t*, not z*, when σ is estimated.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
A random sample of 16 has standard deviation s = 10. With t* = 2.131 (15 df, 95%), find the width of the t interval for the mean.
6. Intervals for a difference of proportions or means
Warm-up
Three quick questions from earlier lessons.
In a random sample of 400, p̂ = 5/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
In a random sample of 100, p̂ = 3/10. Using z* = 2, find the upper end of the approximate 95% interval for p.
A 95% confidence interval for the proportion of voters who support a plan is (0.48, 0.52). Which interpretation is right?
We are 95% confident that the interval from 0.48 to 0.52 captures the true proportion of supporters
95% of the sample supports the plan
There is a 95% probability that p is between 0.48 and 0.52
Discover
A 95% interval for p1−p2 is (0.02, 0.10). What does it suggest about the two proportions?
p1 appears larger
No difference
Key idea
Compare two groups with an interval for the difference.
(p^1−p^2)±z∗n1p^1(1−p^1)+n2p^2(1−p^2); for means (xˉ1−xˉ2)±t∗n1s12+n2s22. If 0 is in the interval, "no difference" is plausible.
Worked example
p^1=0.6, p^2=0.5, n1=n2=100.
SE=0.0049=0.07
0.0024 + 0.0025.
ME≈0.137
1.96 × 0.07.
(−0.037,0.237): no convincing difference
0.1 ± 0.137 contains 0.
Your turn, guided
Your turn: variances of the two estimates are 0.0009 and 0.0016. The SE of the difference.
0.05
√0.0025.
Practice ★
Two groups have sample means 90 and 58. What is the point estimate of μ₁ − μ₂?
Independent samples of 100 give p̂₁ = 1/10 and p̂₂ = 6/10. Using z* = 1.96, find the margin of error for p₁ − p₂.
Independent samples of 100 give p̂₁ = 3/10 and p̂₂ = 8/10. Using z* = 1.96, find the margin of error for p₁ − p₂.
Watch out!
Practice ★★
A 95% interval for p₁ − p₂ is (−0.07, 0.08). What does it suggest?
No convincing difference: 0 is a plausible value of p₁ − p₂
p₁ is larger, since the upper end is positive
It proves p₁ = p₂
Exit ticket
Three questions to check you have got it.
Independent samples of 100 give p̂₁ = 1/10 and p̂₂ = 6/10. Using z* = 1.96, find the margin of error for p₁ − p₂.
Independent samples of 100 give p̂₁ = 3/10 and p̂₂ = 8/10. Using z* = 1.96, find the margin of error for p₁ − p₂.
Independent samples of 100 give p̂₁ = 7/10 and p̂₂ = 8/10. Using z* = 1.96, find the margin of error for p₁ − p₂.
Summary card
Intervals for differences
Estimate difference ± critical value × √(sum of variances).
Watch out: does the interval contain 0?
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
Independent samples of 25 have SDs 6 and 8. Using a critical value of 2, find the margin of error for μ₁ − μ₂.
7. A quick margin of error
Discover
A poll of n people gives a margin of error. Without the formula, what happens to the margin when you poll 4 times as many people?
It is halved
It is divided by 4
Key idea
A quick margin of error.
For a proportion at 95 % confidence,
ME=1.96np^(1−p^)≤1.96n0.25≈n1.
So a sample of n gives a margin of at most about n1, and a margin m needs about n=m21.
Worked example
How many people for a margin of 3 percentage points?
n≈0.00091
m=0.03.
≈1111 people
Divide.
Your turn, guided
Your turn: quick margin for n=400?
0.05, about 5 points
4001.
Practice ★
Using the quick rule ME≈n1, find the margin of error for a poll of 729 people (as a decimal).
Using the quick rule ME≈n1, find the margin of error for a poll of 1764 people (as a decimal).
Using the quick rule ME≈n1, find the margin of error for a poll of 484 people (as a decimal).
Practice ★★
Using n≈m21, how many people give a margin of about 1 percentage points?
Using n≈m21, how many people give a margin of about 2 percentage points?
Exit ticket
Two questions to check.
Using the quick rule ME≈n1, find the margin of error for a poll of 729 people (as a decimal).
Using the quick rule ME≈n1, find the margin of error for a poll of 1764 people (as a decimal).
Summary card
Quick margin
ME⪅n1 at 95 %.
n≈m21.
This is the arithmetic behind '±3 points' in news polls.
8. History of confidence intervals: Gosset and Neyman
Discover
A study says 'the average is between 12 and 15, with 95 % confidence'. In the 1930s, Jerzy Neyman made this kind of statement precise. What does the 95 % refer to?
The method: 95 % of intervals built this way contain the true value
A 95 % chance that the true value moves into the interval
Key idea
From brewing to confidence intervals.
Step 1William Sealy Gosset1876–1937Unknown artist. Public domain1899: Gosset joins Guinness; he invents the t-test for small samples and writes as 'Student'.
Step 2JJerzy Neyman1894–1981No portrait is known1934–38: Neyman puts forward the theory of confidence intervals.
William Gosset, a chemist at the Guinness brewery from 1899, invented the t-test to handle small samples for quality control in brewing, and published under the name 'Student'. Between 1934 and 1938, in London, Jerzy Neyman put forward the theory of confidence intervals.
Worked example
A 95 % confidence interval is (12,15). Find the point estimate and the margin of error.
212+15=13.5
Middle of the interval.
215−12=1.5
Half its width.
Practice ★
Why did Gosset publish under the name 'Student'?
He worked for the Guinness brewery and published his statistics under a pen name
He was still a student at university
Neyman asked him to
A confidence interval is (63,81). Find the margin of error.
A confidence interval is (14,32). Find the margin of error.
A confidence interval is (27,35). Find the point estimate.
Summary card
Confidence intervals today
Polls report a margin of error, often about 3 points.
Medical studies give intervals for the effect of a treatment.
Factories estimate defect rates from samples.
Sources: MacTutor biographies of Gosset and Neyman (see "Sources and credits").
Answers: Confidence intervals
1. Point estimates and margins of error
A
415283
0.5
80
B
0.02
0.13
C
35
D
A larger sample size
E
0.02
0.13
0.02
F
9
2. Confidence intervals for a proportion
A
0.02
35
A larger sample size
B
0.049
0.0294
C
5021+103
D
We are 95% confident that the interval from 0.48 to 0.52 captures the true proportion of supporters
E
0.049
0.0294
0.0392
F
2500
3. Confidence level and critical values
A
0.049
5021+103
We are 95% confident that the interval from 0.48 to 0.52 captures the true proportion of supporters
B
The 99% interval
C
0.092
87569
D
In repeated random sampling, about 90% of the intervals built this way capture the parameter
E
0.092
87569
1750207
F
0.05875
4. Choosing a sample size
A
0.049
5021+103
We are 95% confident that the interval from 0.48 to 0.52 captures the true proportion of supporters
B
1056
C
752
0.014
D
600.25
E
752
0.014
0.035
F
336
5. t intervals for a mean
A
The 99% interval
In repeated random sampling, about 90% of the intervals built this way capture the parameter
0.092
B
6.6048
5.3664
C
9
D
Because σ is estimated by s, which adds variability
E
6.6048
5.3664
7.8432
F
10.655
6. Intervals for a difference of proportions or means
A
0.049
5021+103
We are 95% confident that the interval from 0.48 to 0.52 captures the true proportion of supporters
B
32
C
25004933
25004937
D
No convincing difference: 0 is a plausible value of p₁ − p₂
E
25004933
25004937
25004937
F
4
7. A quick margin of error
A
271
421
221
B
10000
2500
C
271
421
8. History of confidence intervals: Gosset and Neyman
A
He worked for the Guinness brewery and published his statistics under a pen name