Built in Kansas City: Try a Free Marketing Mix Model on Your Own Data
Papilon Studio fits an open-source Bayesian marketing mix model to your weekly spend and sales, in your browser, and returns what each channel really returns with an honest range and a budget plan. Your file never leaves your computer.

A marketing mix model you can run in five minutes
A marketing mix model answers the question every marketing budget meeting circles around: what is each channel actually returning, and where should the next dollar go? Most mid-size businesses never get one, because the usual routes are a consulting engagement or a data science team that knows Bayesian statistics.
Papilon Studio is a free way to try one on your own numbers. You upload a CSV of weekly spend and sales, tell it which column is which, and it fits Papilon, the open-source marketing mix model I build at Vector 1 Research in Kansas City. It returns the return on ad spend for each channel with a 90% range, the point where each channel starts to saturate, and a budget plan designed to hold up if the model is wrong.
Everything runs in your browser. Studio loads Python and Papilon into the page, so your file is never uploaded to a server, and there is nothing to install or sign up for.
Try it with a sample retailer
If you want to see it work before you pull your own data, use the sample retailer's CSV: three years of weekly revenue for a made-up outdoor brand, with spend on Google search, Meta social, YouTube video, display and email, plus a price index, promotion weeks and holiday weeks. I simulated it from a model I wrote down, so for once the right answers are known.
- Open Papilon Studio and wait for "Try the sample brand" to appear. The first visit downloads Python into your browser, which takes 10 to 45 seconds.
- Under "Or upload a CSV", choose the sample file. Studio reads the column names and guesses their roles: the week, revenue as the outcome, the five spend columns as media, and price, promotions and holidays as controls.
- Check the guesses, leave the budget at today's level, and click Fit the model. In my test the fit took about 9 seconds.
What you get back
The first panel is the short version. On the sample, the model explains 99% of the week-to-week movement in revenue, misses a typical week by 0.8%, and attributes 20% of revenue to media, with the rest coming from the baseline, prices, promotions and holidays.
Then the channel returns. Here is what Studio reported next to the true values from the simulation:
| Channel | Avg spend a week | Studio's ROAS | 90% range | True ROAS |
|---|---|---|---|---|
| Google search | $14,252 | 1.87 | 1.03 to 3.10 | 1.82 |
| Meta social | $21,540 | 1.79 | 1.06 to 3.20 | 1.33 |
| YouTube video | $17,918 | 1.54 | 1.24 to 1.84 | 1.61 |
| Display | $9,465 | 0.64 | 0.13 to 1.44 | 0.48 |
| $2,568 | 3.84 | 1.50 to 6.80 | 4.85 |
Every true value is inside its range. The ranges are as wide as the data allows, and Studio says so: email, the channel with the highest return, is also the least certain, and the model can't confidently rank Google search against Meta social or YouTube. That honesty is the point. A model that gave you five precise numbers from three years of weekly data would be guessing.
The budget plan keeps the weekly total at $65,743 and keeps every channel within 50% of today's spend:
| Channel | Today | Plan | Change |
|---|---|---|---|
| Google search | $14,252 | $14,700 | +$448 |
| Meta social | $21,540 | $21,946 | +$406 |
| YouTube video | $17,918 | $18,900 | +$982 |
| Display | $9,465 | $6,345 | -$3,120 |
| $2,568 | $3,852 | +$1,284 |
Studio expects the plan to add $2,190 a week, with a 90% range of $721 to $3,408 and a 99% chance of beating today's mix. Against the true response curves of the simulation it would add $3,279 a week. The best possible plan within the same 50% limits adds $4,812, so Studio's plan captures about two thirds of what was available while staying inside the range of spend the brand has actually run. It also flags that the plan takes email above any level in the brand's history, so that part of the curve is extrapolated.
Below the tables, Studio draws each channel's response curve with its range and today's spend marked, so you can see where more money stops buying much. It also plots actual against fitted revenue week by week. The channel results and the plan download as a CSV.
Why the plan is cautious by default
Most budget optimizers move money to whichever channel the model rates highest, and the model's highest-rated channel is often the one it overrates. In Marketing Mix Modeling You Can Check, the rule that maximizes expected sales lost money for a third of the standard brands in a 120-brand benchmark.
So Studio's default plan maximizes the 10th percentile of the gain over today's mix: the plan has to hold up in the scenarios where the model is wrong. When no reallocation clears that bar, Studio says Hold and keeps today's mix rather than inventing a move. If you want to see where the average points anyway, switch "What the plan aims for" to "Maximize expected sales", or remove the 50% limit, and compare.
Preparing your own data
You need one row per week and three kinds of columns:
- A date for each week.
- The outcome: revenue, orders, leads or whatever you are trying to move.
- Spend for each paid channel, up to eight. Use the same currency for every spend column; Studio reads ROAS in your outcome's units per unit of spend.
Two kinds of columns are optional but make a real difference. Controls are anything that moves sales on its own: price changes, promotions, product launches, holidays. If your brand spends more in the weeks it expects to sell more, those weeks belong in a control, or media gets their credit. Delayed channels are the ones whose effect peaks a week or more after they run, which is common for video and TV; tick them only when you have reason to think so.
At least a year of weekly data is required, and two or more years is much better. Channels that run in fewer than one week in five get a warning, because the model has little to learn from.
What the browser version leaves out
Studio runs Papilon's core marketing mix model. The full Python library, pip install papilon, adds what a web page can't do well: comparing carryover and saturation shapes across models, calibrating a channel with a lift test you ran, geo-level models, forecasting and ongoing monitoring.
The model also can't fix what isn't in the data. Paid search is the classic case: brands bid on searches people were going to make anyway, so search spend rises with demand and the model can't fully separate the two. Studio's wide range on a channel is the signal to test it. A geo lift test or holdout on the least certain channel, fed back into the full library as a prior, is usually worth more than another year of data.
Built in Kansas City, free and open source
Papilon and Studio are built at Vector 1 Research in Kansas City and released under the Apache 2.0 license. The same model is graded against brands with known returns in Marketing Mix Modeling You Can Check, the Papilon demo shows one of those brands against its answer key, and more measurement methods and code are on the marketing mix modeling practice page.
Open Papilon Studio and try it on your own numbers.
Sources
- Papilon, github.com/Bodhi8/papilon, version 1.0, the model Studio runs
- Vector 1, Papilon Studio and the sample retailer's data; the results above are from a run of Studio on that file on Nov 18, 2026, and the true values from the simulation that generated it
- Vector 1, Marketing Mix Modeling You Can Check, the 120-brand benchmark behind Studio's default plan


