The Engineering Desk
Engineering, without the noise.

DesignSimulations and MathematicsLibrary

Two-proportion test

Comparing defect rates or pass rates between two groups, and why it takes large samples.

Ampoule
Photo: “Ampoule (51479799449)” by Guilhem Vellut from Annecy, France, CC BY 2.0, via Wikimedia Commons

The two-proportion test compares two rates, such as the defective rate before and after a change.

Proportions need big samples

Pass/fail data carry little information per unit. To show that a 2% defective rate fell to 1% with 80% power at takes roughly 2,300 parts per group. Whenever you can, measure the characteristic instead and compare means and spreads; see Data types and measurement scales.

Small counts

When defectives are few, the normal approximation is poor. Use Fisher's exact test.

Over time

To watch a proportion over time rather than compare two fixed groups, use a p chart.

See also

References

  1. Agresti, A. An Introduction to Categorical Data Analysis. Wiley.

More in Simulations and Mathematics