Sub topic 6
Stratification: planning to find where variation lives
This chapter assumes you can already state a metric and write an operational definition for it. You should also know the difference between attribute data (pass/fail counts) and continuous data (measured values). Here you decide which fields to record, beyond the measurement itself, so that the data can later show where the problem comes from.
What stratification is
Stratification means separating data into groups according to a factor that might influence the result. A factor is a characteristic of the process or its context, such as team, shift, machine, customer segment or week. The groups are called strata.
An overall average hides differences between groups. If a 10% invoice error rate comes from one team making 15% errors and another making 5%, the useful finding is the difference. You cannot find it unless each invoice was labelled with its team when you collected it.
Stratification is mostly a planning step. You can only split data by a factor if you recorded that factor next to each observation. Adding it later usually means re-collecting or reconstructing data, and reconstructed labels are often unreliable.
The yaml plan from the operational definition chapter already contained this line:
stratify_by: [billing_team, customer_segment, invoice_week]Each name in that list becomes a field on the data form, with its own definition.
Why it belongs in the plan, not the analysis
Three reasons make the planning stage the right place to decide this.
- Labels cost little at the moment of observation. The collector already has the invoice in hand. Writing down the team takes seconds. Finding it out three weeks later may be impossible.
- Sample size depends on it. If you will compare strata, each stratum needs enough observations. A plan that collects 385 observations overall may leave only 20 in a small stratum. Sampling and sample size are covered in later chapters, but you must list your strata first to size the sample sensibly.
- It keeps the analysis honest. Choosing factors before seeing the data limits the temptation to slice the data in many ways until something looks significant.
Choosing stratification factors
Start from the process and ask where results might differ. A useful prompt is the "5W" set: who, what, where, when and how. Draw on the process map, the team's experience and any earlier complaints or defect reports.
| Question | Typical factors | Invoice example |
|---|---|---|
| Who | Operator, team, experience level, shift | Billing team, years in role |
| What | Product, item type, customer segment, defect type | Customer segment, invoice type |
| Where | Site, machine, line, system, channel | Office location, billing software used |
| When | Hour, day, week, month, season, period end | Invoice week, month-end versus mid-month |
| How | Method, procedure version, equipment setting | Manual entry versus system import |
A factor earns a place in the plan only if it passes three checks.
- Plausible: there is a reasonable mechanism by which it could change the result. "Colour of the collector's pen" fails this check.
- Actionable: if it does turn out to matter, someone can do something about it. Finding that errors vary by calendar season is useful only if scheduling or staffing can respond.
- Recordable: it can be captured reliably at the time of observation, with a definition just as clear as the one for the metric itself.
Define each factor too
Factor values need the same discipline as the metric. "Customer segment" is ambiguous until you state the rule.
factor: customer_segment
values: [new, existing]
definition: >
A customer is "new" if their first invoice from us was issued
in the last 90 days before the invoice being checked.
Otherwise "existing".
source: customer master record, field first_invoice_date
recorded_by: billing auditorWithout this, one auditor might call a customer "new" after 30 days and another after a year. The strata would then mix cases, and the comparison would be blurred.
Keep the list short
Every added factor adds a field to fill in, more chances for error, and more strata to fill with data. Three to five factors is a workable range for one collection effort. If you have a dozen candidates, rank them by plausibility and by how easily they are recorded, then take the top few. Others can wait for a second round of collection.
Seeing the effect: an example
Here is a small data set for the invoice metric. For each combination of team and customer segment, the data gives the number of invoices checked and the number found defective.
counts = {
("A", "new"): (40, 2),
("A", "existing"): (160, 8),
("B", "new"): (80, 24),
("B", "existing"): (120, 6),
}
def summarize(keys):
checked = sum(counts[k][0] for k in keys)
defective = sum(counts[k][1] for k in keys)
return checked, defective, defective / checked
def show(label, keys):
checked, defective, rate = summarize(keys)
print(f"{label:<22} {defective:>3}/{checked:<4} {rate:.1%}")
all_keys = list(counts)
show("All invoices", all_keys)
print("-- by team")
for team in ("A", "B"):
show(f"Team {team}", [k for k in all_keys if k[0] == team])
print("-- by team and segment")
for key in all_keys:
show(f"Team {key[0]}, {key[1]}", [key])Running it prints:
All invoices 40/400 10.0%
-- by team
Team A 10/200 5.0%
Team B 30/200 15.0%
-- by team and segment
Team A, new 2/40 5.0%
Team A, existing 8/160 5.0%
Team B, new 24/80 30.0%
Team B, existing 6/120 5.0%The overall rate is 10%. Splitting by team shows that Team B is three times worse than Team A. Splitting further shows that Team B's existing-customer invoices are just as accurate as Team A's. The problem is concentrated in one cell: Team B working on new customers, with a 30% error rate.
That finding changes the improvement question. Instead of "why is Team B worse?", you can ask "what is different about how Team B sets up new customers?" Only the two recorded fields, team and segment, made this possible.
Common errors
Recording only the metric. The data form has a pass/fail column and nothing else. The data can then describe the problem but cannot localize it.
Stratifying on a factor with no recorded source. "Experience level" sounds useful, but if nobody can look it up at collection time, collectors guess. Guessed labels create false patterns.
Too many strata for the sample. With four factors of three values each, there are 81 combinations. A few hundred observations spread over 81 cells leaves most of them with a handful of records. Rates from tiny cells swing wildly. Prefer fewer factors, or plan the sample so that important cells are large enough.
Overlapping or incomplete values. If the categories are "morning", "day" and "late", an invoice processed at 13:00 or at midnight may fit none of them or two. Make the values mutually exclusive and cover every case. Add an explicit "other" or "unknown" value only if you will monitor how often it is used.
Confounded factors. Suppose Team B handles all the new customers. Then team and segment move together, and the data cannot say which one matters. Check the counts in each cell. A cell with no or very few observations tells you the factors are tangled, and a design change such as targeted sampling may be needed.
Treating a pattern as proof. Stratified rates show where to look. They do not prove cause. A difference between strata is a lead for investigation, and later analysis steps test it.
Stratification for continuous data
The same idea applies to measured values such as processing time. The difference is that you compare distributions rather than rates. You might compare the mean and spread of cycle time by shift, or plot the data separately for each machine. A single histogram that looks wide or has two humps often means that two strata have been mixed. Recording the factor with every measurement lets you test that suspicion directly.
A planning checklist
Before the plan is finalized, confirm for each factor:
- There is a stated reason it might affect the metric.
- Its values are listed, do not overlap, and cover every case.
- A written rule or a named source tells the collector how to assign the value.
- It will be recorded at the time of observation, on the same row or form as the metric.
- The sample plan leaves enough observations in each stratum you intend to compare.
Exercise
A call centre measures "call resolved on first contact" (pass/fail). The overall first-contact resolution rate is 70%. A manager proposes recording only the pass/fail result for 500 calls. Suggest three stratification factors to record with each call, give one reason each could matter, and write a clear rule for one of the factor's values. Then name one risk of adding twenty factors instead.
Show answer
Possible factors: (1) agent team or experience band, because newer agents may resolve fewer calls; (2) call topic, such as billing, technical fault or account change, because some topics need escalation; (3) time of day or day of week, because staffing and queue pressure vary. A rule for experience band: "novice" means the agent has handled calls for fewer than 90 days at the date of the call, taken from the HR start date; otherwise "experienced". The risk of twenty factors is that the form becomes slow and error-prone to fill in, and the 500 calls would spread across so many combinations that most strata would hold too few calls to give a reliable rate.
Exercise
In the invoice example, Team B handles every new customer and Team A handles none, so the table has no Team A, new cell. Why does that make it hard to tell whether team or customer segment causes the higher error rate, and what could you do in the collection plan?
Show answer
Team and segment are confounded: every new-customer invoice is also a Team B invoice, so any difference between new and existing customers is mixed with the difference between teams. The data cannot separate the two effects. In the plan you could arrange for both teams to handle some new-customer invoices for the study period, or sample a set of new-customer invoices for Team A to check, so that each combination of team and segment has observations.