Step by step
The question
Question: the SD of all the numbers is 30: how big a sample do we need to be 90% confident with an error bound of 4?
The error bound is how far the sample mean may be from the true mean.
1 Find z*
90 percent of the bell is in the middle.
That leaves 10 percent: 5 percent in each end.
z* marks the cut between the middle and the ends.
Left of z* are the middle and one end: 0.9 plus 0.05 is 0.9500.
Now we look for 0.9500 inside the table.
0.9500 is halfway between 0.9495 and 0.9505.
So z is halfway between 1.64 and 1.65: 1.645.
2 The formula
The error bound is z* times σ over the square root of n.
Solved for n, it gives this formula.
n is z* squared times σ squared, over the error bound squared.
3 Put the numbers in
1.645 squared is about 2.706.
30 squared is 900.
4 squared is 16.
2.706 times 900 is 2435.4.
Divided by 16: about 152.21.
4 Round up
A sample size must be a whole number.
We always round up: a smaller sample would miss the goal.
152.21 rounds up to 153.
Careful!
Rounding down to 152 gives an error bound a bit too big.
Always round up.
5 Check
Let's check: with 153 people the error bound is about 3.9897.
That is not more than 4.
Good.
With one person less, 152, it is about 4.0028: too big.
So 153 is the smallest that works.
So it is right!
Let's look back.
First: find z*.
Then: the formula.
Then: put the numbers in.
Then: round up.
Last: check.