Acceptance sampling

Zero Acceptance Number (c = 0) Sampling Plans: What Accept-on-Zero Protects and What It Costs

Kitstead Labs · Engineering reference · Synthetic worked example

A final-inspection comparison for quality engineers who have been asked to replace an AQL plan with accept-on-zero.

Quick answer

A c = 0 sampling plan accepts a lot only when the sample contains no nonconforming units. For a lot that is large compared with the sample, its whole operating characteristic (OC) curve is one line: the probability of acceptance is (1 − p)^n, where p is the lot's fraction nonconforming and n is the sample size.

Because one nonconforming unit is enough to stop the lot, a c = 0 plan reaches a given level of consumer protection with a much smaller sample than a plan that allows nonconforming units. In the example below, 49 units at c = 0 give the same lot tolerance percent defective (LTPD) as 200 units at Ac 5. The price is paid at the other end of the curve. A lot at 1 % nonconforming passes the 200-unit plan about 98 times in 100 and passes the 49-unit plan about 61 times in 100.

A c = 0 plan has only one number to choose, so it is usually fixed by the consumer's point, and the producer's side of the curve is whatever follows. That can be the right choice. It should be made knowing how many acceptable lots will be stopped, and with an agreed answer for what happens to them.

About the example. The product, lot sizes and quality levels in this article are fictional teaching data. The numbers are computed from the formulas shown, with no approximation beyond the stated model, and every sample size can be recomputed from them.

What a c = 0 plan is, and why customers ask for it

A single sampling plan for attributes has two numbers: the sample size n and the acceptance number c, written Ac in the sampling tables. The lot is accepted when the sample contains c or fewer nonconforming units. In a c = 0 plan, also called a zero acceptance number or accept-on-zero plan, the first nonconforming unit found withholds acceptance.

One objection to plans with c of 1 or more is about what the numbers can appear to say. An acceptance number of 5 can be read as permission to ship five defects, and an AQL of 1.0 as an agreed defect level. Neither reading is correct, as the AQL sampling plan guide explains. The United States Department of Defense is a documented case of a customer moving away from AQLs. A 1999 Quality Digest article by Carmen Liuzza and Geza M. Pap, both then working in United States Army quality assurance, reports that the department directed the removal of AQLs from its specifications in 1986. It also reports that the department's later acceptance standard prefers acceptance based on process control and, where attributes sampling is used, allows only accept-on-zero plans, with an exception for destructive tests. The same article is careful about what the change does and does not do. In its words, such plans "don't change the statistics; they change the emphasis from throughput to prevention" and encourage suppliers to keep working toward fully conforming product.

The first half of that sentence is the subject of this guide. The statistics of a c = 0 plan are simple and can be written down in full. They show what the plan protects, and what it asks of the producer.

The OC curve of a c = 0 plan

For a lot that is large compared with the sample, the number of nonconforming units in a random sample of n is approximately binomial, and the probability of acceptance is the probability of finding c or fewer:

Pa = Σ (d = 0 to c) [n! / (d! (n − d)!)] p^d (1 − p)^(n − d)

With c = 0 only the first term remains:

Pa = (1 − p)^n

Two consequences follow directly.

The curve has no shoulder. A plan with c of 1 or more has a flat region near p = 0 where almost every lot is accepted, because a few nonconforming units in the sample are tolerated. The c = 0 curve starts falling immediately. Near p = 0 its slope is −n, so every tenth of a percent of nonconforming product costs acceptance probability from the start.

The sample size follows from one point. If the plan must accept no more than a fraction β of lots at a quality level p, then (1 − p)^n ≤ β, which gives

n = ln(β) / ln(1 − p), rounded up to the next whole unit.

0.0 0.2 0.4 0.6 0.8 1.0 0 % 1 % 2 % 3 % 4 % 5 % 6 % 7 % 8 % Percent nonconforming Probability of acceptance 0.10 n 49, c 0 n 115, c 2 n 200, c 5 0.61 0.89 0.98
Probability of acceptance against percent nonconforming, from 0 to 8 %, for three single sampling plans with the same LTPD of about 4.6 %: n 49 with c 0, n 115 with c 2, and n 200 with c 5. At 1 % nonconforming the plans accept 61 %, 89 % and 98 % of lots. The larger the acceptance number, the longer the curve stays near 1 before it falls.

Worked example: the same LTPD with c = 0

The fictional product is the one used in the AQL guide: a packaged device shipped in lots of about 5,000 units, inspected for minor visual nonconformities. The current plan is n = 200 with Ac 5. The AQL guide gives its LTPD, the quality level accepted only 10 % of the time, as about 4.6 % nonconforming.

The customer now asks for accept-on-zero and is willing to keep the same LTPD. The sample size is

n = ln(0.10) / ln(1 − 0.046) = 48.9, so n = 49.

The check is (1 − 0.046)^49 = 0.0995, just under 0.10. The sample has fallen from 200 units to 49, which is the attraction of the plan. The next table shows the rest of the curve. Both columns use the binomial distribution.

Probability of acceptance by percent nonconforming for the n 200, Ac 5 plan and the n 49, c 0 plan
True percent nonconformingn 200, Ac 5n 49, c 0
0.5 %0.9990.782
1.0 %0.9840.611
2.0 %0.7870.372
3.0 %0.4430.225
4.0 %0.1860.135
4.6 %0.0990.100
5.0 %0.0620.081

At 4.6 % the two plans agree to within rounding, as designed. At every better quality level in the table the c = 0 plan accepts fewer lots. At 1 % nonconforming, the AQL of the original plan, the producer's risk rises from 1.6 % to 38.9 %. At 0.5 %, a process running at half that AQL, more than one lot in five is still stopped.

The AQL guide quotes 0.983 at 1.0 %, and a producer's risk of about 1.7 %, for the 200-unit plan because it follows the convention of the standard and uses the Poisson approximation for that plan. The binomial values are 0.984 and 1.6 %. The difference does not change any conclusion here.

Another way to read the table is to ask what quality the producer must hold to see 95 % of lots accepted. For the 200-unit plan the answer is 1.31 % nonconforming or better. For the 49-unit c = 0 plan it is 0.105 % or better, more than twelve times tighter, although the contract number that changed was the acceptance number and not the quality level.

One number cannot be set from two points

A sampling plan is often designed through two points on its OC curve: a good quality level p1 that should be accepted with probability 1 − α, and a poor quality level p2 that should be accepted with probability no more than β. There are two unknowns, n and c, and two conditions.

A c = 0 plan has one unknown. Once n is chosen from one point, the other point is whatever (1 − p)^n makes it, and both requirements are met only if the two points happen to be compatible. For β = 0.10 and α = 0.05, the ratio between the two quality levels is fixed by the arithmetic:

Acceptance at 1 % nonconforming and the 95 % and 10 % acceptance points for c = 0 plans, by sample size
n (c = 0)Pa at 1 %Quality accepted 95 % of the timeLTPD (Pa = 0.10)Ratio
50.9511.02 %36.9 %36
130.8780.394 %16.2 %41
320.7250.160 %6.94 %43
490.6110.105 %4.59 %44
800.4480.064 %2.84 %44
2000.1340.026 %1.14 %45

For every sample size in the table, the quality a c = 0 plan rejects 90 % of the time is 36 to 45 times worse than the quality it accepts 95 % of the time, and the ratio approaches 44.9 as the sample grows. The 200-unit plan with Ac 5 has a ratio of about 3.5. If the producer needs 95 % acceptance at 1 % nonconforming under c = 0, the sample can be no larger than five units, and at five units the LTPD is 37 %.

Allowing nonconforming units is what buys the second point. The table below holds the consumer's point at 4.6 % and β = 0.10 and finds the smallest sample for each acceptance number.

Smallest sample size for each acceptance number at an LTPD of 4.6 %, with the producer's risk at 1 % nonconforming
Acceptance number cSmallest n with Pa ≤ 0.10 at 4.6 %Pa at 1 %Producer's risk at 1 %
0490.61138.9 %
1840.79520.5 %
21150.89110.9 %
31440.9435.7 %
41720.9703.0 %
52000.9841.6 %

Each additional unit allowed costs about 30 more units inspected and returns acceptable lots to the producer. The first plan to meet both points, with α no more than 5 % at 1 % nonconforming, is n = 172 with c = 4. The choice between the rows is a cost comparison: inspection cost per unit on one side, the cost of a stopped lot on the other.

Small lots: the hypergeometric count

The formula above assumes the lot is large compared with the sample. When it is not, drawing units without replacement changes the odds as the sample is taken, and the exact count is hypergeometric. For a lot of N units that contains D nonconforming units, the probability that a sample of n contains none is

Pa = C(N − D, n) / C(N, n)

where C(a, b) is the number of ways to choose b items from a. The quality level is now a whole number of units in the lot, not a fraction.

Take a consumer's point of 5 % nonconforming at β = 0.10. The large-lot formula gives n = ln(0.10) / ln(0.95) = 44.9, so 45 units. The exact sample for a finite lot is smaller:

Smallest c = 0 sample size for a lot with 5 % nonconforming units, by lot size
Lot size NNonconforming units D (5 %)Smallest n with Pa ≤ 0.10Pa at that n
603320.096
1005370.093
20010410.095
1,00050440.099
5,000250450.098

For a lot of 100, the large-lot answer of 45 units would over-inspect by eight units, and its true probability of accepting the lot with five nonconforming units would be 0.046, not 0.10. For a lot of 5,000 the two calculations agree. For a c = 0 plan the large-lot formula never under-protects the consumer, because the exact probability of acceptance is never the larger of the two. What the exact count saves is inspection: in this example, from one unit at a lot of 1,000 to 13 units at a lot of 60. Whether that matters depends on what a unit costs to inspect.

0 10 20 30 40 50 20 50 100 200 500 1,000 2,000 5,000 Lot size (units) Sample size n Large-lot formula: 45 20: 18 100: 37 200: 41 1,000: 44
Smallest c = 0 sample size that accepts a lot containing 5 % nonconforming units no more than 10 % of the time, against lot sizes from 20 to 5,000 units in steps of 20. The exact hypergeometric sample rises from 18 units for a lot of 20 to the large-lot value of 45 units, which it reaches at a lot of 1,120. Only lot sizes divisible by 20 are evaluated, so the flat segments between them are not sampling plans for the lot sizes in between.

What a rejection means under c = 0

At 1 % nonconforming the 49-unit plan stops 39 lots in every 100. Those are lots at the AQL of the original plan, the quality level that plan was chosen to accept nearly every time. What happens to them is the part of an accept-on-zero requirement that most needs to be written down before the first lot is inspected.

The Quality Digest article describes the Department of Defense position on this point: a lot that fails an accept-on-zero plan is not automatically rejected, but its acceptance is withheld. Withholding acceptance opens a set of questions that the sampling plan itself does not answer. Is the lot screened 100 %, returned, or reviewed for the cause of the nonconformity? Who pays for the screening? Does a single minor visual nonconformity trigger the same response as a functional one?

The plan gives the frequency. With the process at p and a sample of n, the fraction of lots that will need that response is 1 − (1 − p)^n. Putting the producer's realistic process level into that expression, before agreeing to the plan, turns a discussion about a principle into a discussion about a number.

c = 0 and the success-run formula

The sample size formula in this guide is the success-run formula with different names. Write the reliability R as 1 − p and the confidence C as 1 − β, and n = ln(β) / ln(1 − p) becomes n = ln(1 − C) / ln(R). The Success-Run Sample Size calculator therefore reproduces the worked example: confidence 90 and reliability 95.4 give 49 units.

The success-run guide warns against using a success-run sample size to inspect production lots. The tables above are the reason behind that warning. A success-run number is a c = 0 sample size calculated from the consumer's point only. Used once, to demonstrate a lower bound before release, that is exactly what is wanted. Used lot after lot, it carries a producer's risk that the calculation never looked at. The arithmetic is shared; the question being answered is not.

Common mistakes

Reading zero accepted as zero in the lot. A 49-unit sample with no nonconforming units is found in 61 % of lots that are 1 % nonconforming. Accept-on-zero is a statement about the sample.

Setting Ac to 0 and keeping the sample size. Changing the plan in the example from Ac 5 to c = 0 while still drawing 200 units gives an acceptance probability of 0.134 at 1 % nonconforming. Nearly seven lots in eight at the agreed quality level would be stopped.

Comparing plans by sample size. "49 units instead of 200" describes inspection cost. The comparison that matters is the two OC curves.

Quoting c = 0 without n. The acceptance number alone fixes nothing. With c = 0, the LTPD runs from 37 % at five units to 1.1 % at 200.

Drawing a second sample after a failure. If a lot that fails is resampled and accepted on a clean second sample, the lot is accepted when either sample is clean. With independent samples from a large lot at 4.6 % nonconforming, the probability of acceptance for the 49-unit plan rises from 0.10 to 0.19, so the consumer's risk has nearly doubled without any change to the written plan.

Using the large-lot formula on a small lot. It over-inspects. Use the hypergeometric count when the sample is a large share of the lot, and inspect every unit when the calculated sample reaches the lot size.

Using the calculators with this guide

The Success-Run Sample Size calculator gives the large-lot c = 0 sample size. Enter the confidence as 100 % minus β and the reliability as 100 % minus the percent nonconforming at the consumer's point: 90 and 95.4 return 49 units, and 90 and 95 return 45. To find the LTPD of an existing c = 0 plan, keep the confidence at 90, solve for reliability from the sample size and subtract the result from 100 %: 49 units return 95.41, so the LTPD is 4.59 %.

The AQL Sampling Plan calculator reproduces the comparison plan: lot size 5,000, general level II and AQL 1.0 return n = 200 with Ac 5, with its OC curve and LTPD. That calculator looks plans up from the single sampling tables and does not accept an arbitrary n and c, so the c = 0 curve and the hypergeometric table in this guide are computed from the formulas shown and are not available in a calculator on this site.

Sources and further reading

This guide explains the arithmetic of zero acceptance number plans. It does not replace the sampling standard or the customer requirement that applies to your product, and it does not cover rectifying inspection, double or sequential sampling, or sampling by variables.