# Fourth version: the low end at the reversal line, what the test needs, and totals by fault kind

Declared after the first three versions' results had been read, and before the code below was written or run.
Nothing in any earlier version is edited: protocol-r1.json, predictions-r1.json, every results/*-r1.json file,
CHANGES-r2.md, CHANGES-r3.md, results/change2-r2.json and results/change3-r3.json stay as they are, and the pages
report their figures beside these.

## Why

The third version put the quick checks between 17 and 25 of 40 random faults: 25 if the target rules are judged
against failures already traced to their cause, 17 if every failure on the first run is accepted as an exception, so
the rules catch nothing. The reversal line on charge-off faults and the "only the rebuild" figure were stated at the
upper end only. The proposed test gives the number of charge-off-moving faults it needs, not the number of draws. And
the totals' catch share is one rate pooled over fault kinds that behave in opposite ways. Every figure here comes from
the stored per-fault records, was chosen after the results and is labelled so on the pages; none enters a headline hit
rate.

## Part A: the reversal line at the low end

- Of the 15 random faults that move a charge-off figure, how many the quick checks miss with the target rules removed
  (totals and the code census only).
- Expectation: 4 of 15. The quick checks miss F08 at the upper end, and F05, F22 and F28 were caught by the rules alone.

## Part B: code faults past the quick checks, both ends

- Of the 33 random faults in code, how many pass the quick checks at the upper end and with the rules removed.
- Expectation: 11 and 16.

## Part C: draws the test needs

- At the random set's share of charge-off-moving faults (15 of 40), the mean number of draws to reach 436 such faults,
  and the number that reaches 436 with 95% chance (negative binomial, exact).
- Expectation: about 1,160 mean, and somewhat more for 95%.

## Part D: totals by fault kind

- For each fault in both sets, whether it touches a count or a summed amount, read from its stored effect on the
  converted table and not from the totals flag: records missing, extra copies or extra ids, or a changed approved,
  guaranteed or charged-off amount field. Then the totals' catches by layer and by fault family against that flag.
- Expectation: in code, totals fire on every fault that touches a count or a summed amount and on no other; in the rule
  document, on none (their source side uses the document's units).

No pass bars: these are bookkeeping on stored results and sizing.

Code: tools/change4.py. Output: results/change4-r4.json.
