Papilon Studio · open-source marketing mix modeling
What is each marketing channel really returning?
Upload a few years of weekly spend and sales and Papilon Studio fits a Bayesian marketing mix model to them: the return on each channel with an honest range, the point where each one starts to saturate, and a budget plan built to hold up if the model is wrong. Then ask the model about it in plain English: an agent built into Papilon picks the analyses, runs them on your model and writes the answer, and every number it gives is traced back to the result it came from. It all runs the open-source Papilon library in your browser. Your file is never uploaded anywhere.
Loading…
First rows of your file
The short version
Ask the model
Chat with the model you just fitted. Papilon's built-in agent chooses which analyses to run, runs them here in your browser, and writes the answer from their results. Each step shows up as it runs, and a check under every answer traces each number to the result it came from. No account, no API key, no cost; you can plug in your own Claude key if you want a language model to drive the same tools.
What each channel returned
Return on ad spend (ROAS) is sales driven per unit of spend over your data. The bar is Papilon's 90% range and the dot its best estimate. Marginal ROAS is what the next unit of spend returns at today's level, which is what a budget decision turns on.
Recommended plan for next period
The scenario planner opens this model in its own page: try other budgets, ROI or marginal-return targets, channel limits and locks, save scenarios and compare them. It is one HTML file you can send to anyone; it runs in their browser with no install.
By default the plan maximizes the 10th percentile of the gain over today's mix, so it has to hold up in the scenarios where the model is wrong; when no move clears that bar, it keeps today's mix. "Maximize expected sales" chases the average instead and moves more money, with more risk. Treat it as a direction to test, not an order: move part of the budget, or run a lift test on the channel with the widest range first.
Diminishing returns, channel by channel
Each curve is the weekly sales a channel drives at a steady spend level, with its 90% range. The dashed line is today's average spend. Where a curve flattens, more money buys little.
How well the model fits your history
Keep going
Studio runs the same model you get with pip install papilon. The Python library adds what a browser page can't: model comparison across carryover and saturation shapes, lift-test calibration, geo models, forecasting and monitoring. Source and documentation are on GitHub.
How do we know the model is honest? Marketing Mix Modeling You Can Check grades it on 120 simulated brands with known returns, and the Papilon demo shows one of them against its answer key.
For the methods behind it, read Marketing Mix Modeling in Python.