For transport engineers, I built a Python holdout harness that hashes markets and guards repeat shoppers so you can separate AI pricing lift from fuel moves.
2026-11-26T11:48:49.399047Z
By Rex Circuit · Builder Lab · roiscale.ai
In this piece
Delta CEO Ed Bastian tied a ~20% fare jump on Oct 9, 2026 to fuel, weeks after Delta's Sep 9 letter to Congress included no measured AI pricing uplift [1]. To separate pricing lift from macro fare moves, I built a Python holdout harness on a synthetic airline network. Pre/post checks baked in the synthetic fare move.
All harness counts are exact synthetic test outputs; CPU wall times are noisy.
What public airline pricing claims cover
Travel Distribution News reviewed public AI pricing claims on Oct 22, 2026 and found zero independent audits [1]. Two airlines reported uplift without a published baseline or measurement period, while four vendors quoted averages, modelled ceilings, or pre-deployment targets [1][2].
| Source | Reported figure | Qualification and basis |
|---|---|---|
| Azul (World Aviation Festival 2025) | 3 to 5 percent revenue uplift; about 10 percent less manual work | Airline-reported alongside vendor; no published baseline, period, or audit [1] |
| SAS (website and NDC channels) | Over 3 percent in initial markets | Airline-reported; no published baseline, period, or audit [1] |
| First vendor (production airlines) | 3 to 5 percent average | Vendor average across unnamed carriers; unaudited [1] |
| Second vendor (marketplace listing) | 2 to 3 percent average | Vendor average across unnamed carriers; unaudited [1] |
| Third vendor (product footnote) | Up to 3.5 percent | Modelled ceiling (IATA case, McKinsey study, internal analysis); unaudited [1] |
| Fourth vendor (Aviation Week, Jan 2025) | 6 to 9 percent once implemented | Advertised potential before deployment; unaudited [2] |
Delta illustrates why pre/post revenue settles nothing. It priced 1% of its network with an AI tool in November 2024 [2]. By July 2025 it reached roughly 3% of domestic fares against a 20% year-end goal [1]. Yet a Sep 9, 2026 letter to Representative Frank Pallone still called it a pilot, and the October earnings transcript skips AI pricing [1].
Virgin Atlantic actually described the right test. Pricing VP Chris Wilkinson explained the split on a vendor-hosted podcast reported by Aviation Week [2]. "We gave half of a route to [the pricing engine], and we kept our existing systems and processes for the other half and then measured one versus the other" [2]. Virgin withheld the uplift number, and nobody audited it [1].
What I built
I built holdout-harness (MIT) in Python with zero runtime dependencies. It computes the Student-t quantile via an incomplete beta continued fraction in stats.py so Welch intervals need no SciPy.
- Package and runtime:
holdout-harness 0.1.0(MIT), Python 3.13.5, pip 25.1.1, pytest 9.2.0, and optional matplotlib 3.11.2. - Hardware: 8 vCPU Intel Xeon, 15 GiB RAM (CPU only), taking ~1.1 s per run (noisy wall time).
- Synthetic route network:
seed=20261125andsalt="pf-20261121"across 86 routes in 48 markets over 28 pre days and 28 test days, with a 10% synthetic macro fare move. - Synthetic booking cohort: 82,448 sessions raising treated fares 4% and cutting conversion 1.5%, with true synthetic route and session lifts shown in the results table.
Here is the core bucketing code. Hash the market, never the route, and assert zero mixed markets before launch:
import hashlib
def bucket_value(unit_id: str, salt: str) -> float:
# SHA-256, never hash(): same arm on every machine, every run
d = hashlib.sha256(f"{salt}:{unit_id}".encode()).digest()
return int.from_bytes(d[:8], "big") / 2**64
def assign(unit_id, salt, treat_share=0.5):
return "treatment" if bucket_value(unit_id, salt) < treat_share else "control"
def assign_routes_by_market(route_to_market, salt):
# hash the market, not the route: LHR-JFK and LGW-JFK share an arm
return {r: assign(m, salt) for r, m in route_to_market.items()}
def mixed_markets(route_arm, route_to_market):
arms = {}
for r, a in route_arm.items():
arms.setdefault(route_to_market[r], set()).add(a)
return sorted(m for m, s in arms.items() if len(s) > 1)
Reproduce the synthetic run in a fresh virtualenv:
python3 -m venv .venv && . .venv/bin/activate pip install ".[test]" && pytest -q holdout-harness run --seed 20261125 --out results/
In a clean virtualenv from scratch, all 21 pytest tests passed. Back-to-back runs wrote byte-identical results.csv files (SHA-256 89894946...), with every row labelled synthetic test data.
Results (synthetic test data)
Row two caught me off guard. Baseline route revenues vary by an order of magnitude, so raw revenue variance swamps a small synthetic lift in the Welch interval below.
Adjusting each route against its pre-period log revenue with CUPED (theta=1.009 on synthetic test data) shrinks that interval around the planted lift.
| Estimator (synthetic test data) | Units T / C | Lift | 95% CI | True synthetic lift |
|---|---|---|---|---|
| Pre/post, treated routes only | 40 / none | +12.50% | none | +2.00% |
| Holdout, raw route revenue, Welch | 40 / 46 | +4.65% | −19.54% to +28.85% | +2.00% |
| Holdout + pre-period adjustment (CUPED), Welch | 40 / 46 | +1.79% | +0.42% to +3.18% | +2.00% |
| Holdout on test/pre ratio, bootstrap | 40 / 46 | +1.80% | +0.51% to +3.14% | +2.00% |
| Route-hashed holdout (leaky), bootstrap | 44 / 42 | +7.44% | +5.52% to +9.56% | +2.00% |
| Session cohort, all sessions, Welch | 41,225 / 41,223 | −24.17% | −29.43% to −18.92% | +2.44% |
| Session cohort, flagged travellers excluded, Welch | 29,096 / 29,147 | +2.64% | −3.91% to +9.18% | +2.44% |
Row one shows why unadjusted pre/post fails: without a control arm, it blends the network-wide synthetic fare move into the treatment reading.
Scope and limits: TDN reviewed public material only, so airlines may hold private holdout reports or audit rights they never publish [1]. Every harness figure is synthetic test data from my generator, not real carrier revenue. I wrote both the seeds and the leak guards, chose the synthetic spillover rate to make route leakage visible, and timed runs on a shared CPU box.
Where these holdouts break
My first buggy run boosted conversion 1.5× for shoppers who saw both prices, landing at −33.24% (synthetic test data). Putting those shoppers back on the 8% baseline conversion still left the unguarded session row negative.
Of 60,000 synthetic travellers, 9,317 searched more than once and saw both arms. All 722 bookings from those flagged shoppers went to the cheaper control quote (synthetic test data). Dropping those repeat shoppers recovered the positive lift shown in row seven.
Hashing individual routes breaks differently. Splitting routes independently mixed 18 of 48 synthetic markets across treatment and control. With 4% synthetic revenue diversion toward treated siblings, that leaky split overstated lift in row five.
I'm not sure real co-terminal substitution between airports like Heathrow and Gatwick matches that synthetic diversion rate. Market hashing left 0 mixed markets. Measure cross-airport diversion from pre-period bookings before sizing any holdout.
Power also runs out fast on synthetic test data. Neither design can confirm a tiny lift at 80% power and alpha 0.05 without far more volume:
| Design (synthetic test data, 80% power, alpha 0.05) | MDE at current N | Units per arm for 1% MDE |
|---|---|---|
| Route holdout (CUPED, 40 / 46 routes) | 2.00% | 171 routes |
| Session cohort (guarded, 29,096 / 29,147 sessions) | 9.18% | 2,452,476 sessions |
I wrote both the generators and the leak guards, so green tests only prove the plumbing.
What I'd ship
Now: ship market-level SHA-256 hashing with a frozen salt, plus a deploy gate that blocks if mixed_markets() is non-empty. Run the pre-period MDE check first so you know what lift your network can detect.
Next: score lift on test/pre ratios or CUPED-adjusted log revenue with confidence intervals. In vendor renewals, ask TDN's three questions [1]. Ask who built the baseline and how lift was measured, whether fees tie to verified lift, and whether you keep the data to test another system.
Not yet: session-level pricing tests, at least until every quote maps cleanly to one customer ID.
What's in the Kit
The Split-Route & Booking-Cohort Holdout Harness holds holdout-harness, its test suite and the script that regenerates results.csv from the synthetic network. Running an AI pricing holdout? Tell me your randomization unit in the comments and I'll tell you where it leaks.
References
- Travel Distribution News, "Airline AI Pricing's Revenue Claims Have a Verification Gap", Oct 22, 2026. traveldistributionnews.com
- Christine Boynton and Helen Massy-Beresford, "Generative AI 'Super Analyst' May Change How Airlines Set Prices", Aviation Week, Jan 7, 2025. aviationweek.com



