In a Galway poll, 20% cycle to school. How close is that to the true figure?
In a Galway poll, eighty out of four hundred randomly selected students say they cycle to school. That’s twenty per cent. Another random sample could give you a different result. How much wiggle room should you allow?
Start with one population. If you sample without replacement, keep the sample small relative to the population. Take repeated random samples of the same size. Their proportions can differ, so their intervals can too. A ninety-five per cent method should capture the fixed true proportion in about ninety-five per cent of those intervals.
Eighty cycle and three hundred and twenty don’t. Both counts are at least ten, a common rule of thumb. Use eighty over four hundred, or zero point two, for the sample proportion. The square root estimates the standard deviation of sample proportions across repeated samples. That spread is called the standard error.
Now a different random sample finds that thirty out of two hundred students cycle to school. Both counts are large enough. Which values should you put into the standard error formula? Pick a pair.
The middle ninety-five per cent leaves two and a half per cent in each tail. Look for zero point nine seven five zero, the area to the left of the upper cut-off. It’s at row one point nine and column zero point zero six. Add them to get one point nine six.
Eighty over four hundred is zero point two. The square root gives an estimated standard error of zero point zero two. Multiply by one point nine six to get the margin. Subtract and add that margin to get the endpoints: sixteen point zero eight and twenty-three point nine two per cent.
Suppose one hundred and twenty of four hundred randomly chosen students cycle to school. Use the observed fraction, work out the standard error, then multiply it by one point nine six. Pick the ninety-five per cent interval.
If you put twenty into the square root, one minus twenty gives minus nineteen. That makes the number under the root negative, a sign that your inputs are wrong. Use zero point two and zero point eight. Change back to percentages when you report the interval.
The product is a quarter minus a square, so it’s largest at a half. That caps the z margin at zero point nine eight over root n. Round up to one over root n. For four hundred, that’s five percentage points. This gives fifteen to twenty-five per cent, wider than before.
An exam might ask, ‘Use the maximum margin of error to test the claim that thirty per cent cycle to school.’ The poll estimate is twenty per cent. The claim lies outside the fifteen to twenty-five per cent interval, giving evidence against it. A claim inside the interval would remain plausible.