GIFSQ ID: CAL-0553
GIFSQ Tools : Quality : Version v1 : Technical review date: 2026-11-15
Partial completion of the live Pathogen Sampling Plan Builder (2-class and 3-class attribute plans only): a general AQL-based acceptance decision for an inspected sample. The OC curve probability is NOT computed here: see Limitations and BLOCKED.md.
Educational calculator: this is a calculation aid for learning and planning. It is not a validated food safety process and must not be presented as one. Confirm any value against your accredited method and your own process validation before using it in production.
Inputs
Formula
Acceptance sampling: a decision to accept or reject a lot is based on the results of inspection of samples (book glossary). Accept the lot if defectives found are less than or equal to c; reject if greater than c. Sample percent defective = defectives found / sample size x 100. AQL: in a continuing series of lots, the limit of satisfactory process average; it can also be expressed as the maximum percent defective that can be considered satisfactory for the average of the process (book glossary). OC curve: a plot showing, for a given sample plan, the probability of accepting a lot as a function of lot quality (book glossary). Ranganna, Analysis of Fruit and Vegetable Products, Ch. 34 Statistical Quality Control, does discuss AQL sampling tables: Tables 34-1 to 34-4, with worked AQL 1 percent plans for code letter M and OC Fig. 34.1 readings (3 percent defective: 13 percent acceptance; 1 percent: 98 percent). The tables in the text extract are abridged and OCR-garbled and the book gives no OC construction formula, so no OC probability is computed here.
Variable definitions and units
Sample size n and acceptance number c: count. Defectives found: count. AQL and sample percent defective: %.
Assumptions
The sample is drawn as the plan requires. Each unit is classified defective or not by the same inspection criteria.
Input validation
Sample size greater than 0. Acceptance number c 0 to sample size. Defectives found 0 to sample size. AQL greater than 0 and less than 100%.
Worked example
Boundary test in the style of the live Pathogen Sampling Plan Builder (marginal count exactly at c): sample n = 50, c = 2, defectives found = 2. Defectives are less than or equal to c, so the lot is ACCEPTED. Sample percent defective = 2 / 50 x 100 = 4.00%, which is above the entered AQL of 1%: the sample passes the c rule but the process average is above the AQL, so the process needs review. This contrast is shown, not hidden.
Expected output
Accept or reject decision, sample percent defective %, and a note comparing the sample percent defective with the entered AQL. No OC curve probability is given.
Calculation limitations
BLOCKED PART: the OC curve probability of acceptance is not computed. The book defines the OC curve but gives no binomial formula for it, and Ranganna Ch. 34 gives partial AQL tables only: Tables 34-1 to 34-4 are abridged and OCR-garbled in the text extract and the book gives no OC construction formula. Do not use this tool as an AQL sampling table: c must be entered from a published sampling standard or table. See BLOCKED.md.
Source
Food Quality Assurance: Principles and Practices, glossary (Acceptable quality level; Acceptance sampling; Operating characteristic curve). Ranganna, Analysis of Fruit and Vegetable Products, Ch. 34 Statistical Quality Control: Tables 34-1 to 34-4 and OC Fig. 34.1, partial source only, see Limitations. Completes live Pathogen Sampling Plan Builder for general AQL use; OC part blocked.