A No-Code MMM Scenario Planner, Graded Against a Known Truth

Papilon 1.1 turns any fitted marketing mix model into a budget planner in one HTML file, with no account, server or notebook. On a simulated brand with known returns, its default plan earned 3.3 times the true gain of the plan that chases the average.

Hero chart: for the same marketing mix model and the same weekly budget, the downside-protected plan's true sales gain is 3.3 times that of the plan that maximizes expected sales, shown against each plan's 90% range from the model

The last mile of a marketing mix model

A marketing mix model earns its keep in a budget meeting, and most of the people in that meeting will never open a notebook. They want to ask a model what happens if search gets 10% less, or how far spend can grow before returns fall below break-even, and get an answer they can defend.

Google made that point on February 19, 2026, when it launched Scenario Planner, a no-code interface for its open-source Meridian model. Its announcement cites a Harvard Business Review Analytic Services survey in which nearly 40% of marketers said they struggle to connect model outputs to business decisions. The planner itself is a Looker Studio report generated from a trained Meridian model stored in Google Drive or Cloud Storage, through a Colab notebook.

Papilon 1.1, the open-source marketing mix model I build at Vector 1 Research in Kansas City, now ships its own scenario planner. One call turns a fitted model into one HTML file of about 131 KB. Anyone can open it in a browser and plan a budget, with no account, server, notebook or install, and nothing they enter leaves their computer. You can try it on a simulated brand, or build one on your own data in Papilon Studio.

The more interesting result is what happened when I graded the planner's plans against a brand whose true returns are known. The default plan captured 69% of the best gain available. The plan that maximizes expected sales, the usual objective, captured 21%, from the same model and the same budget.

A No-Code MMM Scenario Planner, Graded Against a Known Truth · 1 min 8 s
Video transcript

Google made MMM scenario planning no-code for Meridian on Feb 19, 2026. Papilon 1.1 does it in one HTML file, with no account and no server.

What it does: pick a goal: a fixed budget, grow while ROI holds, spend to a target marginal ROI, or build your own. Every result shows a 90% range and the chance it beats today's mix.

The test: to grade the planner, the test brand has a known true return for every channel. It spends $149,200 a week across four channels.

The result: the default protect-the-downside plan had a true gain of $3,760 a week, 69% of the best available, $5,430. Maximizing the expected outcome with loose limits: $1,130, 21%. Same model, same budget, 3.3 times the gain.

The promise: the model promised +$9,620 a week, with a 90% range of +$3,250 to +$15,990. The truth landed near the low end, which is why the default plans for the low end.

The caveat: grow while total ROI stays at 1.2 and spend rises 18.5%. The extra dollars return $0.85 by the model and $0.91 by the truth, below break-even. Watch marginal ROI.

Try it at vector1.ai/demos/papilon-planner/. Free and open source. Built in Kansas City.

What the planner does

The page asks three questions. Where do you start from: the average spend of the whole history or of the last 52, 26 or 13 weeks. What is the goal:

  • Best mix for a fixed budget: the same total, split better across channels.
  • Grow while ROI holds: the most spend whose total return on spend stays at or above a target.
  • Spend to a marginal return: each channel up to the point where the next dollar returns a target.
  • Build my own: sliders for every channel, with live results.

And how far may each channel move: by default within 50% of its starting spend and never above three times its historical average, with optional floors, ceilings and locks per channel.

Every result carries a 90% range and the chance the scenario beats the starting mix. Each channel's response curve is drawn with its band, and the part of the curve beyond any spend the brand has sustained is hatched, because the model is extrapolating there. The page warns when a plan pushes a channel into that zone, and when it moves money between two channels the model cannot tell apart. Scenarios can be saved and compared side by side, exported as CSV, or reopened from a link. A second tab shows the model itself: fit, what drove sales, returns by channel with their ranges, and every caution Papilon raises about it.

The math under every plan

The page carries 500 draws from the model's posterior. For each draw d, channel j's sales per week at a steady spend x is its saturation curve, here the Hill form:

C_j^(d)(x) = β_j^(d) x^s_j / (x^s_j + κ_j^s_j)

where β is the most the channel can add a week, κ the spend at which it reaches half of that, and s the curve's shape. Carryover has settled at a steady spend, so these are the same curves Papilon's Python optimizer uses, and a test checks the page's curves against Papilon's own to machine precision.

A plan x is compared with the starting mix x⁰ scaled to the same budget B. Its gain under draw d is the difference in total media sales, and the default objective maximizes the 10th percentile of that gain across draws:

max_x Q_0.10[Σ_j C_j^(d)(x_j) − Σ_j C_j^(d)(x⁰_j)] s.t. Σ_j x_j = B, 0.5 x⁰_j ≤ x_j ≤ 1.5 x⁰_j

In words: find the split that does best in the bad tenth of the model's scenarios. A plan that only wins if the model's optimistic draws are right will not score well on that objective. The alternative objective replaces the 10th percentile with the mean.

Two more quantities drive the flexible goals. Total ROI is total media sales over total spend. Marginal ROI is the slope of a channel's curve, dC/dx, the sales the next dollar buys. A channel can have a healthy total ROI and a marginal ROI well under 1, because the early dollars on the steep part of the curve carry the average.

All of this solves in the browser in 60 to 90 milliseconds in my tests. The expected-sales objective splits the budget exactly on a grid by dynamic programming, which handles S-shaped curves where greedy allocation stalls at zero spend. The downside objective is searched by moving money between pairs of channels in shrinking steps, starting from the current mix and from the best point on the way to the expected-sales plan. Papilon's tests run the page's engine under Node and check that, on the same draws, its plans match or beat the Python optimizer's.

Graded against a known truth

Real data has no answer key, so I tested the planner on the brand Papilon simulates for exactly this purpose: three years of weekly sales for four digital channels, generated from response curves I wrote down. Its true returns on spend are 1.25 for paid search, 1.50 for paid social, 1.57 for online video and 0.74 for display. The brand spends $149,200 a week, and media drives $189,000 a week of sales, a total ROI of 1.27.

The planner's default, protecting the downside within ±50%, cuts paid search by 27%, paid social by 14% and display by 21%, and moves the money into online video, up 42% to $67,200 a week. The model estimates the gain at $9,620 a week, with a 90% range of $3,250 to $15,990 and a 99% chance of beating the current mix.

The truth: the plan gains $3,760 a week. That sits inside the model's range, near its low end. The best plan available within the same limits, found from the true curves, gains $5,430, so the default captured 69% of it.

Now the plan most planners optimize: maximize expected sales, with loose limits of zero to three times each channel's history. The model is more excited about it, estimating $12,210 a week with a 90% range of a $1,320 loss to a $25,740 gain, and a 93% chance it is better. It pushes online video much further, past anything the brand has sustained. Its true gain is $1,130 a week, 21% of the best.

Same model, same budget, and the plan built for the bad tenth of the scenarios earned 3.3 times as much. That's one brand, so the margin is an illustration, not a law. It matches what Papilon's 120-brand benchmark found when it set this default: maximizing expected sales with loose limits lost money for 33% of standard simulated brands, and the current default lost money for 2%.

Here is the check in Python with Papilon 1.1, using the library's own optimizer on all 2,000 posterior draws instead of the page's 500:

import numpy as np
import papilon as pp
from scipy import optimize
from papilon.datasets import TRUTH, _effect

media = ["paid_search", "paid_social", "online_video", "display"]
df, truth = pp.make_synthetic_mmm()          # simulated brand, $ thousands a week
model = pp.MMM(df, "sales", media, "date", controls=["price_index", "promo"],
               delayed=["online_video"], seed=11).fit(n_starts=2)

pp.scenario_planner(model, "planner.html", currency="$", units="thousands")   # the no-code page

def true_weekly(x):
    """True media sales a week at steady spend x, from the simulation's own curves."""
    return sum(_effect(np.full(60, v), TRUTH[c], truth["l_max"])[-1] for c, v in zip(media, x))

today = df[media].mean().to_numpy()
total = today.sum()
cautious = model.optimize_budget(total).optimal_spend.to_numpy()     # default: protect the downside
greedy = model.optimize_budget(total, objective="mean", max_change=None).optimal_spend.to_numpy()

limits = [(0.5 * v, 1.5 * v) for v in today]
best = optimize.minimize(lambda x: -true_weekly(x), today, bounds=limits, method="SLSQP",
                         constraints=[{"type": "eq", "fun": lambda x: x.sum() - total}])
best_gain = -best.fun - true_weekly(today)
for name, plan in [("protect the downside", cautious), ("maximize expected, loose", greedy)]:
    gain = true_weekly(plan) - true_weekly(today)
    print(f"{name:25s} true gain {gain * 1000:6,.0f} $/week = {gain / best_gain:.0%} of the best")

It prints a true gain of $3,654 a week (67% of the best) for the default and $1,052 (19%) for the expected-sales plan. The small gap from the page's figures comes from the page planning on a 500-draw sample of the posterior.

A growth target can hide a loss

The flexible goals answer a different question: how much should we spend? Here the distinction between total and marginal returns matters more than any optimizer.

Ask the planner for the most spend that keeps total ROI at 1.2 or above, and it raises the budget 18.5% to $176,800 a week. The model estimates the extra sales at $23,430 a week, with a 90% range of $17,830 to $29,210, and the truth is $25,010. The model got it right, and the plan still loses money on the margin. The extra $27,600 a week of spend brings back $0.85 of sales per dollar by the model, and $0.91 by the truth. Total ROI stays above 1.2 only because the dollars already being spent are so productive. Since sales are revenue before costs, the break-even marginal return is 1 divided by the gross margin, which is above 1 for every real business.

Ask instead for each channel's spend up to a marginal return of 1.0, and the planner goes the other way: it cuts the budget 31% to $102,700 a week, because paid search, paid social and display already return less than a dollar for the next dollar even at their lower limits. On this brand the honest answer to "how much should we spend" is less, and only the marginal view shows it.

The planner reports both numbers for every scenario, and the gain tile shows the return per extra dollar whenever the budget changes. If a growth plan is justified by a total ROI target, that is the number to read.

Make one for your own data

There are three ways in, and only the last needs Python.

  1. Papilon Studio, no code. Open Papilon Studio, upload weekly spend and sales, fit the model, and click Open the scenario planner. Studio runs Papilon in your browser, so your file is never uploaded.
  2. One command. With Papilon 1.1 installed, python -m papilon.planner --data sales.csv --target sales --date week --media search,social,video -o planner.html fits a model and writes the page. --model fitted.papilon opens a saved model instead.
  3. From Python. pp.scenario_planner(model, "planner.html", currency="$") after any fit, national or regional.

The file is the deliverable. Send it, attach it to a deck, or host it as a static page; it works offline, and the people who open it need nothing installed.

How it compares with Meridian's planner

Meridian Scenario PlannerPapilon scenario planner
What you getA Looker Studio reportOne HTML file
What it needsA trained Meridian model in Drive or Cloud Storage, a Colab notebook, optionally a GPUA fitted Papilon model, or a CSV in Papilon Studio
Budget goalsFixed, target ROI, target marginal ROI, channel constraintsFixed, target ROI, target marginal ROI, your own mix, channel limits and locks
Fixed-budget objectiveMaximizes ROI for the budgetProtects the downside by default (10th percentile of the gain), or maximizes the expected outcome
ExtrapolationResponse curves with current and optimized pointsSpend beyond sustained history hatched and flagged

Both report incremental sales driven by media, not a forecast of total sales, and both depend entirely on the model under them. Meridian's planner is in open beta and its documentation lists its own limits, among them that the best-fitting model may not be the one that best estimates the baseline.

Where it breaks

The plans are steady state. They assume spend holds at the planned level long enough for carryover to settle, and they ignore the weeks of ramp in between; Papilon's forecast and scenarios play a plan forward week by week when the path matters.

A planner can only be as right as the model's identification. On this brand the model's estimate of the default plan's gain was 2.6 times the truth, inside its range but near the bottom. Where Papilon flags a channel's range as too wide or two channels as indistinguishable, a lift test is the fix, and Papilon can calibrate the model to one.

The hatched zone is there for a reason. The loose expected-sales plan earned so little partly because it pushed online video past any level in the data, where the fitted curve keeps rising and the true one bends.

Regional models plan national spend split across regions in their historical shares, and their page has no fit chart yet. And this is one simulated brand. The 3.3 times margin is specific to it; the direction matches the 120-brand benchmark, which is the evidence for the default.

Built in Kansas City, free and open source

Papilon is built at Vector 1 Research in Kansas City and released under the Apache 2.0 license. The planner is in version 1.1, and the method behind its default is graded across 120 brands in Marketing Mix Modeling You Can Check. The planner demo runs the brand from this article, Papilon Studio fits your own data, and more measurement methods are on the marketing mix modeling practice page.

Sources

Related research