Homogeneity test
Chi-Square Test for Homogeneity
The chi-square test for homogeneity is used to determine whether two or more populations have the same distribution of a single categorical variable. Unlike the test of independence (which uses one sample classified by two variables), the test for homogeneity uses separate samples from different populations and compares them on the same categorical variable.
When to Use It
Use a chi-square test for homogeneity when:
- You have separate random samples from two or more populations (or treatment groups).
- You want to compare the distribution of a single categorical variable across those groups.
Practice problem
A manufacturing company wants to determine whether its safety training program produces the same proficiency rates across four departments. The company takes independent random samples from each department and records whether each worker is proficient or not proficient on the post-training assessment.
| Department | Sampled | Proficient | Not Proficient |
|---|---|---|---|
| Welding | 90 | 68 | 22 |
| Assembly | 110 | 75 | 35 |
| Shipping | 80 | 50 | 30 |
| Quality Control | 100 | 85 | 15 |
Test, at the level, whether the distribution of proficiency is the same across all four departments.
Part a. State the hypotheses.
: The distribution of proficiency (proficient vs. not proficient) is the same across all four departments.
: The distribution of proficiency is not the same across all four departments.
Part b. Organize the observed data into a two-way table.
| Welding | Assembly | Shipping | Quality Control | Total | |
|---|---|---|---|---|---|
| Proficient | 68 | 75 | 50 | 85 | 278 |
| Not Proficient | 22 | 35 | 30 | 15 | 102 |
| Total | 90 | 110 | 80 | 100 | 380 |
Part c. Check the conditions for inference.
Random: The problem states the company took independent random samples from each department. ✓
10%: Each sample is reasonably less than 10% of the workers in its department (assuming each department has at least 10 times the sample size). ✓
Large Counts: Compute expected counts using .
All expected counts are at least 5 (smallest is ), so the Large Counts condition is met. All three conditions are satisfied — we can proceed with the chi-square test for homogeneity.
Part d. Find the chi-square test statistic and p-value.
Using the TI-84:
- Enter the observed counts into Matrix [A] (2 rows × 4 columns).
- Press
{`STAT`}→{`TESTS`}→{`χ²-Test`}. - Set Observed: [A], Expected: [B] (the calculator will fill [B] automatically).
- Highlight
{`Calculate`}and press{`ENTER`}.
The degrees of freedom: .
Part e. Interpret the results in context.
Compare the p-value to .
Since , we reject .
We have convincing evidence that the distribution of proficiency is not the same across all four departments. In other words, at least one department has a different proficiency rate after the safety training program.