Sub topic 7
Reading the Pareto Chart to Find the Vital Few
This chapter assumes you can already build a Pareto chart, with sorted bars, a cumulative-percentage line, and a right axis fixed at 0 to 100 percent. It also assumes basic pandas. Here you learn to read the finished chart and decide which categories count as the vital few.
What the chart tells you, and what it does not
A Pareto chart answers one question: where is most of the measured effect concentrated? It shows a ranking and a concentration. It does not show why a category is large, whether it is fixable, or whether the categories are the right ones to compare. Keep that boundary in mind while reading.
The chart has two encodings that you read together:
- Bar height (left axis) is the size of each category in counts or cost.
- Line height (right axis) is the running share of the total after adding each category from left to right.
The two are linked. The rise of the line between two points equals the bar's share of the total. A tall bar means a steep segment of the line. A short bar means a nearly flat segment. If you can read one, you can check the other.
A reading procedure
Read the chart in the same order every time. This keeps you from jumping to the conclusion the chart seems to invite.
Step 1: Check the chart before you trust it
Before looking at any shape, confirm four things:
- The right axis runs from 0 to 100 percent. If it stops at the chart's maximum, or starts above 0, the line looks steeper or flatter than it is.
- The last point of the line sits at 100 percent. If it does not, the cumulative share was computed against the wrong total.
- The bars are sorted descending, with Other last. A bar for Other that is larger than some named bars is expected, because it combines many small categories. Any other out-of-order bar signals a construction error.
- The measure and period are stated. "Defect count, March inspection, line 2" is a usable label. "Defects" is not.
Step 2: Locate the 80 percent crossing
Find where the cumulative line meets the dashed 80 percent reference. Read the category directly at that point and the ones to its left. In the chapter's running example, the cumulative values are:
| Category | Count | Cumulative share |
|---|---|---|
| Scratches | 42 | 42% |
| Misalignment | 27 | 69% |
| Wrong label | 11 | 80% |
| Cracks | 8 | 88% |
| Discoloration | 5 | 93% |
| Other | 7 | 100% |
The line reaches exactly 80 percent at the third bar. Three of six categories (Scratches, Misalignment, Wrong label) account for 80 percent of the defects. That is the vital few for this data set.
The crossing rarely lands exactly on 80. Suppose the shares were 42, 69, 78, 88. The third bar ends at 78 percent, so it has not reached the line. The convention is to include the category that crosses the line, so the fourth bar is in. The rule is "keep every category whose preceding cumulative share is still below 80 percent." That is what the code later in this chapter does.
Step 3: Judge the steepness
The crossing position tells you how many categories you need. The steepness tells you how much that number means.
- Steep start, then flat tail. The first bar or two rise sharply and the rest are small. This is the shape Pareto analysis is made for. Effort on the first bars pays off.
- Straight diagonal line. The bars are nearly equal and the cumulative line is close to a straight line from 0 to 100 percent. No category stands out, so there is no vital few. Ranking by size gives you little.
- One very tall bar. A single category above 60 or 70 percent is a vital-few of one. Often you should drill into that bar (a later chapter covers drilling down) instead of reading the rest.
A useful quick check is the first bar's share. If the leftmost bar is about 1/n of the total for n categories, the chart is flat. If it is several times larger, the chart is concentrated.
Finding the cutoff in code
Reading by eye is fine for six bars. For many charts, or for automated reports, compute the cutoff. This function keeps every category whose preceding cumulative share is below the threshold, so the crossing category is included.
import pandas as pd
def vital_few(counts: pd.Series, threshold: float = 80.0) -> pd.Series:
"""Return the leading categories needed to reach the threshold.
Expects counts already sorted in plotting order (Other last).
"""
cum_pct = counts.cumsum() / counts.sum() * 100
# Share accumulated before each category; rounding avoids float noise
# when a cumulative value lands exactly on the threshold.
before = cum_pct.shift(fill_value=0).round(9)
return counts[before < threshold]
scenarios = {
"Example": pd.Series({
"Scratches": 42, "Misalignment": 27, "Wrong label": 11,
"Cracks": 8, "Discoloration": 5, "Other": 7,
}),
"Flat": pd.Series({f"Cause {i}": 10 for i in range(1, 11)}),
"Dominant": pd.Series({"A": 90, "B": 5, "C": 3, "D": 2}),
"Large other": pd.Series({"A": 40, "B": 20, "C": 10, "Other": 30}),
}
for name, series in scenarios.items():
kept = vital_few(series)
share = kept.sum() / series.sum()
print(f"{name}: {len(kept)} of {len(series)} categories, {share:.0%} of total")The output is:
Example: 3 of 6 categories, 80% of total
Flat: 8 of 10 categories, 80% of total
Dominant: 1 of 4 categories, 90% of total
Large other: 4 of 4 categories, 100% of totalThe four scenarios are the four shapes you meet in practice. Read them as follows.
- Example is the textbook case: half the categories give 80 percent.
- Flat needs 8 of 10 categories. The function still returns an answer, but the answer says "there is no vital few," not "fix these eight."
- Dominant needs one category, and that category alone gives 90 percent.
- Large other includes every category, because the cumulative share is only 70 percent before Other and the bucket Other crosses the line.
Edge cases that change the reading
The crossing lands in Other
In the last scenario, the 80 percent line falls inside the catch-all bucket. The chart cannot say which small categories matter, because they are hidden in a bar that holds 30 percent of the total. Do not announce a vital few from this chart. Go back to the raw data, split Other into its real categories, and rebuild the chart. A large Other is a categorization problem, not a finding. As a rule of thumb, if Other is larger than your third-largest named bar, redo the categories.
Ties near the cutoff
If two categories have the same count and the cutoff falls between them, the sort order decides which one is "in." That order is arbitrary. Include both, and note that the choice was a tie. The same applies when a bar ends at 79.6 percent and the next at 83 percent. The first misses the line by a small margin, and it would be wrong to treat it as clearly outside the vital few.
The 80 percent threshold is a convention
Nothing in the data singles out 80. Some teams use 70 or 90. Check how sensitive your list is to the choice by running vital_few(series, threshold=70.0) and vital_few(series, threshold=90.0). If the list is the same, the result is stable. If it changes a lot, say so when you present it.
Few categories
With three or four categories, the cumulative line crosses 80 percent after one or two bars almost by construction. A "vital few" of two out of four is not evidence of strong concentration. Be careful about drawing strong conclusions from charts with fewer than about six categories.
Small total
A chart built from 20 events can reorder itself with a few more events. Before acting, ask how much the ranking would change if two or three counts were different. If the top two bars differ by two units, they are effectively tied.
Common misreadings
- Reading the vital few as "the causes." The bars are categories you chose. If you split "Scratches" into five types of scratch, the largest bar can shrink and the ranking can change. The vital few depends on how the categories were defined.
- Reading the left axis and the line together. The line is read against the right axis (percent). The bars are read against the left axis (counts). Never read the line's height on the left axis.
- Treating the cumulative line as a trend. The x-axis is categories, not time. A rising line does not mean anything is growing. The line always rises because it is a running total.
- Assuming the biggest bar is the most important problem. The bar shows frequency or cost under the measure you chose. A less frequent category may be far more severe. A later chapter on choosing measures covers this. At this stage, treat the vital few as candidates.
- Ignoring the zero point. A line that visibly starts at the first bar's height, not at 0, can make the first category look larger than it is. The first point should equal the first bar's share.
What to write down after reading
After reading, record the result in a form someone else can check:
- The measure, period and total (for example, "100 defects, March, line 2").
- The vital few and their combined share (for example, "Scratches, Misalignment and Wrong label: 80 percent").
- The shape (concentrated, flat, or dominated by one bar).
- Any warnings (large Other, ties at the cutoff, small total).
This record becomes the input to the next step, deciding what to fix first, where you weigh the vital few against cost, severity and effort.
Exercise
A Pareto chart of 200 customer complaints has these bars, left to right: Late delivery 70, Damaged item 50, Wrong item 30, Billing error 20, Rude staff 10, Other 20. Which categories are the vital few at an 80 percent threshold, and what share do they cover? Does anything on the chart make you cautious?
Show answer
The cumulative shares are 35 percent (Late delivery), 60 percent (Damaged item), 75 percent (Wrong item), 85 percent (Billing error), 90 percent (Rude staff) and 100 percent (Other). After Wrong item the share is 75 percent, which is below 80, so Billing error is also included because it crosses the line. The vital few are Late delivery, Damaged item, Wrong item and Billing error, covering 85 percent. Two things call for caution. Four of six categories is a weak concentration, since the chart is fairly flat. Also, Other holds 10 percent, the same as the Rude staff bar and larger than it, so check that the categories are well defined, though Other is not large enough to hide a major cause here.
Exercise
Using the vital_few function, what does it return for pd.Series({"A": 30, "B": 30, "C": 20, "Other": 20}) at the default threshold, and why should you be cautious about presenting this as a vital few?
Show answer
The cumulative shares are 30, 60, 80 and 100 percent. The shares before each category are 0, 30, 60 and 80, and only values below 80 are kept, so it returns A, B and C, which cover 80 percent. Caution is needed for two reasons. Three of four categories is barely a concentration, and the chart is close to flat. Also, Other holds 20 percent, which is the same as C, so the grouping is hiding as much as a named category. The chart does not support a claim that a few causes dominate.
Exercise
A chart's cumulative line is drawn on a right axis that runs from 0 to 60 percent because the axis was left to autoscale. The line appears to reach the top of the chart after the third bar. What is wrong, and what should you check first?
Show answer
The right axis does not run to 100 percent, so the line's apparent height is misleading. The top of the chart is 60 percent, not 100, and the real cumulative share at the third bar may be much lower than it looks. Fix the axis to 0 to 100 and confirm the last point of the line sits at 100 percent, then read the crossing point again.