Steply

Sample size for a proportion: 99% confidence, error bound 0.04

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, 99% confident, with an error bound of 0.04?

n? 99% confidence, EBP = 0.04

1 Find z*

99 percent of the bell is in the middle.

That leaves 1 percent: 0.5 percent in each end.

99% in the middle: 1% left over, 0.5% in each end

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

Left of z* are the middle and one end: 0.99 plus 0.005 is 0.9950.

left of z* = 0.99 + 0.005 = 0.9950

Now we look for 0.9950 inside the table.

0.9950 is halfway between 0.9949 and 0.9951.

So z is halfway between 2.57 and 2.58: 2.575.

With more digits it is 2.576.

That is the number books use.

with more digits: z* = 2.576
z* = 2.576

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

2.576 squared is about 6.6358.

Times 0.5 times 0.5: 1.65895.

0.04 squared is 0.0016.

Dividing gives about 1036.84.

n = 6.6358 × 0.5 × 0.50.042 = 1.658950.0016 ≈ 1036.84

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

1036.84 rounds up to 1037.

n = 1037

Careful!

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

Always round up.

Careful: not n = 1036 ✗

5 Check

Let's check: with 1037 people the error bound is about 0.04.

That is not more than 0.04.

Good.

n = 1037: EBP ≈ 0.04 ≤ 0.04

With one person less, 1036, it is about 0.04: too big.

So 1037 is the smallest that works.

So it is right!

n = 1036: EBP ≈ 0.04 > 0.04

Let's look back.

First: find z*.

Then: the formula.

Then: put the numbers in.

Then: round up.

Last: check.

Answer
Careful: not n = 1036 ✗

Your turn

Try this one yourself, then check:

n? 99% confidence, EBP = 0.05
Show the answer
n = 664

More from How big a sample?

The whole lesson: How big a sample? →