The Denominator Problem: When Percentages Mislead | Uday Sonawane| Mycroft

Using a checker that reviewed 97 recipes and 616 findings, the video shows how the same defect can look rare, impossible or universal depending on what is counted. It offers three questions to ask of any percentage in a report.

3:29 video3 min readWatch on YouTube

A checker reported that a defect affected 4% of a repository. That number was wrong, and what exposed it was a second number that came out at 200%. In this video, Humanitarians AI Fellow Uday Sonawane walks through his week on a project called Mycroft, using a recipe-checking investigation to show how a percentage can mislead when the denominator changes, even though the underlying finding stays the same.

A command that never existed

The previous episode made the conformance checker actually open the step scripts. This week goes one layer up. Every recipe in the repository ends by telling the reader to run a command called snickerdoodle, and that command had never existed. The instruction was written 1,444 times across 97 recipes and nobody could run it.

Three questions for any percentage

The video proposes three questions for any percentage in any report.

  • What is the denominator? Name the population out loud.
  • Could every item in it actually have been found, or are some sitting in the denominator as silent passes?
  • Is the share one defect or many?

The reasoning for the third is that a finding in 97% of things sharing a template is one defect, not 94.

What the check found

The goal was to stop finding these problems one at a time by failing on them, and to measure how widespread they are without running anything. The checker covered 97 recipes and produced 616 findings. 94 of the 97 named step scripts that do not exist on disk, and zero recipes came back clean.

The same finding, three denominators

Four recipes advertise a flag that no script implements. Scored against all 97, that is 4%, which reads as rare. But 93 of the 97 have no scripts on disk at all, so they could never have produced this finding. They were sitting in the denominator as silent passes. Scored against recipes with no missing scripts, the figure is four over two, or 200%. The right denominator is recipes with at least one script to compare, which gives four over four, or 100%: not rare, but universal. The checker's own source comment records why the obvious denominator is wrong.

One defect or ninety-four

The 94 recipes naming missing scripts all inherit the same template, so this is one defect in one place repeated 94 times. Read as 94 defects it is a quarter's work; read as one it is an afternoon, and fixing it at the source closes it everywhere.

The recount

Following the series rule of recounting rather than trusting a commit message, the speaker ran the committed checker himself, and every figure reproduced. One discrepancy resolved: the last episode counted 99 recipes and this one says 97, but there are 99 files and 97 carry the snickerdoodle contract. Both numbers were right and were counting different things. The same commit built the command, extracted from the spec already written in every recipe. Gate decisions now refuse an approval when the gate's own test fails, refuse any decision without a note, and require a named human. Approving anything that touches live action takes a second deliberate flag. A bug was also fixed in which gate tests written for POSIX shell ran under the wrong shell on Windows and reported failures for tests that actually pass.

Key takeaways

  • A percentage is only meaningful once the denominator is named.
  • Items that could never produce a finding count as silent passes and distort the result.
  • The same four recipes read as 4%, 200% or 100% depending on the denominator.
  • A finding repeated across a shared template is one defect, not many.
  • Recount a result yourself rather than trusting a commit message.
  • Two counts that disagree may simply be counting different things.
  • Something that cannot produce the finding is not a pass; it is not a measurement.

Try it yourself

Find a percentage in your own dashboard and ask what is in its denominator. Then ask how many of those items could actually have failed.

Chapters

  1. 0:00Introduction
  2. 0:20The Command Every Recipe Documents
  3. 0:45Three Questions for Any Percentage
  4. 1:10What the Check Found
  5. 1:40The Same Finding, Three Denominators
  6. 2:10One Defect or Ninety-Four?
  7. 2:40The Recount
  8. 3:10The Command It Built
Full transcript(auto-generated, with timestamps)

Introduction

[0:00]I'm You Deserve a win and this is my week on Mycroft. I built a checker and it told me a defect affected 4% of the repository. That number was wrong and the thing that caught it was a second number that came out at 200%. Last episode I made the conformance checker actually open the step scripts. This week goes one layer up. Every recipe in the repository ends by telling the

The Command Every Recipe Documents

[0:21]Reader to run a command called snickerdoodle. That command had never existed. The instruction was written 1,444 times across 97 recipes and nobody could run it. Three questions for any percentage in any report. One, what is the denominator? Name the population out loud. Two, could every item in it actually have been found or are some of them sitting in the denominator as silent passes? Three, is the share one defect or many?

Three Questions for Any Percentage

[0:45]Because a finding in 97% of things that share a template is one defect, not 94. The ask was simple. Stop finding these one at a time by failing on them and measure how widespread they are without running anything. Here is what it found. 97 recipes, 616 findings. 94 of the 97 named step scripts that do not exist on disk and the number that matters for what comes next, zero recipes came back clean.

What the Check Found

[1:11]Now the denominator. Four recipes advertise a flag that no script implements. Score that against all 97 and you get 4% which reads as rare. But 93 of those 97 have no scripts on disk at all. They could never have produced this finding. They were sitting in the denominator as silent passes. Second attempt, score it against recipes with no missing scripts. That is two, four over two, 200%. The right denominator is recipes with at least one script to compare four, four over four, 100%, not rare, universal.

The Same Finding, Three Denominators

[1:43]The checker says this out loud in its own source. The comment records why the obvious denominator is wrong. Scoring the findings out of all 97 reports them as rare when they are near universal among the recipes where they are measurable at all. Question three and it changes what you do on Monday. 94 recipes name scripts that do not exist. That is not 94 defects. They all inherit the same template, so it is one defect in one place repeated 94 times. Read as 94, it is a quarter's work. Read as one, it is

One Defect or Ninety-Four?

[2:11]An afternoon and fixing it there closes it everywhere. The series rule is to recount rather than trust the commit message, so I ran the committed checker myself. 97 recipes, 616 findings, 94 of 97, four of four at 100%. Every figure reproduces exactly. And one discrepancy resolved rather than found. Last episode, I counted 99 recipes. This one says 97. There are 99 files. 97 of them carry the

The Recount

[2:40]Snickerdoodle contract. Both numbers were right. They were counting different things. The other commit built the command. It was extracted, not invented. The spec was already written in every recipe. Gate decisions now refuse an approval when the gate's own test fails. Refuse any decision without a note and require a named human. Approving anything that touches live action takes a second deliberate flag. And one bug worth the whole commit. Gate tests are POSIX shell, but on Windows, they were running under the wrong shell. So, a gate reported a failure for a test

The Command It Built

[3:10]That actually passes. That would have been written down as real evidence. Your turn. Find a percentage in your own dashboard and ask what is in its denominator. Then ask how many of those could actually have failed. If something cannot produce the finding, it is not a pass. It is not a measurement at all. 200%.

More from Mycroft Financial AI

Humanitarians AI Lyrical Literacy Project