Understand the idea
Imagine a list of everything that went wrong on a production line last month: scratches, dents, loose screws, missing labels. A Pareto chart puts the most common problem first, the next most common second, and so on, as bars. Above them a line climbs from left to right: at each bar it shows what share of all the problems that bar and every bar before it account for. The line ends at 100%.
Read the line against the right-hand axis. Where it crosses 80% you have the 'vital few': the handful of categories that make up most of the total. Those are usually the first ones worth working on.
The '80/20 rule' says that about 20% of the causes often produce about 80% of the effect. It is a rule of thumb from experience, not a law of nature: in your data the first two categories might hold 95%, or it might take half the categories to reach 80%. The dashed 80% line only helps you read where your own data cross it.
A bar can be a count of rows (each row is one defect) or a total of a column (each row records how many defects, or what they cost). If each row records how many items it stands for (a Count column in a defect log), add that column up instead of counting rows: counting rows would treat a row that records 20 scratches the same as a row that records one, and can put the wrong category first. If each row is one item, counting the rows is right.
Practitioner explanation
KernelStats sorts the categories by their total, largest first; categories with equal totals keep the order in which they first appear in the data, so the order is the same every run and matches the Python, R and MATLAB code. Without a Value column each non-blank row counts once; with one, each bar is the sum of the column for that category (blank values left out, negative values refused, since a share of a total cannot be negative). The card states which it did, and when it counted rows while the table has a column whose name reads like counts (Count, Qty, Frequency, Number of ...) it warns and names that column.
The left axis runs from 0 to the grand total and the right axis from 0% to 100%, so the cumulative line and the bars share one scale. 'Bars before Other' (N) and 'Other after cumulative %' combine the tail into one Other bar, drawn last whatever its size (the usual Pareto convention); a single leftover category is never folded into Other. The Vital few tile counts the bars up to and including the one at which the cumulative percentage first reaches 80%.
The chart is descriptive. Whether two categories differ by more than sampling noise is a question for a chi-square goodness-of-fit test, and frequency is not severity: a weighted Pareto (by cost or time lost) often reorders the bars, and both views are worth drawing before choosing what to fix. Compared with R's qcc::pareto.chart, which also sorts by frequency and draws the cumulative curve, KernelStats adds the explicit tie rule, the Other options and the rows-or-column statement.
When to use it
Consider it when
You want to rank the categories of a problem (defect types, complaint reasons, causes of downtime, cost categories) and see which few account for most of the total.
Use caution when
The categories have a natural order of their own (months, sizes, ratings): sorting by size destroys that order, so use a bar chart in category order or a line chart. Or you need to know whether the categories truly differ: use a chi-square goodness-of-fit test.
Formulas and symbols
Cumulative percentage at bar k
T_j is the total of the j-th bar after sorting from largest to smallest (a count of rows, or the sum of the value column); K is the number of bars, including Other.
Assumptions and checks
- Categories spelled two ways ('Scratch' and 'scratch') are ranked as separate bars and can push a real leader down the order.
In KernelStats: The card warns when category levels differ only by case or spacing (the shared near-duplicate check); merging them is done in the data grid.
- Counting rows when each row records several items ranks categories by how often they were logged, not by how many items there were.
In KernelStats: The card states whether it counted rows or added up a column, and names a Count-like column when it counted rows.
Alternatives
- Bar Chart (Bar Chart). The categories have an order of their own that should be kept, or you want a summary other than a total (a mean, median, minimum or maximum of a value column).
- Chi-Square Goodness-of-Fit Test (Chi-Square Goodness-of-Fit Test). You need to say whether the category counts differ from equal shares by more than chance, rather than only ranking them.
Worked example
Scenario
A defect log with Date, Defect type and Count: Burr appears on 20 rows whose Count adds to 101; Scratch on 18 rows whose Count adds to 147.
Result
Counting rows ranks Burr first (20 against 18). Adding up Count ranks Scratch first: 147 (58.6% of 251), then Burr 101 (cumulative 98.8%).
Interpretation
The defect logged on more rows is not the defect with more items. Scratch is the larger problem by the count of defects, and the first two bars hold nearly all of them.
Dataset: a simulated defect log
Common misconceptions
Misconception
The Pareto chart proves that 20% of the causes create 80% of the problems.
Correction
The 80/20 split is a rule of thumb. The chart shows where your own cumulative line crosses 80%, which may take one category or most of them.
Misconception
The tallest bar is the most important problem to fix.
Correction
The tallest bar is the most frequent (or largest total) in this sample. A rarer problem can cost more; draw the chart weighted by cost as well before deciding.
Misconception
My defect log has a Count column, but counting the rows ranks the defects just as well.
Correction
Only if every row records a single defect. When a row records several, counting rows ranks categories by how often they were logged, not by how many defects there were: put the Count column in Value so each bar adds it up.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §6.6.2.1 (Pareto charts in a quality case study), NIST/SEMATECH (2012), §6.6.2.1.
