Sub topic 7
Setting specifications and defining a defect
This chapter assumes you know basic Lean Six Sigma vocabulary (DMAIC, defect, process) and can compute a proportion and a mean. You also need the CTQ tree from the earlier chapters. Each leaf of that tree is a measurable requirement, such as "delivered within 3 calendar days". A requirement is not yet usable. To count anything, you must say exactly where acceptable ends and unacceptable begins, and what one unit of work is.
From requirement to specification
A specification is the stated limit or target that an output must meet to satisfy the customer requirement. A defect is any single failure of an output to meet a specification. Together they turn "quickly" into a rule that anyone can apply to one order and get a yes or a no.
Compare these statements about the same driver:
- Need: "My order should arrive quickly."
- Requirement: "Orders arrive within 3 calendar days of the order date."
- Specification: "Delivery date minus order date is 3 days or fewer. Anything above 3 days is a defect."
The specification adds three things the requirement lacked: a number, a direction, and a rule for the boundary. Is exactly 3 days acceptable? In this example, yes. You must decide this deliberately, because it changes the defect count.
Types of specification
Specifications come in a few shapes. Choosing the right one depends on whether more is always better, or whether the customer wants the output to land in a band.
| Type | Limits | Typical example | Defect when |
|---|---|---|---|
| One-sided, upper | Upper spec limit (USL) only | Delivery time, call wait time | Value is above the USL |
| One-sided, lower | Lower spec limit (LSL) only | Battery life, tensile strength | Value is below the LSL |
| Two-sided | LSL and USL, often a target between them | Shaft diameter, fill volume | Value is outside the band |
| Attribute (pass/fail) | A yes/no rule | Item and quantity match the order | The rule is not met |
For an upper one-sided spec, a faster delivery is never a defect. Do not invent a lower limit just because a number "feels" too good. Two-sided limits are justified only when the customer is harmed on both sides, such as a part that is too loose or too tight.
A target is the ideal value, and it is separate from the limits. A fill volume spec might read "target 500 ml, LSL 495 ml, USL 505 ml". The target guides process centering, and the limits decide what counts as a defect.
Where the numbers come from
The limits must come from the customer's requirement, not from what the process currently achieves. There are three common sources:
- The customer states the limit directly, for example in a contract or service-level agreement.
- You translate the customer's behavior into a limit. If complaints jump when delivery passes 3 days, that is evidence for a 3-day limit. Validate this with data, as covered later in the tutorial.
- A regulation or standard sets it, such as a legal response time or a tolerance in a product standard.
Internal targets can be tighter than the customer limit. For example, a warehouse may aim to ship within 1 day to leave room for carrier delays. That internal number is a guard band. It is a useful operating goal, but it is not the customer's specification, and defects should be counted against the customer's limit.
Specification limits versus control limits
These two are often confused. Specification limits describe what the customer needs. Control limits, from a control chart, describe what the process actually does when it is stable. They are calculated from process data and say nothing about customer satisfaction. A process can be in statistical control and still produce many defects, if its natural variation is wider than the spec band. A process can also be out of control while all output still falls within spec. Never draw a customer spec on a control chart and call it a control limit.
Defect, defective, and opportunity
Three terms are easy to mix up, and your counting depends on them.
- A unit is the thing you deliver and count, such as one order, one invoice, or one part.
- A defect is one failure to meet a spec. A single unit can have several.
- A defective is a unit with one or more defects.
- An opportunity is a distinct chance for a defect to occur on a unit. It must be something the customer cares about and that you can check independently.
Suppose an order is both late and has a wrong item. That is two defects but one defective unit. If you report "defects" when you mean "defective units", the numbers will not match, and a baseline built on one cannot be compared with a result built on the other.
Metrics built on these counts include:
- Defect rate (or proportion defective): defective units divided by total units.
- DPU (defects per unit): total defects divided by units.
- DPMO (defects per million opportunities): total defects divided by (units times opportunities per unit), multiplied by 1,000,000.
DPMO lets you compare processes that have different numbers of opportunities. It is also easy to inflate artificially, which is covered in the pitfalls below.
Deciding whether something is a defect
Apply the same sequence to every unit. The diagram shows the logic for one spec.
The "missing data" branch matters. If an order has no delivery date, you must decide whether it counts as a defect, is excluded, or triggers a data-quality fix. Silently dropping such rows usually makes the process look better than it is.
Worked example: one opportunity per order
The speed requirement from the CTQ tree becomes a one-sided upper spec of 3 calendar days. The script below applies it to four sample orders.
from datetime import date
SPEC_DAYS = 3 # requirement: delivered within 3 calendar days
orders = [
(date(2026, 3, 2), date(2026, 3, 4)),
(date(2026, 3, 2), date(2026, 3, 6)),
(date(2026, 3, 3), date(2026, 3, 5)),
(date(2026, 3, 3), date(2026, 3, 9)),
]
defects = sum((delivered - ordered).days > SPEC_DAYS for ordered, delivered in orders)
defect_rate = defects / len(orders)
dpmo = defect_rate * 1_000_000 # one opportunity per order
print(f"{defects} defects in {len(orders)} orders, rate={defect_rate:.0%}, DPMO={dpmo:,.0f}")Two orders took 4 and 6 days, so the output is 2 defects in 4 orders, a 50% rate, and a DPMO of 500,000. The comparison uses >, so an order delivered in exactly 3 days is not a defect. Changing it to >= would silently change the spec to "under 3 days". Write the boundary rule down with the spec.
Worked example: two opportunities per order
Now add the accuracy driver. Each order has two opportunities: delivered on time, and contains exactly the items and quantities ordered.
SPEC_DAYS = 3
OPPORTUNITIES_PER_UNIT = 2 # late delivery, order accuracy
orders = [
{"days": 2, "accurate": True},
{"days": 4, "accurate": True},
{"days": 2, "accurate": False},
{"days": 6, "accurate": False},
]
late = sum(o["days"] > SPEC_DAYS for o in orders)
inaccurate = sum(not o["accurate"] for o in orders)
defects = late + inaccurate
defective_units = sum(
o["days"] > SPEC_DAYS or not o["accurate"] for o in orders
)
units = len(orders)
dpu = defects / units
dpmo = defects / (units * OPPORTUNITIES_PER_UNIT) * 1_000_000
print(f"defects={defects}, defective units={defective_units}/{units}")
print(f"DPU={dpu:.2f}, DPMO={dpmo:,.0f}")This prints 4 defects and 3 defective units out of 4, a DPU of 1.00, and a DPMO of 500,000. The fourth order is late and inaccurate, so it contributes two defects but only one defective unit. Reporting "3 of 4 orders defective" (75%) and "DPMO 500,000" are both correct, but they answer different questions, so label them clearly.
Edge cases to settle before measuring
Resolve these in writing when you set the spec:
- Boundary: is a value exactly at the limit conforming? State it.
- Clock rules: calendar days or business days? Does the clock start at order placement or payment confirmation? An order placed Friday evening gives different answers under each rule.
- Customer-caused delays: if the customer was not home for delivery, does the unit still count? Decide whether to exclude, and apply the rule consistently.
- Partial conformance: for attribute specs, is an order with 9 of 10 items right a defect? If the customer treats it as a failure, so should you.
- Rounding and units: hours rounded to days can move a unit across the limit.
Common mistakes with specifications
- Copying the process average into the spec. This hides the problem, as noted earlier.
- Counting opportunities that the customer does not care about. Adding many trivial checks lowers DPMO without improving anything the customer sees. Count only customer-relevant opportunities.
- Changing the spec mid-project. If the limit moves, the baseline and the result are no longer comparable. Re-baseline if the customer genuinely changes the requirement.
- Mixing defects and defectives in one report.
- Leaving the spec undocumented. Two analysts with the same data and unstated rules will produce two different defect counts. The next chapter's operational definition closes this gap.
Exercise
A support team's CTQ requirement is "first response within 4 business hours." In a sample of 200 tickets, 30 got a late response, and 6 of those 30 also had an incorrect first answer, which the team treats as a second spec. Each ticket has 2 opportunities (timeliness and correctness), and 10 other tickets, all on time, had an incorrect answer. How many defects and defective tickets are there, and what are the defect rate and DPMO?
Show answer
Late responses: 30. Incorrect answers: 6 (among the late tickets) plus 10 (on time) = 16. Total defects = 30 + 16 = 46. Defective tickets: the 30 late ones plus the 10 on-time incorrect ones = 40 (the 6 overlap are already counted among the 30). Defect rate = 40/200 = 20%. DPMO = 46 / (200 × 2) × 1,000,000 = 115,000.
Exercise
A team writes the spec "orders must ship quickly, ideally within 1 day, and certainly under 3 days." Name two problems with this as a specification, and rewrite it.
Show answer
It mixes a target (1 day) with a limit (3 days) without labeling them, and "under 3 days" leaves the boundary unclear (is exactly 3 days a defect?). It also does not say whether days are calendar or business days, or when the clock starts. A rewrite: "Target: ship within 1 calendar day of order confirmation. Upper spec limit: 3 calendar days from order confirmation; an order shipped in exactly 3 days conforms, and more than 3 days is a defect."