AP Statistics · Sampling distributions
Sampling distributions for proportions
1The sample proportion
For a categorical variable, the sample proportion is
$$\hat{p} = \frac{X}{n} = \frac{\text{number of successes}}{\text{sample size}}$$
It estimates the population proportion $p$. Different samples give different $\hat{p}$ values; their distribution is the sampling distribution of $\hat{p}$.
Check yourself
In a sample of 200 voters, 116 support a candidate. p̂ =
Show the answer
0.58
116/200.
2Centre, spread and shape
For random samples of size $n$ from a population with proportion $p$:
- Mean: $\mu_{\hat{p}} = p$ (unbiased).
- Standard deviation: $\sigma_{\hat{p}} = \sqrt{\frac{p(1 - p)}{n}}$, valid when the 10% condition holds ($n \le 10\%$ of the population).
- Shape: approximately normal if the Large Counts condition holds: $np \ge 10$ and $n(1 - p) \ge 10$.
30% of a town's residents cycle to work. Samples of $n = 150$.
- Mean $0.30$; SD $\sqrt{\frac{0.3 \times 0.7}{150}} \approx 0.0374$.
- Large counts: $150(0.3) = 45 \ge 10$ and $150(0.7) = 105 \ge 10$: approximately normal.
Sampling distribution of p̂ for n = 150 cyclists when p = 0.30
Check yourself
For p = 0.5 and n = 100, the SD of p̂ is:
Show the answer
0.05
√(0.25/100).
3Calculating probabilities
Worked example (continued): find $P(\hat{p} > 0.36)$.
- $z = \frac{0.36 - 0.30}{0.0374} \approx 1.60$.
- $P(Z > 1.60) \approx 0.055$.
- Interpretation: about 5.5% of samples of 150 would have more than 36% cyclists.
a company claims 8% of its products are defective. In a sample of 400, 44 are defective ($\hat{p} = 0.11$).
- SD $= \sqrt{\frac{0.08 \times 0.92}{400}} \approx 0.0136$.
- $z = \frac{0.11 - 0.08}{0.0136} \approx 2.21$; $P(\hat{p} \ge 0.11) \approx 0.014$.
- Such a high proportion would be unusual if the claim were true, which casts doubt on the claim.
Check yourself
If the Large Counts condition fails, the sampling distribution of p̂ is:
Show the answer
Not approximately normal
It may be skewed.
4Differences in proportions
For independent random samples from two populations:
- $\mu_{\hat{p}_1 - \hat{p}_2} = p_1 - p_2$
- $\sigma_{\hat{p}_1 - \hat{p}_2} = \sqrt{\frac{p_1(1 - p_1)}{n_1} + \frac{p_2(1 - p_2)}{n_2}}$ (variances add)
- Approximately normal if the large counts condition holds for both samples.
$p_1 = 0.6$, $n_1 = 100$; $p_2 = 0.5$, $n_2 = 120$.
- Mean $0.10$; SD $\sqrt{0.0024 + 0.00208} \approx 0.0669$.
Check yourself
The SD of p̂₁ − p̂₂ uses:
Show the answer
The sum of the two variances
Variances add.
5Going deeper: conditions, calculations and comparing two proportions
A parameter describes a population (p, the true proportion); a statistic describes a sample ($\hat{p}$, the sample proportion). The statistic varies from sample to sample; its sampling distribution describes that variation.
For the sample proportion $\hat{p}$ from a random sample of size n:
- Center: $\mu_{\hat{p}} = p$. The sample proportion is an unbiased estimator of p.
- Spread: $\sigma_{\hat{p}} = \sqrt{\frac{p(1 - p)}{n}}$, provided the sample is at most 10% of the population.
- Shape: approximately normal if the large counts condition holds: np ≥ 10 and n(1 − p) ≥ 10.
Three conditions to check, and what each is for
- Random: the sample is random. (So the estimate is unbiased and probability applies.)
- 10%: n ≤ 10% of the population. (So the standard deviation formula is valid when sampling without replacement.)
- Large counts: np ≥ 10 and n(1 − p) ≥ 10. (So the normal approximation is valid.)
60% of a city's voters support a measure. A random sample of 150 voters is taken. Find the probability that fewer than 55% of the sample support it.
- Mean: 0.60.
- 10%: 150 is far less than 10% of all the city's voters. Standard deviation: √(0.60 × 0.40 ÷ 150) = 0.040.
- Large counts: 150(0.60) = 90 and 150(0.40) = 60; both at least 10. Approximately normal.
- z = (0.55 − 0.60) ÷ 0.040 = −1.25.
- P($\hat{p}$ < 0.55) = 0.1056.
- In about 11% of random samples of 150, fewer than 55% would support the measure.
Interpreting the standard deviation: "In random samples of 150 voters, the sample proportion typically varies from the true proportion of 0.60 by about 0.04."
The effect of sample size
- Larger n: smaller standard deviation; estimates cluster more tightly around p.
- Because of the square root, four times the sample gives half the spread.
- The size of the population hardly matters (given the 10% condition): a sample of 1500 is about as precise for a country of 300 million as for a city of 300,000.
with p = 0.60, compare n = 150 and n = 600.
- n = 150: 0.040.
- n = 600: √(0.24 ÷ 600) = 0.020.
Using the distribution to judge a claim
a company claims that 60% of customers are satisfied. In a random sample of 150, only 78 (52%) are.
- If the claim is true: z = (0.52 − 0.60) ÷ 0.040 = −2.0.
- P($\hat{p}$ ≤ 0.52) = 0.0228.
- A result this low would occur in only about 2% of samples if the claim were true: reasonably strong evidence that the true proportion is below 60%. This is the logic of a significance test.
Difference between two proportions: for independent random samples from two populations,
- Center: $\mu_{\hat{p}_1 - \hat{p}_2} = p_1 - p_2$.
- Spread: $\sigma_{\hat{p}_1 - \hat{p}_2} = \sqrt{\frac{p_1(1 - p_1)}{n_1} + \frac{p_2(1 - p_2)}{n_2}}$ (variances add).
- Shape: approximately normal if all four counts (n₁p₁, n₁(1 − p₁), n₂p₂, n₂(1 − p₂)) are at least 10.
50% of School A's students and 40% of School B's have a job. Random samples of 100 are taken from each.
- Mean of the difference: 0.10.
- Standard deviation: √(0.25 ÷ 100 + 0.24 ÷ 100) = √0.0049 = 0.07.
- P(the sample from B shows a higher proportion) = P(difference < 0): z = (0 − 0.10) ÷ 0.07 = −1.43; probability 0.076.
Bias and variability: a statistic is unbiased if its sampling distribution is centered at the parameter. Variability is the spread of the sampling distribution. Think of a target: low bias means centered on the bull's-eye; low variability means tightly grouped.
Common mistakes
- Using $\hat{p}$ in place of p in the formulas when p is known.
- Checking n ≥ 30 in place of the large counts condition.
- Forgetting the square root, or dividing by √n in place of n inside it.
- Saying a larger sample reduces bias.
- Confusing the distribution of the sample with the sampling distribution.
Check yourself
For random samples of size 400 from a population in which p = 0.5, what is the standard deviation of the sample proportion?
Show the answer
0.025
√(0.5 × 0.5 ÷ 400) = √0.000625.
6For top marks
- State and check both conditions with numbers: 10% (for the SD formula) and Large Counts (for normality).
- Use the parameter $p$ in the SD for sampling distribution questions.
- Interpret probabilities in context: "about 5.5% of random samples of 150 residents".
- Use unusual results ($P < 0.05$) as evidence against a claim, with careful wording.
"Because $np = 32$ and $n(1 - p) = 368$ are both at least 10, the sampling distribution of $\hat{p}$ is approximately normal."
Check yourself
Quadrupling the sample size changes the SD of p̂ by a factor of:
Show the answer
1/2
√4.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera