What does Acceptance Sampling for Buyers conclude, in numbers, about “Average Outgoing Quality and Its Limit: What Remains after Rejected Lots Are Screened”?
Answer: Chapter 4 computes average outgoing quality: one plan for lots of a thousand has a limit of 0.01625, and the plan with the least inspection at the same limit inspects 88.0 items per lot on average.
Scope of the numbers: Lot sizes, defect shares and costs are illustrative; all calculations are generated by the book's programs; the book is general business analysis, not individualised business advice. Marked boxes separate published evidence, runnable Python calculations (22 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.01625
| N = 1000, n = 80, c = 2, rectifying | |||
| p | Pa | AOQ exact | AOQ shortcut |
| 0.000 | 1.0000 | 0.00000 | 0.00000 |
| 0.005 | 0.9956 | 0.00459 | 0.00458 |
| 0.010 | 0.9608 | 0.00893 | 0.00884 |
| 0.020 | 0.7892 | 0.01491 | 0.01452 |
| 0.030 | 0.5641 | 0.01616 | 0.01557 |
| 0.040 | 0.3645 | 0.01404 | 0.01341 |
| 0.050 | 0.2186 | 0.01059 | 0.01006 |
| 0.070 | 0.0670 | 0.00458 | 0.00432 |
| 0.100 | 0.0086 | 0.00084 | 0.00079 |
| AOQL = 0.01625 at p = 0.028 |
Show the full program
# Chapter 4. p41: average outgoing quality under rectifying inspection.
# Model: lot N = 1000, plan n = 80, c = 2. Defectives found in the
# sample are replaced by good items; a rejected lot is screened in
# full and every defective replaced. The exact outgoing defect share
# for a lot with D defectives is AOQ = E[(D - d) 1{d <= c}] / N
# (hypergeometric d); the textbook shortcut is p Pa (N - n) / N.
# AOQL is the largest AOQ over all D. Plan is illustrative.
import math
from fractions import Fraction
def aoq_exact(N, D, n, c):
tot = math.comb(N, n)
num = 0
pa_num = 0
for d in range(0, min(c, D, n) + 1):
w = math.comb(D, d) * math.comb(N - D, n - d)
num += w * (D - d)
pa_num += w
return Fraction(num, tot * N), Fraction(pa_num, tot)
if __name__ == "__main__":
N, n, c = 1000, 80, 2
print("N = 1000, n = 80, c = 2, rectifying")
print(" p Pa AOQ exact AOQ shortcut")
for D in (0, 5, 10, 20, 30, 40, 50, 70, 100):
a, pa = aoq_exact(N, D, n, c)
p = D / N
short = p * float(pa) * (N - n) / N
print(" {:.3f} {:.4f} {:.5f} {:.5f}".format(
p, float(pa), float(a), short))
best = max(range(0, 201), key=lambda D: aoq_exact(N, D, n, c)[0])
aoql = aoq_exact(N, best, n, c)[0]
print("AOQL = {:.5f} at p = {:.3f}".format(float(aoql), best / N))Single source and citation
Fan, Y. (2026). Acceptance Sampling Plans and Operating-Characteristic Curves: How Many Items a Buyer Must Inspect on Arrival (Version 1.0.0), Chapter 4: Average Outgoing Quality and Its Limit: What Remains after Rejected Lots Are Screened. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-329 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026329,
author = {Fan, Yafu},
title = {Acceptance Sampling Plans and Operating-Characteristic Curves: How Many Items a Buyer Must Inspect on Arrival},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Illusion of the Tenth: Protection Follows the Count, Not the Share
- Chapter 2 · The Hypergeometric Operating-Characteristic Curve: Acceptance Probabilities Computed Item by Item
- Chapter 3 · Two Risks at Once: Searching for the Smallest Sample and Acceptance Number
- Chapter 5 · Double Sampling and the Average Sample Number: Look at a Few, Then More If Needed
- Chapter 6 · The Expected Cost of Inbound Inspection: How Many Items Are Worth Checking
- Chapter 7 · Eastern and Western Sources: the Qin Statute That Like Vessels Must Match, and the Protection Constraint of Dodge and Romig
- Chapter 8 · The Buyer's Receiving Sheet and a Plan to Refute the Book