What does Acceptance Sampling for Buyers conclude, in numbers, about “The Buyer's Receiving Sheet and a Plan to Refute the Book”?
Answer: Chapter 8 gives the buyer's receiving sheet, the distilled Inbound Inspection Sampling Plan Calculator and a pre-registered test. Marked boxes separate published evidence, runnable Python calculations (22 programs), classical sources and the author's hypotheses.
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 only
| barrier p = 0.10 at risk 0.10; process average 0.02 | ||||||
| N | n | c | tenth | Pa(0.02) | AOQL | ATI |
| 24 | 17 | 0 | 2 | 1.0000 | 0.0122 | 17.0 |
| 60 | 30 | 1 | 6 | 1.0000 | 0.0186 | 30.0 |
| 150 | 47 | 2 | 15 | 0.9706 | 0.0230 | 50.0 |
| 400 | 63 | 3 | 40 | 0.9760 | 0.0276 | 71.1 |
| 1000 | 77 | 4 | 100 | 0.9853 | 0.0314 | 90.6 |
| 3000 | 90 | 5 | 300 | 0.9916 | 0.0346 | 114.4 |
Show the full program
# Chapter 8. p81: the buyer's inbound inspection table.
# Model: for each lot size, the Dodge-Romig style single plan of p72
# with a shop-level barrier: lots with 0.10 defective accepted with
# prob <= 0.10, least ATI at the process average 0.02; then the
# exact AOQL (rectifying, D up to 0.4 N) and P(accept) at 0.02.
# Exact hypergeometric; D rounded half up. Parameters illustrative.
import math
from fractions import Fraction
def defects(N, p):
return int(Fraction(p) * N + Fraction(1, 2))
def hyper(N, D, n, c):
num = 0
for d in range(0, min(c, D, n) + 1):
num += math.comb(D, d) * math.comb(N - D, n - d)
return Fraction(num, math.comb(N, n))
def aoq(N, D, n, c):
num = 0
for d in range(0, min(c, D, n) + 1):
num += math.comb(D, d) * math.comb(N - D, n - d) * (D - d)
return Fraction(num, math.comb(N, n) * N)
def best_plan(N, pt, beta, pbar, cmax=8):
Dt, Db = defects(N, pt), defects(N, pbar)
rows = []
for c in range(0, cmax + 1):
if c >= Dt:
break
n = c + 1
while n <= N and hyper(N, Dt, n, c) > beta:
n += 1
if n > N:
break
pa = hyper(N, Db, n, c)
rows.append((n + (1 - pa) * (N - n), n, c))
return min(rows)
if __name__ == "__main__":
beta = Fraction(1, 10)
print("barrier p = 0.10 at risk 0.10; process average 0.02")
print(" N n c tenth Pa(0.02) AOQL ATI")
for N in (24, 60, 150, 400, 1000, 3000):
ati, n, c = best_plan(N, "0.10", beta, "0.02")
top = int(0.4 * N)
q = max(aoq(N, D, n, c) for D in range(0, top + 1))
pa = hyper(N, defects(N, "0.02"), n, c)
print(" {:5d} {:3d} {:2d} {:4d} {:.4f} {:.4f} {:6.1f}"
.format(N, n, c, N // 10, float(pa), float(q), float(ati)))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 8: The Buyer's Receiving Sheet and a Plan to Refute the Book. 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 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