Sub topic 3
Continuous versus attribute data
This chapter assumes you know the DMAIC phases, can describe a process by its inputs and outputs, and are comfortable with the terms mean, proportion and sample. It covers the two main data types in Lean Six Sigma, how to choose between them, and the errors that follow from a wrong choice.
Why the data type is a planning decision
Every metric in a data collection plan produces one of two kinds of data. The kind you pick decides three things:
- How many observations you need. Attribute data usually needs far more.
- Which analysis tools you can use later.
- How much information each observation carries.
You make this choice before collecting anything. Changing it afterwards usually means collecting again.
Continuous data
Continuous data comes from measuring on a scale where values can fall anywhere between two points. Time, length, weight, temperature and cost are typical examples. A value such as 4.37 minutes is meaningful, and so is 4.371 if your instrument can resolve it.
Continuous data has these properties:
- Differences are meaningful. The gap between 3 and 4 minutes is the same size as the gap between 8 and 9 minutes.
- You can compute a mean and a standard deviation, and you can draw a histogram or a run chart that shows shape and spread.
- Each observation tells you how far a result is from a target, not only which side of a limit it falls on.
In practice, no measurement is truly infinitely fine. A stopwatch that reads to the nearest second gives whole numbers. Treat data as continuous when the scale is fine enough that many different values appear in your sample. A rough check is that the values repeat only occasionally, and that the resolution is small relative to the spread of the process.
Attribute data
Attribute data (also called discrete data) puts each observation into a category or counts events. There are three common forms:
| Form | What you record | Example |
|---|---|---|
| Binary (pass/fail) | One of two outcomes per unit | An invoice is defective or not |
| Categorical | One of several named categories | Defect type: wrong price, wrong quantity, wrong item |
| Count | Number of occurrences in an area or period | Number of calls abandoned per hour |
Two related terms matter when you plan:
- A defective is a unit that fails. An invoice with three wrong fields is still one defective unit.
- A defect is one individual failure. That same invoice has three defects.
Defective units are summarized as a proportion. Defects are summarized as a count per unit or per opportunity. Mixing the two produces rates that cannot be compared. The decision rule in an operational definition has to say which one you are counting. The invoice example in the Topic Spine does this: any mismatch in a listed field counts as one defective invoice, regardless of how many fields differ.
A worked comparison
Suppose a team is concerned about slow order entry. The customer requirement is that an order is entered within 30 minutes of receipt. The same process can be measured two ways.
- Attribute: for each order, record "within 30 minutes" or "late". After 40 orders, you might see 6 late. The late rate is 15%.
- Continuous: for each order, record the minutes from receipt to entry. After the same 40 orders, you have 40 numbers, such as 12, 18, 27, 31, 22 and so on.
The attribute record tells you that 15% fail. It does not tell you whether the late orders were 31 minutes or 3 hours, whether the typical order takes 12 minutes or 28, or whether the process is drifting toward the limit. The continuous record answers all of these, using the same 40 orders.
The following Python snippet shows both summaries computed from one set of times.
import statistics
minutes = [12, 18, 27, 31, 22, 15, 29, 44, 20, 16,
25, 19, 33, 14, 28, 21, 17, 26, 23, 35]
limit = 30
late = sum(m > limit for m in minutes)
print(f"Attribute view: {late} of {len(minutes)} late ({late / len(minutes):.0%})")
mean = statistics.mean(minutes)
stdev = statistics.stdev(minutes)
print(f"Continuous view: mean = {mean:.1f} min, standard deviation = {stdev:.1f} min")
print(f"Longest order: {max(minutes)} min, {max(minutes) - limit} min over the limit")Running it prints 4 of 20 late (20%), a mean of 24.7 minutes, a standard deviation of about 8.1 minutes, and a longest order of 44 minutes. The attribute line is a single number. The continuous lines show that the mean sits close to the limit and the spread is wide, which points to where to look next.
Converting between types
You can always convert continuous data to attribute data, but not the other way round. Turning minutes into "on time" or "late" discards information permanently. A continuous record can be reclassified against a new limit later, such as 25 minutes, without recollecting. An attribute record cannot.
For this reason, when a measurable quantity sits behind a pass/fail judgment, record the quantity and derive the pass/fail result from it.
When attribute data is the right choice
Continuous data is not always possible or sensible. Attribute data is the correct choice when:
- The characteristic is a judgment, not a quantity. Examples are whether a form is complete, whether a label is correctly applied, or whether a claim was approved.
- Measuring the quantity costs more than the decision is worth. A go/no-go gauge is faster than a micrometer.
- The requirement itself is stated as pass/fail, such as "no missing signature".
- You are classifying defect types, which are categories by nature.
Attribute data has a cost, which you pay in sample size. The next sections of this plan cover this in detail, but the shape of the problem is easy to see now. Estimating a proportion to within plus or minus 5 percentage points at 95% confidence needs about 385 observations when the true rate is unknown. A mean of a continuous measure can often be estimated well with a few dozen observations, because each one carries more information.
Choosing the type for a metric
Work through these questions in order.
- What does the Critical to Quality requirement say? If it is a limit on a quantity ("within 30 minutes"), a continuous measure exists.
- Can you measure the quantity at an acceptable cost and with acceptable resolution? If yes, prefer continuous.
- If not, can a go/no-go test be applied consistently? If yes, use attribute data and write the decision rule carefully.
- Will you need to know how bad a failure is, or how close good units are to the limit? If yes, push for continuous.
Effects on the rest of the plan
The data type flows into later chapters of this tutorial.
| Plan element | Continuous data | Attribute data |
|---|---|---|
| Operational definition | Must state the instrument, units, resolution and measurement point | Must state the criterion and a decision rule for borderline cases |
| Sample size | Depends on spread of the measure and the precision wanted | Depends on the proportion and the margin of error; usually larger |
| Measurement system check | Compare repeated measurements, which gives numbers that can be analyzed for spread | Compare classifications, for example percent agreement between appraisers |
| Summary | Mean, standard deviation, histogram, run chart | Proportion, counts, Pareto chart of categories |
Common errors
- Treating counts of defective units and counts of defects as the same thing. Decide which you report and write it into the decision rule.
- Recording only pass/fail when a number was available. The team later asks "how close were we?" and cannot answer.
- Using ordinal ratings as if they were continuous. A satisfaction score from 1 to 5 is a set of ordered categories. The gap between a 2 and a 3 is not guaranteed to equal the gap between a 4 and a 5. Averages of such scores are widely used but should be read with care.
- Calling data continuous when the resolution is too coarse. If a process runs between 10 and 12 minutes and the clock records whole minutes, you only see three values. The data behaves more like categories.
- Rounding at the point of recording. Round later, in analysis, not on the form.
- Mixing units or measurement points in one column, for example some times measured from receipt and others from first touch.
Attribute data and the operational definition
Attribute data depends heavily on judgment, so it is where weak definitions do the most damage. Two people looking at the same invoice may disagree on whether a field "matches". The definition must remove that room for opinion. Compare these two statements.
- Weak: "An invoice is defective if it contains errors."
- Stronger: "An invoice is defective if at least one of customer name, item code, quantity or unit price differs from the signed purchase order. Formatting differences do not count."
The second names the fields, names the reference document, and says what to ignore. The next chapters build on this and show how to test whether two people apply the rule the same way.
Exercise
A call center's CTQ is that customers are answered within 20 seconds. A team proposes recording each call as "answered in time" or "not answered in time". Give two reasons to record the seconds to answer instead, and name one situation where the pass/fail record would be the better choice.
Show answer
First, the seconds record shows how far late calls were and how close on-time calls came to the limit, which pass/fail hides. Second, it needs a smaller sample to estimate the typical answer time, and you can later reclassify against a different limit without collecting again. Pass/fail would be better if the phone system can only report whether the call met the threshold and cannot log the actual time, or if timing each call manually would cost more than the decision justifies.
Exercise
An auditor checks a purchase order and finds three wrong fields on one invoice and one wrong field on another. How many defectives and how many defects are there? Which one does the invoiceerrorrate decision rule count?
Show answer
There are 2 defectives (two invoices) and 4 defects (three plus one wrong fields). The decision rule counts defective invoices, so each invoice scores one regardless of how many fields differ, giving a count of 2.