Rates, offsets and unequal exposure
Today let's understand the offset: the fix for comparing counts that were logged over windows of very different sizes.
Here is the example for the whole lesson. A factory floor runs twenty machines, ten of them old and ten of them new. For every machine, March logged two numbers: how many hours it ran that month, and how many times it broke down.
Below are eight of the twenty machines, four old and four new.
Look at the hours column in that table. Even in these eight rows, the old machines and the new machines were not run anywhere close to the same number of hours. Keep that in mind as you read the breakdowns column next to it.
What the raw numbers hide
Let's build the full 20-machine dataset first, since every number in this lesson comes from it.
The ten old machines ran between 133 and 214 hours in March. The ten new machines ran between 523 and 696. Those two ranges do not overlap at all: even the busiest old machine ran fewer hours than the quietest new one.
Plot all twenty machines by type and the same gap shows up as a picture.
Switch to the boxplot view. The two boxes sit nowhere near each other, which is the same non-overlapping ranges you just computed, drawn instead of counted.
Now look at what happened to breakdowns, the thing you actually care about.
Old machines averaged 4.6 breakdowns in March. New machines averaged 4.7. Almost identical. And the correlation between hours and raw breakdowns, across all twenty machines, is 0.036, about as flat as a correlation gets.
Put those two facts next to the hours chart you just saw, and something does not add up. The new machines ran more than three times as many hours as the old ones, yet they logged about the same number of breakdowns and hours barely correlates with breakdowns at all. Either hours genuinely have nothing to do with how often a machine breaks down, or the raw count is hiding something that a look at hours alone cannot show.