Educerie · AP · Statistics
AP Statistics 3.9
Sampling Distributions for the Difference Between Sample Proportions
How can we determine whether the difference between two groups is statistically significant?
What you will learn
- Know that p-hat1 minus p-hat2 has mean p1 minus p2 and standard deviation the root of the two variance terms added
- Understand the conditions for two independent random samples and the four large counts
- Know that for a randomized experiment only random assignment and the counts are needed
- Understand how to interpret the mean, standard deviation and a probability naming both populations
You must be able to
- Calculate the mean and standard deviation of the sampling distribution of a difference in sample proportions
- Verify the conditions for two independent samples
- State the conditions for a randomized experiment
- Calculate a probability about the difference using a normal model
- Interpret each result naming both populations
- Explain why the variances, not the standard deviations, add
In the exam. Section I multiple choice: find the mean or standard deviation of , pick the right conditions for two samples or for an experiment, or find a probability about the difference. Section II: the conditions for two proportions come back in every two-proportion interval or test, and an experiment needs different conditions from two samples. Skills: calculate (3.D), interpret (4.D), verify conditions (4.E).
1Notation
Number the two populations (or two treatments) and keep the numbers consistent throughout.
| Population 1 | Population 2 | |
|---|---|---|
| Population proportion | ||
| Sample size | ||
| Sample proportion |
The statistic of interest is . The parameter is . The order matters. If you swap the groups, the sign of every result flips.
2The mean and standard deviation
For two independent populations, and when the sampled values are independent, the sampling distribution of has
These are on the formula sheet, under "two populations".
Look at the plus sign under the square root. The spread of a difference is bigger than the spread of either piece, because each sample adds its own variation. It is the variances that add: . You do not add or subtract the standard deviations.
Example (invented). 62% of the students at School A walk or cycle to school (). At School B it is 55% (). A random sample of students is taken at School A, and an independent random sample of at School B.
So the sample difference is centered on the true difference of 0.07. It typically varies from 0.07 by about 0.06. A difference of 0.07 is small next to that spread. That is why one pair of samples can easily show the "wrong" school as higher.
3The conditions
The conditions depend on how the data were collected. There are two cases.
Case 1. Two independent random samples (sampling without replacement from two populations):
- Randomization. The data come from two independent random samples.
- 10% condition. Each sample is at most 10% of its own population: and .
- Normality. Both samples are large enough. The expected number of successes and failures in each group are at least 10:
(When the proportions are unknown, the topics that follow use the observed counts, and so on.)
Case 2. A randomized experiment. The data only need randomization: the treatments must be randomly assigned to the experimental units. The 10% condition is unnecessary, because there is no sampling from a population. The normality check still applies.
Check the example (Case 1). Suppose Schools A and B each have over 1,200 and 1,500 students. The two random samples are independent. Both are less than 10% of their schools. The counts are
- and
- and
All four are at least 10, so a normal model is appropriate.
Independence between the groups matters. Samples from the same people in two years, or from the same households, are not independent. Then a two-proportion procedure does not apply.
4The shape and a probability
When the conditions hold, the sampling distribution of is approximately normal.
In Figure 1 the curve is centered on 0.07. The shaded area to the left of 0 is the chance that the sample from School B shows the higher proportion, although School A really is higher.
About 12% of such pairs of samples would put School B ahead. Sample differences can mislead when the samples are this size.
A second probability: the chance that the sample difference is at least 0.15.
5Interpreting in context
Name both populations and both proportions.
- The mean, 0.07. "If we took many pairs of random samples, 120 students from School A and 150 from School B, the differences in the sample proportions who walk or cycle (A minus B) would average about 0.07, the difference between the two schools' proportions."
- The standard deviation, 0.0601. "The difference between the sample proportions of students who walk or cycle (A minus B) typically varies from 0.07 by about 0.06."
- The probability, 0.123. "About 12% of pairs of random samples of these sizes would give a lower sample proportion at School A than at School B."
6The effect of the sample sizes
The standard deviation shrinks when either grows, and shrinks most when both do. For equal sizes , with the same proportions as before, the standard deviation is
Quadrupling both sample sizes halves the standard deviation. The same effect applies.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.