Sub topic 7
Set Duration and Sample Size
Assume you understand cycle time, defects, throughput, mean, and variation. This chapter shows how to decide how long a pilot should run and how many observations it needs.
Start with the decision, not the calendar
A pilot needs enough data to answer its decision question. “Run it for two weeks” is not a sample-size plan. The right duration depends on:
- The unit being measured, such as an order, case, or production batch.
- The current process volume.
- The size of improvement worth detecting.
- The natural variation in the process.
- Weekly, monthly, or seasonal patterns.
- The time people need to learn the changed method.
Define the smallest useful improvement before collecting pilot data. For example, the team might need to detect a reduction of 5 minutes in mean cycle time without increasing the defect rate.
Estimate the required sample
For a simple comparison between a control group and a pilot group, a common planning approximation is:
\[ n \approx \frac{2(z{\alpha}+z{\text{power}})^2\sigma^2}{\delta^2} \]
Here, \(n\) is the number of observations needed in each group, \(\sigma\) is the estimated standard deviation, and \(\delta\) is the smallest improvement worth detecting. The values \(z{\alpha}\) and \(z{\text{power}}\) represent the desired false-positive threshold and statistical power.
This approximation assumes independent observations and similar variation in both groups. It is a planning aid, not proof that the final analysis will be valid.
import math
standard_deviation = 8.0 # minutes, estimated from baseline data
minimum_change = 5.0 # minutes, improvement worth detecting
z_alpha = 1.96 # two-sided 5% threshold
z_power = 0.84 # about 80% power
n_per_group = (
2 * (z_alpha + z_power) ** 2
* standard_deviation ** 2
/ minimum_change ** 2
)
print(f"Plan for at least {math.ceil(n_per_group)} observations per group.")If the pilot produces 20 eligible cases per day, a requirement of 40 pilot observations may take two working days. That does not automatically make two days sufficient. The pilot should also cover normal shifts, operators, and operating conditions.
Convert sample size into duration
Use the slowest relevant rate, not the average rate on an unusually busy day. Add time for ramp-up and for recurring patterns.
| Planning factor | Question | Example |
|---|---|---|
| Required observations | How many usable records are needed? | 120 pilot cases |
| Daily volume | How many eligible records arrive? | 25 per day |
| Ramp-up | How long until staff follow the new method reliably? | 3 days |
| Coverage | Which shifts or weekly patterns must appear? | All shifts, two full weeks |
| Planned duration | What calendar period satisfies these needs? | 10 working days |
A short pilot can estimate immediate effect but miss delayed failures. A longer pilot can reveal variation, but it also increases the chance that unrelated changes affect the comparison. Choose the shortest period that reaches the sample target and covers important operating conditions.
Account for dependencies and unusable data
Ten observations from one batch may behave like one observation if they share the same machine setup. This is called clustering. Count the meaningful experimental unit, or adjust the plan for the dependency.
Also increase the target for exclusions. If you expect 10% of records to be incomplete, divide the required count by 0.90. Record the exclusion rule before the pilot starts. Do not remove inconvenient results after seeing them.
Exercise
A pilot needs 100 usable cases. The team expects 20% of records to be unusable and processes 25 cases per day. What is the minimum data-collection time before adding coverage for shifts and ramp-up?
Show answer
Plan for 100 / 0.80 = 125 total cases. At 25 cases per day, that is 5 days. Add time if those days do not cover the required shifts or learning period.