https://www.mediamixmodel.com/blog/pymc-marketing-vs-meridian
    Go Back

    PyMC-Marketing vs Meridian: Which Bayesian MMM Fits?

    Compare PyMC-Marketing and Meridian on model structure, geo support, reach and frequency, calibration, flexibility, and the skills each library needs.

    • 8 min read
    PyMC-Marketing vs Meridian: Which Bayesian MMM Fits?

    Both PyMC-Marketing and Meridian are Bayesian marketing mix models (MMMs), but they solve different problems. Meridian is Google's opinionated, geo-first MMM built to ingest reach and frequency data and calibrate against incrementality experiments through its GeoX tooling. PyMC-Marketing is the more exposed, flexible framework: you choose the adstock curve, the saturation function, the sampler, and how calibration enters the likelihood. Neither is "better" in the abstract. The right pick depends on whether your team wants control or wants defaults that already reflect Google's modeling choices.

    PyMC-Marketing vs Meridian at a glance

    Here's what the documentation and repositories actually state, checked on 2026-11-28.

    DimensionPyMC-MarketingMeridian
    LanguagePythonPython
    ApproachBayesianBayesian
    MaintainerPyMC LabsGoogle
    Geo-level modelingSupported, with multidimensional support in newer APINative, encouraged by Meridian's own documentation when geo data is available
    Reach and frequencyNot a distinct first-class inputDistinct roi_rf and beta_rf parameters for channels with reach/frequency, per Meridian's model configuration guide
    CalibrationLift test results enter the model's likelihood directlyROI calibration via a time-windowed prior, described in Meridian's configuration documentation
    Budget optimizationBuilt-in budget_optimizer module, per PyMC-Marketing's API documentationScenario Planner, mentioned in third-party roundups of the library
    Out-of-sample forecastingMarked supported in PyMC-Marketing's own comparison pageMarked unsupported on the same comparison page

    If you want the fuller walkthrough of either tool on its own, check out our complete guide to Google Meridian and our hands-on PyMC-Marketing tutorial.

    A two-panel diagram. Left panel shows a simple additive regression with labeled boxes for baseline, media channels, and control variables feeding into a KPI, representing a transparent model structure. Right panel shows the same boxes but with an arrow showing some "leakage" from media channels into the baseline box, illustrating the attribution risk described in the benchmarking research.

    Model structure and priors

    Meridian attaches priors to business metrics instead of abstract coefficients. Instead of asking you to guess at a regression weight, Meridian's introduction to priors explains that you can set beliefs directly on return on investment (ROI, the revenue a channel generates per dollar spent), marginal ROI (the return on the next dollar, not the average dollar), or contribution percentage. That's a deliberate design choice: it keeps non-statisticians grounded in numbers they already reason about.

    PyMC-Marketing takes the opposite stance and exposes the model's internals. You pick the adstock function (how media effects decay over time), the saturation curve (how returns diminish as spend grows), the sampler (BlackJax, NumPyro, Nutpie), and whether priors are pooled across channels or set individually, a tradeoff laid out in PyMC-Marketing's migration guide. More control means more decisions you have to get right.

    This difference shows up in benchmarking too. PyMC Labs' own comparison of baseline modeling found Meridian's flexible spline-based baseline produced better in-sample fit (lower MAPE, higher R-squared) but worse contribution recovery: higher bias, higher SRMSE (standardized root mean squared error), and higher CRPS (continuous ranked probability score) across small, growing, and medium-sized synthetic datasets. The explanation offered was that Meridian's baseline can absorb short-term noise that should belong to media channels, a reminder that a model that predicts well isn't automatically a model that attributes correctly. This is PyMC Labs' own research, so read it as one vendor's view of a competitor, not neutral judgment. Still, the methodology and numbers are published and checkable.

    Geo-level data and reach and frequency

    Meridian was built geo-first. Its own project description states it's "capable of handling large scale geo-level data, which is encouraged if available, but it can also be used for national-level modeling." Geo-level MMM pools data across regions so that one region's media response informs the model's estimate for another, often tightening your confidence intervals. Meridian also has a distinct architecture for reach and frequency: it maintains separate ROI and beta parameters (roi_rf and beta_rf) for channels where you supply reach and frequency instead of raw spend, per Meridian's configuration guide. That matters most for video and YouTube planning, where frequency capping is a real lever.

    PyMC-Marketing supports geo-level and multidimensional modeling too, and its latest migration guide highlights "native support for multidimensional" structures as a recent improvement, per its own documentation. But it doesn't carry Meridian's dedicated reach-and-frequency parameterization out of the box. If your media mix leans heavily on frequency-managed video buys, that's a real difference in how much of the work the library does for you versus how much you build yourself.

    A simple flowchart showing three separate boxes labeled "Attribution," "Incrementality Testing," and "Marketing Mix Modeling," each with a one-line description of what evidence it produces, connected by an arrow into a shared box labeled "Calibrated MMM Estimate" to show how lift test results feed into the model.

    Calibration and budget optimization

    Calibration is where the two libraries diverge in philosophy, not just mechanics. It helps to separate three evidence methods here, because people conflate them constantly: attribution assigns credit along an observed path to conversion, incrementality testing (lift tests, geo-experiments) measures causal impact through controlled holdouts, and MMM estimates channel effects statistically from aggregate time-series data. Calibration is the attempt to let incrementality evidence correct or constrain an MMM.

    Meridian does this by converting lift test or geo-experiment results into ROI priors. Version 2.0 added Meridian GeoX, described in Google's own release notes as enabling "automated calibration to bring causal lift results directly into your MMM." A third-party review of the library notes this is also where Meridian is considered strongest, since Google provides a CalibrationBuilder purpose-built for this translation. Meridian also warns against overusing a related feature: its own docs caution that the roi_calibration argument, which calibrates ROI for a specific time window rather than the whole series, "is not generally recommended" because narrow-window calibration doesn't reliably improve overall ROI estimation, per its configuration documentation.

    PyMC-Marketing handles calibration differently: lift test results are folded directly into the model's statistical likelihood rather than converted into a separate prior object, as described in the same third-party comparison. On budget optimization, PyMC-Marketing ships a documented budget_optimizer module that allocates spend across channels to maximize an expected response from the fitted posterior, per its API reference. Meridian offers a comparable Scenario Planner for budget conversations, mentioned in independent roundups of open source MMM tools, though you should check Meridian's own docs to confirm current scope before you build a workflow around it.

    If you're also weighing Robyn in this decision, our Meridian vs Robyn comparison covers that specific matchup.

    Skills, maintenance, and support

    Both libraries are open source and actively maintained, per their respective GitHub repositories, but they ask different things of your team. Meridian is maintained by Google and ships with an opinionated structure: fewer knobs, more defaults informed by Google's own ad product experience. PyMC-Marketing is maintained by PyMC Labs and exposes far more of the model, including choice of sampler with GPU acceleration available through PyMC's backends, as detailed in the third-party library comparison. That flexibility is only an advantage if someone on your team actually understands adstock transforms, saturation curves, and prior specification well enough to use it. A team without a statistician on staff will likely get more reliable results faster from Meridian's guardrails than from PyMC-Marketing's open architecture, and vice versa for a team that wants to question every modeling assumption.

    Frequently asked questions

    Is Meridian or PyMC-Marketing free? Both are open source, per their public GitHub repositories, though you'll still pay in engineering time to deploy, maintain, and interpret either one.

    Can I use reach and frequency data in both libraries? Meridian has explicit parameters for it per its documentation. PyMC-Marketing can incorporate reach and frequency as input variables but doesn't maintain the same dedicated parameter structure.

    Does either library guarantee better ROI estimates? No. MMM is one evidence method among several, and both libraries depend heavily on data quality, model specification, and whether you calibrate against real incrementality tests.

    Which library has better forecasting support? PyMC-Marketing's own comparison page marks out-of-sample forecasting as supported, while marking Meridian as not supporting it, per PyMC-Marketing's comparison table. That's a vendor's self-reported comparison, so confirm against Meridian's current docs before you decide.

    If your team leans statistical and wants full control over model architecture, PyMC-Marketing rewards that investment. If your team wants Google's defaults, native reach-and-frequency handling, and a tighter path from geo-experiments to calibrated priors, Meridian fits better. Either way, the harder decision usually isn't which library: it's whether to build this in-house at all. Take stock of your team's statistical depth, your data infrastructure, and your timeline, then decide whether to build your own MMM or buy a managed solution instead.

    A text-free conceptual business visual about Geo-level data and reach and frequency in the context of PyMC-Marketing vs Meridian, using abstract shapes and objects with no title, labels, words, numbers, logos, or fabricated data

    Stay in the loop

    Get updates on new posts and resources.

    Related Posts
    Loading related posts...