8C

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$:

Distribution of the sample proportion
$$E(\hat p) = p, \qquad \text{Var}(\hat p) = \frac{p(1 - p)}{n}, \qquad \sigma_{\hat p} = \sqrt{\frac{p(1 - p)}{n}}$$

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

How sample size changes the spread

The normal approximation to the distribution of the sample proportion.

Try this

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)$.

Example 1: the empirical rule●●

$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\%$.

$\sigma_{\hat p} = \sqrt{\dfrac{0.2 \times 0.8}{400}} = \sqrt{0.0004} = 0.02$
σ = √(p(1 − p)/n).
$z = \dfrac{0.24 - 0.2}{0.02} = 2$
Find how many standard deviations 0.24 is from 0.2.
$P(\hat p \gt 0.24) \approx \dfrac{0.05}{2} = 0.025$
About 95% lies within 2 standard deviations, leaving 5% split equally between the two tails.
Example 2: using the table●●●

A fair coin is tossed $400$ times. Estimate the probability that the proportion of heads is between $0.47$ and $0.53$.

$\sigma_{\hat p} = \sqrt{\dfrac{0.25}{400}} = 0.025$
p = 0.5 and n = 400.
$z = \dfrac{0.47 - 0.5}{0.025} = -1.2$ and $z = \dfrac{0.53 - 0.5}{0.025} = 1.2$
Standardise both ends.
$P \approx 2 \times 0.8849 - 1 = 0.7698$
P(−1.2 < Z < 1.2) = Φ(1.2) − Φ(−1.2) = 2Φ(1.2) − 1.
Example 3: choosing a sample size●●

A pollster wants $\sigma_{\hat p} \le 0.02$ when $p$ is near $0.5$. How large must the sample be?

$\dfrac{0.25}{n} \le 0.0004$
Square both sides of √(0.25/n) ≤ 0.02.
$n \ge \dfrac{0.25}{0.0004} = 625$

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$.

Flashcards
Sample proportion
$\hat p = \dfrac{X}{n}$, an estimate of the population proportion $p$.
Mean and SD of the sample proportion
$E(\hat p) = p$, $\sigma_{\hat p} = \sqrt{\dfrac{p(1 - p)}{n}}$
To halve the standard deviation
Multiply the sample size by $4$.
Practice
  1. In a survey, $36$ of $240$ people said they cycle to work. Find $\hat p$.

  2. $p = 0.3$ and $n = 84$. Find $\sigma_{\hat p}$.

  3. The mean of the sample proportion $\hat p$ is:

  4. $p = 0.2$ and $n = 100$. Use the empirical rule to estimate $P(0.12 \lt \hat p \lt 0.28)$.

  5. $p = 0.5$ and $n = 100$. Use the empirical rule to estimate $P(\hat p \gt 0.55)$.

  6. By what factor must the sample size be multiplied to reduce $\sigma_{\hat p}$ to one third of its value?

  7. $p = 0.4$ and $n = 96$. Using $\Phi(1.4) = 0.9192$, estimate $P(\hat p \lt 0.47)$.

  8. For which sample is the normal approximation for $\hat p$ least reliable?

  9. Exam style: when $p = 0.5$, what is the smallest sample size for which $\sigma_{\hat p} \le 0.01$?

  10. 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)$.

Formula sheet