Purple IT Notes

A Short Note on Small Samples

A dentist I work with asked me last month whether the new backup software we had installed was better than the old one. I said yes, absolutely, and I had the numbers to prove it. The old software had failed once in its last eleven nightly runs. The new one had run eleven times with zero failures.

I was pleased with myself for about a day, and then I sat down and did what I should have done first, which was to think about how little eleven nights tells you.

If the old software failed one night in eleven, that’s about 9 percent. But a program that really fails 2 percent of the time could easily have one bad night in a stretch of eleven. And a program that really fails 15 percent of the time could easily go eleven nights without a problem. Eleven nights cannot tell those apart. My “proof” was mostly luck, and it happened to agree with what I wanted, which is the most dangerous kind of luck there is.

The fix, if you want to do this properly, is to start from what you already know about how often this kind of thing usually fails and let the small sample nudge you only a little. Statisticians call this shrinkage. I call it not getting excited. A small sample that says something surprising should move you a small amount. A small sample that says something extremely surprising should mostly make you suspicious.

We kept the new software. It’s fine. After six months it has failed twice, which is about what the old one did. I told the dentist that, too.

I’m writing this down mostly for myself. I like numbers, and I especially like numbers that tell me I was right. The most important habit I have is distrusting those numbers the most.