Homogeneity of Proportions Test — Definition, Formula & Example
A homogeneity of proportions test is a chi-square test that checks whether two or more separate groups have the same distribution across the categories of one categorical variable. For example, it can test whether students at two schools prefer lunch options in the same proportions.
Given independent random samples from populations, each classified into categories, the test evaluates : the category proportions are identical in all populations, against : at least one population has a different distribution. The statistic approximately follows a chi-square distribution with degrees of freedom when is true.
Key Formula
Where:
- = Observed count in a cell
- = Expected count in that cell if is true
- = Number of rows (populations or groups)
- = Number of columns (categories)
How It Works
Put the observed counts in a two-way table, with one row per population. Compute each expected count from the row and column totals. Check the conditions: the samples are random and independent, each sample is under 10% of its population, and every expected count is at least 5. Add up over all cells, then find the p-value from the chi-square distribution with degrees of freedom. A small p-value is evidence that the distributions differ.
Worked Example
Problem: You randomly survey 100 students at School A and 100 students at School B about their favorite lunch. School A: 50 pizza, 20 salad, 30 sandwich. School B: 30 pizza, 20 salad, 50 sandwich. At , is the distribution of lunch preference the same at both schools?
Step 1: State : the distribution of lunch preference is the same at both schools. : the distributions differ. The column totals are 80, 40, and 80, and the grand total is 200. Find the expected counts. Every row has total 100, so each row gets the same expected counts, and all of them are at least 5.
Step 2: Add up the contributions from all six cells. List School A first, then School B.
Step 3: Find the degrees of freedom and the p-value. When , the upper-tail probability is exactly .
Answer: , , and . This is less than , so reject . There is convincing evidence that lunch preferences are not distributed the same way at the two schools.
Why It Matters
AP Statistics Unit 8 asks you to choose between the chi-square tests for homogeneity, independence, and goodness of fit, and the free-response questions grade that choice. Researchers use the homogeneity test to compare groups such as treatment arms in a clinical trial or customer segments in a marketing survey.
Common Mistakes
Mistake: Calling the test a test for independence or homogeneity based only on how the table looks.
Correction: The arithmetic is identical, so the choice depends on the study design. Use homogeneity when you take separate samples from two or more populations and record one variable. Use independence when you take one sample and record two variables for each subject.
