Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Synthetic data

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.

Key figures
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.

Each dot is one of 9 worlds. Last touch and the unchecked model overstate retargeting in every world; calibration pulls it toward the truth but leaves it above.

Estimated minus true revenue per US$1 of spend, at current spend; 0 is the truth.

Last-touch attributionModel, uncheckedModel, calibrated
0+4+8+12+16Paid searchPaid search, last-touch attribution: estimated minus true return per US$1 of spend runs from +2.6 to +3.1 across 9 simulated worlds; 0 is the truthlast touchPaid search, model, unchecked: estimated minus true return per US$1 of spend runs from +0.5 to +3.3 across 9 simulated worlds; 0 is the truthuncheckedPaid search, model, calibrated: estimated minus true return per US$1 of spend runs from −0.2 to +0.9 across 9 simulated worlds; 0 is the truthcalibratedPaid socialPaid social, last-touch attribution: estimated minus true return per US$1 of spend runs from −0.8 to +0.3 across 9 simulated worlds; 0 is the truthlast touchPaid social, model, unchecked: estimated minus true return per US$1 of spend runs from −0.5 to +0.6 across 9 simulated worlds; 0 is the truthuncheckedPaid social, model, calibrated: estimated minus true return per US$1 of spend runs from −0.5 to +0.5 across 9 simulated worlds; 0 is the truthcalibratedDisplayDisplay, last-touch attribution: estimated minus true return per US$1 of spend runs from −0.2 to +0.5 across 9 simulated worlds; 0 is the truthlast touchDisplay, model, unchecked: estimated minus true return per US$1 of spend runs from −0.3 to +0.6 across 9 simulated worlds; 0 is the truthuncheckedDisplay, model, calibrated: estimated minus true return per US$1 of spend runs from −0.4 to +0.5 across 9 simulated worlds; 0 is the truthcalibratedEventsEvents, last-touch attribution: estimated minus true return per US$1 of spend runs from −1.4 to +0.1 across 9 simulated worlds; 0 is the truthlast touchEvents, model, unchecked: estimated minus true return per US$1 of spend runs from −2.1 to +1.4 across 9 simulated worlds; 0 is the truthuncheckedEvents, model, calibrated: estimated minus true return per US$1 of spend runs from −2.1 to +1.5 across 9 simulated worlds; 0 is the truthcalibratedRetargetingRetargeting, last-touch attribution: estimated minus true return per US$1 of spend runs from +7.2 to +8.3 across 9 simulated worlds; 0 is the truthlast touchRetargeting, model, unchecked: estimated minus true return per US$1 of spend runs from +2.9 to +15.4 across 9 simulated worlds; 0 is the truthuncheckedRetargeting, model, calibrated: estimated minus true return per US$1 of spend runs from +1.1 to +5.7 across 9 simulated worlds; 0 is the truthcalibratedEstimated minus true, per US$1 of spend (0 = the truth)
Show the data
Return per US$1 of spend at current spend, lowest to highest across the 9 worlds
ChannelTrueLast touchModel, uncheckedModel, calibrated
Paid search1.1 to 2.74.2 to 5.31.9 to 5.41.5 to 3.7
Paid social0.3 to 2.00.7 to 1.20.2 to 1.80.2 to 1.8
Display0.2 to 1.30.7 to 1.10.5 to 1.80.6 to 1.7
Events0.8 to 2.90.9 to 1.60.6 to 3.60.5 to 3.6
Retargeting0.0 to 2.07.2 to 10.13.1 to 16.41.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.

Revenue a year from the paid channels under the truth, after splitting the same budget by each reading, against keeping today's split (simulated US dollars)
WorldRetargeting effectLast touchModel, uncheckedModel, calibratedBest possible
1. Assumptions hold0 pts−US$1.20M−US$650K+US$191K+US$593K
2. Assumptions hold4 pts−US$344K+US$114K+US$508K+US$586K
3. Assumptions hold8 pts−US$496K−US$302K+US$157K+US$230K
4. Long carryover0 pts−US$228K−US$96K+US$165K+US$901K
5. Long carryover4 pts−US$474K−US$660K−US$653K+US$250K
6. Long carryover8 pts+US$287K+US$434K+US$571K+US$617K
7. Correlated spend0 pts−US$317K−US$207K−US$221K+US$328K
8. Correlated spend4 pts−US$111K−US$105K−US$55K+US$318K
9. Correlated spend8 pts+US$65K+US$336K+US$326K+US$421K
Average−US$313K−US$126K+US$110K+US$472K
Earns less than today7 of 96 of 93 of 90
Channel calls right28 of 4529 of 4532 of 4545 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

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
Truth scenarios
ScenarioWhat differs
Model assumptions holdEvery channel's carryover fits inside the model's 8 weeks.
Longer carryoverEvents carry over far longer than 8 weeks (most of the effect lasts months).
Correlated spendDisplay 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.

Convergence of every reported fit
World and fitAttemptsMax R-hatMin bulk ESSMin tail ESSDivergences
1 unchecked11.0031,0661,0950
1 calibrated11.0022,0631,3930
2 unchecked11.0041,1991,4720
2 calibrated21.0031,7521,7810
3 unchecked11.0051,4911,0120
3 calibrated11.0051,9071,3340
4 unchecked11.0021,7381,3240
4 calibrated11.0051,2509440
5 unchecked11.0031,2741,1380
5 calibrated11.0061,2176340
6 unchecked11.0051,4777110
6 calibrated11.0061,5241,4150
7 unchecked11.0021,8031,2970
7 calibrated11.0031,9791,1190
8 unchecked11.0031,2988500
8 calibrated11.0031,2801,0600
9 unchecked11.0021,6061,2460
9 calibrated11.0051,5881,1380
What I predicted before running it (6 of 6 held; one could not apply)
Predictions written down before the run
PredictionMeasuredResult
1Last touch overstates retargeting's return in all 9 worlds.9 of 9 worldsheld
2The unchecked model overstates retargeting's return in at least 6 of 9 worlds.9 of 9 worldsheld
3Calibration brings retargeting's estimate closer to the truth in at least 6 of 9 worlds.9 of 9 worldsheld
4With 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.37held
5With longer carryover, where events gets the geo test, the calibrated estimate for events ends below the truth.no world tested eventscould not apply
6The calibrated split earns at least as much as the unchecked one in at least 6 of 9 worlds.7 of 9 worldsheld
7Splitting by last touch earns the least of the three readings in at least 6 of 9 worlds.8 of 9 worldsheld

The fifth needed a world where events got the geo test; the test went to paid search every time.

Downloads and reproduction

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