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
| c | n | Pa(0.05) | risk@0.01 | risk@0.02 | extra n |
| 0 | 45 | 0.0994 | 0.3638 | 0.5971 | |
| 1 | 77 | 0.0973 | 0.1800 | 0.4573 | +32 |
| 2 | 105 | 0.0992 | 0.0888 | 0.3506 | +28 |
| 3 | 132 | 0.0992 | 0.0443 | 0.2719 | +27 |
| 4 | 158 | 0.0996 | 0.0219 | 0.2108 | +26 |
| 5 | 184 | 0.0982 | 0.0110 | 0.1652 | +26 |
| 6 | 209 | 0.0983 | 0.0054 | 0.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
- 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 4 · Average Outgoing Quality and Its Limit: What Remains after Rejected Lots Are Screened
- 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