Steply

Sample size for a proportion: 95% confidence, error bound 0.05

Step by step, with the reason for every step · How big a sample? · University Statistics

Step by step

The question

Question: how big a sample do we need to find a proportion, 95% confident, with an error bound of 0.05?

n? 95% confidence, EBP = 0.05

1 Find z*

95 percent of the bell is in the middle.

That leaves 5 percent: 2.5 percent in each end.

95% in the middle: 5% left over, 2.5% in each end

z* marks the cut between the middle and the ends.

Left of z* are the middle and one end: 0.95 plus 0.025 is 0.9750.

left of z* = 0.95 + 0.025 = 0.9750

Now we look for 0.9750 inside the table.

0.9750 is in the table: row 1.9, column .06.

So z = 1.96.

z* = 1.96

2 The formula

From the error bound of a proportion, solved for n: z* squared times p prime times q prime, over the error bound squared.

n = z*2 × p′ × q′EBP2

We have no guess for p prime.

So we use 0.5: it gives the biggest n, so it is safe.

no guess for p′: use 0.5 (the biggest n, safe)

p prime is 0.5, so q prime is 1 minus 0.5: 0.5.

p′ = 0.5, q′ = 1 − 0.5 = 0.5

3 Put the numbers in

1.96 squared is 3.8416.

Times 0.5 times 0.5: 0.9604.

0.05 squared is 0.0025.

Dividing gives about 384.16.

n = 3.8416 × 0.5 × 0.50.052 = 0.96040.0025 ≈ 384.16

4 Round up

A sample size must be a whole number.

We always round up: a smaller sample would miss the goal.

always round UP: a bigger sample is safe

384.16 rounds up to 385.

n = 385

Careful!

Rounding down to 384 gives an error bound a bit too big.

Always round up.

Careful: not n = 384 ✗

5 Check

Let's check: with 385 people the error bound is about 0.0499.

That is not more than 0.05.

Good.

n = 385: EBP ≈ 0.0499 ≤ 0.05

With one person less, 384, it is about 0.05: too big.

So 385 is the smallest that works.

So it is right!

n = 384: EBP ≈ 0.05 > 0.05

Let's look back.

First: find z*.

Then: the formula.

Then: put the numbers in.

Then: round up.

Last: check.

Answer
Careful: not n = 384 ✗

Your turn

Try this one yourself, then check:

n? 95% confidence, EBP = 0.04
Show the answer
n = 601

More from How big a sample?

The whole lesson: How big a sample? →