Sub topic 12
Analyze the results
This chapter assumes you know the mean, the standard deviation, and the difference between a sample and a population. It also assumes you have already written a hypothesis, a success criterion, and at least one guardrail metric for your pilot. Here you turn the pilot's raw data into a conclusion you can defend in the go, adjust, or stop meeting.
What the analysis has to answer
A pilot analysis answers four questions, in this order:
- Is the data trustworthy? Was it collected as planned, and does it cover the pilot period?
- Is the change real? Could the difference you see come from normal variation?
- Is the change big enough? Does it meet the success criterion, and not merely differ from zero?
- Was it safe? Did any guardrail metric get worse?
Many teams skip straight to question 2 and stop when they see a small p-value. A result can be statistically real and still too small to matter. A result can also look large and rest on four data points. Work through all four questions before you decide.
Step 1: Check the data before you test anything
Before computing a single average, look at the data itself.
- Completeness. Compare the number of records you collected with the number you expected from the data collection plan. Large gaps in one group can bias the comparison.
- Definitions. Confirm that "cycle time" was measured from the same start event to the same end event in both groups. A definition that drifted mid-pilot makes the comparison meaningless.
- Outliers. Plot the values. Find each outlier and look for a cause. If a record has a recording error, such as a timestamp typed wrongly, correct it or exclude it, and write down why. If it is a real but unusual case, keep it. Dropping real extreme cases because they spoil the result is a form of cherry-picking.
- Timeline events. Mark outages, holidays, staff changes, and any unplanned changes to the process. Plot the metric over time with those events marked. This helps you spot a shift that began before the pilot started.
Compare the pilot data with the baseline you measured earlier. If the pilot group's results were already lower than the control group's before the change, the difference you see afterwards is not credited to the change.
Step 2: Separate a real difference from noise
Any two groups of cycle times will have different means, even with no change at all. The question is how often a difference this large would appear by chance.
A permutation test answers this without assuming a particular distribution. You pool all the observations, shuffle them into two random groups of the original sizes, and record the difference in means. Repeating this thousands of times shows what chance alone produces. The share of shuffles at least as extreme as your observed difference is the p-value.
import random
from statistics import mean
control = [42, 45, 39, 48, 44, 41, 46, 43] # cycle time in minutes, current process
pilot = [36, 38, 35, 40, 37, 34, 39, 36] # cycle time in minutes, changed process
observed = mean(control) - mean(pilot)
# Permutation test: how often does a random split of the same data
# show a reduction at least as large as the one observed?
random.seed(1)
combined = control + pilot
n_control = len(control)
trials = 10000
extreme = 0
for _ in range(trials):
random.shuffle(combined)
diff = mean(combined[:n_control]) - mean(combined[n_control:])
if diff >= observed:
extreme += 1
print(f"Mean reduction: {observed:.2f} minutes")
print(f"Share of random splits at least as extreme: {extreme / trials:.4f}")The mean falls from 43.5 to 36.875 minutes, a reduction of about 6.6 minutes. Only a tiny share of random splits, well under 1%, produces a gap that large. Chance is an unlikely explanation.
This test compares the groups as if units were independent and randomly assigned. Cycle times measured on the same machine on consecutive days are not independent, and a pilot site chosen by a manager is not random. The p-value tells you about noise only. It says nothing about whether the groups were comparable, which is a design question.
Report an interval, not only a p-value
A p-value says whether a difference is plausible under "no change". It does not say how large the improvement might be. A confidence interval gives a range of plausible values for the true reduction. A bootstrap is a simple way to get one: resample each group with replacement and recompute the difference many times.
import random
from statistics import mean
control = [42, 45, 39, 48, 44, 41, 46, 43]
pilot = [36, 38, 35, 40, 37, 34, 39, 36]
random.seed(2)
diffs = []
for _ in range(10000):
c = random.choices(control, k=len(control))
p = random.choices(pilot, k=len(pilot))
diffs.append(mean(c) - mean(p))
diffs.sort()
low = diffs[249] # 2.5th percentile
high = diffs[9749] # 97.5th percentile
target_minutes = 0.10 * mean(control) # success criterion: 10% reduction
print(f"95% interval for the reduction: {low:.1f} to {high:.1f} minutes")
print(f"Target reduction: {target_minutes:.2f} minutes")With this data the interval runs from roughly 4 to 9 minutes. The exact ends change slightly with the seed. The target is a 10% reduction, which is 4.35 minutes. The observed reduction of 6.6 minutes clears the target, but the lower end of the interval sits near the target. The pilot shows a real improvement. Whether it reliably meets the criterion is less certain.
Step 3: Judge practical significance
Statistical significance says the effect is unlikely to be zero. Practical significance says the effect is large enough to justify the cost and disruption of rolling out. Compare the effect size, with its interval, to the success criterion you wrote before the pilot.
| Situation | Reading |
|---|---|
| Interval entirely above the target | Strong evidence the target is met |
| Estimate above the target, interval straddles it | Promising but uncertain; consider extending the pilot |
| Interval entirely above zero but below the target | Real improvement that is too small to matter |
| Interval includes zero | No detectable effect; the pilot may also be too small to detect one |
The last row has two possible causes. If the interval is wide and includes zero, you may have too little data to tell. If it is narrow and centered on zero, the change probably does nothing. These lead to different decisions: collect more data in the first case, and stop in the second.
Step 4: Read the guardrails with the same care
Apply the same analysis to every guardrail metric. A defect rate that rose from 2% to 3% can look like noise on a few dozen units, but the same rise on thousands of units is a real signal. Report the guardrail change with its interval too. Check the guardrail against its limit, not against the control group. A guardrail can differ from the control group and still be within an acceptable limit.
The decision rule agreed before the pilot lets a guardrail breach override a gain on the target metric:
def decide(improvement, target, defect_rate, defect_limit):
"""Return a pilot decision from the success criterion and one guardrail."""
if defect_rate > defect_limit:
return "stop" # guardrail breached, roll back regardless of improvement
if improvement >= target:
return "go"
return "adjust" # safe but did not reach the target
print(decide(improvement=0.15, target=0.10, defect_rate=0.02, defect_limit=0.03)) # go
print(decide(improvement=0.15, target=0.10, defect_rate=0.05, defect_limit=0.03)) # stop
print(decide(improvement=0.04, target=0.10, defect_rate=0.02, defect_limit=0.03)) # adjustThis function uses point estimates only. In practice, feed it a conservative value, such as the lower end of the improvement interval and the upper end of the defect-rate interval, when the stakes are high.
Common analysis errors
- Changing the success criterion after seeing the data. If the target was 10% and the result is 8%, the pilot did not meet its target. Redefining success afterwards removes the point of having a criterion.
- Comparing the pilot with the old baseline instead of a concurrent control. Seasonal demand, new staff, or other improvements may explain the change.
- Testing many metrics and reporting the one that worked. With enough metrics, one will look significant by chance. Name your primary metric in advance and label any other findings as exploratory.
- Looking only at averages. A mean can improve while the worst cases get worse. Check the spread and the tail, for example the 90th percentile of cycle time.
- Ignoring the Hawthorne effect. People who know they are being watched often perform better. If the gain fades after the pilot team stops getting attention, it was partly attention. Compare early and late weeks of the pilot to see whether the effect holds.
- Treating one site as proof for all sites. If the pilot site was unusually well staffed, the result may not transfer. State this limit in the findings.
Document the findings
Write a short analysis record that someone who did not attend the pilot can read. Include the hypothesis, the success criterion, the data sources, any exclusions and their reasons, the effect size with its interval, the guardrail results, known limitations, and a plain statement of what the evidence supports. This record becomes the input to the decision in the next chapter.
Exercise
A pilot cut mean order-processing time from 50 to 46 minutes, a 8% reduction. The success criterion was a 10% reduction. A permutation test gives a p-value of 0.01, and the 95% interval for the reduction is 1 to 7 minutes. The defect guardrail stayed within its limit. What does the analysis support, and what would you recommend?
Show answer
The reduction is statistically real because the p-value is small and the interval excludes zero. It does not meet the success criterion. The target is 5 minutes (10% of 50), and the estimate is 4 minutes. The interval of 1 to 7 minutes includes the target but is wide, so the true effect could be on either side of it. The guardrail is safe. The result is "adjust", not "go": either refine the change or extend the pilot to narrow the interval, then compare the new interval with the 5-minute target. Do not lower the target after the fact.