Open-Source MMM Compared: Meridian, Robyn, PyMC-Marketing
Meridian, Robyn and PyMC-Marketing compared on method, data needs, learning curve and the real rupee cost of a first credible marketing mix model.

Three open-source libraries can run a credible marketing mix model (MMM) — statistical modelling that estimates how much each marketing channel contributed to sales — without a vendor contract: Google Meridian, Meta Robyn and PyMC-Marketing. Choose Meridian if you work in Python and can split spend and sales by region or state; Robyn if your analytics team lives in R and wants a defensible first answer in a few weeks; PyMC-Marketing if you have someone who genuinely understands Bayesian statistics and a business that breaks the standard template.
All three are free under permissive licences. The actual bill is two to three years of clean weekly data plus roughly four to eight weeks of one analyst’s time — call it ₹2–6 lakh of fully loaded labour for a first model you’d show a CFO, as an estimate for the Indian market. The software was never the expensive part.
What these tools do, in one paragraph
Each one reads your weekly history — spend, impressions, price, promotions, seasonality, sales — and estimates how much of the outcome each input drove, with no cookies or user IDs involved. Two ideas carry most of the weight. Adstock (carryover) says an ad seen this week can still cause a purchase two weeks later. Saturation says the tenth lakh of spend on a channel buys less than the first. All three model both; where they differ is how they estimate them and how much they let you argue with the defaults. If the mechanics are new to you, start with our plain-English explainer on how MMM works and come back.
What none of them do: tell you which creative won, attribute a specific order, or measure a channel you have never varied. Three years of a flat ₹5 lakh a month on radio is unmeasurable by any method here.
Where the three projects stand in November 2026
Meridian is now Google’s only recommended open-source MMM path — the older LightweightMMM library it replaced is no longer the project to start on, and its repository points people to Meridian. Robyn remains R-first and mature, with a Python port that has been circulating in early form; treat the R package as the production option unless the repo says otherwise. PyMC-Marketing has grown the fastest in scope, adding things like time-varying coefficients and causal-graph tooling for choosing control variables, alongside its customer lifetime value models.
Open-source pace changes, and this page is a snapshot. Before you commit a quarterly reporting habit to any of them, open the GitHub repository — google/meridian, facebookexperimental/Robyn, pymc-labs/pymc-marketing — and check the last 90 days of commits, open issues and release notes yourself. Five minutes there is worth more than any comparison table, including this one.
The three tools at a glance
| Google Meridian | Meta Robyn | PyMC-Marketing | |
|---|---|---|---|
| Maintainer | Meta | PyMC Labs + community | |
| Language | Python (TensorFlow Probability) | R (early Python port) | Python (PyMC) |
| Method | Bayesian hierarchical regression, MCMC sampling | Ridge regression plus evolutionary hyperparameter search (Nevergrad) | Bayesian regression, fully configurable priors |
| Output | Posterior distributions — every number has a credible interval | A shortlist of candidate models on a Pareto front | Posterior distributions, plus whatever you code |
| Geo-level modelling | Built in and encouraged | Possible; default is national | Supported, you configure it |
| Reach & frequency inputs | First-class (YouTube, CTV, display) | Not a core feature | You can build it |
| Experiment calibration | Yes — ROI priors set from lift tests | Yes — calibration against experiment results | Yes — lift-test likelihood |
| Budget optimiser | Included | Included | Included |
| Also does CLV | No | No | Yes — retention models in the same library |
| Typical run time | Minutes to hours; a GPU helps a lot | Minutes to a couple of hours (it fits thousands of candidates) | Minutes to hours by model size |
| Learning curve | Medium-high | Medium | High |
| Best for | Regional data, heavy search and video spend | R shops wanting a fast, opinionated first model | Unusual business models and long lags |
Docs: developers.google.com/meridian, facebookexperimental.github.io/Robyn, pymc-marketing.io.
Google Meridian
Meridian is built around two assumptions: that you have geo-level data, and that you care about channels where reach and frequency matter rather than clicks.
The geo part is the genuinely useful bit, and it is worth seeing the arithmetic. A national model on three years of weekly data gives you 156 rows. Split the same business across 12 states and you have 1,872 rows. Those rows are not independent — states move together, and Meridian’s hierarchical structure deliberately pools them so a small market doesn’t throw out a wild estimate — but you have bought yourself far more usable variation than a single national line ever had. That is the single biggest lever available to a small team with a short history.
Meridian also accepts search query volume as a control and lets you set priors directly from incrementality experiments. If a geo lift test found YouTube returning somewhere between 1.5x and 2.5x, you tell the model that instead of hoping a regression rediscovers it.
Choose it when you have state or city splits, meaningful video spend, and a Python analyst. Avoid it when your media is mostly national buys you cannot allocate regionally — common for Indian brands leaning on national TV and print, where a geo model becomes guesswork dressed as granularity.
Meta Robyn
Robyn fits thousands of ridge regressions across different adstock and saturation settings, then uses an evolutionary optimiser to find models that balance fit against business plausibility. You end up with a shortlist of candidates rather than one answer.
That shortlist is Robyn’s best and worst feature. Best, because five plausible models make uncertainty visible in a way a single chart never does. Worst, because an unsupervised analyst will pick the one that flatters the CMO’s favourite channel. The fix is procedural: write down your model-selection criteria before you look at the results, and have a second person check the chosen model against any lift test you have.
Choose it when your team already works in R and you want something defensible in weeks, not quarters. Avoid it when nobody writes R, when you need honest credible intervals on every number (ridge regression gives you a point estimate, not a posterior), or when your business needs structure the framework doesn’t offer.
PyMC-Marketing
PyMC-Marketing hands you Bayesian MMM as building blocks rather than a finished pipeline. You pick the adstock function, the saturation function, the priors, whether coefficients drift over time, and how lift tests enter the likelihood. It also ships customer lifetime value models, so media effects and retention analysis can live in one codebase — useful if you are already calculating CLV and want the two to agree.
Choose it when the standard template breaks: subscription revenue with long lags, a marketplace with spend on both sides, or a category where price moves more than media does. Avoid it when nobody can explain a posterior distribution out loud — the flexibility that makes it powerful makes it easy to ship something confidently wrong, with a beautiful chart attached.
What it actually costs in rupees
Every figure below is an estimate based on typical Indian market rates as of November 2026, not a quote. Get your own numbers before you budget.
| Cost line | Open source, in-house | Open source + consultant | Commercial MMM platform |
|---|---|---|---|
| Software licence | ₹0 | ₹0 | est. ₹15–60 lakh a year |
| First model build | 4–8 weeks of one analyst ≈ est. ₹2–6 lakh fully loaded | est. ₹4–12 lakh for a build plus handover | Usually bundled into the licence |
| Compute | Low — a mid-range cloud GPU instance is in the low hundreds of rupees per hour at list price, and most runs finish inside an hour | Same | Included |
| Quarterly refresh | est. 3–5 analyst days | est. ₹75,000–2 lakh per refresh | Included |
| What you own | The code, the data pipeline and the capability | The code; the capability depends on handover | A dashboard and a renewal conversation |
The honest comparison is not free versus paid, it is who does the work. Commercial vendors are charging for labour, data plumbing and someone to blame, not for the maths. If you are mapping total analytics spend, our Indian marketing stack cost reference puts these numbers next to the rest of your tooling.
The data you need before you install anything
This is where most small-team MMM projects die. Assemble this before writing a line of code.
- Weekly rows, not monthly. 104 weeks minimum, 156 comfortable. Monthly data gives you 24–36 rows, which cannot support the parameters you are about to ask for.
- One stable outcome column. Revenue, orders or qualified leads — pick one and keep the definition identical across the whole window.
- Spend per channel, per week, split at the level you actually make decisions. Six to ten channels is healthy.
- Impressions or clicks per channel. Spend alone confuses “we bought more” with “auction prices rose”.
- Price and promotion. Average selling price, discount depth, sale windows. Omit these and your media effects quietly absorb every discount you ever ran.
- Seasonality and events. For India: Diwali and the big festive sale windows, IPL, exam and admission cycles, monsoon for anything weather-sensitive.
- Experiment results. Any geo lift, conversion lift or holdout test. The highest-value input on this list.
- Stock-outs and supply constraints. A week you couldn’t ship looks exactly like a week your advertising failed.
Then do the parameter count. Eight channels with a geometric adstock parameter plus two saturation parameters plus a coefficient is 32 media parameters, before trend, seasonality, price and promotions. On 104 weekly rows that is an uncomfortably tight fit; on 156 it is workable. The practical rule: keep media variables under a tenth of your row count, and merge small channels rather than modelling each one proudly. Much of this plumbing overlaps with a decent first-party data foundation, so the work is rarely wasted.
Blunt readiness test: if producing a single spreadsheet with those columns would take more than two days, fix the plumbing first.
What the output looks like, with the arithmetic
Say a direct-to-consumer brand spends ₹40 lakh a month. The numbers below are illustrative — invented to show the shape of an answer, not a benchmark.
| Channel | Monthly spend | Average ROI | Marginal ROI | Read |
|---|---|---|---|---|
| Google Search | ₹8,00,000 | 6.2x | 4.1x | Room to grow |
| Meta (FB + Instagram) | ₹14,00,000 | 3.4x | 1.9x | Near saturation — hold |
| YouTube | ₹6,00,000 | 2.1x | 2.0x | Flat curve — test a step up |
| Affiliate | ₹4,00,000 | 5.0x | 1.2x | Likely harvesting existing demand |
| Print + OOH | ₹8,00,000 | 1.4x | 1.3x | Reduce and reinvest |
The column that matters is marginal ROI — the return on the next rupee, not the average across all rupees already spent. Here is the trade the model is suggesting, on an unchanged total budget:
- Move ₹2,00,000 a month out of Print + OOH: revenue lost = ₹2,00,000 × 1.3 = ₹2,60,000.
- Put it into YouTube: revenue gained = ₹2,00,000 × 2.0 = ₹4,00,000.
- Net effect = +₹1,40,000 a month, roughly ₹16.8 lakh a year, with no increase in spend.
Two caveats that separate a good analyst from a dangerous one. First, marginal ROI is a local slope: move ₹10 lakh instead of ₹2 lakh and the curve flattens under you, so step in increments and refit. Second, a Bayesian model gives you a range, not a number — YouTube’s 2.0x might carry a credible interval of 1.4x to 2.7x. A 2.0 versus 1.3 gap is worth acting on; a 2.0 versus 1.9 gap with overlapping intervals is noise, and the correct response is a test, not a reallocation. If you are rebuilding the whole budget rather than trimming it, pair this with the 70-20-10 allocation framework.
Failure modes people actually hit
| Symptom | Usual cause | Fix |
|---|---|---|
| A tiny channel shows an enormous ROI | Spend correlated with a festive spike nobody controlled for | Add event and promotion flags; cap the prior for that channel |
| Brand search looks like your best channel | Brand search is an outcome of other media, not a cause | Treat it as a control or mediator, not a media variable |
| ROI swings from 4x to 1x between quarterly refreshes | Too many variables for the history; unstable model | Merge channels, add geo splits, calibrate with a lift test — and say out loud that it’s unstable |
| MMM disagrees violently with your ad platform dashboards | They measure different things, and both double-count differently | Expected. See MMM vs attribution vs incrementality |
| Robyn’s candidate models disagree with each other | The data genuinely supports several stories | Pick on pre-written criteria plus lift-test agreement, never on the flattering answer |
| A channel returns a near-zero effect | Its budget barely varied, so there is nothing to learn from | Deliberately vary spend next quarter, or holdout-test it |
What this means for you
- Choose by team, not by hype. R team → Robyn. Python team with geo data → Meridian. Python team with a real statistician and an unusual business → PyMC-Marketing.
- Spend week one on data, not code. Build the 156-week spreadsheet first; count your parameters against your rows before you pick a tool.
- Run a geo holdout test now, even a small one. It is the cheapest thing that makes your eventual model credible to a finance team.
- Report marginal ROI with its uncertainty range in every budget conversation. Averages rarely change decisions; marginal numbers do.
- Refit quarterly and track the movement. Stability across refreshes is the honest test of whether anyone should trust the model.
- Budget est. ₹2–6 lakh of analyst time for a first credible model, plus small compute. Free software, paid labour.
- Check the repo before you commit. Commit activity and release notes tell you more about long-term risk than any feature list.
Frequently asked questions
Is open-source MMM really free?
The software is genuinely free: Google Meridian, Meta Robyn and PyMC-Marketing are all released under permissive open-source licences with no seat or usage fees. The costs sit elsewhere — typically four to eight weeks of analyst time for a first usable model (an estimated ₹2–6 lakh fully loaded in India), modest cloud compute for the Bayesian runs, and three to five analyst days per quarterly refresh. Commercial MMM vendors are largely charging for that labour and data plumbing, not for the statistics, which are published openly.
How much data do I need to run MMM?
Two years of weekly data is the practical minimum and three years is comfortable — 104 to 156 rows. You need weekly spend and impressions for each channel, one stable outcome column (revenue, orders or leads), price and promotion history, seasonality and event markers, and any stock-out periods. Keep media variables under roughly a tenth of your row count. Most importantly, spend must have actually varied: a channel held at a flat budget for two years cannot be measured by any MMM tool.
Which open-source MMM is best for a small Indian marketing team?
Meta Robyn if you have an R analyst and want a defensible first answer within a few weeks — it is the fastest route to a shortlist of plausible models. Google Meridian if you work in Python and can split spend and sales by state or city, since geo-level data dramatically increases what a short history can support. PyMC-Marketing only if someone genuinely understands Bayesian modelling. With heavy national TV, print or out-of-home buys that cannot be split regionally, Robyn’s national default is often the more honest choice.
Is Meridian more accurate than Robyn?
There is no credible public head-to-head that settles this, and you should distrust anyone who claims one. Meridian and PyMC-Marketing are Bayesian and return uncertainty ranges around every estimate; Robyn uses regularised regression with an evolutionary search and returns candidate models instead. Accuracy in practice depends far more on data quality, control variables and whether you calibrate against an incrementality experiment than on the library. Validate your own model with a holdout period and a lift test rather than trusting a brand name.
Can I run MMM without geo-level data?
Yes. All three tools will fit a national model on a single weekly time series, and Robyn defaults to exactly that. The trade-off is statistical power: three years of national weekly data is 156 observations, which limits you to perhaps six to eight media variables before estimates turn unstable. Without geo splits you should merge small channels, lean harder on experiment calibration, and widen the uncertainty you report. Geo data is an advantage, not a requirement.
Does MMM replace attribution and incrementality testing?
No — the three work together. Incrementality experiments measure one channel precisely but cost real money and time; MMM covers every channel at once with more uncertainty; platform attribution handles day-to-day campaign optimisation. The strongest setup uses experiment results to calibrate the MMM, which Meridian, Robyn and PyMC-Marketing all explicitly support. Use MMM for annual and quarterly budget splits, experiments to settle big disagreements, and attribution for weekly campaign decisions — never one of them for all three jobs.
