{
 "page": "incentive effect by driver tenure",
 "design": "DESIGN-tenure.md",
 "frozen_before_any_outcome": true,
 "seed": 7,
 "cities_per_size": 500,
 "pilot": {"seed": 90071, "cities_per_size": 10, "reads": ["run time", "row counts", "tenure mix"]},
 "city_sizes": [
  {"name": "64 drivers", "config": {"side": 4, "drivers_per_region": 4, "blocks": 8, "slots_per_block": 3, "washout_slots": 1, "matching_radius": 1.25, "incentive_capacity": 1.0, "carryover_rho": 0.7}},
  {"name": "256 drivers", "config": {"side": 8, "drivers_per_region": 4, "blocks": 8, "slots_per_block": 3, "washout_slots": 1, "matching_radius": 1.25, "incentive_capacity": 1.0, "carryover_rho": 0.7}}
 ],
 "mode": "none",
 "effect": 1,
 "streams": {"world": [0, "city"], "assignment": [1, "city"], "roster": [70, "city"], "capacity_uniforms": [71, "city"]},
 "roster": {
  "source": "/marketplace-revenue-forecast/active-drivers.html, drivers who started in 2024, share still active by months since start, whole percents",
  "survival_percent_months_1_to_31": [100, 76, 63, 53, 46, 39, 32, 29, 26, 24, 22, 20, 17, 16, 14, 13, 12, 12, 11, 10, 10, 9, 9, 8, 8, 7, 7, 7, 7, 7, 6],
  "tail_monthly_stay": "(6/8) ** (1/6), constant after month 31",
  "burn_in_months": 120,
  "start": "every seat holds a new driver (month 1) 120 months before the test month",
  "leaving_depends_on_incentive": false,
  "months_between_test_and_budget": 1
 },
 "settings": {
  "flat": {"online_share": "1 for every tenure"},
  "ramp": {"online_share": "1 minus 0.4 * exp((1 minus t) / 3), t = months since start"}
 },
 "capacity_rule": "floor(online_share * capacity + u), u uniform on [0, 1) from the capacity_uniforms stream, shared by both settings; applied to the three earlier windows, the test window and the budget window",
 "test": {"design": "part 1 driver_ab assignment, full incentive, all 24 slots", "outcome": "completed rides per driver in the 16 scored slots", "cuped": "part 1 cuped_predictor on the three earlier windows"},
 "bands": [{"name": "months 1 to 2", "from": 1, "to": 2}, {"name": "months 3 to 6", "from": 3, "to": 6}, {"name": "months 7 to 12", "from": 7, "to": 12}, {"name": "months 13 or more", "from": 13, "to": null}],
 "read": {
  "per_band": "part 1 difference() on CUPED-adjusted driver totals of the band, divided by the band's driver count; Welch 95% interval",
  "min_per_arm": 3,
  "joint": "Cochran Q over bands read, weights 1/se^2, chi-square with (bands read minus 1) df, alpha 0.05",
  "band_vs_rest": "band estimate minus estimate on all other drivers, se root sum of squares, Welch-Satterthwaite df, two-sided t, alpha 0.05, unadjusted and Holm across bands read",
  "top_band": "largest estimate among bands read; right when it equals the band with the largest true effect among bands with at least one driver"
 },
 "budget": {
  "window_slots": 24,
  "share_of_full_incentive": 0.25,
  "weight_rule": "extra capacity = floor(weight + rounding), rounding from the continuation of the world stream",
  "rules": ["everyone", "band_from_test", "band_true_order", "predicted_uplift", "true_gain_ceiling"],
  "band_fill": "bands in rank order at weight 1; the last band reached shares the remainder equally; a band not read is scored with the test's overall estimate; ties broken by band order",
  "uplift_model": "OLS of scored rides on [1, x, log t, z, z*x, z*log t], x = third earlier window centred at the test city's mean; uplift = coefficient of z + coefficient of z*x times x + coefficient of z*log t times log t; joiners get x = mean x of test drivers in months 1 to 2 (0 if none); top K at weight 1, ties by seat order",
  "true_gain_ceiling": "top K drivers by true gain at weight 1 in the budget window"
 },
 "mc_intervals": {"shares": "Wilson 95%", "means": "Student 95% over cities"},
 "predictions": {
  "P1": {"setting": "ramp and flat", "size": 64, "quantity": "mean over cities of true effect, months 1 to 2 minus months 13 or more", "ramp_band": [3, 8], "flat_band": [-1, 1]},
  "P2": {"setting": "flat", "size": 64, "quantity": "share of cities where Q says bands differ", "band": [0.03, 0.12]},
  "P3": {"setting": "flat", "size": 64, "quantity": "share of cities with any band flagged against the rest", "unadjusted_band": [0.10, 0.25], "holm_band": [0.03, 0.09]},
  "P4": {"setting": "ramp", "size": 64, "quantity": "share of cities where Q says bands differ", "band": [0.10, 0.35]},
  "P5": {"setting": "ramp", "size": 64, "quantity": "share of cities where the top band is right", "band": [0.35, 0.65]},
  "P6": {"setting": "ramp", "size": 256, "quantity": "Q share and top band right share", "q_band": [0.25, 0.70], "top_band": [0.55, 0.90]},
  "P7": {"setting": "flat and ramp", "size": 64, "quantity": "mean of top band estimate minus its true effect", "at_least": 2},
  "P8": {"setting": "flat", "size": 64, "quantity": "per band interval coverage where read", "band": [0.90, 0.97]},
  "P9": {"setting": "ramp", "size": 64, "quantity": "band_from_test vs everyone", "relative_gain_band": [0.05, 0.30], "share_cities_more_at_least": 0.60},
  "P10": {"setting": "flat", "size": 64, "quantity": "band_from_test vs everyone, relative", "band": [-0.05, 0.05]},
  "P11": {"setting": "ramp", "size": 64, "quantity": "predicted_uplift mean gain below band_from_test mean gain"},
  "P12": {"setting": "ramp", "size": 64, "quantity": "band_true_order mean gain at least band_from_test mean gain"},
  "P13": {"setting": "all", "size": "all", "quantity": "true_gain_ceiling mean gain at least every rule's", "true_by_construction": true}
 },
 "changes": [{"name": "Change 1 to the protocol", "before_any_run_of_seed_7": true, "text": "A band with no test-month drivers is scored with the overall true effect in band_true_order; if the uplift model has rank below 6 the city falls back to everyone at weight 0.25 (count reported); fewer than two bands read counts as not differ for Q and is reported untestable; no band read counts as top band wrong."},
  {"name": "Change 2 to the protocol", "before_any_run_of_seed_7": false, "text": "Wording only, made after the run: the first key is now page and part 1's export is named by its published address. No setting, band, estimator, rule, budget, seed, check or prediction changed. sha256 before this change: DESIGN-tenure.md f1b35d6054be075c5956905455054c913c5b3d2e762de0821db0cda4cb5e10d2, protocol.json a50d3a5232632c3853edf47729bf925226791f7f81f48737e5b8749300d9d0fd."}],
 "part1_reproduction": {
  "files": ["sim/__init__.py", "sim/model.py", "sim/inference.py", "sim/experiment.py"],
  "sha256": {"sim/__init__.py": "428916406af35b28192a5a071646b0c66c1556abc04577dbe15f9a0419b5e547", "sim/model.py": "f6ef40aa73e711d175fc969833bc323f3d6794bb502c2f99305bc1302f9cf83f", "sim/inference.py": "ef887873f7ba59715ec012d6d0f23c654cd06e50f87d948eff051f6f3a1c130e", "sim/experiment.py": "23d4d5f0d1d7404d16dd8c6fa54cacd60d87107bc17d9474f44bab2233df98ca", "scenarios.csv": "86e6683f683b9d36435b6dec46084701cdaff56a565bfff0143fe937ab3a6aa0"},
  "published_export": "part 1's public export, https://diogotravassos.dev/marketplace-experiments/, at aedebf99253325934ab3ebb63c29fd7e3dfbb406",
  "scenarios_csv": "part 1 collect(Config(), 7, 500) written as part 1's run.py writes it must hash to the published scenarios.csv sha256"
 }
}
