Sample proportions and the normal approximation
Populations and samples, the sample proportion p-hat, its mean p and standard deviation √(p(1 − p)/n), the central limit theorem, the normal approximation for large samples, and the effect of sample size.
Pollsters can't ask every voter, and factories can't test every item. They take a sample and use the sample proportion to estimate the true one. This section shows how much a sample proportion varies from sample to sample, and why a larger sample gives a more reliable estimate.
Populations and samples
The population is the whole group we are interested in, and a parameter is a number describing it, such as the true proportion $p$ who own a pet. A sample is a randomly chosen subset, and a statistic is a number calculated from the sample, used to estimate the parameter.
The sample proportion
In a random sample of size $n$, let $X$ be the number with the property. The sample proportion is $\hat p = \dfrac{X}{n}$. Each new sample gives a different $\hat p$, so $\hat p$ is a random variable.
Since $X \sim \text{Bin}(n, p)$, we have $E(X) = np$ and $\text{Var}(X) = np(1 - p)$. Dividing $X$ by $n$ divides its mean by $n$ and its variance by $n^2$:
So $\hat p$ is centred on the true value, and its spread shrinks like $\dfrac{1}{\sqrt n}$. Quadrupling the sample size halves the standard deviation.
The central limit theorem
The normal approximation to the distribution of the sample proportion.
With $p = 0.5$ and $n = 100$, read off $\sigma$. Predict the value of $n$ that halves it, then check. Now set $p = 0.1$ and $n = 25$: part of the curve lies below $\hat p = 0$, which is impossible for a proportion. What does the readout say about $np$, and why is the normal approximation poor here?
Using the normal approximation
Standardise with $z = \dfrac{\hat p - p}{\sigma_{\hat p}}$, then use the empirical rule (about $68\%$, $95\%$ and $99.7\%$ within $1$, $2$ and $3$ standard deviations) or a table of $\Phi(z) = P(Z \lt z)$.
| $z$ | $1$ | $1.2$ | $1.4$ | $1.5$ | $2$ |
|---|---|---|---|---|---|
| $\Phi(z)$ | $0.8413$ | $0.8849$ | $0.9192$ | $0.9332$ | $0.9772$ |
For negative $z$, use symmetry: $\Phi(-z) = 1 - \Phi(z)$.
$20\%$ of a city's households have solar panels. Samples of $400$ households are surveyed. Estimate the probability that a sample shows more than $24\%$.
A fair coin is tossed $400$ times. Estimate the probability that the proportion of heads is between $0.47$ and $0.53$.
A pollster wants $\sigma_{\hat p} \le 0.02$ when $p$ is near $0.5$. How large must the sample be?
Your turn
$10\%$ of products are defective, and samples of $900$ are checked. Use $\Phi(1.5) = 0.9332$ to estimate the probability that a sample has more than $11.5\%$ defective.
Show the working
$\sigma_{\hat p} = \sqrt{\dfrac{0.1 \times 0.9}{900}} = \sqrt{0.0001} = 0.01$. Then $z = \dfrac{0.115 - 0.1}{0.01} = 1.5$, so $P(\hat p \gt 0.115) \approx 1 - \Phi(1.5) = 1 - 0.9332 = 0.0668$.
In a survey, $36$ of $240$ people said they cycle to work. Find $\hat p$.
$\hat p = \dfrac{36}{240} = 0.15$.
$p = 0.3$ and $n = 84$. Find $\sigma_{\hat p}$.
$\sqrt{\dfrac{0.3 \times 0.7}{84}} = \sqrt{\dfrac{0.21}{84}} = \sqrt{0.0025} = 0.05$.
The mean of the sample proportion $\hat p$ is:
$E(\hat p) = \dfrac{E(X)}{n} = \dfrac{np}{n} = p$.
$p = 0.2$ and $n = 100$. Use the empirical rule to estimate $P(0.12 \lt \hat p \lt 0.28)$.
$\sigma_{\hat p} = \sqrt{\dfrac{0.16}{100}} = 0.04$. The bounds are $0.2 \pm 0.08$, two standard deviations either side, so the probability is about $0.95$.
$p = 0.5$ and $n = 100$. Use the empirical rule to estimate $P(\hat p \gt 0.55)$.
$\sigma_{\hat p} = \sqrt{\dfrac{0.25}{100}} = 0.05$, so $0.55$ is one standard deviation above the mean. About $68\%$ lies within one standard deviation, so $P \approx \dfrac{1 - 0.68}{2} = 0.16$.
By what factor must the sample size be multiplied to reduce $\sigma_{\hat p}$ to one third of its value?
$\sigma_{\hat p}$ is proportional to $\dfrac{1}{\sqrt n}$. To divide it by $3$, multiply $\sqrt n$ by $3$, so multiply $n$ by $9$.
$p = 0.4$ and $n = 96$. Using $\Phi(1.4) = 0.9192$, estimate $P(\hat p \lt 0.47)$.
$\sigma_{\hat p} = \sqrt{\dfrac{0.24}{96}} = 0.05$. Then $z = \dfrac{0.47 - 0.4}{0.05} = 1.4$, so $P \approx \Phi(1.4) = 0.9192$.
For which sample is the normal approximation for $\hat p$ least reliable?
The guide needs $np \ge 5$. For $n = 20$ and $p = 0.05$, $np = 1$. The others give $np = 100$, $50$ and $30$.
Exam style: when $p = 0.5$, what is the smallest sample size for which $\sigma_{\hat p} \le 0.01$?
$\sqrt{\dfrac{0.25}{n}} \le 0.01$ gives $\dfrac{0.25}{n} \le 0.0001$, so $n \ge 2500$.
Exam style: $p = 0.3$ and $n = 525$. Using $\Phi(1.5) = 0.9332$ and $\Phi(2) = 0.9772$, estimate $P(0.27 \lt \hat p \lt 0.34)$.
$\sigma_{\hat p} = \sqrt{\dfrac{0.21}{525}} = \sqrt{0.0004} = 0.02$. The z-scores are $\dfrac{0.27 - 0.3}{0.02} = -1.5$ and $\dfrac{0.34 - 0.3}{0.02} = 2$. So $P \approx \Phi(2) - \Phi(-1.5) = 0.9772 - (1 - 0.9332) = 0.9104$.
Coaching Centre