Confidence intervals for a proportion

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.

About this lesson

Statistics (AP-aligned) › Confidence intervals

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

Confidence intervals for a proportion

Confidence intervals.

Warm-up

Three quick questions from earlier lessons.

  1. A 95% confidence interval for a proportion is (47/100, 51/100). Find the margin of error.
  2. A confidence interval for a mean is (30, 40). Find the point estimate.
  3. A 95% interval from a sample of 591 is too wide. Which change makes it narrower?
    1. A larger sample size
    2. A higher confidence level, such as 99%
    3. 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\sqrt{0.5 \times 0.5 / 400} = 0.025. For 95% confidence (z* ≈ 2), what is the margin of error?

  1. 0.05
  2. 0.025

Key idea

The one-proportion z interval.

p^±z∗p^(1−p^)n\hat{p} \pm z^*\sqrt{\dfrac{\hat{p}(1 - \hat{p})}{n}}, for a random sample with np^≥10n\hat{p} \ge 10 and n(1−p^)≥10n(1 - \hat{p}) \ge 10. For 95% confidence, z∗=1.96z^* = 1.96. Interpret: "we are 95% confident that the interval captures the population proportion".

Worked example

n=100n = 100, p^=0.3\hat{p} = 0.3, 95%.

SE≈0.0458SE \approx 0.0458
√(0.3 × 0.7/100).
ME≈0.090ME \approx 0.090
1.96 × SE.
(0.210,0.390)(0.210, 0.390)
0.3 ± 0.090.

Your turn, guided

Your turn: SE = 0.02 and z* = 2. The margin of error.

0.040.04
2 × 0.02.

Practice ★

  1. In a random sample of 400, p̂ = 5/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
  2. In a random sample of 400, p̂ = 9/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
  1. 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 ★★

  1. A 95% confidence interval for the proportion of voters who support a plan is (0.48, 0.52). Which interpretation is right?
    1. We are 95% confident that the interval from 0.48 to 0.52 captures the true proportion of supporters
    2. 95% of the sample supports the plan
    3. There is a 95% probability that p is between 0.48 and 0.52

Exit ticket

Three questions to check you have got it.

  1. In a random sample of 400, p̂ = 5/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
  2. In a random sample of 400, p̂ = 9/10. Using z* = 1.96, find the margin of error of a 95% interval for p.
  3. 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\hat{p} \pm z^*\sqrt{\hat{p}(1 - \hat{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 ★★★

  1. Using p^=0.5\hat{p} = 0.5 and z∗=2z^* = 2, how large must a sample be for a margin of error of 150\dfrac{1}{ 50 }?
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits