Skip to content

Tables and charts for categorical data

Summarise a categorical variable in a frequency and percentage table and a chart, and use a Pareto chart's cumulative percentages to name the vital few causes.

It opens on

Harbor and Pine logged 200 complaints last quarter in six types, and late delivery had 80 of them. Is late delivery about a tenth, about two fifths, or about three quarters of all 200?

Why it matters

Managers decide where to spend money by looking at counts of defects, complaints and returns, and a well-chosen chart shows in seconds which few causes matter most.

Good to know first

  • categorical variable

Step by step

  1. The frequency and percentage table

    Build a frequency, relative frequency and percent table for a categorical variable and check that the percents add to 100.

    For late delivery, 80 / 200 = 0.40.

    80 / 200 = 0.40

    A common mix-up

    80 complaints means 80%.

    In fact: A frequency becomes a percent only after dividing by n; with n = 200, 80 is 40%.

  2. Bar chart and pie chart

    Draw a bar chart and a pie chart from a frequency table, find a pie slice's angle, and say which chart suits which job.

    Late delivery is 0.40 of the complaints, so its slice is 0.40 × 360° = 144°.

    0.40 × 360° = 144°

    A common mix-up

    A pie chart suits any categorical data.

    In fact: A pie must show parts of one whole that add to 100%, and it becomes unreadable with many slices.

  3. The Pareto chart and the vital few

    Sort a bar chart into a Pareto chart, add the cumulative percents and name the few types that account for about 80% of the problem.

    Late delivery is 40%. Adding damaged item gives 40% + 26% = 66%, then adding wrong item gives 66% + 15% = 81%.

    40%, 66%, 81%

    A common mix-up

    The longest bar is the only cause worth fixing.

    In fact: One cause rarely covers 80%; the cumulative percent shows how many causes together do.

  4. Reading charts honestly

    Spot a bar chart whose cut axis exaggerates a change and say what an honest chart of categories needs.

    Measured from 72, the bars are 76 − 72 = 4 and 80 − 72 = 8 tall, so the second looks twice as tall as the first.

    4 and 8 look like a ratio of 2

    A common mix-up

    A chart is accurate if its numbers are right.

    In fact: The shape of the picture carries a message too, and a cut axis or a crowded pie can mislead with correct numbers.

Try it

In another quarter, 250 complaints were logged and 75 were billing errors. Find the relative frequency and the percent.Answer

0.30, which is 30%

Hint: Divide 75 by 250

A type holds 35% of the cases. What angle is its pie slice?Answer

0.35 × 360° = 126°

Hint: Turn the percent into a fraction of 360°

A plant counts 100 defects: scratches 46, dents 28, misaligned 14, cracks 8, other 4. Which types give at least 85% of the defects?Answer

Scratches, dents and misaligned, with 88%

Hint: Add the percents left to right

Sales bars of 200 and 210 are drawn from an axis that starts at 190. How many times taller does the second look, and what is the real increase?Answer

It looks 2 times taller (20 against 10), but is really an increase of 5%

Hint: Subtract the axis start first

Wrong item has 30 complaints. What are its relative frequency and its percent?Answer

30 / 200 = 0.15, which is 15%

Tables and charts for categorical data

30 minutes every month. No card.