Marketing measurement, round 2: a media mix model checked against experiments
In a simulation self-test across 9 worlds, a media mix model nobody checked split the budget worse than today's split in 6; calibrated with the holdout and one geo test, in 3.
Round 1 showed that attribution credits retargeting with revenue it does not cause. This round fits a Bayesian media mix model to the same simulated company, with four more paid channels, and scores it against the truth the simulator knows. Unchecked, the model overstated retargeting in all 9 worlds: its spend follows demand, so the model mistakes buyers who were coming anyway for its effect. The existing holdout and one geo test pulled that estimate toward the truth in all 9 worlds, but not to it. My call: never move budget on an unchecked model; calibrate it first, and test next the channel the calibrated model is least sure of.
Unchecked model 6 of 9 worlds where its split earns less than today's; −US$126K a year on average | Calibrated model 3 of 9 worlds where its split earns less; +US$110K a year on average, of a possible +US$472K | Retargeting, per US$1 1.4 to 6.7 calibrated; unchecked 3.1 to 16.4, last touch 7.2 to 10.1, true 0.0 to 2.0 | Calls calibration changed 5 of 9 worlds; 4 channel calls moved to the right one, 1 to the wrong one |
Main limitation A simulation self-test: I wrote both the simulated company and the model, and chose the ranges its channel effects are drawn from. It shows how the three readings behave, not what any real channel is worth. | |||
Round 1, the retargeting holdout itself: Should we cut retargeting?
Each reading against the truth
Retargeting's true return is 0.0, 1.0 or 2.0 per US$1 (round 1's 0, 4 and 8 points of win probability). Last touch reads it as 7.2 to 10.1, the unchecked model as 3.1 to 16.4. Paid search, whose spend also rises with demand, is overstated the same way in every world until the geo test measures it.
Estimated minus true revenue per US$1 of spend, at current spend; 0 is the truth.
Show the data
| Channel | True | Last touch | Model, unchecked | Model, calibrated |
|---|---|---|---|---|
| Paid search | 1.1 to 2.7 | 4.2 to 5.3 | 1.9 to 5.4 | 1.5 to 3.7 |
| Paid social | 0.3 to 2.0 | 0.7 to 1.2 | 0.2 to 1.8 | 0.2 to 1.8 |
| Display | 0.2 to 1.3 | 0.7 to 1.1 | 0.5 to 1.8 | 0.6 to 1.7 |
| Events | 0.8 to 2.9 | 0.9 to 1.6 | 0.6 to 3.6 | 0.5 to 3.6 |
| Retargeting | 0.0 to 2.0 | 7.2 to 10.1 | 3.1 to 16.4 | 1.4 to 6.7 |
Exact values: return per dollar by world, channel and reading (CSV).
The budget each reading picks
Each reading splits the same weekly budget (US$47K) across the five channels, each between zero and twice its current spend, to earn the most revenue that reading predicts. The table scores every split under the truth. Splitting by last touch earns less than today's split in 7 of 9 worlds and the least of the three readings in 8. The calibrated model gets 32 of 45 channel calls (grow, hold or cut) right, against 29 unchecked and 28 by last touch, and the retargeting call right in 5 worlds against 4.
| World | Retargeting effect | Last touch | Model, unchecked | Model, calibrated | Best possible |
|---|---|---|---|---|---|
| 1. Assumptions hold | 0 pts | −US$1.20M | −US$650K | +US$191K | +US$593K |
| 2. Assumptions hold | 4 pts | −US$344K | +US$114K | +US$508K | +US$586K |
| 3. Assumptions hold | 8 pts | −US$496K | −US$302K | +US$157K | +US$230K |
| 4. Long carryover | 0 pts | −US$228K | −US$96K | +US$165K | +US$901K |
| 5. Long carryover | 4 pts | −US$474K | −US$660K | −US$653K | +US$250K |
| 6. Long carryover | 8 pts | +US$287K | +US$434K | +US$571K | +US$617K |
| 7. Correlated spend | 0 pts | −US$317K | −US$207K | −US$221K | +US$328K |
| 8. Correlated spend | 4 pts | −US$111K | −US$105K | −US$55K | +US$318K |
| 9. Correlated spend | 8 pts | +US$65K | +US$336K | +US$326K | +US$421K |
| Average | −US$313K | −US$126K | +US$110K | +US$472K | |
| Earns less than today | 7 of 9 | 6 of 9 | 3 of 9 | 0 | |
| Channel calls right | 28 of 45 | 29 of 45 | 32 of 45 | 45 of 45 |
Exact splits and calls: budget by world and reading (CSV). Revenue is the steady state at each split, counted at face value.
What it means
A media mix model reads channel effects from how revenue moves with weekly spend. It sees nothing a channel's spend follows. Retargeting spends more when more accounts visit, which is when more were going to buy, so an unchecked model credits it with demand it did not create, as attribution did in round 1. Its own 90% intervals gave no warning: they left out the true value in all 9 worlds.
An experiment is the only input that breaks that loop. Calibration made the split better than the unchecked one in 7 of 9 worlds and slightly worse in 2 (at most US$14K a year). It mostly fixes what was tested. The geo test went to paid search in every world, the channel the unchecked model was least sure of in dollars, so in the longer-carryover worlds events was never tested. In one of them events truly returns 2.7 per US$1; the model, which allows only 8 weeks of carryover, read 0.6 unchecked and 0.5 calibrated, and both splits cut it.
How I would use this at a company: fit the model, then before any budget moves, set each channel's estimate beside every experiment that touches it. Calibrate on the experiments, re-split, and pick the next test from the calibrated model's widest dollar interval. A model that has never met an experiment is a hypothesis about the budget, not a plan.
- Media mix model
- A regression of weekly revenue on each channel's weekly spend, with trend and season.
- Carryover
- Spend this week still bringing revenue in later weeks.
- Saturation
- Each extra dollar in a channel bringing less than the one before.
- Calibration
- Giving the model the experiments' results as extra evidence, so its estimates must agree with them.
- Geo test
- Switching a channel off in a random half of regions for some weeks and comparing revenue.
Limits
- A simulation self-test: I wrote both the simulated company and the model, and chose the ranges its channel effects are drawn from. It shows how the three readings behave, not what any real channel is worth.
- 9 worlds, one simulated history each: counts out of 9, not rates. Channel effects come from ranges I chose; the order in which readings do well could change with other ranges.
- Retargeting's spend follows demand by design, as it reaches accounts already likelier to buy. A model given a demand signal, such as visits or branded search volume, could do better unchecked.
- The holdout is round 1's, with a standard error of US$10K to US$11K a week against a US$9.5K weekly spend, so it narrows retargeting's estimate without pinning it.
- Revenue is compared at steady state and face value; no margin, no ramp-up, no changes in competitors or prices.
- No employer or customer data is used.
Method and checks
On this round the convergence check caught a problem before the real run: on separate practice draws, 2 of 5 first fits had divergent transitions, a sign the sampler had not explored the model properly. I raised the sampler's acceptance target and wrote the change down before fitting the 9 worlds reported here.
The simulated company and its five channels
Weekly, over three years: baseline revenue from round 1's company (about US$181K a week) moved by trend, season and slow random swings in demand the analyst never sees. Five paid channels, each with carryover and saturation: paid search US$12K a week, paid social US$10K a week, display US$8.0K a week, events US$8.0K a week, retargeting US$9.5K a week. Retargeting's true return comes from round 1 (0, 4 or 8 points of win probability). The other channels' returns, carryover and saturation are drawn at random from ranges written down before any code. Retargeting and paid search spend rise with demand; social and display run in on and off flights; events come in bursts.
Three truth scenarios, three retargeting effects each
| Scenario | What differs |
|---|---|
| Model assumptions hold | Every channel's carryover fits inside the model's 8 weeks. |
| Longer carryover | Events carry over far longer than 8 weeks (most of the effect lasts months). |
| Correlated spend | Display runs on the same flights as social, so their spend moves together. |
The three readings
- Last touch. Each week's revenue is credited by a fixed rule: retargeting takes the last touch on about a third of revenue it did not cause (round 1's share), more when it spends more; search takes a share too.
- Model, unchecked. A Bayesian media mix model in PyMC: trend, two yearly harmonics, and per channel carryover over at most 8 weeks and a saturation curve. Return per dollar has a wide prior that allows zero. Four chains of 1,000 kept draws.
- Model, calibrated. The same model with two experiments as extra evidence: round 1's holdout of half the retargeting audience (its result for one simulated company at the world's effect), and a geo test I designed: 40 regions, half switched off, sized as the shortest of 4 to 12 weeks whose planned standard error is at most 35% of the channel's weekly spend (all 9 met it, at 8 or 10 weeks). The model is matched to what each test can see: a geo test of a few weeks catches only part of a long carryover.
Convergence: all 18 fits passed
A fit counts only if R-hat is at most 1.01, bulk and tail effective sample size are at least 400 and there are no divergent transitions. A failing fit gets one re-run with longer tuning; a fit that still fails would leave its world out of every count as a method failure. 1 fit needed the re-run; none failed. Worst values: R-hat 1.006, bulk effective sample size 1,066, tail 634.
| World and fit | Attempts | Max R-hat | Min bulk ESS | Min tail ESS | Divergences |
|---|---|---|---|---|---|
| 1 unchecked | 1 | 1.003 | 1,066 | 1,095 | 0 |
| 1 calibrated | 1 | 1.002 | 2,063 | 1,393 | 0 |
| 2 unchecked | 1 | 1.004 | 1,199 | 1,472 | 0 |
| 2 calibrated | 2 | 1.003 | 1,752 | 1,781 | 0 |
| 3 unchecked | 1 | 1.005 | 1,491 | 1,012 | 0 |
| 3 calibrated | 1 | 1.005 | 1,907 | 1,334 | 0 |
| 4 unchecked | 1 | 1.002 | 1,738 | 1,324 | 0 |
| 4 calibrated | 1 | 1.005 | 1,250 | 944 | 0 |
| 5 unchecked | 1 | 1.003 | 1,274 | 1,138 | 0 |
| 5 calibrated | 1 | 1.006 | 1,217 | 634 | 0 |
| 6 unchecked | 1 | 1.005 | 1,477 | 711 | 0 |
| 6 calibrated | 1 | 1.006 | 1,524 | 1,415 | 0 |
| 7 unchecked | 1 | 1.002 | 1,803 | 1,297 | 0 |
| 7 calibrated | 1 | 1.003 | 1,979 | 1,119 | 0 |
| 8 unchecked | 1 | 1.003 | 1,298 | 850 | 0 |
| 8 calibrated | 1 | 1.003 | 1,280 | 1,060 | 0 |
| 9 unchecked | 1 | 1.002 | 1,606 | 1,246 | 0 |
| 9 calibrated | 1 | 1.005 | 1,588 | 1,138 | 0 |
What I predicted before running it (6 of 6 held; one could not apply)
| Prediction | Measured | Result | |
|---|---|---|---|
| 1 | Last touch overstates retargeting's return in all 9 worlds. | 9 of 9 worlds | held |
| 2 | The unchecked model overstates retargeting's return in at least 6 of 9 worlds. | 9 of 9 worlds | held |
| 3 | Calibration brings retargeting's estimate closer to the truth in at least 6 of 9 worlds. | 9 of 9 worlds | held |
| 4 | With correlated spend, the unchecked model is less sure of social and display than when its assumptions hold. | typical 90% interval 1.74 wide against 1.37 | held |
| 5 | With longer carryover, where events gets the geo test, the calibrated estimate for events ends below the truth. | no world tested events | could not apply |
| 6 | The calibrated split earns at least as much as the unchecked one in at least 6 of 9 worlds. | 7 of 9 worlds | held |
| 7 | Splitting by last touch earns the least of the three readings in at least 6 of 9 worlds. | 8 of 9 worlds | held |
The fifth needed a world where events got the geo test; the test went to paid search every time.
Downloads and reproduction
- All round 2 results (JSON), return per dollar (CSV), budget splits (CSV), convergence (CSV). Each world's weekly data, truth and fits are in the media-mix-runs folder.
- Code: the mediamix folder, with its own hash-pinned lock file (PyMC on CPU). The README gives the commands; in the locked environment a world refits byte for byte from its fixed random draws (checked on two worlds).
Use this at your company
To check a media mix model of your own the same way, paste this into your AI assistant with your model's outputs.
This method comes from Diogo Travassos's study "Retargeting holdout: media mix model" (https://diogotravassos.dev/retargeting-holdout/media-mix.html). If you can open links, read it first: it works the method through end to end and shows the checks that caught mistakes. The steps below stand on their own if you can't. Help me check our media mix model against experiments before we move budget on it. Method: 1. List each channel's weekly spend, the model's return per dollar at current spend with its 90% interval, and how far the model lets carryover reach. 2. List every experiment we have: account holdouts, geo tests, platform lift studies. For each, what it switched off, for how long, the measured revenue effect and its standard error. 3. Work out what the model predicts each experiment should have measured: the same channel, switch-off length and carryover, not the long-run effect. 4. Flag every channel where the experiment and the model's prediction differ by more than two standard errors. 5. Refit with the experiments as extra evidence on those channels, and check convergence: R-hat at most 1.01, effective sample size at least 400, no divergent transitions. 6. Split the budget with both versions, each channel between zero and twice its current spend. Watch for: channels whose spend follows demand, such as retargeting and branded search; channels flighted together; carryover longer than the model allows. Report back: which budget calls change after calibration, which channel to test next (the one the calibrated model is least sure of in dollars), and what the model still cannot see. In your report, say which study you followed and link it: https://diogotravassos.dev/retargeting-holdout/media-mix.html