Production Yield and Scrap: Which Run Size? | Vose Software

ModelRisk example · Manufacturing

Production Yield and Scrap

How many parts must we make to deliver 4,800 good ones? An uncertain defect rate, and the run size that pays.

  • Complexity: ★★★★★
  • Free Excel workbook (MF-01)
  • Needs ModelRisk: free trial

From the model’s saved run

Which run size?

The chance of meeting the order, and the expected cost of making the parts and of any shortfall.

Run size (parts)Chance of meeting itExact chanceExpected cost, US$k95th pct cost, US$kLowest cost
4,95045.0%45.0%203.8220.8
5,00080.8%81.0%201.5211.0✔ lowest
5,05095.8%95.8%202.3202.0
5,10099.3%99.3%204.0204.0
5,15099.9%99.9%206.0206.0
5,200100.0%100.0%208.0208.0
Expected cost by run size

The business question

A plant makes precision parts in runs. The current order is for 4,800 good parts. Every part costs US$40 to make whether it turns out good or not, and every part short costs US$250 — an express re-run and a penalty in the contract.

The last batch was inspected part by part: 12 of 400 were defective, so the defect rate is about 3% — but only about: 400 parts cannot pin it down. Within a run, defects also occur at random. The planner wants the run size that balances the cost of making too many parts against the cost of making too few.

Who it is for
Production planners, quality engineers, operations managers; a first ModelRisk model.
Main outputs
The chance of meeting the order and the expected cost for six run sizes, simulated and exact · the number of good parts from the run looked at in detail (5,000 as shipped), with the defect rate uncertain and as if it were known.

How the model works

Three sheets after this one, read from left to right. Each one feeds the next.

  1. Inputs sheet

    The parts ordered, the cost of a part and of a part short. The parts inspected and the defects found; the smallest run size and the step between the sizes compared. The run size to look at in detail.

  2. Production sheet

    The defect rate is Beta(defects + 1, good parts + 1): what 400 inspected parts say about it. Each run size gets a Binomial number of defects at that rate. The good parts, the shortfall and the cost follow. The exact chance of meeting the order comes from the Beta-Binomial distribution.

  3. Results sheet

    For each run size, the chance of meeting the order and the expected cost, charted. The good parts from the run looked at in detail, with the defect rate uncertain and as if it were known.

ModelRisk techniques

  • Beta defect rate VoseBeta
  • Binomial defects VoseBinomial
  • Exact Beta-Binomial VoseBetaBinomialProb
  • Six run sizes compared

Find similar models

Product

The results in detail

How many good parts?

A run of 5,000 parts (Inputs sheet): the defect rate uncertain, and as if it were known exactly.

Good parts from the run in detail — cumulative probability
MeasureUnit5th pctMedian95th pctMean
Good parts, defect rate uncertainparts4,7564,8424,9074,838
Good parts, defect rate knownparts4,8294,8504,8704,850
MeasureUnitValue
Chance of meeting the order, rate uncertain80.8%
Chance of meeting the order, rate known100.0%
Exact, rate known (BINOM.DIST)100.0%

How to read these results

  • The inspection found 3% defective, but 400 parts cannot pin the rate down: it could plausibly be anywhere from about 2% to 5%. That uncertainty, more than the randomness within a run, decides whether the order is met.
  • Treating the 3% as exact, a run of 5,000 looks certain to meet the order. With the rate as uncertain as the data say, the chance is about 81%: the same run, very different confidence. Ask how a rate was estimated before trusting a plan built on it.
  • Every part costs US$40 to make and every part short US$250. The expected cost is lowest for a run of 5,000 (about US$201,500), which meets the order about four times in five. A run of 5,050 costs only about US$800 more on average and meets it 96% of the time — cheap insurance against the penalty.
  • Inspecting more parts narrows the rate's range and lets the run size come closer to the order: try 1,200 parts inspected with 36 defects on the Inputs sheet.
  • The simulated chances agree with the exact Beta-Binomial values on the Production sheet — a quick check that is available for simple models like this one.

See it move. Open the workbook, change an input on the Inputs sheet and run the simulation: every table and chart on this page updates in Excel.

Inputs and assumptions

Every assumption in the model, with its uncertainty and where it comes from. The figures are illustrative.

The order 3 inputs
AssumptionUnitValue
Good parts orderedDue at the end of the month.parts4,800
Cost to make one partMaterial, machine time and labour; good or not.US$40
Cost of each part shortAn express re-run and the contract's penalty.US$ a part250
Inspection data 2 inputs

The last batch, inspected part by part.

AssumptionUnitValue
Parts inspectedparts400
Defective parts foundparts12
Run sizes to compare 3 inputs
AssumptionUnitValue
Smallest run sizeSix sizes are compared.parts4,950
Step between run sizesparts50
Run size looked at in detailOne of the six: its good parts with the rate uncertain and known.parts5,000

Units and conventions

Money
US$; totals in US$ thousand.
Defect rate
The share of parts that come out defective.
Run size
The number of parts started; good parts = run size − defects.

Key assumptions and limitations

Defects
Each part is defective independently, at the same rate within a run.
Rate
The inspected batch represents the process; nothing has changed since.
Costs
Every part made costs the same; surplus good parts have no value; every part short costs the same.
Data
The plant and all figures are invented for this example.

How to use it

  1. Enter the order, the cost of a part and the cost of a part short.
  2. Enter how many parts were inspected and how many were defective.
  3. Run a simulation from the ModelRisk ribbon (10,000 samples with a fixed seed are set).
  4. Choose the run size with the lowest expected cost, and check its chance of meeting the order.

ModelRisk functions used

VoseBeta
The uncertain defect rate, from the number of defects in a sample.
VoseBinomial
The number of defective parts in a run.
VoseBetaBinomialProb
The exact chance of at most so many defects when the rate itself is uncertain.
VoseSimMean, VoseSimPercentile
Statistics of the simulation on the Results sheet.

Further reading

  • Monte Carlo simulation explained (Vose guide)
  • Vose, D. (2008). Risk Analysis: A Quantitative Guide, 3rd edition. Wiley — the Beta distribution for a probability and the Binomial process.
  • Montgomery, D. C. (2019). Introduction to Statistical Quality Control, 8th edition. Wiley.