Every number shows its working
In a technical document of mine no number is typed by hand. That bookkeeper's rule saved a true claim that was about to be dismissed as false.
A few months ago I spent several weeks with a technical paper by another author in my field open on the desk, reading it pencil in hand. It was serious work, with good ideas and with real problems of the kind that are not fixed by moving a comma, so I prepared a formal technical analysis and, before giving it any other shape, talked it over privately with the author. The conversation was constructive, as these conversations tend to be when both sides want the result to come out right and neither is in a hurry to win.
When the time came to hand over the code behind my results, the usual thing would have been to package it, write some instructions and trust that whoever opened it would find what I had found, and instead I set myself a stricter rule, that no number in the document could be typed by hand. Every one of them had to come out of a program, and a checker, a small watchdog program, went through the whole text and refused to pass it the moment it found a figure written in directly, even a correct one, even one I had copied with all the care in the world.
The reasoning is less odd than it sounds, because a figure typed by hand is a copy that stays put while the calculation keeps moving. All it takes is an afternoon when a data point is corrected or a setting is fine-tuned for the figure in the text to remain just as neatly written and already out of date, untouched, because nothing records that it ought to be touched. With the rule in place, the text is assembled from the calculation every time it is generated, so whatever changes in one changes in the other without anyone having to remember.
It looks like a bookkeeper’s obsession, and to a large extent it is. In a serious set of accounts every figure needs its receipt, and a figure without an invoice counts for nothing even if the total balances, which no auditor finds excessive, whereas in technical work, where numbers hold up conclusions that others will rely on, far less is asked. Being right about the conclusions is not enough, because what gives a result its value is that anyone can regenerate it from scratch, on their own machine and without asking me anything, and get the same answer.
It is a rule of the trade, and I apply it to my own work before anyone else’s, partly for consistency, since I was pointing out problems in somebody else’s work, and partly because mine is the only place where I can impose it without asking permission.
Every claim with its receipt
With the rule up and running, I audited every claim in the document one by one, about 100 of them, and for each one I wanted to know where it came from. If it came from a calculation, the program had to produce it, if it came from another paper, the citation had to say what I was making it say, and if it came from a line of reasoning, that reasoning had to be written out in the text itself, from start to finish. That way I sorted them by their backing, separating the ones that came with an invoice from the ones that were a slip of paper with a number on it.
Citations of theorems called for particular care. A theorem only holds within its hypotheses, which are the conditions that must be met for its conclusion to apply, and cited outside them it yields a faulty argument however prestigious it may be, so every citation was checked against its source, with the full statement and every condition read through to the last.
The same rule meant withdrawing the material that could not be regenerated, which is what it is for.
By the end, the main conclusions all stood, now on firmer arguments than at the start, and the document came out shorter, more focused and fairer to the work under analysis, which I now credited clearly with what it did well, and that was no small amount. All the material can be reproduced from scratch on any machine in about 10 minutes, and on a different operating system the numbers come out identical.
I also asked for independent reviews, done by someone with no prior context, so that the work would not be marking itself, because whoever has written a document reads it with everything they know and fills in, without noticing, the gaps a new reader spots straight away, whereas a cold reader reads only what is on the page and, if something does not follow from it, says so.
The swapped dice
The story that best explains all this began with a small discrepancy, because for a few hours it looked as if one of the reproductions did not match the published values. The program gave one number and the original paper gave another, with a modest and stubborn difference that came out the same on every run, and since the rule asked for the usual thing, that whatever cannot be regenerated is withdrawn, the claim that depended on that number came close to being withdrawn as incorrect.
Following that mismatch back to its source leads into the program’s innards, a trip heavy on machinery, and readers with no appetite for gears today are free to sit it out.
Before it was withdrawn, a cold review went looking for the cause and found it somewhere few people look. A widely used numerical library, meaning a collection of calculation routines installed on half the computers in the world, had changed its random number generator from one version to the next, the generator being the part that produces the make-believe randomness simulations are built on, starting from an initial number called a seed. The call was the same and so was the seed, yet the dice were different, as if someone had swapped the die in a board game for one that looks identical from the outside but has its numbers arranged differently across the faces, so nobody cheats and the game still turns out differently. With the earlier version of the library the reproduction was exact, so the claim was true and the only thing missing was a record of the environment.
A rule like this seems designed to knock things down, and its best service in this work was to save something, because without a calculation to run again the discrepancy would have been a suspicion, and a well-argued suspicion is enough to have a true claim dismissed as false. With the calculation in front of us, the discrepancy became a question with an answer, and the answer took up one line in the description of the environment.
That leads to a very practical lesson, that the versions of the tools are part of the result in the same way that units are part of a measurement. A number that depends on a library also depends on which version of that library calculated it, and if the document does not say so, the number travels with half its address missing. Sometimes it arrives, and sometimes it ends up wandering round the neighbourhood.
The same slip weighs very differently depending on who finds it, because a fault you discover yourself is noted and corrected without fuss, whereas the same fault pointed out by someone else calls for explanations and casts a shadow over everything else. Correcting things before they are pointed out to you is what builds trust, and the only way to do that every time is to have a mechanism that points them out to you first, which is what a checker that refuses to accept a hand-typed figure does, with nothing showy about it and a great deal of effect.
None of this is confined to technical papers, because it works just as well for a report to a client or for a quote, for any document on which someone will base a decision about a figure. In every case the question is where that number comes from and what it would take to obtain it again, and if the answer is that someone typed it in after seeing it somewhere else, the number may be correct and nobody has yet shown that it is.
A number without its working is an opinion with decimal places.