关于「平均出厂质量与其上限:被拒批全检之后还剩多少不良」,《验收抽样与到货验货》给出的定量结论是什么?

结论:第四章计算平均出厂质量,一个千件批方案的上限为 0.01625,同样上限下检验最少的方案每批平均检验 88.0 件。

数据口径:书中批量、不良率与成本均为示意参数;全部计算由书中程序生成;本书属于非个人化经营建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(22 段程序)、原典与作者的假说。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 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
查看完整验算程序
# 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))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《验收抽样方案与操作特性曲线、买手到货验货抽检件数母典》第 4 章「平均出厂质量与其上限:被拒批全检之后还剩多少不良」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 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}
}

本书其他章节结论