AP Statistics / Unit 3: Inference for Categorical Data: Proportions / Topic 3.13
NUM8ERS study notes · Topic 3.13

Carrying Out a Test for the Difference Between Two Population Proportions

Turn 22 sample percentages into a careful population conclusion. Calculate the pooled zz-statistic, find the correct pp-value and explain what the evidence means in the original situation.

2026–27 curriculum6 worked examples10 practice questions6 visual guides

By the end of this lesson, you should be able to:

  • Calculate a two-proportion zz-statistic using the pooled null standard error.
  • Choose a left, right or two-sided pp-value from the alternative hypothesis.
  • Interpret the pp-value assuming the population proportions are equal.
  • Compare the pp-value with the chosen significance level.
  • Write a conclusion about the population claim, with the study’s scope in mind.
  • Distinguish statistical significance from the size or practical importance of a difference.

Before you start: Review Topic 3.12: setting up the test. You should be comfortable with population proportions, hypotheses, pooling and the 44 expected-count checks.

First time learning this? Follow the school study from its test plan to its conclusion, then try the worked examples.

Here to revise? Review the formulas and tail rules, then attempt the questions before opening the solutions.

The concept in 60 seconds

Independent random samples find that 124124 of 200200 students at School A and 6969 of 150150 at School B prefer digital study notes. The sample rates are 62%62\% and 46%46\%: A is ahead by 1616 percentage points.

The research question, chosen before examining the data, is: Is the population preference proportion higher at A? A two-proportion zz-test asks how unusual this sample difference would be if the 22 population proportions were actually equal.

Visual guide 1: follow the question through the test
QuestionIs A’s population rate higher?

H0:p1=p2H_{0}: p_{1}=p_{2}; Ha:p1>p2H_{a}: p_{1} > p_{2}. Define the same preference outcome and keep A minus B.

Evidence under equalityz≈2.978z\approx 2.978; p≈0.00145p\approx 0.00145

The positive sample difference is far into the right tail of the approximate null model.

Decision in contextReject at α=0.05\alpha =0.05

Convincing evidence of a higher population preference proportion at A; the study does not establish a causal school effect.

The sample difference is an estimate, the pp-value is evidence under the equality null, and the conclusion concerns the population claim. Each step has a different job.

The school result: z≈2.978z\approx 2.978 and the right-sided pp-value is approximately 0.001450.00145. At α=0.05\alpha =0.05, reject the equality null. There is convincing evidence that A’s population preference proportion is higher. The small pp-value measures evidence against equality; it does not measure the probability that equality is true.

This lesson shows where those numbers come from and how to explain them. All numerical studies on this page are fictional teaching examples.

Quick check: is a difference of 1616 percentage points automatically convincing evidence?

No. Its strength as evidence also depends on sample sizes, variability, the alternative and whether the study meets the test conditions. A justified test measures the difference relative to its null standard error.

State and check the test plan

Let p1p_{1} be the proportion of all School A students who prefer digital notes and p2p_{2} the corresponding proportion at School B. Keep A minus B as the subtraction order throughout.

H0:p1−p2=0H_0:p_1-p_2=0.

Ha:p1−p2>0H_a:p_1-p_2\gt0.

Use a two-sample zz-test for the difference between 22 population proportions. For the school example, the problem specifies separate independent SRSs, sampled without replacement. The populations contain 10,000 and 8,00010{,}000\text{ and }8{,}000 students.

  • Random sampling and independence: the independent SRS design is given; the same students are not measured 22 times.
  • 10%10\% checks: 200≤0.10(10,000)=1,000200\le 0.10(10{,}000)=1{,}000 and 150≤0.10(8,000)=800150\le 0.10(8{,}000)=800.
  • Normality: with p^c=193350\hat{p}_{c}=\frac{193}{350}, the 44 pooled expected counts are approximately 110.29,89.71,82.71, and 67.29110.29, 89.71, 82.71,\text{ and }67.29. All are ≥10\ge10.
School inputs: compare the same preference outcome in 22 independent samples.
QuantitySchool A: group 1School B: group 2
Success definitionPrefers digital notesPrefers digital notes
Success count xx1241246969
Sample size nn200200150150
Other responses n−xn-x76768181
Population size NN10,00010{,}0008,0008{,}000
Observed proportion p^\hat{p}0.620.620.460.46
Pooled expected successes110.29110.2982.7182.71
Pooled expected failures89.7189.7167.2967.29

Before calculating: justify the design, both 10%10\% checks when sampling without replacement, and all 44 pooled expected counts. The sampling 10%10\% condition is not required merely for random assignment. A separate finite-population sampling stage can still require its own check. A calculator output does not repair paired responses, biased recruitment or failed expected counts.

Quick check: can I skip the conditions if software gives a very small pp-value?

No. The usual normal-approximation pp-value is useful only when the procedure is appropriate. Show why the design and count conditions support the test before treating its output as evidence.

Calculate the pooled zz-statistic

The statistic compares the observed sample difference with the null difference of 00, measured in estimated null standard errors.

p^1=x1n1\hat p_1=\frac{x_1}{n_1}, p^2=x2n2\hat p_2=\frac{x_2}{n_2}.

p^c=x1+x2n1+n2\hat p_c=\frac{x_1+x_2}{n_1+n_2}
SE⁡0=p^c(1−p^c)(1n1+1n2)\operatorname{SE}_0=\sqrt{\hat p_c(1-\hat p_c)\left(\frac1{n_1}+\frac1{n_2}\right)}
z=(p^1−p^2)−0SE⁡0z=\frac{(\hat p_1-\hat p_2)-0}{\operatorname{SE}_0}

SE⁡0\operatorname{SE}_{0} is the estimated standard deviation of the sample difference under the equality null. Pool because H0H_{0} assumes a common success rate. Combining counts estimates that rate; it does not prove equality.

Visual guide 2: build the statistic from 33 quantities
Observed minus null0.16−0=0.160.16-0=0.16

Use the sample difference A minus B; equality supplies the 00 null difference.

Null variabilitySE⁡0≈0.0537197\operatorname{SE}_{0}\approx 0.0537197

Pool 193193 successes from 350350 students. Use both sample sizes in the pooled standard error.

Standardized distance0.16SE⁡0≈2.97842\frac{0.16}{\operatorname{SE}_{0}}\approx 2.97842

A positive zz means the observed difference is above 00; the alternative determines its evidence direction.

Both the numerator and the standard error use proportion units. Their ratio is a unit-free standardized statistic. The null standard error is not the unpooled confidence-interval standard error.

School calculation

p^1=124200=0.62\hat{p}_{1}=\frac{124}{200}=0.62; p^2=69150=0.46\hat{p}_{2}=\frac{69}{150}=0.46; p^c=124+69200+150=193350\hat{p}_{c}=\frac{124 + 69}{200 + 150}=\frac{193}{350}.

SE⁡0=193350⋅157350(1200+1150)≈0.0537197\operatorname{SE}_0=\sqrt{\frac{193}{350}\cdot\frac{157}{350}\left(\frac1{200}+\frac1{150}\right)}\approx0.0537197
z=0.62−0.46193350⋅157350(1200+1150)≈2.97842z=\frac{0.62-0.46}{\sqrt{\frac{193}{350}\cdot\frac{157}{350}\left(\frac1{200}+\frac1{150}\right)}}\approx2.97842

The observed difference is about 2.982.98 null standard errors above 00. SE⁡0\operatorname{SE}_{0} is about 0.053720.05372 in proportion units, or 5.3725.372 percentage points. Use proportions consistently: 0.160.05372\frac{0.16}{0.05372} and 165.372\frac{16}{5.372} give the same zz; 160.05372\frac{16}{0.05372} does not.

Keep precision until the end. Use the full pooled fraction and stored SE⁡\operatorname{SE} when finding zz and the pp-value. Display rounded numbers for readability. The confidence-interval standard error uses separate p^1\hat{p}_{1} and p^2\hat{p}_{2}; do not substitute that unpooled expression into this equality-null test.

Calculator check: TI-84 family

Open STAT → TESTS → 2-PropZTest\texttt{2-PropZTest}. Enter x1=124x_{1}=124, n1=200n_{1}=200, x2=69x_{2}=69 and n2=150n_{2}=150; select p1>p2p_{1} > p_{2}, then Calculate. Expect z≈2.9784z\approx 2.9784 and p≈0.0014487p\approx 0.0014487. Enter success counts, rather than sample proportions. Keep the group order and chosen alternative consistent. Menu wording can vary by model; TI’s official command reference identifies this test.

Quick check: what does a negative zz tell us?

The observed group 1 minus group 2 difference is below the null difference of 00. Whether that is evidence for HaH_{a} depends on its direction. A negative zz can give a small left-sided pp-value and a large right-sided pp-value.

Find the correct pp-value

Under a justified equality-null model, the standardized statistic is approximately standard normal. Let ZZ represent a value from that model and zobsz_{\mathrm{obs}} the statistic from the data.

Tail rules for the standard equality-null two-proportion zz-test.
Alternative for group 1 minus group 2pp-value ruleResults counted
Ha:p1−p2>0H_{a}: p_{1}-p_{2} > 0P(Z≥zobs)P(Z\ge z_{\mathrm{obs}})At or above the observed zz
Ha:p1−p2<0H_{a}: p_{1}-p_{2} < 0P(Z≤zobs)P(Z\le z_{\mathrm{obs}})At or below the observed zz
Ha:p1−p2≠0H_{a}: p_{1}-p_{2} \ne 02P(Z≥∣zobs∣)2P(Z\ge \lvert z_{\mathrm{obs}}\rvert)At least as far from 00 in either direction
Visual guide 3: choose the tail from the alternative
Standard normal p-value tail areasThree standard normal curves on identical minus four to plus four z axes. Higher uses the right tail beyond positive 1.8 with area 0.0359; lower uses the left tail below negative 1.8 with area 0.0359; different uses both tails beyond minus and plus 1.8 with total area 0.0719. Hatched olive areas represent p-values and dashed cutoffs identify the observed magnitude. −4 −2 0 2 4 z = 1.8; p ≈ 0.0359 Higher: Hₐ: p₁ > p₂
Posted on Google Google
0000003998 : Abdad Alam Shamim Alam profile picture
0000003998 : Abdad Alam Shamim Alam
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
This is the bestest institution I have ever come to and I love it very much.
Posted on Google Google
Aliki S profile picture
Aliki S
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Ali profile picture
Ali
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Sly is him
Posted on Google Google
Jitendra Kumar Kumawat profile picture
Jitendra Kumar Kumawat
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Raahil Hasan profile picture
Raahil Hasan
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Tina Mudarres profile picture
Tina Mudarres
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
The classes are amazing and my child learnt so much
Posted on Google Google
alisha gadoya profile picture
alisha gadoya
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I have experienced a lot of good things, it has taught me so many things and from B/Cs I have gone to an A! This is wonderful and Mavish’s class is awesome.
Posted on Google Google
smasher 123 profile picture
smasher 123
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
It’s sensational my kid went. First he only would get C now it’s all A’s really good and recommend
Posted on Google Google
Mosa Al- Samaraie profile picture
Mosa Al- Samaraie
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
AMAZING PRICES GREAT TEACHERS STRAIGHT FORWARD LEARNING STEADY PACE IN TUTORING
Posted on Google Google
Cael Dagnelie profile picture
Cael Dagnelie
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I had a great experience learning math with Ms. Mavish. She explains complex topics in a very clear and simple way, which made it easier for me to understand and enjoy the subject. Her patience and dedication really stood out, and she always made sure that everyone in the class was keeping up. I especially appreciated how approachable she was — I never felt afraid to ask questions, and she was always willing to help. Thanks to her teaching, my confidence in math has grown a lot. I’m really thankful for the effort she puts into every lesson!

NUM8ERS is one of finest tutoring institutes in UAE, Located in Al Barsha 1, Dubai. Close to DUBAI AMERICAN ACADEMY (DAA) & AMERICAN SCHOOL OF DUBAI (ASD).