Acceptance Sampling and OC Curves
Instead of checking every part in a shipment, check of them and accept the lot if at most are bad. The chance a lot passes is a binomial sum, and graphing it against the lot's true fraction defective, the OC curve, shows exactly how often good lots get turned away and bad lots slip through.
What the symbols mean
- Probability of acceptance
How often a lot that's a fraction p defective passes the plan.
- Defectives in the sample
Binomial with n trials and success probability p.
- Sample size
Parts tested from each lot.
- Acceptance number
The most defectives the sample may contain and still pass.
What the symbols mean
- Producer's risk
The chance a lot at the acceptable quality level is rejected anyway.
- Consumer's risk
The chance a lot at the rejectable quality level is accepted anyway.
What the symbols mean
- Lot size
Parts in the whole lot.
Explanation
Acceptance sampling is simply deciding whether to accept a whole shipment by inspecting a small sample from it. A plan is two numbers: (how many parts you check) and (how many bad ones you'll tolerate). The probability of accepting, , is a binomial sum you've already done: the chance of finding or fewer bad parts. Graph it for every possible defect rate and you get the OC curve, the plan's report card.
Judging a lot you didn't make. A lot of 5,000 connectors arrives from a supplier. Testing every one is slow and expensive, and for a fuse or an airbag igniter the test destroys the part. So you test a random sample and decide for the whole lot. A single sampling plan : test parts, accept the lot if at most are defective, reject it otherwise.
Why it's a binomial sum. If a fraction of the lot is defective and the lot is large compared with the sample (a common rule: at most 10% of the lot), each sampled part is defective with probability , nearly independently. The number found is binomial, as in The Binomial Distribution, so is the sum in the first formula. For small lots the exact model is hypergeometric (sampling without replacement). When is large and small, the Poisson approximation with mean is easier and nearly as accurate.
The OC curve. Plot against and you get the plan's operating characteristic curve. The ideal is a cliff: accept every lot better than some quality level and reject every lot worse. Only error-free 100% inspection does that. Real plans slope, and bigger samples make the slope steeper.
Two quality levels, two risks. Buyer and supplier agree on
- an acceptable quality level (AQL), a fraction defective good enough that such lots should almost always pass. The chance of rejecting one anyway is the producer's risk , often set near 5%;
- a lot tolerance percent defective (LTPD), quality so poor that such lots should almost always fail. The chance of accepting one anyway is the consumer's risk , often 10%.
These are the type I and type II errors of hypothesis testing, with "the lot is good" as the null hypothesis. Designing a plan means choosing and so the OC curve passes near and .
Zero-acceptance plans. With , , which falls steeply from the start. It sounds strict ("no defects allowed"), but mostly it punishes the producer: with , a lot that's only 1% defective still fails 40% of the time, since .
Rectifying inspection and AOQ. Often a rejected lot isn't sent back but screened 100%, with every defective replaced. Accepted lots then ship with the defectives among their uninspected parts, about of them, and rejected lots ship clean. Averaging over lots, the outgoing fraction defective is
AOQ is 0 when lots arrive perfect and close to 0 when they arrive terrible, since nearly all of those get screened. In between it peaks, and that peak, the average outgoing quality limit (AOQL), is the worst long-run quality the customer can receive, whatever the supplier ships.
A common mistake. It's tempting to treat a lot that passed as a good lot. It isn't necessarily: the , plan still accepts 28% of lots that are 5% defective. Sampling "10% of every lot" gives wildly different protection to different lot sizes, because the OC curve depends on , not on . And sampling sorts quality after the fact; it can't make parts better. Modern supply chains rely on suppliers' control charts and capability data, and keep sampling as an audit.
See it
Worked examples
A plant receives lots of 5,000 connectors and uses the plan , . What's the probability of accepting a lot that's 2% defective? Compare with the Poisson approximation.
- 1
The number of defectives in the sample is binomial with and ; the sample is 1% of the lot, so independence is a fine approximation.
With rectifying inspection (rejected lots screened 100% and every defective replaced), what's the average outgoing quality for the same plan if lots of arrive 2% defective?
- 1
An accepted lot (probability 0.7358) ships with the defectives among its uninspected parts: on average .
Practice
Type your answer and check it. Solve them all to complete the lesson.
A zero-acceptance plan tests parts and rejects the lot if any is defective. What's the probability it accepts a lot that's 5% defective? Give 4 decimal places.
A plan tests parts and accepts the lot if or fewer are defective. Find the probability of accepting a lot that's 1% defective. Give 4 decimal places.
Use the Poisson approximation to find the probability that the same plan (, ) accepts a lot that's 5% defective. Give 4 decimal places.
The plan , is judged at an AQL of 1% and an LTPD of 8%. Find the producer's risk and the consumer's risk , to 4 decimal places each.
A buyer's rule is "inspect 10% of every lot, and accept only if no defectives turn up." How does it treat lots of 100 parts compared with lots of 2,000?
A medical device maker wants a zero-acceptance plan () that accepts lots that are 5% defective no more than 10% of the time. What's the smallest sample size ?
For the same requirement (accept 5%-defective lots at most 10% of the time), a plan is proposed. With the Poisson approximation, at . (a) Find the smallest . (b) Find the producer's risk at an AQL of 0.5%, to 4 decimal places. Enter , then .
Rectifying inspection uses , on lots of , and rejected lots are screened 100%. Incoming lots are 4% defective. Find the average outgoing quality, in percent, to 3 significant figures.
The hardest one here. Get it, and you've got this lesson.
A rectifying plan uses and on large lots, so . With the Poisson approximation , find the incoming fraction defective at which the AOQ peaks and the AOQL, both in percent to 3 significant figures.
Where it's used
Incoming inspection at assembly plants, the industrial sampling standards (tables of plans indexed by lot size and AQL), food-safety and drug-import inspections and batch release in pharmaceutical plants all rest on OC curves. The same calculation tells a software team how many test runs must pass before a release and tells an auditor how many invoices to check.