feat: the additional analyses as a module of their own

tilleggsanalyser.py computes clarifications 145, 146 and 148 on step 1
(the mean of the net present value with its standard error, half the
construction time for small units with the free choice of unit size, the
net present value in twenty terms), with a command line of its own. It
edits no other module. 40 tests on made-up numbers.

Clarification 150 holds what the builder and an independent reader found:
the reader coded the three from the text alone, and on made-up numbers the
net present value agreed to the last digit, the terms within 2e-15 and
the choice of unit in every case, also on 5 000 made-up cost tables.

Nothing is run on the frozen numbers.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-11-23 21:46:38 +01:00
commit 979c13f863
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
5 changed files with 1347 additions and 2 deletions

View file

@ -25,10 +25,11 @@ carousel, Python code, and a Claude plugin (own repo, later).
- `FORHANDSREGISTRERING.md`: the approved direction and pre-registered criteria (M1–M7). Committed.
- `modell/spesifikasjon.md`: the model specification (equations S1–S54; clarification 143, 2026-11-23, corrects the
sentence of chapter 2 on interest during the data centre's construction, which pulls against the programme
in net present value and is not computed; clarifications 144 to 149, 2026-11-23, approved by the operator
in net present value and is not computed; clarifications 144 to 150, 2026-11-23, approved by the operator
the same day, fix the additional analyses made after the results, before any of them is computed: the rule
for the order, what was known beforehand, all fifteen with a decision, and how nr. 12, 13, 11 and 14 are
computed, checked and stored in `data/tillegg/`, outside the verdicts; chapter 17, the addition to the
computed, checked and stored in `data/tillegg/`, outside the verdicts (150 holds what the builder and the
independent reader found); chapter 17, the addition to the
direction, is coded all the way: solution T through the build-out, the power system, the cash flow, the
levelised cost, ownership, scale, M5 and the verdicts, and S48–S54).
`modell/parametere.json`: the frozen
@ -144,6 +145,13 @@ carousel, Python code, and a Claude plugin (own repo, later).
built; a pass of its own with the same build-out and programme as `regn_bane`), and their checksums in
`tillegg.json`. It edits none of the modules behind the six files; a value that is not a finite number
stops it, and so does a folder whose `innhold.json` has another head.
`tilleggsanalyser.py` holds the additional analyses made after the results (clarifications 144 to 150), with a
command line of its own (`python -m tokenfabrikker.tilleggsanalyser (--grunnlag FIL | --frys) --ut MAPPE
[--filer ...] [--trekninger N] [--prosesser N]`): `forventet.json` (the mean of the net present value with its
standard error, and the percentiles), `halv_byggetid.json` (half the construction time for small units with
the free choice of unit size, as a row, with rows 8 and 9 recomputed as controls) and `ledd.json` (the net
present value in twenty terms and five groups), step 1 only, and `sjekksummer.json`. It edits no other
module; `tests/test_tilleggsanalyser.py` holds it on made-up numbers. Not yet run on the frozen numbers.
- `data/trekninger.npy` and `data/trekninger.json`: the 10 000 draws of the 91 drawn quantities, in the parameter
file's units. `data/aarshendelser.npy` and `.json`: one uniform number per draw and year 2028–2100 for the
export rule (own seed). Committed; every later computation reads them.