Mistake Master
Summary Statistics for Two Categorical Variables
Equal Counts, a 25-Point Gap, and Two Summaries That Disagree
You'll learnto turn one table of counts into the three tables of proportions it supports, and to report a comparison as a difference and as a ratio without letting either one do the arguing.
500 employees, cross-classified by whether they took an optional training and whether they later passed a certification. 150 of the trained passed. 150 of the untrained passed. The two counts are identical, and the pass rates are 25.0 percentage points apart, because one 150 came out of 200 people and the other out of 300. Divide every cell by the grand total and the four numbers sum to 1; divide by each row's own total and every row sums to 1; divide by each column's and every column does. Then the comparison itself is a choice: 75.0% against 50.0% is a gap of 25.0 points and a ratio of 1.5, and a side effect striking 2 and 6 per 1,000 is a gap of 0.4 points and a ratio of 3.0. One summary ranks those studies one way and the other ranks them the other way round. Twelve short steps; press Next for each one.
Read all 12 steps as text
Both pass counts are exactly the same
500 employees, classified by whether they took an optional training down the rows and by whether they later passed a certification across the columns — and reading the passed column, 150 trained employees passed and 150 untrained ones did.
But the two groups are not the same size
Read the margins instead: there are 200 trained employees and 300 untrained ones, so the same count came out of two quite different totals and nothing in a table of counts will tell you so.
Divide every cell by the grand total
The first conversion puts the same divisor under all four interior cells, and the tell is what happens when you add: 0.30 + 0.10 + 0.30 + 0.30 = 1.00 across the whole interior.
The direction that sums to 1 names it
Divide by each row's own total instead and every row sums to 1, which makes each row a distribution of one group — while the columns of that same table add to 1.25 and 0.75, and add to nothing in particular.
The same cell, conditioned the other way
Divide by each column's total and every column sums to 1 instead, so the same 150 now sits over the 300 employees who passed and reads 0.50 rather than 0.75.
Draw the two pass rates
Take the two rows of the row-conditional table and put them side by side as bars: 75.0% of the trained passed and 50.0% of the untrained did.
Equal counts, twenty-five points apart
That 25.0-percentage-point gap came out of two pass counts that were exactly equal, which is the quieter half of the failure: a raw-count reading of these two cells reports no difference at all, and there is nothing on screen to notice.
Points are not percent
A move from 50.0% to 75.0% is a rise of 25.0 percentage points, and as a relative change it is a 50.0% increase, because 25 is half of 50 — subtracting percentages gives points and dividing them gives a ratio.
A blend that contains the group
The overall pass rate is 300/500 = 60.0%, drawn here as the violet bar — but it is the group-size-weighted mean of 75.0% and 50.0%, so it already contains every trained employee, and a group is never compared against a total that includes it.
Two per thousand against six per thousand
The two summaries diverge hardest when the proportions are small, so here is the lesson's own pair drawn on the same percentage scale the employee bars used: a side effect striking 2 per 1,000 on placebo and 6 per 1,000 on the drug.
Give the ratio and the difference
Magnify that identical pair a hundredfold and the ratio of 3.0 becomes visible at last, while the difference stays 4 more cases per 1,000 — which is 0.4 percentage points, against the employees' 25.0.
Name the divisor, then name the summary
One table of 500 counts produced three tables of proportions and the only thing separating them was the divisor, and 75.0% against 50.0% is a difference of 25.0 percentage points and a ratio of 1.5 — never 25 percent, and never 15.0 points, which compares a group against a blend that contains it.