# A marketing mix model finance signs off

> Three years of sales, fourteen channels and one question: what did each one really add? We built a marketing mix model, checked it against real experiments, and moved the budget to where it works.

Project on Variable Frog. Page: https://variablefrog.com/work/marketing-mix-model

- Client: An omnichannel retailer
- Industry: Retail
- Service: Signal
- Stack: Python, PyMC, BigQuery
- What we built: A marketing mix model and a budget optimizer
- Outcome: 11% more revenue at the same spend
- Headline number: +11% revenue, same spend

## In short

- The problem: Fourteen channels each claimed the same sales. Added up, they claimed more revenue than the company made.
- What we built: A Bayesian marketing mix model on three years of data, calibrated with four geo experiments, and an optimizer on top.
- The result: 18% of the budget moved. Regions on the new mix sold 11% more than regions on the old one, at the same spend.

Chart: Weekly revenue: what the model explains, and the plan ahead.

Forty weeks of weekly revenue in millions, then a twelve week plan with a band that widens with the horizon. Baseline demand explains about half; paid search, television and video, paid social and promotions explain the rest.

### At a glance

- Challenge: **14** Channels, each with a dashboard claiming the same sales. Added up, they claimed more revenue than the company made.
- Approach: **156** Weeks of sales, media, prices, promotions and weather in one Bayesian model, calibrated with four geo experiments.
- Result: **+11%** Revenue in the regions that moved to the new mix, against regions that kept the old one, at the same total spend.

An omnichannel retailer spent across fourteen channels and could not say which of them worked. Every channel had a dashboard, every dashboard had a return, and every return was excellent. The business itself was growing at 3%.

## The problem

Every platform graded its own homework. Paid social claimed a sale, search claimed the same one, and the affiliate network claimed it a third time (Summed across platforms, attributed revenue came to 164% of what the company actually sold.). Finance had stopped believing any of it, so the budget was last year's split plus whoever argued best.

Last click made it worse. It pays the channels that stand closest to the checkout and starves the ones that create demand in the first place. Television and online video looked like a cost. Branded search looked like a miracle.

Chart: Return on spend by channel: what last click said against what the model measured.

Return per unit of spend for six channels. Last click credits branded search with 11.8 and retargeting with 9.4; the model measures 1.9 and 1.4. Online video and television go from under 1 to about 3.

## What we built

A marketing mix model: one statistical model of weekly sales that separates what media added from what would have happened anyway. It knows that advertising keeps working after it airs, that every channel saturates so the next unit of spend buys less than the last, and that price, promotions, season and weather move sales too.

### The system, from data to decisions

Five kinds of data feed a mix model, a budget optimizer and a scenario planner, which feed three decisions: the annual split, the quarterly rebalance and the answer to the board.

- What it learns from: Sales (Three years of weekly revenue by region, online and in stores. The thing every channel is trying to move.); Media (Spend and impressions for fourteen channels, clean and comparable because they come from one media hub.); Price and promotions (Every discount and price change, so a sale week is not mistaken for a great ad week.); Season and weather (Holidays, school terms and local weather, which move a retailer more than most campaigns do.); Experiments (Four geo tests where a channel was switched off in some regions. The model must agree with what they measured.)
- What we built: The mix model (Bayesian, with carry over and saturation for each channel, refit every month. Every number comes with a range.); Budget optimizer (Takes each channel's response curve and finds the split that returns the most for a given budget, inside limits the team sets.); Scenario planner (What happens at 10% less, 10% more, or a shift between two channels, with its range, before any money moves.)
- What it decides: The annual split (Next year's budget by channel, argued from response curves, not from last year's slide.); The quarterly rebalance (A refit each month shows which channels are saturating, and the plan follows.); The answer to the board (What marketing returned this quarter, as one number with a range, that finance signs.)

The model said to move 18% of the budget: out of branded search and retargeting, which were mostly collecting sales that would have come anyway, and into online video, television and non-brand search. We did not take its word for it. Half the regions moved to the new mix and half kept the old one, matched on size and history.

## The result

Chart: Weekly revenue, indexed: regions on the new mix against regions on the old mix.

Weekly revenue indexed to 100 over 16 weeks: regions on the new mix rise to about 111 while regions on the old mix stay near 100, at the same total spend.

By week sixteen the regions on the new mix were selling 11% more on the same total spend. The model had predicted between 8% and 14%. The rest of the country moved the following quarter, and the mix has been refit every month since.

Budget season changed too. Marketing and finance used to spend it arguing about whose numbers were right. Now they open the same model and argue about which scenario to fund.

## What they own now

### Theirs to keep

The model runs in their own cloud account, on their own data. Their analysts can read every part of it, and it keeps running without us.

- **The model**: With its monthly refit, documented down to each prior.
- **The response curves**: One per channel: what the next unit of spend returns.
- **The optimizer**: The best split for any budget, inside their own limits.
- **The experiment playbook**: How to run the next geo test and feed it back in.
- **A trained team**: Their analysts ran the last two refits themselves.

### How it was measured

Revenue is weekly and indexed to 100 at the start, for regions matched on size and sales history: half moved to the mix the model proposed and half kept the old split, at equal total spend. The model is Bayesian, with carry over and saturation per channel, calibrated on four geo experiments.

- Data: 156 weeks, 14 channels
- Test: Matched regions, 16 weeks
- Budget moved: 18%
- Model's range: +8% to +14%

