Data Science
Meridian vs Robyn vs PyMC-Marketing: Choosing an MMM Tool
Part 5 of 5: How Google's Meridian, Meta's Robyn and PyMC-Marketing handle adstock, saturation, collinearity and calibration, and which suits your team?
Covered so far
- Parts 1 and 2: What and how MMM does? What goes into it, plus adstock and saturation curves
- Part 3: Collinearity, and fixes from varied spend to priors and ridge regression
- Part 4: Validating an MMM, Matched Market Testing and the Calibration loop
In this part
- What Google's Meridian, Meta's Robyn and PyMC Labs' PyMC-Marketing have in common?
- How each one handles adstock, saturation, base demand, collinearity and calibration?
- Which tool fits your use case?
Not long ago, building an MMM meant hiring a consultancy or writing your own regression code. Today three free, open-source tools cover most of what this series has explained: Meridian from Google, Robyn from Meta and PyMC-Marketing from PyMC Labs. Style Smart's analytics team has shortlisted all three and has to pick one.
The good news is that they share the same core ideas. The differences are in how they estimate the model, what data they expect and who they're built for.
Commonality in Meridian, Robyn and PyMC-Marketing
Every tool runs the pipeline from Parts 1 and 2:
- Transform each channel's spend with adstock for carry-over.
- Pass it through a saturation curve for diminishing returns.
- Fit a regression of the KPI on the transformed media, plus base demand, seasonality and control variables.
- Report each channel's contribution, ROI and response curve.
- Feed in experiment results to calibrate (Part 4).
- Suggest a budget split with an optimiser.
The tool you pick changes the defaults, the estimation method and how much control you get. The concepts stay the same.
Meridian (Google)
Meridian is a Python library and the successor to Google's earlier LightweightMMM, which Google's migration guide calls Meridian's previous version.
- Bayesian: It estimates every parameter as a probability distribution, sampled with MCMC (the No-U-Turn Sampler), on a JAX backend.
- Geo-level by default: The standard model is hierarchical across regions, so it learns from differences between, say, states. A national (single-region) model is also available.
- Reach and frequency: Besides spend and impressions, it can take how many people saw an ad and how often, which suits video and TV.
- Adstock and saturation: Geometric or binomial adstock with a maximum lag, and a Hill curve applied after adstock by default.
- Base demand: A baseline that changes over time, built from "knots" that capture trend and seasonality.
- Calibration: You set ROI priors per channel, and experiment results can be turned into those priors. Meridian 2.0 added GeoX, Google's geo-experiment library, with automated calibration from lift tests.
It also includes a budget optimiser. It's computationally heavy, and larger models run much faster on a GPU. The recent update is covered in Google Meridian: GeoX MCP Skills Update.
Robyn (Meta)
Robyn is an R package. Third-party Python ports exist, but the official package is R.
- Not Bayesian: It uses ridge regression, a regression with a penalty that shrinks coefficients and steadies collinear channels (Part 3).
- Automated search: Instead of choosing decay rates and curve shapes yourself, you set ranges and Robyn's evolutionary optimiser (Nevergrad) tries thousands of combinations.
- A shortlist, not one answer: It scores candidates on two goals, prediction error and decomposition distance (how far each channel's share of effect strays from its share of spend), and returns the best trade-offs, called Pareto-optimal models. The analyst picks one.
- Adstock and saturation: Geometric adstock, or Weibull, whose PDF version can peak a few weeks after the spend, with a Hill curve.
- Base demand: Meta's Prophet library handles trend, seasonality, holidays and weekday effects, with holiday calendars for many countries.
- Calibration: Experiment results become a third goal. MAPE and Lift measures how far each model's channel effect is from the measured lift.
Its budget allocator works from the chosen model's response curves.
PyMC-Marketing (PyMC Labs)
PyMC-Marketing is a Python library built on PyMC, a general-purpose Bayesian modelling library.
- Fully Bayesian and flexible: Like Meridian, it gives every estimate a range. Unlike Meridian, it's designed to be customised.
- Adstock and saturation: Geometric and other adstock shapes and several saturation curves are built in, and you can write your own.
- Effects that change over time: The baseline and media effects can vary over time, which helps when a channel's effectiveness drifts.
- Calibration: Lift-test results can be added to the fit directly as extra evidence, or used as priors.
That flexibility has a cost. You need a team comfortable with Bayesian modelling to set priors, read diagnostics and spot a model that hasn't converged.
Side by side
Figure 1: The three open-source MMM tools at a glance, and when to pick each one.
| Meridian | Robyn | PyMC-Marketing | |
|---|---|---|---|
| Made by | Meta | PyMC Labs | |
| Language | Python | R | Python |
| Estimation | Bayesian (MCMC) | Ridge regression + automated search | Bayesian (MCMC) |
| Adstock | Geometric, binomial | Geometric, Weibull | Geometric, others, custom |
| Saturation | Hill | Hill | Several built in, custom |
| Base demand | Time-varying baseline (knots) | Prophet: trend, season, holidays | Seasonality terms, time-varying baseline |
| Regional data | Built in (hierarchical) | National by design | Possible; check current docs |
| Collinearity help | Priors, regional variation | Ridge penalty, spend-share check | Priors |
| Calibration | Experiments become ROI priors | Lift tests as a fit goal | Lift tests in the fit, or priors |
| Uncertainty | Full ranges per estimate | Spread across shortlisted models | Full ranges per estimate |
| Effort | Medium; GPU helps | Lower; mostly configuration | Highest; most control |
Table 1: How the three tools handle each concept in this series.
What data does each one expect?
The core is the weekly table from Part 1: date, KPI, spend per channel and control variables such as discounts and festivals. Beyond that:
- Meridian works best with one row per region per week, the population of each region, and impressions (or reach and frequency) alongside spend.
- Robyn wants paid media spend, optionally an exposure metric such as impressions, organic and context variables, and the country for its holiday calendar.
- PyMC-Marketing takes a dataframe with a date column, channel columns, control columns and the target. You decide the rest in code.
💡 Tip: Build a weekly dataset in a tool-neutral format first. If the columns are clean, switching tools later is a day's work. If they're not, no tool can help.
Example:
Style Smart sells nationally, but its warehouse records revenue by state, and it buys TV regionally. Its team works in Python and has already run geo experiments. Regional variation is what its TV-Search collinearity needs (Part 3), so it picks Meridian and sets the Search prior from its geo test.
Bramwell Home has one analyst who knows R and needs a first answer within a month. It picks Robyn. The automated search and the shortlist of models get it to a defensible budget split without hand-tuning every decay rate.
Thistledown Skin has a data science team and an influencer channel whose effect seems to fade as audiences tire of the same creators. It picks PyMC-Marketing, so it can let that channel's effect change over time.
📌 Key idea: The tool matters less than the data and the experiments. A well-calibrated model in any of the three beats an uncalibrated one in the "best" tool.
⚠️ Pitfall: Each tool's defaults are someone else's assumptions. Default priors, decay ranges and curve shapes are starting points. Check them against your business before you present a single ROI.
All the above 3 models change quickly. Check the current documentation before relying on any specific feature.
Key Takeaways
- Meridian, Robyn and PyMC-Marketing all run the same pipeline: adstock, saturation, regression, calibration with experiments and a budget optimiser.
- Meridian (Google, Python) is Bayesian and geo-level by default, takes reach and frequency, and turns experiments into ROI priors. It's the successor to LightweightMMM.
- Robyn (Meta, R) uses ridge regression and an automated search, returns a shortlist of models, uses Prophet for base demand and scores models against lift tests.
- PyMC-Marketing (PyMC Labs, Python) is fully Bayesian and the most customisable, including effects that change over time, but needs the most statistical skill.
- Calibration with experiments matters more than the tool.
✅ Series complete: That wraps up the Media Mix Modelling series. Checkout Part 1: What Is Media Mix Modelling?. To see the ideas applied, read The MMM Casebook, five business cases built on this series.
Quick Quiz: Test Yourself
🧠 Test yourself: 5 questions (click to open)
1. Which estimation approach does Meta's Robyn use?
2. What does Meridian's geo-level hierarchical model add, compared with a national model?
3. A team needs a channel's effect to change over time and wants full control of priors and curve shapes. Which tool fits best?
4. How does Robyn use experiment results?
5. What do all three tools have in common?
In case of any queries or feedback, feel free to drop a comment or reach out using the Contact section.