Sub topic 9
Using a Pareto chart to decide what to fix first
This chapter assumes you can already build and read a Pareto chart: bars sorted from largest to smallest, a cumulative-percentage line, and the idea of a "vital few" group of categories. It also assumes you know basic pandas. The question here is what to do after you have the chart. A chart shows where the problem is concentrated. It doesn't tell you what to fix first.
From chart to decision
A Pareto chart answers one question: which categories account for most of the measured effect? Choosing improvement work needs three further questions:
- Is the measure the right one? Count, cost, time lost, and customer impact can rank the same categories differently.
- Can the top categories be acted on? A category such as "supplier delay" may be large and still outside your control.
- What will the fix cost, and how long will it take?
The Pareto chart answers the first question directly. It supports the other two but doesn't settle them. The workflow below keeps that division clear.
The loop at the end matters. Once you fix the largest category, the ranking changes, so the next decision needs new data. The next chapter covers the before/after comparison that checks whether the fix worked.
Step 1: Rank by the measure that matches your goal
The same data can give different priorities depending on the measure. Suppose a line produces 100 defects in a period. The counts come from the earlier chapters. This chapter adds a cost per defect, covering rework, scrap, and handling:
| Defect | Count | Cost per defect | Total cost |
|---|---|---|---|
| Scratches | 42 | $4 | $168 |
| Misalignment | 27 | $15 | $405 |
| Wrong label | 11 | $60 | $660 |
| Cracks | 8 | $45 | $360 |
| Discoloration | 5 | $6 | $30 |
| Other | 7 | $10 | $70 |
By count, scratches lead with 42% of defects. By cost, wrong labels lead with 660 of 1,693 dollars, or 39.0%, and scratches fall to fourth. A team that sorted only by count would spend its effort on the cheapest large category.
The code below builds both rankings. It excludes the "Other" row from the ranking, because a catch-all bucket is not a problem you can fix as one item.
import pandas as pd
df = pd.DataFrame(
{
"count": [42, 27, 11, 8, 5, 7],
"unit_cost": [4, 15, 60, 45, 6, 10],
},
index=["Scratches", "Misalignment", "Wrong label",
"Cracks", "Discoloration", "Other"],
)
df["total_cost"] = df["count"] * df["unit_cost"]
def pareto_table(series):
"""Sort descending, keep 'Other' last, add cumulative percentage."""
main = series.drop("Other").sort_values(ascending=False)
ordered = pd.concat([main, series[["Other"]]])
cum_pct = (ordered.cumsum() / ordered.sum() * 100).round(1)
return pd.DataFrame({"value": ordered, "cumulative_pct": cum_pct})
print("By count")
print(pareto_table(df["count"]))
print()
print("By cost")
print(pareto_table(df["total_cost"]))The count table reaches 80% at the third row (scratches, misalignment, wrong label). The cost table reaches 84.2% at the third row (wrong label, misalignment, cracks). Two of the three categories are shared. Scratches and cracks swap places depending on the measure, and that swap is the decision you need to discuss with stakeholders.
Which measure to use
- Use count when every occurrence costs about the same, or when you have no cost data yet.
- Use cost when occurrences differ a lot in price, as they do here.
- Use time lost or customer impact when the goal is delivery or satisfaction, not money.
- When unsure, build two charts. If both name the same vital few, the decision is easy. If they disagree, the disagreement is the finding.
Step 2: Select the vital few without forcing 80%
The 80% line is a guide. Your data may reach 80% after two categories or after six. Apply these rules:
- Include the category that crosses the 80% line, as the earlier code did with
cum_pct.shift(fill_value=0) < 80. - If the first bar alone is above 60%, you have one clear target and no need to rank the rest.
- If the bars are nearly equal, there is no vital few. Pareto analysis has not found a concentration, and you should say so instead of picking arbitrarily.
- If "Other" is larger than the first bar, your categories are too coarse. Go back and split the catch-all bucket before deciding anything.
The last rule is the most common failure in practice. A chart where "Other" is 35% of the total shows that the categorization is hiding the problem.
Step 3: Screen the vital few for actionability and effort
The vital few are candidates, not decisions. For each candidate, add what the chart cannot show. Typical columns are:
- Controllable? Can your team change the cause, or does it belong to a supplier or a customer?
- Effort estimate. Days or cost to implement the fix.
- Risk. Could the fix cause other defects, for example by slowing a line?
- Confidence. Do you know the root cause, or only the symptom?
A simple screen divides the impact of each category by its effort. This is a heuristic for starting a conversation, not a formula to follow blindly. The effort numbers below are invented for the example.
import pandas as pd
candidates = pd.DataFrame(
{
"total_cost": [660, 405, 360, 168],
"effort_days": [3, 20, 15, 5],
},
index=["Wrong label", "Misalignment", "Cracks", "Scratches"],
)
candidates["cost_per_effort_day"] = (
candidates["total_cost"] / candidates["effort_days"]
).round(1)
print(candidates.sort_values("cost_per_effort_day", ascending=False))The result is:
| Defect | Total cost | Effort (days) | Cost per effort day |
|---|---|---|---|
| Wrong label | $660 | 3 | 220.0 |
| Scratches | $168 | 5 | 33.6 |
| Cracks | $360 | 15 | 24.0 |
| Misalignment | $405 | 20 | 20.3 |
Wrong label is the clear first choice: it is the largest cost and the cheapest to fix. The second choice is less obvious. Misalignment is the second-largest cost, but it needs 20 days of work. Scratches cost less but can be addressed in 5 days. Which to do next depends on whether the team can run both fixes in parallel and on how reliable the estimates are. Present the table to the people who own the process and let them decide. The chart informs the choice, and they make it.
Step 4: Write the decision down
A Pareto analysis in a process-improvement project should leave a short record that others can check later. Include:
- The problem statement and the period the data covers.
- The measure and why you chose it.
- The chart, with the total count or amount shown so readers can judge its size.
- The vital few you selected and the rule you used.
- The target you chose, with its effort estimate and the reason you picked it over the others.
- The expected result, stated as a number you can test later, such as "wrong-label cost falls below $200 per period."
The last item turns the analysis into something you can verify. Without a stated expectation, the later before/after chart has nothing to be compared against.
Common mistakes when prioritizing
- Fixing the biggest bar by default. The biggest bar can be large and still hard to change. Screen it first.
- Ignoring the small bars forever. The "useful many" can contain a severe but rare problem, such as a safety defect. A single cracked part that injures a customer outweighs hundreds of scratches. Use a severity filter alongside the chart, and handle safety or legal categories regardless of rank.
- Treating one period as permanent. A chart from one week can be dominated by a one-time event. Check that the ranking holds across several periods before committing resources.
- Mixing levels of detail. If one bar is "Packaging" and another is "Label printed upside down," the ranking compares unlike things. Keep categories at the same level.
- Stopping after one chart. After the first fix, rebuild the chart. The new top category may be one that was hidden behind the first.
Putting it together
Return to the line with 100 defects. The count chart suggested attacking scratches. The cost chart and the effort screen both point to wrong labels first. A three-day label fix removes about $660 of the $1,693 total cost, or 39%, which is more than any other single change available. After that fix, you rebuild the chart. Misalignment becomes the largest bar, and you repeat the screen with new data.
Exercise
A team's Pareto chart by count shows "Late delivery" at 55%, "Damaged in transit" at 20%, "Wrong item" at 15%, and "Other" at 10%. A manager says to fix late delivery first because it is the biggest bar. Name two checks you would make before agreeing.
Show answer
First, check whether count is the right measure. If damaged shipments cost far more per incident (replacement, refunds, lost customers) than late ones, ranking by cost could put "Damaged in transit" first. Second, check whether late delivery is actionable and what the fix would cost. If the cause is a carrier outside the company's control, or the fix takes months, a smaller category with a cheaper fix could deliver more benefit sooner. Also acceptable: confirm the pattern holds across several periods, or check whether any low-ranked category carries a safety or legal risk.
Exercise
Using the cost-per-effort-day heuristic, a candidate fix saves $900 and takes 30 days, and another saves $300 and takes 5 days. Which ranks higher, and why might you still choose the other one?
Show answer
The $300 fix ranks higher: it gives $60 per effort day, against $30 for the $900 fix. You might still choose the $900 fix if total savings matter more than speed, if the team has spare capacity to run a long project, or if the 5-day estimate is far less reliable than the 30-day one. The ratio starts the discussion and does not replace judgment.