Acceptance sampling

AQL Sampling Plans Explained: Choosing, Reading and Switching Single Sampling Plans

Kitstead Labs · Engineering reference · Synthetic worked example

A final-inspection example for quality engineers who have to defend an acceptance number.

Quick answer

An AQL sampling plan tells you three numbers for a lot: how many units to inspect (n), the most nonconforming units you may find and still accept the lot (Ac), and the count at which you reject it (Re). The plan is looked up from the lot size, the inspection level and the AQL your customer or procedure has agreed. The AQL is not a promise that the lot contains no more than that percentage of defects. It is the quality level at which the plan will accept most lots, and a lot that is noticeably worse still has a real chance of passing. The operating characteristic (OC) curve shows that chance for every quality level, and the switching rules are what make the scheme protect you over a run of lots rather than one lot at a time.

This guide walks through one fictional final-inspection case: how the plan is selected, what its OC curve says, what happens when the process drifts, and how the switching rules respond. The AQL Sampling Plan calculator does the table look-ups and draws the OC curve for any plan in the single sampling tables.

About the example. All lot sizes, defect counts and dates in this article are fictional teaching data. The plan values (sample size, Ac, Re) are the published single sampling values for the stated inputs; everything else is invented to illustrate the reasoning.

What an AQL plan is, and what it is not

Acceptance sampling makes a decision about a lot from a sample. It does not sort good units from bad ones, and it does not measure the process. Three ideas carry the whole method.

Three terms and their common misreadings
TermMeaningCommon misreading
AQL (acceptable quality limit)The percent nonconforming (or nonconformities per hundred units) that the scheme is designed to accept most of the time when the process runs at that level."The lot has at most AQL % defects."
Ac / ReAccept the lot if the sample has Ac or fewer nonconforming units; reject at Re or more. For normal and tightened single sampling, Re = Ac + 1; reduced plans leave a gap between the two."Ac is the number of defects we tolerate in the lot."
OC curveThe probability of accepting a lot, plotted against the lot's true percent nonconforming."A plan either catches bad lots or it doesn't."

The word limit in AQL is about the design target of the scheme, not an upper bound on any single lot. A plan with AQL 1.0 accepts a lot that is truly 1 % nonconforming about 95 to 99 % of the time, depending on sample size. The same plan also accepts a lot at 2 or 3 % nonconforming a good share of the time. Which share is a question only the OC curve answers.

To demonstrate a reliability level for a design rather than judge a lot, see the success-run sample size guide.

How a single sampling plan is selected

The look-up has three steps, and every step is a decision someone has already made for you or that you must write down.

  1. Lot size and inspection level give a sample size code letter. General inspection level II is the default. Level I uses smaller samples (less discrimination), level III larger samples (more discrimination). The special levels S-1 to S-4 are for expensive or destructive tests where very small samples are unavoidable.
  2. The code letter gives the sample size. Sample sizes step up with lot size, but far more slowly than the lot does. A lot ten times larger does not get a sample ten times larger.
  3. The code letter and the AQL give Ac and Re. Where the table shows an arrow instead of numbers, follow it to the first plan in the arrow's direction and use that plan's sample size as well.

Two rules sit around the look-up. If the sample size equals or exceeds the lot, inspect every unit. And the lot must be a real lot: units produced under essentially the same conditions, presented together, from which a random sample can actually be drawn. A "lot" assembled from three shifts and two tools is three or more lots stapled together, and the plan's arithmetic no longer describes it.

0.0 0.2 0.4 0.6 0.8 1.0 0 1 2 3 4 5 6 7 8 True percent nonconforming in the lot (%) Probability of accepting the lot AQL 1.0 % Pa = 0.10 (LTPD) Normal: n 200, Ac 5, Re 6 Tightened: n 200, Ac 3, Re 4 Reduced: n 80, Ac 2, Re 5
Each curve is the probability of accepting a lot against its true percent nonconforming. All three accept nearly every lot at 1 % nonconforming. They separate quickly above that: at 3 % nonconforming the normal plan accepts under half the lots, the tightened plan about one in seven, and the reduced plan still accepts most of them. Reduced inspection trades protection for a smaller sample, which is why the scheme only allows it after a run of good history.

Worked example: final visual inspection of a packaged product

The fictional product is a packaged device that leaves assembly in lots of about 5,000 units. Final inspection checks for minor visual nonconformities such as marking defects and surface blemishes. The customer specification agrees AQL 1.0 for this class of nonconformity, general inspection level II, single sampling.

Looking up the plan

Plan look-up for the example lot
InputValueResult
Lot size5,000 units (range 3,201 to 10,000)Code letter L at level II
Code letterLSample size n = 200
AQL1.0Normal inspection: Ac 5, Re 6

So the inspector draws 200 units at random from the lot, inspects them against the defined visual criteria, and accepts the lot if five or fewer units are nonconforming. The sixth nonconforming unit rejects the lot.

The same inputs give the plans for the other two states, which matter as soon as the history changes:

Plans for the three inspection states
Inspection statenAcRe
Normal20056
Tightened20034
Reduced8025

Reduced inspection has a gap between Ac and Re. A sample with three or four nonconforming units is still accepted, but normal inspection is reinstated for the next lot.

What the plan actually protects

The calculator evaluates the OC curve with the Poisson approximation for the two plans with n = 200 and the binomial distribution for the reduced plan with n = 80, which is the convention the standard uses for its printed curves. Rounded values:

Probability of acceptance by true percent nonconforming
True percent nonconformingNormal (Ac 5)Tightened (Ac 3)Reduced (accept below Re 5)
0.5 %0.9990.9811.000
1.0 %0.9830.8570.999
2.0 %0.7850.4330.978
3.0 %0.4460.1510.907
4.0 %0.1910.0420.784
5.0 %0.0670.0100.629

Two numbers from this table are worth quoting in a procedure. The producer's risk is the chance of rejecting a lot that is actually at the AQL: about 1.7 % under normal inspection, but about 14 % under tightened inspection. The lot tolerance percent defective (LTPD) is the quality level at which only 10 % of lots are accepted: about 4.6 % nonconforming for the normal plan, 3.3 % for tightened, and 9.7 % for reduced.

Read that last row again. Under reduced inspection, a lot that is nearly ten percent nonconforming still passes one time in ten. Reduced inspection is a reward for demonstrated history, not a plan you would choose on its own.

A run of lots

Now suppose the process drifts. The table below is a fictional sequence of twelve lots under this scheme. The true quality is unknown to the inspector; it is shown here only so the behaviour of the scheme can be followed.

Fictional run of twelve lots
LotTrue % nonconforming (hidden)State at inspectionnFoundDecisionState for next lot
10.8Normal2002AcceptNormal
20.9Normal2001AcceptNormal
32.6Normal2004AcceptNormal
43.1Normal2007RejectNormal (one rejection in the last five)
53.0Normal2006RejectTightened (two of the last five rejected)
62.8Tightened2005RejectTightened
71.2Tightened2002AcceptTightened
81.0Tightened2003AcceptTightened
90.9Tightened2001AcceptTightened
100.8Tightened2002AcceptTightened
110.9Tightened2001AcceptNormal (five consecutive lots accepted)
120.9Normal2002AcceptNormal

Lot 3 is the uncomfortable one. The process had already drifted to about 2.6 % nonconforming, the sample found four, and the lot was accepted. That is not a failure of the inspector. It is the OC curve: at 2.6 % the normal plan accepts roughly six lots in ten. The scheme caught the drift two lots later, through the switching rule, not through any single lot decision. This is the central argument for applying the switching rules rather than running normal inspection forever.

Reduced n 80, Ac 2, Re 5 Normal n 200, Ac 5, Re 6 Tightened n 200, Ac 3, Re 4 Discontinue inspection corrective action required 2 of last 5 lots rejected 5 consecutive lots accepted 10 consecutive lots accepted, total nonconforming within limit, steady production, approval Lot rejected, result between Ac and Re, or irregular production 5 lots not accepted on tightened inspection Start here: normal inspection. Plan values shown are for code letter L at AQL 1.0 %.
Normal inspection is the starting state. Two rejections within five consecutive lots move the scheme to tightened inspection; five consecutive acceptances move it back. Reduced inspection is only entered from normal inspection after a run of accepted lots, a low total of nonconforming units over that run, steady production and the responsible authority's approval, and it is left as soon as a lot is rejected, a result falls between Ac and Re, production becomes irregular, or the authority asks for it.

The switching rules

The rules are short, but each one has a reason.

Normal to tightened. When two of the last five consecutive lots have been rejected on original inspection, switch to tightened inspection for the next lot. Resubmitted lots do not count. The reason is in Figure 1: a single rejection is weak evidence, because good lots are occasionally rejected too, but two in five is unlikely at the AQL.

Tightened to normal. When five consecutive lots have been accepted on tightened inspection, return to normal. Tightened inspection raises the producer's risk sharply, so the scheme does not stay there without reason.

Tightened to discontinuation. If the count of lots not accepted on tightened inspection reaches five, stop acceptance inspection and require corrective action before lots are presented again. ANSI/ASQ Z1.4 words this trigger differently, so check the edition your customer cites.

Normal to reduced. Reduced inspection may be used when all of the following hold: the preceding ten lots have been accepted under normal inspection, the total number of nonconforming units in those ten samples does not exceed the limit the standard tabulates for the sample sizes used, production is at a steady rate, and the responsible authority considers reduced inspection desirable. All four conditions are needed. The limit table exists because ten accepted lots with Ac found every time is a very different history from ten lots with nothing found.

Reduced to normal. Return to normal inspection when a lot is rejected, when a sample result falls between Ac and Re (the lot is accepted but the gap is the signal), when production becomes irregular or delayed, or whenever other conditions warrant it.

A procedure that adopts AQL sampling but writes "normal inspection shall be used" and nothing else has adopted the tables and discarded the scheme. The tables alone give the OC curve of one plan. The switching rules are what tighten protection when the process is bad and loosen the workload when it is good.

Common mistakes

Reading AQL as a lot guarantee. An accepted lot under AQL 1.0 is not a lot with at most 1 % nonconforming. The worked example accepted a lot at 2.6 %. If the customer needs a bound on the worst lot that can pass, specify the LTPD or the OC curve point they care about, and choose the plan from that. Zero acceptance number sampling plans works through a plan chosen from the LTPD alone, with an acceptance number of zero.

Choosing the inspection level to get a convenient sample size. Moving from level II to level I because 200 units "takes too long" lowers the discrimination of the plan; in this example the sample would drop from 200 to 80 units. If the sample size is the problem, change the agreement with the customer, not the level in the procedure.

Sampling from the top of the container. The plan's probabilities assume a random sample from the whole lot. Units from one tray, one tool or the end of the run are a sample of that tray, tool or run.

Mixing nonconformity classes. Critical, major and minor nonconformities usually carry different AQLs. One sample can serve several classes, but the counts and the acceptance decisions are made separately for each class.

Letting resubmitted lots count toward switching. A rejected lot that is screened and resubmitted is inspected under the rules for resubmitted lots and does not count in the two-of-five tally.

Running reduced inspection without the approval step. Reduced inspection is a privilege granted by the responsible authority, in writing, on the basis of history. Entering it because the first three conditions happen to hold is not the scheme.

Using the calculator with this guide

The AQL Sampling Plan calculator takes the lot size, inspection level and AQL, returns n, Ac and Re for normal, tightened and reduced inspection, and plots the OC curve for the selected state with the acceptance probability at the AQL and the LTPD. Use it to reproduce the tables in this guide, then change one input at a time to see what a different inspection level or AQL does to the curve before you write it into a procedure.

Sources and further reading

This guide explains the reasoning behind an attribute sampling scheme. It does not replace the standard your customer specifies, and it does not reproduce the standard's tables.