Numeric Forest logo

Quality Control in Manufacturing: Defect Detection

By Numeric Forest Team | Published on 29 April 2026

In manufacturing, ensuring product quality is essential. The statistical assessment of the likelihood of finding defects in a random sample is achieved through the Hypergeometric Distribution—a mathematical tool for modelling probabilities when sampling is conducted without replacement.

The Rationale for the Hypergeometric Distribution

Unlike theoretical models that assume infinite populations or sampling with replacement, real-world quality control involves the inspection of items that are not returned to the batch. This characteristic makes the Hypergeometric Distribution the appropriate method for calculating the probability of identifying a specific number of defective items within a sample.

P(X=x)=(Kx)(N-Kn-x)(Nn)

Example: Widget Inspection

A factory produces 1,000 widgets daily. Historical data indicates that 50 of these items are typically defective. A random selection of 20 widgets is taken for inspection. The probability of finding exactly 2 defective items is determined by the following parameters:

Population Size (N): 1,000

Successes in Population (K): 50 (defective widgets)

Sample Size (n): 20 (widgets inspected)

Successes in Sample (x): 2 (defective widgets found)

Probability Type: Equal - The exact probability of identifying 2 defects

Input Form Analysis

By entering these parameters into the calculation tool, you can isolate the true probability of uncovering variations across a closed batch, stripping away guesswork from regular audit checks.

Result Summary

Upon the submission of values, the calculator determines the probability of identifying exactly 2 defective widgets. Based on the provided inputs, the model resolves an exact probability of 19.04%. This outcome would be expected approximately 19 times out of every 100 inspections.

The Probability Distribution Profile

To see how the probabilities are distributed across various potential defect counts using this same batch of 1,000 items, we can review the comprehensive metrics in the table below:

Defects Detected (x) Probability Statistical Interpretation
0 35.49% The sample contains zero anomalies.
1 38.12% The sample contains a single out-of-character item.
2 19.04% Our specific target model count verified above.
3 5.88% A minor defect cluster appears.
4 or more 1.48% An unusual, rare concentration of anomalies.

Notice that finding 0 or 1 anomaly combined accounts for exactly 73.61% of your evaluation runs. Pulling out 2 or more anomalies represents a smaller statistical minority. True randomness naturally distributes across a curve, which explains why unexpected clusters can occasionally surprise quality control teams during isolated trials.

Analysing the Impact

These insights assist in manufacturing processes by establishing realistic expectations for defect detection, adjusting sample sizes to improve inspection accuracy, and monitoring production quality to identify trends over time.

Application

Inspection data can be analysed using the Hypergeometric Distribution calculator to determine probabilities for any given sample size or defect rate.

Disclaimer: This article is for informational and educational purposes only. It does not replace professional quality assurance protocols, industrial auditing processes, or commercial compliance frameworks. Consultations with manufacturing teams and adherence to regulatory guidelines are recommended.