{
 "version": 1,
 "name": "Round 6: budget by lifetime value",
 "declared": "Before any code of this round existed and before any customer, cohort, lifetime value, budget split or score of this round was computed. The commit records the date.",
 "known_before_declaration": "The published results of rounds 1 to 5, including round 2's frozen world files and budget splits (attribution, calibrated model, truth's best). Two checks on round 2's observed inputs only: the last-touch label shares for organic customers sum to at most 0.84 in every week of every world (so no share is ever rescaled), and the weekly budget is US$47,461.54. Rough arithmetic on the declared retention ranges (written in the design note) gives lifetime multipliers near 2 for paid social and display, 3 for paid search and retargeting, 3.5 for organic customers and 4 for events. No customer, cohort or allocation of this round had been simulated on any seed.",
 "unchanged": "Every earlier round's code, seed streams, data, results and pages, apart from one link sentence on the entry page. Round 2's world files are read, never rewritten, and no model is refitted.",
 "seed": 20261008,
 "streams": "numpy default_rng(SeedSequence([20261008, 6, world, k, ...])): k = 1 lifetime parameters, 2 customers by source, 3 last-touch labels, 4 bootstrap (then channel index). No earlier round uses a stream that starts [20261008, 6].",
 "money": "Simulated US dollars at face value (no margin). Lifetime value is discounted at 10% a year.",
 "question": "On the same simulated company, its five paid channels and round 2's nine worlds, does allocating a fixed weekly budget by each channel's incremental customer lifetime value change the split, and the lifetime value earned, against allocating by attributed first-period revenue and by the calibrated media mix model's short-run ROI? And when calibration moves a channel's ROI in the middle of a quarter, how far do the rebased channel targets move from the original plan?",
 "worlds": {
  "source": "Round 2's nine worlds, media-mix-runs/world-0.json to world-8.json (3 truth scenarios times retargeting at 0, 4 and 8 points), read unchanged. mediamix.world.build(20261008, w) regenerates each world's weekly baseline and true channel contributions; the run refuses a world whose regenerated weekly revenue differs from the world file.",
  "first_period_revenue": "Round 2's weekly revenue is the first-year contract value of customers won that week (first-period revenue). Renewals are not in that series; they appear only in this round's order history."
 },
 "customers": {
  "sources": ["organic", "search", "social", "display", "events", "retarget"],
  "organic": "Customers behind the weekly baseline (demand times US$181.2K); the weekly measurement noise of round 2 creates no customers.",
  "weekly_new_customers": "Poisson(source revenue that week / mean first-year value of the source), for each of the 156 observed weeks; a channel's source revenue is its true weekly contribution in round 2's world.",
  "first_year_value": "mean first-year value of the source times exp(N(0, 0.5^2) - 0.125)",
  "mean_first_year_value_usd": {"organic": 24000, "search": 22000, "social": 14000, "display": 12000, "events": 40000, "retarget": 24000},
  "renewal": "Yearly. A customer reaches renewal 1 with probability p1 and each later renewal, given the one before, with probability p2. Renewal value = previous year's value times (1 + g) times exp(N(0, 0.05^2) - 0.00125). At most 4 renewals (5 contract years).",
  "parameters_drawn_per_world": "Uniform on each range, in the order organic, search, social, display, events, retarget, and p1, p2, g within each source, from stream k = 1.",
  "ranges": {
   "organic": {"p1": [0.78, 0.88], "p2": [0.85, 0.92], "g": [0.03, 0.07]},
   "search": {"p1": [0.68, 0.82], "p2": [0.80, 0.90], "g": [0.02, 0.06]},
   "social": {"p1": [0.45, 0.62], "p2": [0.68, 0.80], "g": [-0.02, 0.03]},
   "display": {"p1": [0.40, 0.58], "p2": [0.65, 0.78], "g": [-0.03, 0.02]},
   "events": {"p1": [0.82, 0.92], "p2": [0.88, 0.95], "g": [0.06, 0.12]},
   "retarget": {"p1": [0.62, 0.78], "p2": [0.78, 0.88], "g": [0.00, 0.05]}
  },
  "rationale": "Customers won at events and through search tend to be larger and stay longer; paid social and display bring smaller customers who churn more; customers retargeting tips over behave a little worse than organic ones. These are assumptions, not findings; every split difference below follows from them.",
  "lifetime_multiplier": "M = 1 + sum over k = 1..4 of S_k (1 + g)^k / 1.10^k, with S_1 = p1 and S_k = p1 p2^(k - 1): five contract years of value per US$1 of first-year value, discounted at 10% a year.",
  "observed_window": "Renewal k of a customer won in week a is observed (renewed or not, and its value) only if a + 52 k <= 155, the last observed week."
 },
 "labels": {
  "rule": "Each customer carries one last-touch channel label, drawn with the shares of round 2's last-touch credit rule in its acquisition week (stream k = 3); the rest are unlabelled (direct).",
  "shares": {
   "organic": "retarget 0.318 x (retargeting spend that week / its mean); search 0.20 x (search spend / its mean); social, display and events 0.03 each",
   "search": "retarget 0.20, search 0.70",
   "social": "retarget 0.40, search 0.15, social 0.35",
   "display": "retarget 0.40, search 0.15, display 0.35",
   "events": "retarget 0.40, search 0.15, events 0.35",
   "retarget": "retarget 1.0"
  },
  "rescale": "If the organic shares in a week sum above 1 they are scaled to sum to 1 and the week is counted (the inputs above say this never happens)."
 },
 "cohort_estimate": {
  "cohort": "Customers labelled with the channel (organic customers credited to it included, as a team's cohort table would have them).",
  "p1_hat": "renewals at k = 1 / customers whose renewal 1 is observed",
  "p2_hat": "renewals at k >= 2 / customers alive at k - 1 whose renewal k is observed (pooled over k); p1_hat if none is observed",
  "g_hat": "mean over observed renewals of (renewal value / previous year's value), minus 1",
  "multiplier": "M_hat = 1 + sum over k = 1..4 of S_hat_k (1 + g_hat)^k / 1.10^k",
  "lifetime_value_per_customer": "mean first-year value of the cohort times M_hat",
  "interval": "90%: 5th and 95th percentiles of M_hat over 1,000 bootstrap resamples of the cohort's customers (stream k = 4, channel index)",
  "failure": "A cohort with no observed renewal 1 makes its world a method failure: it leaves every count and is reported."
 },
 "readings": {
  "current": "Today's split: every channel at its mean weekly spend.",
  "attributed_first": "Last-touch ROI from the world file, linear (round 2's attribution split).",
  "attributed_ltv": "Last-touch ROI times the cohort multiplier M_hat, linear.",
  "mmm_short": "The calibrated media mix model's posterior response curves (round 2's calibrated split): short-run ROI, with incrementality from the holdout and the geo test.",
  "incremental_ltv": "The calibrated model's posterior response curves times the cohort multiplier M_hat.",
  "diagnostic_true_multiplier": "The calibrated model's curves times the true multiplier M of the customers each channel causes. A diagnostic that separates the multiplier's error from the ROI's; never a reading a team could compute.",
  "truth_short": "The truth's response curves, first-year value only (round 2's truth split).",
  "truth_ltv": "The truth's response curves times the true multiplier M: the best split for lifetime value."
 },
 "allocation": "mediamix.decide.allocate, unchanged: each channel between 0 and twice its mean spend on a US$100 grid, total equal to today's weekly budget, maximizing the weekly value the reading predicts (exact dynamic programming). The run refuses to go on unless attributed_first, mmm_short and truth_short reproduce round 2's frozen splits exactly.",
 "scoring": {
  "true_lifetime_value_yearly": "52 x sum over channels of the truth's steady-state weekly first-year value at the split times the true multiplier M (US$ of lifetime value from a year of new customers).",
  "true_first_year_yearly": "52 x the truth's steady-state weekly first-year value at the split.",
  "gain_vs_current": "true lifetime value a year of the split minus that of today's split",
  "share_of_available_gain": "gain_vs_current over truth_ltv's gain_vs_current",
  "channel_calls": "grow above 110% of mean spend, cut below 90%, else hold (mediamix.decide.call); right when equal to truth_ltv's call; 45 channel calls over 9 worlds.",
  "budget_moved": "half the sum over channels of the absolute difference between two splits, over the weekly budget",
  "tolerance": "Comparisons of value use a tolerance of 1e-9 US$K a week."
 },
 "regoal": {
  "quarter_weeks": 13,
  "calibration_after_week": 6,
  "original_plan": "allocate(the uncalibrated model's posterior curves times M_hat), set at the start of the quarter.",
  "rebased_plan": "weeks 7 to 13 at the incremental_ltv split (calibrated curves times M_hat).",
  "targets": "Per channel, the lifetime value and the first-year revenue the plan's model predicts for the quarter at steady state: original = 13 weeks of the uncalibrated model at the original plan; rebased = 6 weeks of the calibrated model at the original plan plus 7 weeks of the calibrated model at the rebased plan.",
  "truth": "The same arithmetic with the truth's curves and true multipliers: keep = 13 weeks at the original plan; rebase = 6 weeks at the original plan plus 7 at the rebased plan.",
  "measures": ["rebase gain: truth rebase minus truth keep", "target error: |sum of the plan's lifetime value targets minus the truth of that plan|, original against rebased"],
  "worked_example": "The median world by the absolute move of the total lifetime value target (rebased minus original): sort the nine worlds by that move, ties by lower world index, take the fifth.",
  "steady_state": "Every quarter figure uses steady-state weekly values; carryover across the switch is ignored on both sides."
 },
 "predictions": {
  "P1": {"text": "In every world the truth's lifetime value split and its first-year split differ by at least 10% of the weekly budget.", "note": "Follows from the assumed retention ranges; an assumption check, not a finding."},
  "P2": {"text": "The incremental lifetime value split earns more true lifetime value than the calibrated model's short-run split in at least 6 of 9 worlds."},
  "P3": {"text": "The incremental lifetime value split earns more true lifetime value than the attributed lifetime value split in at least 6 of 9 worlds."},
  "P4": {"text": "The attributed first-period split earns the least true lifetime value of the four readings in at least 6 of 9 worlds."},
  "P5": {"text": "The cohort multiplier is above the true multiplier of the customers the channel causes for paid social in at least 8 of 9 worlds and for display in at least 8 of 9 worlds."},
  "P6": {"text": "The cohort multiplier for events is below the true multiplier of the customers events causes in at least 7 of 9 worlds."},
  "P7": {"text": "The 90% intervals of the cohort multipliers contain the true multiplier of the customers the channel causes in at most 33 of the 45 channel-worlds."},
  "P8": {"text": "Rebasing at mid-quarter earns at least as much true lifetime value over the quarter as keeping the original plan in at least 6 of 9 worlds."},
  "P9": {"text": "The rebased total lifetime value target is closer to the truth of the rebased plan than the original target is to the truth of the original plan in at least 7 of 9 worlds."},
  "P10": {"text": "The diagnostic split (calibrated curves times the true multipliers) earns at least as much true lifetime value as the incremental lifetime value split in at least 6 of 9 worlds."}
 },
 "stopping": "One run on the study seed. Before it, only tests on made-up toy worlds built inside the tests; nothing of this round runs on round 2's world files before the study run. No reruns to change a result; any later change is a labelled amendment committed before it is used.",
 "outputs": ["results-lifetime-value.json", "lifetime-value-channels.csv", "lifetime-value-budget.csv", "lifetime-value-regoal.csv", "lifetime-value-customers.csv.gz"]
}
