Acceptance sampling plans and OC curves, with an example

Updated

Acceptance sampling decides whether to accept or reject a lot by inspecting a sample from it. The simplest and most common design is a single sampling plan by attributes: take n items at random, count the defective ones, and accept the lot if there are c or fewer. The plan's operating characteristic (OC) curve shows how likely it is to accept a lot for every possible fraction defective, which is the only honest way to judge what a plan does.

When to use it

  • You receive lots from a supplier and have no process data from them, so you need a decision rule at receiving inspection.
  • Inspection is destructive, slow or expensive, so checking every item is not practical.
  • You want to know what an inherited plan ("take 50, accept on 1") actually protects against.

Sampling sorts lots; it does not make them better. Where you can, control the process that makes the parts, for example with a P chart, and use sampling as a check.

How it works

If a lot has a fraction defective p and the sample is a small part of the lot (as a rule of thumb, less than 10%), the number of defectives D in a sample of n follows a binomial distribution. The probability of accepting the lot is the chance of finding c or fewer:

Pa(p) = Σ (d = 0 to c) C(n, d) pᵈ (1 − p)ⁿ⁻ᵈ

Plotting Pa against p gives the OC curve. Two points on it describe the plan:

  • AQL (acceptable quality level): a fraction defective the producer considers good. The plan should accept such lots most of the time. The producer's risk α = 1 − Pa(AQL) is the chance of rejecting a good lot; 5% is a common target.
  • RQL (rejectable quality level, also called LTPD): a fraction defective the consumer considers bad. The plan should reject such lots most of the time. The consumer's risk β = Pa(RQL) is the chance of accepting a bad lot; 10% is a common target.

To design a plan, pick the AQL, RQL, α and β, then find the smallest n, for each c, that keeps Pa(RQL) ≤ β, and keep the first plan that also has Pa(AQL) ≥ 1 − α.

When rejected lots are sorted 100% and defectives replaced, the average outgoing quality is about p × Pa(p) × (N − n)/N for lot size N. Its maximum over p, the AOQL, is the worst long-run average quality that leaves inspection.

Published standards such as ISO 2859-1 index plans by AQL and lot size. Whatever the source of a plan, compute its OC curve to see what it really does.

Example

A plant receives molded connectors in lots of 2,000. The receiving procedure, inherited from a previous product, says: inspect 50 connectors, accept the lot if at most 1 is defective (n = 50, c = 1). The quality engineer wants lots at 1% defective accepted at least 95% of the time and lots at 5% defective accepted no more than 10% of the time.

For p = 1%, the plan accepts with probability

Pa(0.01) = 0.99⁵⁰ + 50 × 0.01 × 0.99⁴⁹ = 0.6050 + 0.3056 = 0.9106

The same calculation over a range of p gives the OC curve. Searching for the smallest plan that meets both targets gives n = 132, c = 3. (With c = 0, 1 or 2, any sample large enough to protect against 5% lots rejects too many 1% lots.)

Lot fraction defectivePa, n = 50, c = 1Pa, n = 132, c = 3
0.5%0.9740.996
1%0.9110.956
2%0.7360.728
3%0.5550.438
5%0.2790.099
8%0.0830.005
10%0.0340.001
OC curves of two single sampling plans0.000.250.500.751.00Probability of acceptancen = 50, c = 1n = 132, c = 30%2%4%6%8%10%Lot fraction defective
OC curves of two single sampling plans

How to read the results

  • The old plan misses both targets. It rejects 8.9% of lots that are only 1% defective, which annoys the supplier, and it accepts 27.9% of lots that are 5% defective, which lets bad lots through.
  • The new plan meets both. n = 132, c = 3 accepts 95.6% of 1% lots (α = 4.4%) and 9.9% of 5% lots (β = 9.9%).
  • A steeper curve discriminates better. Both plans accept 2% lots about 73% of the time, but the new curve falls much faster beyond that. The point where Pa = 0.5 moves from 3.3% to 2.8% defective.
  • Average outgoing quality. If rejected lots are sorted, the AOQL is about 1.63% for the old plan (at about 3.2% incoming) and about 1.38% for the new one (at about 2.2% incoming). On average, no more than that fraction of defectives leaves inspection.
  • The cost is inspection. The new plan inspects 132 connectors per lot instead of 50. Whether that is worth it depends on what a bad lot costs downstream.

Common mistakes

  • Choosing a plan by its sample size alone. "We check 50" says nothing about protection. Always look at the OC curve.
  • Thinking AQL is a quality target. An AQL of 1% means the plan usually accepts lots that are 1% defective. It is not permission to ship 1% defective, and it says nothing about lots that are better or worse.
  • Sampling non-randomly. Taking the top layer of a box, or the first parts made, breaks the binomial model. Draw the sample from the whole lot.
  • Using the binomial when the sample is a large part of the lot. When n is more than about 10% of N, use the hypergeometric distribution, which gives a slightly steeper curve.
  • Treating acceptance as proof of quality. A lot that passes can still contain defectives. Even the new plan accepts about 44% of lots that are 3% defective.

Frequently asked questions

What is an OC curve?

The operating characteristic curve of a sampling plan: the probability of accepting a lot plotted against the lot's fraction defective. It shows how well the plan separates good lots from bad ones.

What is the difference between AQL and RQL (LTPD)?

AQL is the quality level the plan should accept most of the time; the risk of rejecting it is the producer's risk. RQL, or LTPD, is the quality level the plan should reject most of the time; the risk of accepting it is the consumer's risk.

How do I calculate the probability of acceptance?

Add the binomial probabilities of finding 0, 1, …, c defectives in a sample of n when the lot fraction defective is p. A calculator with a binomial CDF, such as the probability distributions tool, gives it directly: Pa = binomial CDF at c with n trials and probability p.

Is a c = 0 plan always better?

No. A zero-acceptance plan rejects a lot at the first defective, which sounds strict, but its OC curve falls gradually. In the example, the c = 0 plan that protects against 5% lots (n = 45) accepts only 64% of lots at 1% defective.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab