What does Acceptance Sampling for Buyers conclude, in numbers, about “Two Risks at Once: Searching for the Smallest Sample and Acceptance Number”?

Answer: Chapter 3 searches for the smallest plan under two risks and shows that zero acceptance wrongly rejects normal lots at one in a hundred with probability 0.3638.

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.3638

cnPa(0.05)risk@0.01risk@0.02extra n
0450.09940.36380.5971
1770.09730.18000.4573+32
21050.09920.08880.3506+28
31320.09920.04430.2719+27
41580.09960.02190.2108+26
51840.09820.01100.1652+26
62090.09830.00540.1282+25
c=0, n=45: a 1% lot is rejected 3.6 times in 10
Show the full program
# Chapter 3. p33: what a zero-acceptance plan costs the good supplier.
# Model: binomial OC. For each acceptance number c, the smallest n
# that holds the consumer's risk at p2 = 0.05 to <= 0.10; then the
# producer's risk 1 - Pa at p1 = 0.01 and at p1 = 0.02 (lots that
# should normally pass). Quality levels are illustrative.
import math


def pa(p, n, c):
    terms = [math.comb(n, d) * p ** d * (1 - p) ** (n - d)
             for d in range(c + 1)]
    return math.fsum(terms)


if __name__ == "__main__":
    p2, beta = 0.05, 0.10
    print("  c     n   Pa(0.05)  risk@0.01  risk@0.02  extra n")
    prev = None
    for c in range(0, 7):
        n = c + 1
        while pa(p2, n, c) > beta:
            n += 1
        extra = "" if prev is None else "{:+d}".format(n - prev)
        print("  {}   {:4d}   {:.4f}    {:.4f}     {:.4f}     {}".format(
            c, n, pa(p2, n, c), 1 - pa(0.01, n, c), 1 - pa(0.02, n, c),
            extra))
        prev = n
    n0 = 45
    print("c=0, n=45: a 1% lot is rejected {:.1f} times in 10".format(
        10 * (1 - pa(0.01, n0, 0))))

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 3: Two Risks at Once: Searching for the Smallest Sample and Acceptance Number. 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