Sub topic 10
Plan Data Collection
This chapter assumes you can compute a mean and read a spread, know basic process metrics such as cycle time and defect rate, and have already written a hypothesis, a baseline, and a pilot design. Here you turn those decisions into a concrete plan for gathering data. The plan covers what to record, who records it, how, and how you check that the numbers can be trusted.
Why plan collection before the pilot starts
A pilot answers one question: did the change cause the improvement you predicted? Data you did not plan for cannot answer it. If you start the pilot and then ask "what should we have measured?", you will find that the baseline used a different definition, that one site logged nothing, or that the defect count was never recorded per unit.
Three failures are common:
- Missing data. The measure you need was never captured, and it cannot be recreated afterward.
- Inconsistent data. The pilot team and the control team measure the same thing in different ways, so the comparison is not fair.
- Data that is collected but not used. Extra fields slow the people doing the work and add errors without helping the decision.
A data collection plan prevents all three. It is written before the pilot, reviewed by the people who will collect the data, and frozen once the pilot begins.
What to collect
Work backward from the decision. The go, adjust, or stop decision uses three kinds of measures, and each needs a place in the plan.
| Measure type | Purpose | Example |
|---|---|---|
| Primary (target) metric | Tests the hypothesis | Cycle time per order, in minutes |
| Guardrail metrics | Detect harm elsewhere | Defect rate, rework, customer complaints |
| Context variables | Explain differences between units | Shift, product type, order size, operator, day of week |
Context variables are the ones people forget. If the pilot ran only on the day shift and the control ran on all shifts, a difference may come from the shift and not from the change. Recording shift, product type, and similar factors lets you check for this during analysis.
Collect only what you will use. For every field, you should be able to say which decision or check it supports. If you cannot, remove it.
Write an operational definition for each metric
An operational definition says exactly how a number is produced, so two people measuring the same unit get the same result. For each metric, state:
- The event that starts the measurement.
- The event that stops it.
- The unit of measure and the precision (minutes rounded to the nearest whole minute, for example).
- What counts and what is excluded.
- The source: a system timestamp, a form, or a manual log.
For cycle time, "from order received to order shipped" is not enough. Does the clock run over weekends? Are orders put on hold by the customer counted? Is the start the moment the order enters the system or the moment someone opens it? Decide, write it down, and use the same definition for the baseline, the control group, and the pilot group.
If the baseline was measured under an older definition, re-measure it or convert it. Comparing a pilot measured by system timestamps with a baseline measured by stopwatch can produce a difference that has nothing to do with the change.
Choose the unit and the sampling approach
The unit of observation is the thing you record one row for. It might be one order, one ticket, one patient visit, or one batch. Pick the unit that matches the hypothesis. If you claim "orders ship faster", the unit is an order. If you record only daily averages, you lose the variation within each day, and you have far fewer data points for the analysis.
Then decide how units enter the data set:
- Record every unit when the data is captured automatically and the volume is manageable. This is the best option, because it avoids sampling bias.
- Sample when recording is manual and costly. Use a rule that does not depend on the collector's judgment, such as "every fifth order" or random selection from a list. Letting collectors choose which units to record tends to bias the sample toward easy or typical cases.
The sample size itself comes from the earlier duration and sample size chapter. This plan only makes sure that the required number of units can actually be captured in the pilot period.
Decide who collects, how, and when
Every metric needs an owner. For each one, record:
- The person or system that captures it.
- The tool: system report, spreadsheet, form, or sensor.
- The frequency: per unit, per shift, or daily.
- Where it is stored and who can edit it.
Prefer automatic capture. Timestamps from a workflow system are more consistent than times written by hand. When manual capture is unavoidable, make it as small a task as possible: a checkbox, a dropdown, or a single number. Free-text fields are hard to analyze and easy to skip.
Use the same collection method for the pilot and control groups. If the pilot group logs by hand and the control group is read from a system, the pilot group will often show slower or more detailed records simply because someone is watching.
A simple data sheet for the pilot might look like this:
| Field | Type | Source | Allowed values |
|---|---|---|---|
| unit_id | text | system | unique per order |
| group | text | assigned at start | control, pilot |
| cycle_minutes | number | system timestamps | 0 or greater |
| defect | text | inspector form | yes, no |
| shift | text | system | day, evening, night |
| product_type | text | system | A, B, C |
Build in data quality checks
Bad data produces confident wrong answers. Plan checks to run during the pilot, not only at the end.
- Range checks. A cycle time of negative minutes or 9,000 minutes is probably an entry error.
- Completeness checks. Count missing values per field each day. A rising count means the collection process is breaking down.
- Consistency checks. The end time must come after the start time. The group label must match the assigned group.
- Spot audits. Pick a few units each week and compare the recorded value with the source. This catches problems that automated checks miss.
Decide in advance how to handle bad records. A good rule is to flag them, correct them from the source when possible, and exclude them only with a written reason. Do not delete values because they look inconvenient. An outlier that is a real, slow order belongs in the data. An outlier that came from a typing error does not. Writing the rule beforehand prevents you from deciding after you have seen how each choice affects the result.
The short script below applies range and completeness checks to a list of records and reports the problems.
records = [
{"unit_id": "A1", "group": "control", "cycle_minutes": 44, "defect": "no"},
{"unit_id": "A2", "group": "pilot", "cycle_minutes": 37, "defect": "no"},
{"unit_id": "A3", "group": "pilot", "cycle_minutes": -5, "defect": "no"},
{"unit_id": "A4", "group": "control", "cycle_minutes": None, "defect": "yes"},
{"unit_id": "A5", "group": "pilot", "cycle_minutes": 9000, "defect": "no"},
]
MAX_PLAUSIBLE = 240 # minutes, agreed with the process owner before the pilot
def check(record):
problems = []
minutes = record["cycle_minutes"]
if minutes is None:
problems.append("missing cycle_minutes")
elif minutes < 0 or minutes > MAX_PLAUSIBLE:
problems.append(f"cycle_minutes out of range: {minutes}")
if record["group"] not in ("control", "pilot"):
problems.append("invalid group")
if record["defect"] not in ("yes", "no"):
problems.append("invalid defect value")
return problems
for record in records:
issues = check(record)
if issues:
print(record["unit_id"], "->", "; ".join(issues))The output flags A3 as out of range, A4 as missing, and A5 as out of range. It does not delete anything. A person reviews each flag against the source.
Keep a log of events and changes
The data tells you what happened. It does not tell you why. Keep a simple event log next to the data: a dated list of anything that could affect the results. Examples include a machine breakdown, a holiday, a staff absence, a supplier delay, a software update, or a rule change made partway through the pilot. During analysis, these notes let you explain an odd week without guessing.
Record deviations from the pilot design in the same log. If the pilot team was asked to skip a step, or the control group started using part of the new method, note it with the date. Contamination of the control group is a real threat to the comparison, and you can only handle it if you know it happened.
Plan for privacy and access
Pilot data often contains information about people: employee names, customer details, or health information. Collect the minimum needed. Replace names with codes where you can, store the data where only the pilot team can reach it, and follow your organization's rules on retention. Measuring individual employees can also change their behavior, so agree with stakeholders that the pilot measures the process, not the person.
Prepare the analysis in advance
Before the pilot starts, write down how the data will be analyzed: the comparison, the summary statistics, and the decision rule. Create the empty tables or a template script and test it on a few fake rows. This reveals fields that are missing or badly formatted while there is still time to fix the plan. It also protects you from choosing an analysis after seeing the results.
Diagram of the collection flow
Common mistakes
- Measuring the baseline one way and the pilot another.
- Collecting the target metric but not the guardrail metrics.
- Leaving out context variables, then being unable to explain differences.
- Relying on manual logging for the pilot group only.
- Checking data quality only after the pilot ends, when errors can no longer be corrected from the source.
- Excluding outliers after seeing the results.
Exercises
Exercise
A pilot team times each order by hand with a stopwatch. The baseline cycle times came from system timestamps. Why is this a problem, and what are two ways to fix it?
Show answer
The two measurements use different definitions and methods, so a difference between pilot and baseline may come from how time was measured and not from the process change. Fix it by using system timestamps for the pilot as well, or by re-measuring the baseline with the same stopwatch method (or converting one source to match the other and validating the conversion).
Exercise
Your plan will record cycle time for each order. List four things an operational definition for it must state, and name two context variables worth recording.
Show answer
It must state the start event, the stop event, the unit and precision, what is included or excluded (for example holds and weekends), and the data source. Useful context variables include shift, product type, order size, operator, and day of week.
Exercise
During the pilot, a quality check flags a cycle time of 1,200 minutes. The result would look better if it were removed. What should you do?
Show answer
Do not delete it because it is inconvenient. Compare it with the source record and the event log. If it is a data entry error, correct it from the source or exclude it with a written reason. If it is a real slow order, keep it. The handling rule should have been agreed before the pilot started.