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.
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
The input form displayed below allows for the entry of inspection parameters to facilitate rapid and accurate calculations.
Result Display
Upon the submission of values, the calculator determines the probability of identifying exactly 2 defective widgets. Based on the provided inputs:
Population Size (N) = 1,000
Defective Widgets (K) = 50
Sample Size (n) = 20
Defects Found (x) = 2
This result indicates that if 20 widgets are randomly inspected from a batch of 1,000 containing 50 known defects, there is a 19.04% probability of finding exactly 2 defective items. This outcome would be expected approximately 19 times out of every 100 inspections.
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.
Probability Chart
The calculator generates a bar chart displaying the distribution of probabilities for finding 0 to 20 defective items. This visual representation assists quality teams in understanding the likelihood of various outcomes.
Probability Table
The table view provides a breakdown of the exact probability for each possible defect count. This format is suitable for reporting and formal decision-making processes.
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. Consultations with manufacturing teams and adherence to regulatory guidelines are recommended.