A manufacturer or trader receives a lot of thousands of parts from a supplier; testing the whole lot is expensive or impossible. Decision: randomly sample n items, accept the lot if the defect count is at most c, reject if more. Academic name: Acceptance Sampling Plans / Statistical Quality Control; foundational Dodge-Romig (1959), modern Schilling-Neubauer (2017).
In plain words
Sound familiar?
- We receive weekly lots of 50K-200K parts from a supplier; testing the whole lot is not economical or requires destructive testing (pressure, leak, fatigue) — sampling is mandatory, but the 'how many to sample + what defect cap' decision is left to a planner's experience.
- In incoming quality control we hear 'this lot ran 1% defective, the customer returned a 5K shipment' complaints; the rejection decision has no statistical foundation, the accept/reject ratio varies widely supplier to supplier.
- We write AQL (Acceptable Quality Level) 0.65% in the contract, but we do not know the OC curve (Operating Characteristic curve) of that target — producer risk + consumer risk + AOQL (average outgoing quality limit) are not numerical.
- We use the same sampling plan for every supplier; yet some suppliers are 5-year-track reliable, others are new — we don't apply 'tightened, normal, reduced' switching rules (ISO 2859), we always sample at the same rate.
- We've heard of double sampling or sequential sampling, but the floor team works with single-stage; the average sample number (ASN) and total inspection cost are not optimised.
- When reject rates are high, 'the supplier pushes back, so we just enlarge the sample and re-inspect' — ad-hoc fixes instead of structural switching rules.
- The lot-homogeneity assumption (lot from a single shift on a single machine) is often violated; the supplier mixes shifts and machines into one 'lot' — the sampling plan gives biased results when this assumption breaks.
Why it matters
How it's solved
Technical depth
How it's solved
Technical depthIn one sentence: Set the contractual AQL (acceptable quality level) and LQL (unacceptable quality level), pick producer risk (α ≈ 5%) and consumer risk (β ≈ 10%), then derive the sample size n and acceptance number c from design tables or statistical formulas — the OC curve (acceptance probability as a function of true defect rate p) hits both risk targets.
This problem is studied in the statistics and Operations Research (the discipline that uses math and computers to solve business decisions) literature as Acceptance Sampling Plans, and within the broader frame of Statistical Quality Control. The canonical foundational work was laid down in the 1940-50s with single and double sampling plans (AOQL-based design); sequential analysis (SPRT — Sequential Probability Ratio Test) was developed in the same era; ISO 2859 / ANSI Z1.4 standards then became the dominant AQL-based industry tables. Solution in three stages:
1. Modelling. Input data: (a) lot characteristics — lot size N (5K-500K parts), supplier history (defect rate in the previous 10-50 lots, switching-rule state), part type (destructive test needed, critical characteristic), (b) quality targets — AQL (Acceptable Quality Level — typically 0.1-2.5% in contract), LQL (Lot Quality Level, or LTPD — undesired quality level, typically 3-10%), AOQL (Average Outgoing Quality Limit — upper bound on average outgoing quality after acceptance), (c) risk targets — producer risk α (typically 5% — probability of rejecting a good lot), consumer risk β (typically 10% — probability of accepting a bad lot), (d) cost information — cost per inspection, cost of accepting a defective lot (customer complaint + return + penalty), cost of rejecting a lot (re-inspection, supplier negotiation, delivery lag), (e) operational constraints — inspection capacity (hours/day, people), destructive testing (sample size economically bounded), time window (testing must finish before lot enters production). Decision variables: sample size n, acceptance number c, in multi-stage plans (n1, c1, n2, c2). OC curve (Operating Characteristic): for a true lot defect rate p, the acceptance probability Pa(p) under the plan — for single sampling computed from binomial or hypergeometric distribution.
2. Plan design. Five canonical approaches: (a) Single sampling — sample n parts once; if defects k ≤ c accept, if k > c reject; simplest, most common, ASN = n fixed. (b) Double sampling — first stage n1, accept if k1 ≤ c1, reject if k1 > r1, in the intermediate region take n2 more, accept if total k1+k2 ≤ c2. Expected sample number (ASN — Average Sample Number) 20-40% smaller than single-stage, OC curve similar. (c) Multiple sampling (3-7 stages) — even lower average sample but operationally complex. (d) Sequential sampling (SPRT-based) — accept/reject/continue decision after each item, ASN 50-70% smaller than single-stage. (e) ISO 2859 / ANSI Z1.4 standard plans — AQL-based tables, switching rules (tightened — tighten when quality worsens, reduced — loosen when quality stays good, normal — start), the backbone of industry practice. Modern extensions: Bayesian-economic plans (prior distribution + per-lot economic decision), rectifying inspection (rejected lots 100%-tested and accepted), variables sampling (continuous measurement instead of pass/fail).
3. Field integration. Output is four-layered: (a) incoming QC work instruction — for each supplier-part combination the switching-rule state (normal/tightened/reduced), active plan (n, c), sample-selection instructions, accept/reject decision tree, (b) quality database — per-lot decision history (accept/reject, defect count, point on OC curve), supplier performance trend (CUSUM or control chart), AOQ (Average Outgoing Quality) tracking, (c) supplier feedback report — monthly lot statistics, switching-rule changes, Pareto analysis of defect types, recommendation to the quality team, (d) management dashboard — annual rejected-parts ratio, customer complaint cost, inspection capacity utilisation, economic AOQ trend. Upstream integration: ERP (incoming-lot trigger), warehouse management system (lot accept/reject tagging), supplier management system (switching rule + performance score). Quarterly quality committee: AOQ trend, switching-rule distribution, economic impact, supplier-based plan revision.
Alternatives
Manual + spreadsheet + standard acceptance-sampling table
FreeZero licence (table from a book)
Who it fits: Small operation (< 5 lots/week, simple attribute inspection)
- + Zero software cost
- + Standard acceptance-sampling tables (including ISO 2859) are public, read from a textbook
- + Operator training at table-reading level
- − OC curve not drawn manually, protection profile unknown
- − Switching rules tracked by hand → forgotten
- − Supplier-specific calibration weak
- − Double / sequential sampling overload the operator
- − Customer-complaint cost is not statistically grounded
Local statistics / quality management software
Enterprise$8K-40K licence + $3K-12K/year maintenance (regional SMB pricing)
Who it fits: Mid-size operation (5-30 lots/week, multiple suppliers)
- + Local-language UI and support
- + ERP / WMS integration usually ready
- + Local regulatory familiarity
- − OC curve module is limited, typically static ISO 2859 table display
- − Switching rules are manual or semi-automatic
- − Sequential sampling or economic-decision plans not supported
- − Limited integration with academic formulations
International quality management platform / SQC suite
Enterprise€100K-500K licence + €50K-200K/year maintenance
Who it fits: Large operation (30+ lots/week, multi-site, regulated sector)
- + OC curve + AOQ analysis + switching rules automatic
- + Single, double, multiple, sequential plans mature
- + ISO 2859 / ANSI Z1.4 standard integration
- + Bayesian-economic plan support
- + Supplier-performance trends (CUSUM, control chart) standard
- − High licence + 6-15 month rollout
- − Local-regulatory customisation adds project time
- − Internal statistics specialist required for the academic depth
Open-source statistics language + custom SQC module
Open SourceLicence free; in-house build 15-30 weeks, or $150K-450K consultancy
Who it fits: Operation with statistics / OR team, academic research + field integration
- + No licence cost
- + Single-stage, double-stage, sequential, and economic-decision plan formulations well-defined in open-source solvers
- + OC curve + AOQ + ASN analysis fully customisable
- + Supplier-performance modelling (CUSUM, EWMA) modelled freely
- − Internal statistics + OR expertise required
- − Academic prototype to production takes 9-18 months
- − ERP / WMS integration is a separate module
- − Maintenance and standard updates in-house
Recommendation
Ask in the meeting
- Which formulation does the acceptance sampling module support — single-stage, double-stage, sequential, ISO 2859 / ANSI Z1.4 switching rules, economic-decision plans? In a demo with lot size 50K + AQL 0.65% + LQL 4%, can we see the OC curve?
- Is the OC curve (Operating Characteristic curve) automatically drawn for every plan — is it binomial or hypergeometric based? Are AOQL (Average Outgoing Quality Limit) and ASN (Average Sample Number) reports standard?
- Are switching rules (tightened — normal — reduced) automatic under ISO 2859, or do they require manual approval? Over what history is the switching-rule state evaluated for each supplier-part combination?
- Is double-stage, multi-stage or sequential sampling supported? Is the rule for which plan to recommend under which conditions defined in the system?
- Is variables sampling (continuous measurement, not attribute) supported? Is it integrated with process capability indices (Cp, Cpk)?
- Is economic-decision planning (per-lot economic decision — inspection cost, acceptance cost, rejection cost balanced) supported? How is the prior quality distribution defined?
- Is supplier-performance tracking (CUSUM, EWMA control chart, Pareto defect analysis) standard? Does the system alert when the lot-homogeneity assumption is broken?
- If we end the contract, in which standard format (CSV, JSON, Parquet) can we export the plan decision history, OC curve parameters, switching-rule change log, supplier performance data and AOQ trend?
Technical details
Editor’s note
This problem is a statistical quality control problem; not equipment-side maintenance (#009) but the statistical-sample acceptance/rejection of incoming items. On the floor it is known as “incoming quality control”, “lot inspection” or “quality sampling”. In the academic literature it is the Acceptance Sampling Plans family, sitting within the broader Statistical Quality Control; Dodge and Romig’s 1959 Sampling Inspection Tables is the foundational table source, Schilling and Neubauer’s 2017 Acceptance Sampling in Quality Control is the modern reference, Wald’s 1947 Sequential Analysis is the foundation of dynamic decision theory, and Montgomery’s 2019 Introduction to Statistical Quality Control is the standard textbook for the OC curve and process-quality integration. The international standards ISO 2859 (general acceptance sampling procedures) and ANSI/ASQ Z1.4 (attribute plans, switching rules) are the backbone of industry practice.
Distinction from #009 (Preventive Maintenance): Planned maintenance before equipment fails — an on-machine decision. Acceptance Sampling is a statistical-sample accept/reject decision on incoming parts/lots — a quality-inspection statistical decision. The two problems sit side by side in the same sector (manufacturing) but on different layers: PM keeps the machine running, AS balances the producer-consumer risk on incoming parts.
Most-skipped point in the sector: the OC curve (Operating Characteristic curve). The practitioner’s intuition “take the AQL 1% plan” does not count the plan’s actual protection profile (consumer risk + producer risk + AOQL). The OC curve is the function that maps the true lot defect rate p to the plan’s acceptance probability Pa(p); at p=0 Pa=1 (a perfect lot is always accepted), at p=1 Pa=0 (a fully defective lot is always rejected), and an S-curve in between. The numerical basis of plan design: AQL = p_α (Pa = 1−α, typically 95% acceptance), LQL = p_β (Pa = β, typically 10% acceptance). The academic approach draws the OC curve for every plan and compares it to the expected quality; the practitioner’s intuition only looks at the (n, c) pair, no curve is produced, the protection profile remains a non-numerical claim. Schilling and Neubauer (2017) and Montgomery (2019) treat the OC curve as the central object in any textbook treatment; in vendor selection, the question “demo: under an AQL 0.65% plan, what is the acceptance probability for p=3%” tests whether OC curve support is real.
Second skipped point: switching rules and supplier-based plan calibration. ISO 2859 and ANSI Z1.4 do not give a single plan but a three-plan-one-system: normal (start, average compliance), tightened (auto-tighten if 2 of the last 5 lots were rejected), reduced (loosen if all of the last 10 lots passed + the supplier’s process is stable). Supplier-based switching avoids unnecessary cost on reliable suppliers + auto-raises protection on worsening suppliers. The practitioner’s “use the same plan everywhere” intuition skips the switching-rule machinery → total inspection cost stays 30-50% high, quality trend goes untracked.
Third skipped point: the lot-homogeneity assumption. The single-sampling formula assumes the lot is single-process, single-shift output (hypergeometric or approximate binomial distribution). In practice, suppliers mix lots from different shifts, machines and raw-material batches into one “lot” delivered to the customer; the defect distribution is then not concentrated but segmented. The OC curve gives biased results; the actual consumer risk under the plan is higher than computed. Fix: a “single-process, single-shift lot” clause in the supplier contract, or move to stratified sampling (segmented sampling), or integrated variables sampling with process capability indices (Cp, Cpk).
A step-by-step path for an SMB
Stage 1 — Measure first, plan later. At least 12 months of lot history: for each supplier-part combination the lot size, sample size (n), defects found, accept/reject decision, post-acceptance defects observed in the field (including customer complaints). Defective-part cost line items: hourly inspection cost, post-acceptance defect cost (return + contract penalty + production downtime), rejection cost (re-inspection + supplier negotiation + delivery lag). Supplier-performance inventory: accept/reject ratio in the last 50 lots, AOQ trend, Pareto of defect types. Quality target contract: AQL, LQL (written in contract), producer/consumer risks (α, β).
Stage 2 — Build the knowledge capital. Supplier-based quality trend (CUSUM or simple control chart). OC curve for current plans (a binomial approximation is enough to build intuition). AOQL calculation: upper bound on average outgoing quality after the accept-reject balance. ASN calculation: inspection-cost savings from moving single → double / sequential. Switching-rule thresholds: tightened trigger from the last 5/10 lots, reduced trigger from the last 5/10 lots.
Stage 3 — Pilot. 12-20 weeks. In a sub-set (e.g. the 3 highest-volume suppliers and 5 part types) run a systematic plan: AQL and LQL in the contract, switching rules active, OC curve drawn for every plan, AOQ trend reported weekly. Decisions stay with the quality team, the system recommends. Success criterion in writing, beforehand: total inspection cost down 15% minimum, customer complaints down 20%, AOQ variance down 30%.
Stage 4 — Rollout. 6-12 months to scale across all supplier-part combinations. Double / sequential sampling is switched on (for high-volume, stable suppliers). Bayesian-economic plans become a later option (per-lot economic decision). Quarterly quality committee: AOQ trend, switching-rule distribution, supplier performance score, economic impact report.
Risks — what can go wrong
Supplier quality drift (drifting AQL). The supplier starts at the contracted AQL (0.65%), the process drifts over time (new operator, material change, machine wear); the drift is slow, so even with a reduced switching state it goes unnoticed → AOQ steadily degrades, customer complaints suddenly spike. Fix: CUSUM or EWMA control chart for supplier-based trend tracking, automatic switching-rule trigger, quarterly supplier process capability (Cp, Cpk) report.
Reject-rate “rewarding” misuse. Some operations score the quality team on “number of lots rejected” — the team develops a bias toward unnecessary rejection, producer risk α inflates, the supplier relationship deteriorates, re-inspection cost balloons. Fix: score the quality team not on AOQ + customer-complaint cost but on a “correct accept + correct reject” ratio + economic impact.
Lot-homogeneity assumption breaks. If the supplier mixes shifts/machines/raw-material batches into one “lot”, the OC curve gives biased results; the actual consumer risk under the plan is higher than computed. Fix: a “single-process, single-shift lot” clause in the contract, move to a stratified sampling model, or integrated control with variables sampling (process capability indices).
Single-vendor lock-in — QMS. Without a contract clause for “annual standard-format export (CSV, JSON, Parquet) of plan decision history, OC curve parameters, switching-rule change log, supplier performance data, AOQ trend”, leaving the system means losing the operation’s quality memory — 3-7 years of supplier process calibration, switching-rule history, and customer-complaint-defect linkage lock at one supplier.
Solution method — technical view
| Approach | Typical scale | Solve time | OC curve + AOQL | Typical ASN |
|---|---|---|---|---|
| Single sampling (Dodge-Romig 1959) | All scales | Instant (table) | Binomial/hypergeometric | n fixed |
| Double sampling (Dodge-Romig 1959) | All scales | Instant (table) | Two-stage OC | 20-40% lower |
| Multiple sampling (3-7 stages) | Mid-large | Table + computation | Multi-stage OC | 30-50% lower |
| Sequential sampling (SPRT) | Mid-large | Computation | Continuous-decision OC | 50-70% lower |
| ISO 2859 / ANSI Z1.4 (switching rules) | All scales (industry standard) | Table + workflow | Table-based | Per stage |
| Bayesian-economic (Pearn-Wu 2007) | High-value lots | Computation-hours | Prior + posterior | Economic balance |
| Variables sampling (continuous) | Process-capability data | Computation | Normal-distribution based | Lower than attribute |
Objective function choice:
- Objective 1 — Minimum total inspection cost: Classic plan design; minimise ASN subject to α and β constraints.
- Objective 2 — AOQL (Average Outgoing Quality Limit) bound: Dodge-Romig’s original approach — guarantee the upper bound on average outgoing quality after acceptance.
- Objective 3 — Minimum economic total cost (Bayesian-economic): Minimise the expected sum of inspection + acceptance + rejection costs under a prior distribution.
- Objective 4 — Minimum customer-complaint risk: Tight protection through the consumer risk β, looser producer risk α.
Multi-objective: weighted sum (inspection + AOQL + customer complaints), hierarchical (regulatory AQL first, then economic balance), or Pareto front (quality team choice).
Plan variants — pick by the field:
- Single sampling (Dodge-Romig 1959): Single stage, simplest. Low-mid volume, simple attribute inspection.
- Double sampling (Dodge-Romig 1959): Two stages, ASN 20-40% lower. Mid-high volume, stable supplier.
- Multiple / sequential: multi-stage or item-by-item decision. High volume, fast-decision setting.
- ISO 2859 / ANSI Z1.4 switching plans: Industry standard approach, supplier-based calibration via switching rules.
- Variables sampling: Integrated with process capability indices (Cp, Cpk), using continuous measurement — same protection with smaller samples.
- Bayesian-economic plans (Pearn-Wu 2007): Prior distribution + per-lot economic decision. High-value lots.
- Rectifying inspection: Rejected lots are 100%-tested and accepted — guarantees post-acceptance AOQ.
Academic references
Listed in the sources block of the page frontmatter. Dodge and Romig (1959) foundational tables; Wald (1947) sequential analysis; Schilling and Neubauer (2017) modern standard reference; Pearn and Wu (2007) Bayesian-economic plan; Montgomery (2019) SQC textbook.
Sources
- Dodge, H. F. and Romig, H. G. (1959). Sampling Inspection Tables: Single and Double Sampling (2nd ed.). Wiley. Foundational AOQL-based plan tables.
- Wald, A. (1947). Sequential Analysis. Wiley. Sequential sampling theory, SPRT (sequential probability ratio test) — the foundation of modern Bayesian-based plans.
- Schilling, E. G. and Neubauer, D. V. (2017). Acceptance Sampling in Quality Control (3rd ed.). Chapman and Hall/CRC. Modern standard reference — single, double, multiple, sequential plans.
- Pearn, W. L. and Wu, C.-W. (2007). An effective decision-making method for product acceptance. Omega, 35(1), 12-21. Bayesian-economic plan approach.
- Montgomery, D. C. (2019). Introduction to Statistical Quality Control (8th ed.). Wiley. The textbook reference for SQC and the OC curve.
- YÖK Thesis Center — keyword: ‘kabul örnekleme’, ‘acceptance sampling’ or ‘kalite kontrol planı’ — 25+ theses from TR academia. tez.yok.gov.tr
Glossary
- Acceptance Sampling
- Statistical-OR practice of inspecting a random sample of n items from a lot and deciding to accept or reject the entire lot based on whether the number of defects is below or above an acceptance threshold c.
- Operating Characteristic Curve
- Function relating a lot's true defect rate p to the probability of acceptance Pa(p) under a sampling plan (n, c) — drawn as a curve from p=0 (Pa=1, certain accept) to p=1 (Pa=0, certain reject).
- MIP
- An optimization model where some decision variables are forced to be whole numbers (e.g. number of trucks, number of shifts).
- Preventive Maintenance
- Scheduled maintenance performed before an asset fails — to avoid unplanned downtime.
Related problems
A New Part Order Arrives — How Do I Get the Optimal Operation Sequence + Machine Choice + Setup?
If you are an SMB CNC manufacturer, tooling shop or engineering workshop producing 50-500 different parts, every new order puts the same decision in front of you: you take the customer's CAD model and have to work out on which machine, in which order, with which tool and fixture, and in how many setups the part will be made. If you simply write down the first feasible sequence that comes to mind, setup time grows 3-5x and parts that miss tolerance are reworked; finding the right sequence means comparing several alternative routings for the same part. When the decision lives only in one engineer's head, the similar-part memory walks out of the door when that engineer leaves, and routings of older parts are not refreshed when a new machine is bought. This page is for production-engineering teams who want to make the operation sequence and the machine assignment written and comparable as the bridge from design to make.
Backward from the Customer Order — Which Raw Material, When, and How Much Should I Order?
For mid-size manufacturing SMBs running 50-500 end items and 200-2,000 raw materials and sub-components (automotive Tier-2, white-goods component shops, furniture and assembly, machinery). With each product's parts list (BOM) and each part's procurement or production lead time on file, the question is: a customer orders 200 units of product X with a fixed delivery week — which raw materials in what quantity must be ordered which week, and which sub-parts must enter assembly when? Material requirements planning (academic name MRP) answers this question backwards from the delivery date and is the core logic underneath every ERP. Done on paper or by 'my supplier always takes 3 weeks' rules of thumb, you either run out and stop the line, or burn cash on excess stock.
Five Suppliers Quote the Same Part — How Much Do I Buy from Each?
You run a manufacturer with 20-200 staff and buy the same raw material or component from 4-8 different suppliers. Each supplier differs on price, quality, lead time, capacity, payment terms, and financial stability; deciding who stays on the approved list and how much of each order goes to whom are two separate calls. A wrong pick can trigger a months-long quality crisis or stop the line when a single supplier fails; the 'cheapest bid wins' approach hides quality, late-delivery, and compliance costs and ends up 15-40% more expensive. Scoring 5-15 bids across 8-12 criteria by hand in a spreadsheet becomes inconsistent fast.