Leaving Certificate Mathematics11.7 Sampling variability and the margin of error

All books

11.7 Sampling variability and the margin of error — Learn

Prerequisites: Section 11.2 — bias; Section 11.5 — the standard deviation; Section 11.6 — the normal distribution.

Objectives: explain why two samples give different statistics; work out the standard error and the margin of error for a proportion; interpret a 95%95\% confidence interval; find the sample size needed for a given margin of error.

By the end of this section you can say how far a sample result can be from the truth, and you can say what that statement does and does not promise.

Sampling variability

Take two different simple random samples from the same population and you get two different sample proportions. This is sampling variability, and it is not a mistake in either sample. It is the price of measuring only a part of the population.

A sample of 10001000 voters does not give exactly the population proportion pp. It gives a sample proportion p^\hat{p} that is close to pp, and how close depends on the sample size. The collection of all the values p^\hat{p} could take, with their probabilities, is the sampling distribution of the proportion.

Predict first. The figure shows a population and draws a random sample from it. Before you touch a control, predict what happens to the sample mean when you make the sample larger. Write down whether the sample means will spread out more or less, and why.

Figure 1

Test. Set the sample size to its smallest value and take several samples. Watch where each sample mean lands. Now set the sample size to its largest value and take several more samples.

Explain. Write two sentences. The first explains why two samples of the same size give different means. The second explains why a larger sample usually gives a mean closer to the population mean.

The standard error

The sampling distribution of the proportion has a mean of pp and a standard deviation called the standard error:

The standard error of the proportion.

σp^=p(1−p)n\sigma_{\hat{p}} = \sqrt{\frac{p(1 - p)}{n}}

where σp^\sigma_{\hat{p}} is the standard error of the sample proportion and nn is the sample size. This is the formula in the formulae and tables booklet.

The standard error measures how much p^\hat{p} varies from sample to sample. It gets smaller as nn grows, because dividing by a larger nn makes the fraction smaller. To halve the standard error, you must quadruple the sample size.

The margin of error

A 95%95\% confidence interval for pp is

p^±1.96p^(1−p^)n\hat{p} \pm 1.96\sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

The number after the ±\pm is the margin of error. Because p^(1−p^)\hat{p}(1 - \hat{p}) is never more than 14\dfrac{1}{4}, the largest possible margin of error is about 1n\dfrac{1}{\sqrt{n}}. The course uses this maximum as the margin of error for a proportion:

The margin of error for a proportion.

margin of error=1n\text{margin of error} = \frac{1}{\sqrt{n}}

This is the maximum radius of the 95%95\% confidence interval.

Example 1. A poll asks 10001000 voters. Find the margin of error.

11000=0.0316=3.2%\frac{1}{\sqrt{1000}} = 0.0316 = 3.2\%

So the poll's estimate is within about 3.23.2 percentage points of the truth, at 95%95\% confidence.

Example 2. Find the sample size needed for a margin of error of 2.5%2.5\%.

Set 1n=0.025\dfrac{1}{\sqrt{n}} = 0.025 and solve for nn:

n=10.0252=1600n = \frac{1}{0.025^2} = 1600

A sample of 16001600 is needed. The sample size grows quickly as the margin of error shrinks: to halve the margin of error, the sample must be four times as large.

What the confidence level means

A 95%95\% confidence interval is built by a method that captures the true pp in 95%95\% of samples. It does not say that there is a 95%95\% chance that this particular interval contains pp. The value pp is fixed; the interval is what varies from sample to sample.

A higher confidence level needs a wider interval. A 99%99\% interval uses z=2.576z = 2.576 in place of 1.961.96, so the interval is wider and the statement is safer but less precise.

Progress check

Back to the chapter problem. The poll used 10001000 voters and reported 52%52\% Yes.

Work out the margin of error, then the 95%95\% confidence interval for the proportion of Yes voters.

11000=0.0316\frac{1}{\sqrt{1000}} = 0.0316 0.52±0.0316=(0.488,0.552)0.52 \pm 0.0316 = (0.488, 0.552)

So the method gives an interval from 48.8%48.8\% to 55.2%55.2\%. On the day, 48%48\% voted Yes, which is just outside the interval. An interval misses about 5%5\% of the time, and this was one of those times.

The interval is wide: it runs from a clear No to a clear Yes. A lead of four points is smaller than the margin of error, so the poll could not tell the two sides apart. That is what "too close to call" means, and it is the answer to the newspaper's headline.

You should now be able to

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.