Setting Up a Test for the Difference Between Two Population Proportions
Before pressing a calculator button, make a clear plan. Define the population proportions, write the hypotheses and check whether a two-proportion -test is appropriate.
By the end of this lesson, you should be able to:
- Recognize a question about population proportions and choose the testing method.
- Define both parameters using the populations and the counted response.
- Write a null hypothesis of no difference and a suitable alternative.
- Calculate the pooled sample proportion and expected counts.
- Justify randomization, independence, the checks when needed and normality.
- Explain when the usual test setup is not justified.
Before you start: Review one-proportion test setup and Topic 3.11’s interval-based claims. A test investigates a stated population claim; a sample difference alone is not a conclusion.
First time learning this? Follow the school study from the question to a complete test plan.
Here to revise? Use the setup checklist, then try the questions before opening hints or solutions.
The concept in 60 seconds
School A wants to know whether its students are more likely to prefer digital study notes than students at School B. Independent random samples show of students at A and of students at B prefer digital notes.
The sample proportions are and , a difference of , or percentage points. Could a difference like this arise from sampling variation when the population proportions are actually equal? That is the question a test can address.
The setup has four jobs: define the population parameters, choose a two-sample -test for a difference in proportions, state and , and justify the conditions. The test statistic, -value and final decision follow in Topic 3.13.
Same binary preference outcome, school populations.
is A’s population preference proportion; is B’s. Keep A minus B throughout.
. Justify independent random samples, each check and pooled expected counts.
The observed difference is sample evidence. Hypotheses concern the unknown population difference, and the plan must be justified before interpreting a test result.
Here the research question was “Is A higher?” before the results were examined. Therefore, with A minus B as our order:
— the population preference proportions are equal.
— School A’s population preference proportion is higher.
Quick check: does the sample difference of prove that A’s population proportion is higher?
No. It is observed sample evidence. A justified test evaluates how unusual that evidence would be under ; the setup alone does not establish a population difference.
Define the population parameters
A strong parameter definition names the population, the response category counted as a success and the group order. “Success” is just the category we count; it need not be a desirable outcome.
: School A
The proportion of all students at School A who prefer digital study notes.
It is an unknown population value. Its sample estimate is .
: School B
The proportion of all students at School B who prefer digital study notes.
Its sample estimate is . Use the same preference question and success definition in both groups.
Our target is , the population difference A minus B. The sample statistic estimates this difference. Hypotheses concern the population parameters and , not the observed sample proportions.
| Symbol | Meaning | School value or role |
|---|---|---|
| , | Population proportions with the same digital-notes preference | Unknown; A and B, respectively |
| Population difference being tested | A minus B | |
| , | Observed success counts | and |
| , | Sample sizes | and |
| , | Population sizes | and |
| , | Observed sample proportions | and |
| Observed sample difference | ||
| Combined sample proportion used under | ||
| Equality of the population rates | ||
| Departure chosen from the research question |
For a randomized experiment
Define the parameters as the underlying success probabilities or success proportions under the treatments in the population or experimental setting of interest. Name each treatment and the same response outcome. Do not automatically claim that volunteer participants represent every student or every customer.
Quick check: what is missing from “ is the proportion who said yes”?
The definition does not identify the population or explain what “yes” means. Write, for example, “ is the proportion of all School A students who prefer digital study notes.”
Write the null and alternative hypotheses
The usual AP two-proportion -test here investigates no population difference as the null. You can write this in either equivalent form:
or .
The alternative describes the departure of interest. First define your order, then translate the original research question:
| Original question | Alternative hypothesis | Direction |
|---|---|---|
| Is group 1’s success proportion higher? | One-sided: higher | |
| Is group 1’s success proportion lower? | One-sided: lower | |
| Are the population proportions different? | Two-sided: either direction |