{
  "version": 1,
  "name": "Round 9: a broken geo test in the budget",
  "declared": "Before any code of this round existed and before any fit, split or score of this round was computed. The commit records the date.",
  "known_before_declaration": "The published results of rounds 1 to 8, including round 2's world files (true parameters, its own geo test, the holdout reading, the calibrated fit and its budget splits) and round 7's run file geo-checks-runs.csv.gz (every read, standard error and flag). In round 2's truth, the best split grows paid search in 8 of 9 worlds and cuts it in 1. A refit of world 1 (index 0) with round 2's own geo test and seeds, run to time the model, reproduced the published calibrated fit's kept draws exactly; no fit with a round 7 readout had been run.",
  "unchanged": "Round 2's model, priors, sampler settings, convergence gate, seeds, holdout reading and budget rule (mediamix.model, mediamix.decide, mediamix.run.seeds with component FIT_C); round 7's runs, reads and checks. Every earlier round's code, data, results and pages stay as they are, apart from one link sentence on the entry page.",
  "question": "When the geo test that calibrates round 2's media mix model breaks in one of round 7's ways, and its readout goes into the model anyway, how does the budget split move, what does that earn under the truth, and what does dropping a flagged readout leave?",
  "worlds": "Round 2's nine worlds (3 truth scenarios times retargeting at 0, 4 and 8 points), indexes 0 to 8, with round 2's observed weekly series, spends and truth from media-mix-runs/world-N.json.",
  "readouts": {
    "source": "geo-checks-runs.csv.gz, round 7's 400 runs per cell and world, read at the planned readout.",
    "flagged": "A run is flagged when any of round 7's five checks (C1 to C5) has a first flag day recorded, from launch to the planned readout: a non-empty C1_first_flag_day to C5_first_flag_day. Round 7's checks and thresholds are used unchanged.",
    "selection": "Within a world and a cell (and, for the shock cell, within its flagged or its unflagged runs), sort the runs by (read_weekly_usd, run) ascending and take the one at index floor((n - 1) / 2): the lower median read. If a set is empty in a world, that readout is untestable there and leaves that row's counts.",
    "list": {
      "healthy": "No break (cell healthy), any flag status.",
      "leak": "Spend leak into the held-out regions (cell leak), any flag status.",
      "pacing": "Pacing change in the live regions (cell pacing), any flag status.",
      "shock_unflagged": "Regional demand shock (cell shock), among runs no check flagged.",
      "shock_flagged": "Regional demand shock (cell shock), among runs some check flagged.",
      "lag60": "A 60-day conversion lag (cell lag60), any flag status.",
      "none": "No geo readout: the model calibrated with round 2's holdout reading alone. This is what a team that drops a flagged readout feeds in."
    },
    "into_the_model": "The readout replaces round 2's geo test in the calibrated fit: geo = {channel: 'search', weeks: round 2's geo test weeks for that world, estimate: read_weekly_usd / 1000, se: se_weekly_usd / 1000} (US$K a week, the unit of round 2's geo likelihood). Round 7's geo test is round 2's test on paid search, so the channel and weeks are round 2's. The holdout term is round 2's, unchanged, in every fit."
  },
  "fit": {
    "model": "mediamix.model.fit_gated, unchanged: the same priors, sampler settings (1,000 draws and 1,000 tuning steps on 4 chains, target acceptance 0.95), one declared re-run (3,000 tuning steps, 0.97) on a failed gate, and the gate (R-hat at most 1.01, bulk and tail effective sample size at least 400, no divergent transitions).",
    "seeds": "mediamix.run.seeds(20261008, world, FIT_C): the seeds of round 2's published calibrated fit, for every readout, so readouts differ only by their geo input.",
    "method_failure": "A fit that fails the gate after its re-run is reported as a method failure and leaves every count of its row; it is never scored."
  },
  "budget": "mediamix.run.budget's rule, unchanged: split the same weekly budget on the US$100 grid, each channel between 0 and twice its mean spend, maximizing the posterior mean steady-state weekly revenue (mediamix.decide.allocate with posterior_curves); score the split under the truth (true_revenue); grow above 110% of the mean spend, cut below 90%, else hold; right calls against the truth's best split.",
  "measures": {
    "per_fit": "Posterior mean ROI per channel and its 90% interval; paid search's posterior mean ROI over its true ROI; the split; paid search's share of the budget; true weekly and yearly revenue of the split; gain against today's split (yearly, US$); right calls of 5; below today's split (gain under 0).",
    "per_readout": "Worlds in which the selected readout is flagged; median over worlds of paid search's posterior mean ROI over its true ROI; mean yearly gain against today's split; worlds below today's; right calls of 45.",
    "policy": "Acting on the flags: in each world, a flagged readout is replaced by the no-geo fit ('none'); an unflagged one is fed in. Its mean yearly gain against today's split is reported per readout row, beside feeding the readout in regardless.",
    "references": "Round 2's published calibrated split (its own weekly geo test) and unchecked split, from media-mix-runs/world-N.json, read and never refitted."
  },
  "worked_example": "The world with the largest drop in yearly gain from the no-break readout to the 60-day lag readout (ties to the lower world index): its two readouts, paid search's posterior ROI against the truth, the two splits and what each earns.",
  "predictions": {
    "P1": {"text": "The leak, pacing and 60-day lag readouts each give a lower posterior mean paid search ROI than the no-break readout, in every world.", "band": "9 of 9 worlds for each of the three", "note": "A safe bet: each of these readouts is a lower read of the same quantity, fed into the same model with the same seeds."},
    "P2": {"text": "With the 60-day lag readout, the split gives paid search less of the budget than the no-break readout's split.", "band": "at least 7 of 9 worlds"},
    "P3": {"text": "The 60-day lag readout's split earns less a year under the truth than the no-break readout's split, averaged over the 9 worlds.", "band": "by at least US$50K a year"},
    "P4": {"text": "The leak and the pacing readouts' splits each earn less a year under the truth than the no-break readout's split, averaged over the 9 worlds.", "band": "any amount below, for each of the two"},
    "P5": {"text": "The unflagged demand-shock readout's split earns within US$50K a year of the no-break readout's split, averaged over the 9 worlds.", "band": "absolute difference at most US$50K"},
    "P6": {"text": "Calibrating with the holdout alone (what dropping a flagged readout leaves) earns more a year under the truth than feeding in the 60-day lag readout.", "band": "at least 5 of 9 worlds"},
    "P7": {"text": "The no-break readout's split lands near round 2's published calibrated split, averaged over the 9 worlds.", "band": "within US$150K a year of round 2's published mean gain against today's split"},
    "P8": {"text": "The selected no-break readout is flagged by some check in at most 1 of 9 worlds; the selected leak, pacing and 60-day lag readouts are flagged in 9 of 9 worlds each.", "band": "as stated", "note": "The second half is a safe bet: round 7 caught these three breaks in every run."}
  },
  "scoring": "Each prediction is scored held, missed or untestable (when a method failure or an empty readout set leaves fewer than 9 worlds for a prediction that names 9, it is untestable unless the band is already decided by the worlds left). Safe bets are labelled as such on the page.",
  "stopping": "One fit per world and readout on the declared seeds, 63 fits, written into a new folder; a runner refuses to overwrite a fit file. No re-run with other settings is reported as a result; anything added after the results is labelled on the page.",
  "outputs": ["results-geo-budget.json", "geo-budget.csv", "geo-budget-runs/world-N-<readout>.json"],
  "page": "geo-budget.html, its own small page in the study, linked from the entry page with one sentence. Round 7's page stays as published."
}
