# A consumer KPI tree, fourth version (declared after a read of the third version's page, before any of this was computed)

Everything here was decided after the results of [DESIGN-kpitree-v3.md](DESIGN-kpitree-v3.md) had been read. It changes no frozen
file and repeats no scored result. The earlier versions' results stay as they are, and every miss stays reported. No new lever is run:
the half-holdout arm of the lasting point, already run in every world for its clocks, is run again with the same seeds and code only to
read the lift it measures, which the stored runs kept as z values alone.

## What a read of the third version's page found

1. **The arithmetic was handed the size of the change.** The planning arithmetic prices exactly one point
   (`revfc/kpitree_planner.py`, "dm = dm * (ret + 0.01) + 0.01 * mau[mo - 1]"), from whole-population tables, with no sampling noise.
   The scaled test has to estimate both the revenue difference and the lift. So the comparison in which the arithmetic came closer
   is partly built in.
2. **The page's one recommendation was never scored.** It says to measure the lift with a holdout and price it with the arithmetic.
   A team that does so multiplies the arithmetic's value per point by a lift it measured, and that measurement carries its own error,
   which no earlier version added.

## What is computed

**The measured lift.** In each of the 60 first-world worlds, the half-holdout run of the lasting point is repeated. Its tables give,
by arm, each month's users eligible for the own-KPI clock and those retained. The measured lift over months a to k since the change is
the treated arm's retained over eligible, summed over those months, minus the held-out arm's, in points. The primary reading takes
a = 2, dropping the first month's lag as the page advises ("size the point after any lag"); a = 1 is reported beside it. It is read at
k = 3, 6 and 12.

**The price.** The arithmetic's 12-month value of one point, times the measured lift in points, on the true path and on the forecast
path, each from `results/kpitree-v3-worlds.csv`. Scored over 12 months against the lasting point's truth in
`results/kpitree-v2-worlds.csv`, beside the scaled test on the same path, as the third version scored its rows: mean ratio to the
truth, mean absolute error of each, and the worlds in which each is closer.

**A 10% holdout, by scaling.** Not run. Its measured lift is taken as the lever's realised lift over the same months, from the stored
lever and no-change runs, plus the half holdout's own error times 1.67, the square root of (1/0.9 + 1/0.1)/4. The half holdout's mean
error against the realised lift is reported, since the scaling assumes it is centred there.

**Checks.** The repeated run must return the stored clocks exactly (the pooled, clustered, randomised and revenue z paths) in every
world, or this reading is void. Priced with a lift of exactly one point, the code must return the third version's counts for the
lasting point (48 of 60 on the true path, 57 of 60 on the forecast path).

**Not computed.** The held-out world has no holdout arm, as the first design declares, so this reading covers the first world only.
Activation is not priced this way: the page treats the arithmetic there as a ceiling, not as a price.

## Predictions, each reported whatever it shows

Written after reading the third version's results and the published lift path, before computing anything above. All on the true path,
with a = 2.

- **Half holdout, month 12.** The priced lift is closer to the truth than the scaled test in at least 40 of 60 worlds, and its mean
  absolute error is below the test's.
- **Half holdout, month 3 against month 12.** The mean absolute error at month 3 is larger than at month 12.
- **A 10% holdout, month 12.** The mean absolute error is below the scaled test's.
- **A 10% holdout, month 3.** The priced lift is closer than the scaled test in fewer than 40 of 60 worlds.
- **No bias in the measured lift.** Over months 2 to 12 the half holdout's lift averages within 0.1 points of the realised lift.

## What the page does with it, decided before computing

The advice to price a retention change with the arithmetic stays only if, with a half holdout read at month 12, the priced lift is
closer to the truth than the scaled test in more than half of the 60 worlds on both paths. Otherwise the advice changes, and the change
is declared on the page. The month-3 and 10% readings are stated on the page whatever they show.

## Limits declared before computing

- First world only, which shares its author with the method.
- The 10% holdout is a scaling of the half holdout's error, assuming the same effect and variance per user, not a run.
- The scaled test keeps its own sample and its 12 months of arms; it is not re-read at months 3 or 6.
- The arithmetic's value per point keeps the bias it showed in the third version; this reading adds the lift's error to it, it does
  not correct it.
