# A consumer KPI tree: identity, prediction and cause (declared before any fit)

The study's published parts forecast revenue from its drivers, plan a sales team backwards from a target and reconcile
a patient-flow forecast with shipments. None defines a consumer funnel, says which links of a KPI tree are arithmetic,
which only predict and which are causal, or compares what a point of activation is worth against a point of retention.
That is this part's question, in four pieces:

1. A tree from sign-ups to revenue and margin, with one written definition per KPI, every link labelled identity,
   predictive association or causal effect.
2. Which early indicators lead, tested out of sample on rolling origins against a naive baseline: direction, size per
   unit, strength and horizon, with the failures reported.
3. How much revenue moves per unit of each driver, with intervals, and a short table for setting a team target.
4. What one point of activation is worth against one point of monthly retention, and how long each takes to show.

## Overlap test and the search for real data

Nearest published pages: the first two parts of this study (drivers of ride-hail revenue, forecast accuracy, on real
trips) and the order-value study (a KPI change split into mix and rate). Neither has a funnel, cohorts of customers, a
test or a causal label. The retail win-back study uses customers of a real gift-ware seller, and asks a different
question: who comes back. This part is a new round of this study because it shares the question family of building a
north star from its drivers and testing it out of sample.

Real public data was looked for first. It needs users followed from sign-up, an activation event, revenue per user, enough
months for rolling origins, and for the causal labels a randomised test. Nothing open has that:

| Candidate | Why it does not fit |
|---|---|
| Online Retail II (UCI, CC BY 4.0) | Two years of orders from a wholesaler-heavy seller, no sign-up, no activation event, no test; two published studies already read it |
| Stack Exchange data dumps | Timestamps per user over many years, but no revenue and no test; one published study already reads their counts |
| A mobile game launch log published in an R package | 29,324 events from one launch, no revenue |
| A web analytics demo dataset | Three months of one online shop, read through a cloud warehouse |
| Mobile game randomised retention data, subscription churn competition data | No sign-up time series or test across months; download behind an account, licence not established |

So the data is explicitly synthetic: a made-up home-workout app, free with ads or paid by subscription. Every rate is a
labelled assumption in `protocol-kpitree.json`, none is measured, and the results are properties of those assumptions.
The method carries; the numbers do not. It stands in for the KPI tree a consumer product team argues over when it sets
targets, and it is synthetic so that no company's data is shared. Synthetic also buys the one thing real data cannot
give: the truth of every causal link is known, so each estimator can be scored against it.

This file and the protocol were written and committed before any lever was run and before any indicator or estimator
was fitted. What was computed before declaring: one world's descriptive levels (activation rate, monthly retention, active
users, payers, revenue) at seed 7100, to set rates that look like a small consumer app. No lever, test readout, forecast
or fit had been computed. The results files of the published parts are unchanged; this part writes new files only.

## 1. The world (declared truths)

A month is exactly four weeks and a year twelve months, so no month is longer than another; month 1 is a January. The
world runs 60 months, week by week, one user at a time.

- **Sign-ups** come through organic (growing, seasonal, with a January peak), paid (a budget that steps every six months)
  and referral (a share of last month's active users).
- **Intent** is each user's latent motivation: a channel mean, a January dip, a slowly drifting cohort quality and
  individual noise. **No planner table holds it.** It drives activation, the profile, the first repeat, activity, lapsing,
  returning, paying and cancelling. This is the confounder.
- **Activation:** a first finished workout within 7 days of sign-up, by log-odds in intent. Week-one active days follow
  for those who activate. **First repeat:** another finished workout in days 8 to 14.
- **Profile completed** within 7 days, by log-odds in intent. **Declared truth: it causes nothing.** No later behaviour
  reads it.
- **Having started** (any finished workout, however late) raises weekly activity and lowers lapsing, and **a first repeat**
  lowers lapsing further. **These are the declared causal paths.** Someone who misses the 7-day window can still start
  later and then behaves like anyone else who has started; a lever on activation therefore moves some people who would
  have started anyway.
- **Live or lapsed:** a live user may act each week and may lapse, with a higher chance early in life; a lapsed user may
  return. Whole-base noise moves activity and lapsing month to month, with an occasional outage.
- **Money:** a free active user may start paying each week; a payer may cancel, and a lapsed payer is likelier to; a
  subscription bills a quarter of the price each week (US$9 a month, US$10 from month 25, with no response of demand to
  price); a free active week earns an ad rate with a Q4 peak and noise. Costs: a 15% payment fee on subscriptions,
  serving per active week, and US$7 per paid sign-up.
- **Three randomised tests** run inside the world, at no cost to the method:
  - *Test A, guided first workout:* half of all sign-ups in months 31 to 34; raises activation log-odds by a declared
    amount and does nothing else.
  - *Test B, profile prompt:* crossed with test A; raises profile log-odds by a declared amount and, by the truth above,
    changes nothing else.
  - *Test C, weekly reminder:* half of a 50% sample of users active in month 30, from month 31 to the end; lowers lapse
    log-odds by a declared amount.

Same random numbers: a lever re-runs the world from a snapshot of the base run at its start month, with each user's
random numbers in each week unchanged, so a difference between runs is the lever's effect. That difference over the
world's own users is **the truth** of the lever under these assumptions.

## 2. One written definition per KPI

| KPI | Numerator | Denominator | Window | Grain |
|---|---|---|---|---|
| Sign-ups | New accounts | none | Month | Month, channel |
| Activation rate | Sign-ups with a finished workout within 7 days of sign-up | Sign-ups | 7 days from sign-up | Sign-up month, channel |
| Week-one active days | Distinct days with a finished workout in the first 7 days, summed | Sign-ups | 7 days from sign-up | Sign-up month |
| First-repeat rate | Activated sign-ups with a finished workout in days 8 to 14 | Sign-ups | Days 8 to 14 | Sign-up month |
| Profile completed | Sign-ups completing the profile within 7 days | Sign-ups | 7 days from sign-up | Sign-up month |
| Monthly active users (MAU) | Users with at least one finished workout | none | Month | Month |
| New | MAU whose first finished workout ever is in this month | none | Month | Month |
| Retained | MAU who were also in last month's MAU | none | Month | Month |
| Resurrected | MAU who were active earlier, but not last month | none | Month | Month |
| Monthly retention | Retained | Last month's MAU | Month on month | Month |
| Third-month retention | Sign-ups active in the third month after their sign-up month | Sign-ups | Age 3 months | Sign-up month |
| Payers | Paying user-weeks divided by 4; a payer may be inactive | none | Month | Month |
| ARPU | Revenue | MAU | Month | Month |
| Revenue | Subscription plus ads | none | Month | Month |
| Contribution margin | Revenue minus payment fees, serving cost and paid acquisition | none | Month | Month |

## 3. The tree and the kind of each link

**Identities** (true by construction; the check is that they close, with a planted fault that breaks them):
revenue = MAU x ARPU; MAU = new + retained + resurrected; retained = last month's MAU x monthly retention; ARPU =
subscription ARPU + ads ARPU; subscription ARPU = payers per MAU x price; ads ARPU = free active weeks per MAU x ad rate;
margin = revenue minus the three costs. Closure is bookkeeping, not evidence.

**Predictive associations:** every indicator link in section 4. Tested out of sample; a pass says it forecasts, not that
moving it moves the target.

**Causal effects:** only links a randomised test supports: activation (test A), a reminder through monthly retention
(test C) and the profile (test B). Any other link stays predictive whatever its strength.

## 4. Leading indicators on rolling origins

The planner code reads only the planner tables: the monthly lines, cohorts by age and activated flag, flags at age 3, and
the three tests' arms.

**Indicators:** activation rate, week-one active days per sign-up, first-repeat rate, profile completed, paid share of
sign-ups, sign-ups, and a placebo (an independent seeded series that must fail). The first repeat of a cohort is known one
month later than the others, and it enters every test one month later.

**Cohort targets:** third-month retention (known 3 months after the sign-up month) and revenue per sign-up over its first
six months (known 5 months after).

**North star target:** monthly revenue, one, three and six months ahead.

**Baseline** (the same family as the study's published naive baseline): last year's same value times the growth of the
latest three known values over the same three a year earlier.

**Model:** log target = log baseline + beta x z, where z is the indicator's own log deviation from the same baseline formula
(for revenue, the mean of its three latest known cohorts against the same three a year earlier). One slope, no intercept,
fitted by least squares on everything known at the origin, at least 12 points. Rolling origin: every month with enough
history, to the last target in the world.

**Reported per indicator and target:** direction (the slope's sign), size per unit (target points or US$ per unit of the
indicator at its mean), mean absolute percentage error against the baseline, the paired difference with a moving-block
bootstrap 95% interval (block 3, 2,000 resamples) and the share of the 60 worlds where the model beats the baseline.

**Pass rule, one world and many:** the interval lies wholly below zero in the main world, and the model beats the baseline in
at least 80% of the 60 worlds. Thirty-five cells are tested, so on one world alone a false pass or two is expected; that is
what the second half of the rule is for.

**Association against cause:** third-month retention by flag in cohorts before the tests (activated, profile, first repeat)
against each test's effect per point of its first stage, with a 95% interval, and the world's truth.

## 5. What a point is worth

**One point of activation:** activation log-odds shift for sign-ups from month 37 on, solved so activation rises 1.00 point
over the first 12 months' sign-ups. **One point of monthly retention:** lapse log-odds shift for every live user from month
37 on, solved on 3 calibration seeds so monthly retention rises 1.00 point on average over the first 3 months. A point is
priced here, not the cost of getting one: points are not equally hard to win.

Three estimates of the 12-month and 24-month revenue change, each the sum of the monthly changes:

- **Arithmetic with averages** (what a planning meeting does with the tree):
  - Activation: 1 point x each month's sign-ups as they came x revenue per user by age, activated minus not, read from the
    12 months before the change.
  - Retention: extra users rolled forward with the month's observed retention plus a point, times that month's ARPU.
- **Scaled from the tests:**
  - Activation: test A's revenue per sign-up by age, treated minus control, divided by its activation lift and scaled to 1
    point x each month's sign-ups.
  - Retention: test C's revenue per user by month since its start, treated minus control, divided by its monthly retention
    lift over its first 3 months, scaled to 1 point x the active users at the change plus each later month's new and
    resurrected users. Using a tested base's effect for later entrants is an assumption.
  - The 95% interval is a delta-method interval on the test's ratio over the same horizon, carried to the estimate as a
    relative error. Tests cannot see referrals their extra users bring.
- **The truth:** the lever's run minus the base run in the same world.

Reported: per estimate, the mean over the 60 worlds and the 2.5th to 97.5th percentile of the world values; ratios to the
truth per world; how often the test-scaled interval holds the truth, with a Wilson interval.

## 6. How long each takes to show

Three clocks, for each point, over 24 months from the change:

- **Its own KPI, with a holdout:** half of the users stay out. Cumulative share activated, or cumulative monthly retention,
  treated against control; the first month with at least 80% of the 60 worlds at z above 1.96.
- **Revenue, with a holdout:** cumulative revenue per user, treated against control, over sign-ups since the change or over
  users active the month before it; the same 80% rule.
- **The revenue line, no holdout:** the true monthly effect as a percent of revenue against the 90% band of the naive
  baseline's one-month-ahead errors over the 12 months before the change; the first month the mean effect stays above the
  band's half width.

Also: the months until the monthly revenue effect reaches half its month-24 size.

## 7. Sensitivity and targets

**Per driver, sorted, with intervals:** the 12-month revenue change from one point of monthly retention, of activation and of
first repeat, 1% more organic and paid sign-ups, 10% better returning, 10% better conversion to paying and 10% fewer
cancels (each 10% applied as a log-odds shift of about 0.1), 1% on price and 1% on ad rate. Price and ad rate have no
demand response here, so they are arithmetic on the tree (labelled identity); the rest are the world's truth under its
assumptions, and only activation and retention have a test-scaled estimate. Linearity check: 3 points of each against 3
times one point.

**Target table:** what each driver alone would need for 5% more revenue in the 12th month after the change, read from
the per-unit effects, with the identity or estimate label.

**When the answer changes:** the same two points from months 13, 25 and 49 (a younger and an older app).

**Which assumptions move it:** each input in the protocol's `sweep`, one at a time at its low and high value over 6 worlds:
both points' 12-month value per realised point, their ratio and the arithmetic's ratio to the truth.

## 8. A held-out world

The first world and this method have one author, and a method tested on its own assumptions is a self-test. So an
independent author who never saw this file, the world or the method writes a second world from a description of the tables
alone, choosing its own mechanisms and truths. The planner code runs on it unchanged, over 20 seeds. Reported beside the
first world, never pooled. If that world cannot run, the page says so and the claims stay on the first world.

## 9. Declared predictions

Each is reported whatever it shows.

- **P1.** The arithmetic with averages overvalues a point of activation at least 1.5 times over 12 months. Supported: the
  2.5th percentile of its ratio to the truth is at least 1.5. Direction only: the mean is at least 1.5 and that percentile
  is not. Not supported: the mean is under 1.5.
- **P2.** A point of retention is worth more than a point of activation over 12 months from month 37 in at least 95% of
  worlds, and the ratio is smaller for a change at month 13. Supported if both hold.
- **P3.** On a half holdout the retention point reaches 80% power sooner than the activation point, on its own KPI and on
  revenue. Supported if both hold.
- **P4.** The test-scaled 95% interval holds the truth in at least 90% of worlds, for both points, over 12 months.
  Supported if both hold.
- **P5.** Week-one active days and the first repeat pass on third-month retention; the placebo passes nowhere; profile
  completed passes on third-month retention although its test shows no effect; no indicator passes on revenue one month
  ahead. Supported if all four hold; each is also reported alone.
- **P6.** On the held-out world, the test-scaled interval holds the truth in at least 80% of seeds for both points and the
  arithmetic overvalues activation at least 1.2 times (mean ratio). Supported if all hold.

## 10. Limits declared before running

- A synthetic app and assumed rates. The results describe these assumptions; P1 in particular follows from intent driving
  both activation and staying, and how far is an assumption, which the sweep and the held-out world test.
- A point is priced, not its cost. No price response, no competitor, no saturation of the funnel, no fatigue from reminders;
  a lever works the same at any size.
- Tests are clean by construction: no leakage between arms and full compliance with assignment.
- Sixty worlds, so a percentile or power figure carries sampling error of its own.

## Frozen-results check

The results file is pinned by sha256 in the tests, and a re-run from the committed protocol, with no network, reproduces
it byte for byte.
