Two Proportions: Estimate Separately, Test a Common Null
These lessons and problems are newly written for the revised course. Worked examples show complete reasoning; the application questions ask you to make and defend your own choices.
Define the comparison before calculating
Two schools want to compare breakfast preference. The same binary response is measured in independent SRSs: school A selects 140 students from 4,000 and finds 98 supporters; school B selects 180 from 5,000 and finds 90. Define p_A and p_B as the population proportions preferring the proposed breakfast menu in the respective enrolled-student populations. The comparison p_A−p_B estimates A minus B. Naming the order prevents an unexplained positive or negative answer.
For estimating the difference, choose a two-sample z-interval for a difference between population proportions. For testing equality, choose a two-sample z-test for that difference. Both use a binary response in two independent groups, but estimation and an equality-null test make different variance assumptions. The population parameters are p_A and p_B, while 0.70 and 0.50 are observed sample proportions.
Randomized experiments can also compare two binary responses under assigned treatments. Then state the treatment-response proportions and the scope supported by the experiment. Random assignment addresses causal comparison; it does not by itself make volunteers representative of every school student. If the same student answers twice in two dependent conditions, the observations are not two independent samples; the ordinary independent two-proportion procedure needs a different design.
The full condition set uses both groups
For an interval, randomization comes from two independent random samples or a randomized experiment. For sampling without replacement, each sample must satisfy its own bound: n_A≤0.10N_A and n_B≤0.10N_B. This population-sampling condition is unnecessary for a randomized experiment’s treatment assignment. Do not invent an unprovided population size for volunteers merely to check a box.
The normality check uses four observed counts for an interval: successes and failures in A, then successes and failures in B. All four should be at least 10. For the worked schools, SRSs are independent; 140≤400 and 180≤500; observed counts are A:98 successes and 42 failures, B:90 and 90. Every required count passes.
An equality-null test shares the randomization and population-fraction requirements, including the experiment exception, but models a common population success rate. Pool successes to estimate that common null value:
The test checks four expected null counts: n_A p̂_c, n_A(1−p̂_c), n_B p̂_c and n_B(1−p̂_c), all at least 10. Here they are 82.25, 57.75, 105.75 and 74.25. Pooling is weighted by sample size, not the unweighted mean of the two observed percentages. A count failure in either group can undermine the normal approximation; good counts in the other group do not repair it.
Keep separate variance estimates for estimation
The point estimate p̂_A−p̂_B is 0.70−0.50=0.20. With no assumption that the unknown population proportions are equal, each sample estimates its own variance contribution. Add these contributions for independent groups and take the square root to obtain the standard error of their difference.
SE=√[0.70(0.30)/140+0.50(0.50)/180]≈0.0537484. With 95% z*=1.96, MOE≈0.1053468 and interval≈(0.0946532,0.3053468). The margin is critical value times SE; it is half the full width. We are 95% confident that A’s population breakfast-preference proportion exceeds B’s by about 9.47 to 30.53 percentage points. A difference of proportions is expressed in percentage points when multiplied by 100; it is not the relative percentage change from one proportion to the other.
Approximately 95% of intervals formed from repeated independent samples of these same sizes from these same populations would capture p_A−p_B. This particular interval may or may not capture the fixed difference. Since zero is excluded and all values are positive, the interval supports a population difference with A higher. A separate interval (−0.08,0.04) would include zero and provide insufficient evidence of a difference; it would not prove equality. Reversing the order B−A negates the point estimate and gives endpoints (−0.3053468,−0.0946532), preserving information and zero exclusion.
Write every hypothesis about the population
For “do the schools differ?”, the null can be H₀:p_A=p_B or equivalently H₀:p_A−p_B=0. The two-sided alternative is Hₐ:p_A≠p_B or Hₐ:p_A−p_B≠0. A question prespecified as “is A greater?” uses p_A>p_B or p_A−p_B>0. A question prespecified as “is A smaller?” uses p_A<p_B or p_A−p_B<0. Those are the less, greater and not-equal alternatives; choosing one after seeing the sample sign changes the study’s intended question.
Equal population proportions do not require equal observed sample proportions. Sampling variation produces differences even under the null. Pooling successes models that common unknown population rate under the null, which is why the test SE differs from the interval SE. Its standardized statistic compares the observed difference with zero:
For the worked data, pooled null SE≈0.0554741 and z≈3.6052830. Under the equality null and verified conditions, z is approximately standard normal. A normal table or technology gives upper-tail P(Z≥3.6052830)≈0.000155906. “Differ” uses both tails, so p≈0.000311813. A higher-A alternative would instead use the upper tail alone; a lower-A alternative uses the lower tail, which is large for this positive statistic. The alternative determines extremeness.
A probability and a decision answer different questions
The two-sided p-value means: assuming the population breakfast-preference proportions in schools A and B are equal, the probability of a standardized sample difference at least this extreme in either direction is about 0.0003118. The equality assumption and both school populations belong in the interpretation. This does not assign a probability that equality itself is true.
At a prespecified α=0.05, p≤α gives reject H₀. There is convincing statistical evidence that the enrolled-student population breakfast-preference proportions differ between schools A and B. The conclusion names both populations, follows the not-equal alternative and uses qualified evidence language. Independent random samples support population comparison, but this observational school comparison does not establish that school membership causes preference.
For another valid equality test with p=0.18 and α=0.05, p>α gives fail to reject. The correct conclusion is insufficient evidence of a population-proportion difference, not that the schools have identical preferences. A complete test conclusion compares p with α explicitly and answers the investigative question; reporting only a calculator probability leaves the question unanswered.
Independent Application
Work through each investigation before opening the separate solutions. State parameters, show calculations and connect your reasoning to the actual study.
Original generated practice for the Fall 2026 course.
Glossary and deeper reading · 19 refreshers
These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.
-
Population proportion
A population proportion is the fraction of the entire population with a specified characteristic. It is a parameter, commonly written p, that a sample proportion can estimate. For example, the fraction of all enrolled students who walk to school is the population proportion of walkers.
Read more: Population proportion in the captured Statistics reading →
-
Two-sample z procedure for proportions
A two-sample z procedure uses a Normal approximation to compare two population proportions from independent groups. The equality test pools proportions for its null standard error, while the usual confidence interval uses separate sample proportions. For example, it can compare preference proportions from independently sampled students in two schools when its conditions hold.
Read more: Two-sample z procedure for proportions in the captured Statistics reading →
-
Statistical independence
Statistical independence means that learning one outcome does not change the probability distribution of another. For two events, it implies that the probability of both occurring equals the product of their probabilities. For example, independent draws with replacement keep the second draw’s color probabilities unchanged by the first.
Read more: Statistical independence in the captured Statistics reading →
-
Experiment
An experiment deliberately imposes treatments and measures responses. Random assignment, comparison, and replication help distinguish treatment effects from other variation. For example, assigning plants to fertilizer treatments is an experiment.
-
Treatment
A treatment is a specific condition imposed on an experimental unit. In a multifactor experiment, a treatment is a combination of factor levels. For example, low fertilizer with eight hours of light is one treatment combination.
-
Random sampling
Random sampling uses a specified chance process to select individuals from a population. It supports population inference when the sampling frame and data collection are appropriate, but does not guarantee perfect balance or eliminate every source of bias. For example, a random-number generator can select student identifiers from an enrollment list.
Read more: Random sampling in the captured Statistics reading →
-
Sampling without replacement
Sampling without replacement does not return selected items before later selections. Selections from a finite population are dependent, although treating them as approximately independent can be reasonable when the sample is a small fraction of the population. For example, selecting students without replacement ensures that no student is chosen twice.
Read more: Sampling without replacement in the captured Statistics reading →
-
Observed count
An observed count is the actual number of sampled individuals in a category or table cell. It is compared with the expected count to measure disagreement with a null model. For example, if 13 sampled students chose walking, the observed count for walking is 13.
Read more: Observed count in the current two-way chi-square lesson →
-
Sample
A sample is the subset of a population actually studied. How it is selected matters for the conclusions that can be drawn about the population. For example, 60 selected students may be a sample from a school’s full enrollment.
-
Mean
The mean is a measure of center often called an average. For a finite data set, the arithmetic mean is the sum of the values divided by their number; for a random variable, the mean is its probability-weighted expected value when that value exists. Means can be pulled toward extreme values and are not generally resistant. For example, the arithmetic mean of 2, 4, and 9 is 5.
-
Point estimate
A point estimate is the specific numerical value obtained from an estimator for the observed sample. It gives one estimate without expressing uncertainty by itself. For example, a sample mean of 14 minutes is a point estimate of the population’s mean travel time.
Read more: Point estimate in the captured Statistics reading →
-
Variance
Variance is the square of the standard deviation. It measures spread in squared units, with the precise averaging rule depending on whether it describes a sample or a probability distribution. For example, a standard deviation of 3 centimeters corresponds to a variance of 9 square centimeters.
-
Critical value
A critical value is a cutoff from a reference distribution chosen for a confidence level or testing rule. The relevant distribution, degrees of freedom, and one-sided or two-sided procedure determine the cutoff. For example, a symmetric 95% Normal interval uses a cutoff near 1.96 standard-error units.
Read more: Critical value in the captured Statistics reading →
-
Population
A population is the full set of individuals or measurements a study aims to describe. It must be defined clearly before deciding whether a sample supports generalization. For example, all students enrolled in a particular school this year form a population.
-
Two-sided test
A two-sided test seeks evidence for departures in either direction from the null claim. For symmetric z or t tests, extreme evidence appears in both tails of the reference distribution. For example, a not-equal alternative asks whether a population mean is either lower or higher than a stated value.
Read more: Two-sided test in the captured Statistics reading →
-
Sample proportion
A sample proportion is the number of sampled individuals with a specified characteristic divided by the sample size. It is commonly written p-hat and estimates the corresponding population proportion. For example, 18 walkers among 60 sampled students give a sample proportion of 0.30.
Read more: Sample proportion in the captured Statistics reading →
-
Sample statistic
A statistic is a numerical summary calculated from sample data. Its value can change when a different sample is selected from the same population. For example, the proportion of walkers among 60 sampled students is a statistic.
Read more: Sample statistic in the captured Statistics reading →
-
P-value
A p-value is the probability, under the null model and its assumptions, of results at least as extreme as those observed in the direction or directions specified by the test. It does not give the probability that the null hypothesis is true or measure the practical size of an effect. For example, a p-value of 0.03 describes a 3% tail probability under the null model, rather than a 3% probability that the null is correct.
-
Probability
Probability quantifies how likely an event is under a specified chance model. It lies between 0 and 1, with larger values representing greater likelihood. For example, drawing a red card from a well-shuffled standard deck has probability one half.