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
pPaAOQ exactAOQ shortcut
0.0001.00000.000000.00000
0.0050.99560.004590.00458
0.0100.96080.008930.00884
0.0200.78920.014910.01452
0.0300.56410.016160.01557
0.0400.36450.014040.01341
0.0500.21860.010590.01006
0.0700.06700.004580.00432
0.1000.00860.000840.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