Sub topic 10
Verifying causes with data before acting
A fishbone diagram lists hypotheses. After you prioritize them, each top candidate is still a guess. This chapter covers how to turn each guess into a testable claim, choose a way to check it, and decide what to do with the result.
This chapter assumes you have already built a fishbone diagram and narrowed it to a few likely causes by voting or Pareto thinking. It also assumes you can read a simple rate or percentage. The code uses only the Python standard library.
Why verification comes before action
Teams skip this step because the diagram looks finished and the top-voted cause feels right. Acting on an unverified cause has three costs:
- You spend money or effort on a fix that may not touch the real cause.
- The problem continues, and the team concludes that "we tried and it didn't work."
- The real cause stays hidden, because everyone believes it was already handled.
Voting measures belief, and belief can be wrong. People tend to vote for causes they have seen recently, causes that sit in someone else's department, or causes that are cheap to fix. None of these is evidence that the cause produces the effect.
Verification is a gate between the diagram and the action plan.
Turn each cause into a testable hypothesis
A cause on a fishbone diagram is usually a phrase such as "No standard pick sequence." You can't test a phrase. A hypothesis states what you expect to see in the data if the cause is real.
A good hypothesis has four parts:
- The cause, stated as something you can observe or measure.
- The effect, matching the problem statement from the head of the diagram.
- The direction of the relationship.
- The comparison that would show it.
Compare these two versions.
| Weak | Testable |
|---|---|
| Pick sequence causes late deliveries | Orders picked on a self-chosen route are late more often than orders picked on the standard route |
| The label printer is a problem | Orders whose labels were reprinted after a jam are late more often than orders labeled on the first print |
| Staffing is uneven | Orders released on the understaffed shift are late more often than orders on fully staffed shifts |
Each testable version names a comparison between two groups. If the effect is the same in both groups, the cause is not supported. That is the pattern behind most verification.
Use the same definition of the effect in every hypothesis. If the problem statement says "late means delivered more than 24 hours after the promised date," use that exact rule when you label each order as late or on time. A different rule for each hypothesis makes the results incomparable.
Choose a verification method
Match the method to what the cause is and what data exists. The table lists the usual options from cheapest to most expensive.
| Method | What you do | Good for | Main risk |
|---|---|---|---|
| Existing records | Split historical data by the suspected cause and compare the effect rate | Causes already recorded in a system | Records may be incomplete or recorded after the fact |
| Targeted data collection | Add a check sheet or a field to record the cause for the next few weeks | Causes nobody tracks yet | Slow, and people may record differently under observation |
| Direct observation | Watch the process where it happens and note what occurs | Method and manpower causes | Observer effect: people behave differently when watched |
| Stratified comparison | Compare the effect across shifts, machines, suppliers, or products | Suspected differences between groups | Groups may differ in other ways too |
| Controlled trial | Change the suspected cause on purpose in part of the process and compare | Causes you can switch on and off | Needs a stable process and a careful design |
Start with existing records. They cost the least and can often eliminate a cause in an afternoon. Move to a trial only for causes that survive and that records can't settle.
Checking the data first
Before you trust any comparison, check how the data was produced. Intermediate teams most often get caught here.
- Definitions. Does "late" mean the same thing in every source system?
- Coverage. Does the data include every shift, product, and site, or only the ones that were easy to export?
- Timing. Was the cause recorded before the outcome was known? A reason code entered after a delivery fails is a rationalization, not a measurement.
- Measurement error. If the cause is measured by a gauge, a scale, or a person's judgment, is that measurement reliable? A cause can look absent only because nobody measures it well.
A worked check in code
Take one hypothesis from the late-deliveries diagram: orders picked on a self-chosen route are late more often than orders picked on the standard route.
The script below simulates 400 order records so you can run it anywhere. In practice you would load the records from your warehouse system. It computes the late rate in each group and the difference. It then runs a permutation test, which asks how often a difference this large would appear if the route had no connection to lateness.
import random
rng = random.Random(42)
def make_orders(route, n, late_prob):
"""Simulate n orders for one pick route; late is True or False."""
return [(route, rng.random() < late_prob) for _ in range(n)]
orders = (
make_orders("own route", 200, 0.30)
+ make_orders("standard route", 200, 0.12)
)
def late_rate(rows, route):
group = [late for r, late in rows if r == route]
return sum(group) / len(group)
observed = late_rate(orders, "own route") - late_rate(orders, "standard route")
print(f"Late rate, own route: {late_rate(orders, 'own route'):.1%}")
print(f"Late rate, standard route: {late_rate(orders, 'standard route'):.1%}")
print(f"Observed difference: {observed:.1%}")
def permutation_p_value(rows, trials=5000, seed=1):
"""Share of random relabelings that give a difference at least as large."""
shuffler = random.Random(seed)
labels = [r for r, _ in rows]
outcomes = [late for _, late in rows]
at_least_as_large = 0
for _ in range(trials):
shuffler.shuffle(labels)
shuffled = list(zip(labels, outcomes))
diff = (late_rate(shuffled, "own route")
- late_rate(shuffled, "standard route"))
if diff >= observed:
at_least_as_large += 1
return (at_least_as_large + 1) / (trials + 1)
print(f"p-value (one-sided): {permutation_p_value(orders):.4f}")The exact figures depend on the random seed, but the two late rates will land near the 30% and 12% used to generate the data. The p-value will be very small.
Read the p-value as follows. If route had no effect on lateness, only that small share of random relabelings would produce a gap as large as the one you saw. A small value counts as evidence against "no relationship." It does not tell you the size of the effect, and it does not tell you why the effect exists.
The simulated data above builds the effect in, so the test finds it. With real data, the same code can return a large p-value, and that result is just as useful. It tells you this cause probably does not explain much of the problem.
What a result does and does not show
A significant difference shows that the effect and the cause occur together. It does not show that the cause produces the effect. Two usual reasons the pattern can mislead you:
- Confounding. Another factor drives both. Suppose experienced pickers tend to choose their own routes and also tend to get the rush orders, which are more often late. Route and lateness then move together, yet the route may not be the cause.
- Reverse direction. The effect may produce the apparent cause. Pickers may drop the standard sequence when a backlog is already building.
You can reduce confounding by stratifying. Repeat the comparison inside each shift, product type, or order priority. If the difference holds in every subgroup, the confounding explanation weakens.
Sample size and the cost of a weak test
A small sample can hide a real cause. With 12 orders in each group, a true difference of 18 percentage points can easily disappear in random variation. Before you collect data, ask how big a difference would be worth acting on. Then check that your sample can detect it.
A rough guide for rates:
- Samples of a few dozen per group detect only large differences.
- Hundreds per group detect moderate differences.
- Small differences need thousands, and may not justify a fix anyway.
If the test is inconclusive, say so. "We did not see a difference with 30 orders per group" is not the same as "this cause is ruled out." Record the sample size with the conclusion so nobody treats a weak test as a final answer.
Verify by changing the cause
When the data is observational, the strongest check is a trial. Change the suspected cause for part of the process and compare it with a part left alone. For the pick-route hypothesis:
- Choose a set of pickers and a time window, such as two weeks.
- Assign the standard route to half the pickers, chosen at random, and leave the others unchanged.
- Keep every other condition the same, including the order mix and the carrier schedule.
- Compare late rates at the end.
Random assignment matters. If you let the most willing pickers volunteer for the new method, you recreate the confounding problem you were trying to remove.
If the trial reduces lateness, you have verified the cause and tested the fix at once. This is why verification and the first step of a fix often merge in practice.
Deciding what to do with the result
Each hypothesis ends in one of three states. Record all three on the diagram or in a short log, because rejected causes are valuable and teams otherwise re-investigate them.
| Result | Meaning | Next step |
|---|---|---|
| Confirmed | The data supports the cause, and the confounders you could check do not explain it away | Plan a fix and measure after it |
| Rejected | A fair test showed no meaningful difference | Mark the cause as ruled out, with the evidence |
| Inconclusive | The data was too thin, too noisy, or poorly defined | Improve the data or the method, then retest |
A confirmed cause is rarely the only one. Late deliveries often have several contributing causes, and you can quantify each. If the own-route effect explains only part of the lateness gap, the remaining causes on the diagram are still open. Return to the Pareto ranking and work through the next candidate.
Mark the diagram as you go. A simple convention is to circle or bold confirmed causes and strike through rejected ones, with the data source noted beside each. A later reader can then see which parts of the diagram are evidence and which are still opinion.
Common errors
- Verifying only the favorite. Testing the cause the team already believes in, and skipping the rest, turns verification into confirmation. Test the top few candidates, including at least one the team thinks is unlikely.
- Using the same data to generate and test the idea. If you spot a pattern in a data set and then use that same set as proof, you are likely to find patterns that are only noise. Use fresh data for the test where you can.
- Treating a rejected cause as permanently dead. A rejection applies to the definition, time period, and data you used. State those when you record the result.
- Starting the fix before the check finishes. Early action contaminates the data. Pause changes to the suspected cause until the baseline is recorded.
- Dropping unfavorable records. Removing orders as "unusual" without a written rule biases the comparison. Decide the exclusion rules before looking at results.
Exercise
Your fishbone diagram for late deliveries ranks "Label printer jams" high. Write a testable hypothesis for it, name one confounder that could mislead a simple comparison, and describe one way to reduce that confounding.
Show answer
Hypothesis: orders whose labels were reprinted after a printer jam are late more often than orders labeled on the first print. A possible confounder is time of day or shift. Jams may cluster in a busy shift that also has more late orders for other reasons, so the comparison would blame the printer for the shift's problems. To reduce the confounding, repeat the comparison within each shift, or compare only orders from the same shift and time window. If the reprint group is still later in every shift, the printer explanation is more credible.
Exercise
A team tests the hypothesis "uneven shift staffing causes late orders" using 15 orders per group and finds no significant difference. They cross the cause off the diagram. What is wrong with that decision, and what should they do instead?
Show answer
A sample of 15 per group can only detect very large differences, so the test was too weak to rule the cause out. The result is inconclusive, not rejected. The team should record the sample size with the result, then pull more records (hundreds per group) or collect data for longer, and retest. They should also state in advance what size of difference would count as material.