Choosing a sample size

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

Choosing a sample size

Confidence intervals.

Warm-up

Three quick questions from earlier lessons.

  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 100, p̂ = 3/10. Using z* = 2, find the upper end of the approximate 95% interval for p.
  3. 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

Discover

A survey of 100 has margin of error 0.10. About how many people give a margin of 0.05?

  1. 400
  2. 200

Key idea

Plan the sample size before collecting data.

To get margin of error at most MEME for a proportion: n≥(z∗ME)2p(1−p)n \ge \left(\dfrac{z^*}{ME}\right)^2 p(1 - p), using a prior estimate of pp or p=0.5p = 0.5 (the safest choice), then round up.

Worked example

95% confidence, ME = 0.03, p=0.5p = 0.5.

≈4268.4\approx 4268.4
(1.96/0.03)².
≈1067.1\approx 1067.1
× 0.25.
n=1068n = 1068
Round up.

Your turn, guided

Your turn: with z∗=2z^* = 2, ME = 0.1, p=0.5p = 0.5: (2/0.1)2×0.25(2/0.1)^2 \times 0.25.

n=100n = 100
400 × 0.25.

Practice ★

  1. A survey of 264 people gives a margin of error you want to halve. About how many people are needed?
    1. 1056
    2. 528
    3. About half as many
  1. A margin of error is 0.08. If the sample size is multiplied by 9, what is the new margin of error?
  2. 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 ★★

  1. 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.

  1. A margin of error is 0.08. If the sample size is multiplied by 9, what is the new margin of error?
  2. A margin of error is 0.07. If the sample size is multiplied by 25, what is the new margin of error?
  3. 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)n \ge (z^*/ME)^2 p(1 - p), p=0.5p = 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 ★★★

  1. A pilot study gives p̂ = 0.3. Using z* = 2, which sample size nn gives a margin of error of 120\dfrac{1}{ 20 }?
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