Vexpower

MMM tools, code and platforms

Choose between R, Python, spreadsheets and managed MMM platforms, with tutorials, datasets and validation checkpoints.

Choose the workflow your team can operate and challenge. A spreadsheet can teach the mechanics; an open-source library can support richer estimation; a managed platform can handle recurring operations. None removes the need to reconcile inputs and validate the decision.

Begin with MMM in R and MMM in Python. Then connect the analysis to the MMM course exercises, where you practise making a decision from model outputs.

Before acting on a recommendation, connect this topic to budget decisions: the result needs both credible measurement and a commercially worthwhile action.

A practical route through the topic

  1. 1 Match skills and needs
  2. 2 Run a teaching dataset
  3. 3 Validate on real data
  4. 4 Version and monitor

The shared practice dataset has 104 synthetic weeks and known linear channel effects. Use it to confirm that files load, transformations behave and outputs are reproducible. Its noiseless construction makes it a poor benchmark for how accurately a tool will measure a real business.

Try it before reading further

Change the inputs below and explain what changed. These teaching tools illustrate assumptions; they do not estimate your business’s return from the information on this page.

Interactive
Compare the open-source MMM libraries

Filter and sort thirteen libraries for marketing mix models and the experiments that calibrate them. Tap a row for adstock, saturation, optimiser and licence details.

Language Method Geo Calibration Status
Google · MMM Python Bayesian Yes Yes 2.1.0 Sep 17, 2026 1,585 Active
PyMC Labs · MMM Python Bayesian Yes Yes 1.3.0 Oct 22, 2026 1,295 Active
Meta Marketing Science · MMM R / Python Frequentist / other No Yes 3.12.1 (CRAN) Jul 2, 2025 1,529 Maintenance
Uber · MMM Python Bayesian No Yes 1.1.5.1 May 22, 2026 2,082 Active
Google · MMM Python Bayesian Yes No 0.1.9 May 23, 2023 1,053 Archived
Robert Kübler · MMM Python Frequentist / other No No 0.4.3 Jun 3, 2023 74 Inactive
Google · Experiments Python Frequentist / other Yes Yes 1.0.1 Sep 3, 2026 42 Active
Meta (facebookincubator) · Experiments R Frequentist / other Yes No v2.6.06 (last tag) May 19, 2023 271 Maintenance
Google · Experiments R Bayesian No No 1.4.1 (CRAN) Sep 26, 2025 1,865 Maintenance
Google · Experiments Python Bayesian No No 0.2.0 May 8, 2023 167 Maintenance
PyMC Labs · Experiments Python Bayesian Yes No 0.9.0 Jul 28, 2026 1,209 Active
Google · Experiments Python Frequentist / other Yes No No releases Aug 21, 2025 106 Maintenance
Google · Experiments Python Frequentist / other Yes No No releases Jun 1, 2023 72 Inactive
Facts checked against each project's GitHub repository, PyPI and CRAN on 24 October 2026. Stars are GitHub stars on that date. “Maintenance” means fixes but no recent release; “Inactive” means no commits for over a year. For experiment tools, “calibration support” means the tool hands its result to an MMM directly. Dates are the latest release, or the last commit where a project has never tagged a release.
Picker
Which library should I start with?

Five questions about your team and your data. The recommendation updates as you answer.

  1. Which language does your team work in?

  2. What level is your sales and spend data?

  3. Do you have lift tests or geo experiments to calibrate with?

  4. How do you feel about Bayesian modeling (priors, MCMC diagnostics)?

  5. What matters most right now?

A rule-of-thumb scoring of the libraries above, not a benchmark of model accuracy. Every library here can produce a bad model with bad data.

What to check before using the result

A script finishing successfully is an execution check, not a causal validation. Keep package versions, random seeds, input hashes and output logs. Before using a new package version, rerun both the tutorial and the checks on the outputs you depend on.

  • Data and package versions recorded
  • Code runs from a documented working directory
  • Outputs checked for finite values, reconciliation and sensible bounds
  • Licensing, ongoing operating cost and ownership understood

Your first reading path

For an overview, visit marketing mix modelling training. If you use AI to assist with analysis, the prompt engineering learning page explains the complementary skill.

Foundations from Mike’s learning briefs

Turn understanding into practice

Your next step: make a better marketing decision.

Work through realistic business problems with guided lessons, practical templates and simulations.

Choose your learning plan Explore the MMM course See the curriculum before choosing a plan.

Explore every guide in this topic

Robyn Meta's Robyn MMM explained: ridge regression, Nevergrad search, NRMSE vs DECOMP.RSSD Pareto fronts, calibration, the budget allocator and an R walkthrough. Google Meridian Google Meridian explained: the Bayesian geo-level model, ROI priors, reach and frequency, calibration, the budget optimizer, and a tested Python tutorial. PyMC-Marketing PyMC-Marketing explained: the 1.x MMM class, adstock and saturation defaults, lift-test calibration, budget optimization and a tested Python example. LightweightMMM LightweightMMM was Google's Bayesian MMM library in Python. It's now archived. How its models worked, the deprecation timeline, and a map to Meridian. Open-source MMM libraries Open source MMM tools compared as of October 2026: Robyn, Meridian, PyMC-Marketing, Orbit, LightweightMMM and the geo-test libraries, with a picker. MMM in Python Marketing mix modeling in Python from scratch: adstock, Hill saturation, OLS, decomposition, ROI, response curves and budget reallocation, with a notebook. MMM in Excel How to build a marketing mix model in Excel or Google Sheets with adstock, LINEST, decomposition, ROI, response curves and Solver. Free working template. MMM in R How to build a marketing mix model in R with base R: adstock via stats::filter, Hill saturation, lm, optim for the parameters, ROI and budget. Free R script. MMM software Marketing mix modeling software compared: 30 MMM vendors and tools checked in October 2026, with method, best fit, published pricing and questions to ask. Incrementality testing tools Haus incrementality testing compared with Measured, GeoLift by Recast, Stella, WorkMagic, INCRMNTAL, Meta and Google lift studies and open-source GeoLift. Attribution tools vs MMM Northbeam vs Triple Whale, Rockerbox, Prescient AI, Fospha, Polar and Hyros: what each DTC attribution tool means by MMM and incrementality, as of October 2026. MMM cost: build vs buy How much does a marketing mix model cost? Real cost components, published vendor prices from $750 a month to $220k a year, and a 3-year build vs buy calculator. AI and MMM AI marketing mix modeling in October 2026: which MMM vendors ship LLM agents and MCP servers, where they help, where they fail, and how to review them.

Apply it to your marketing

Meridian geo data: audit the panel before fitting Check geography coverage, weekly alignment, population scaling and missing media data before fitting a geo-level Meridian marketing mix model. Meridian ROI priors: translate experiments carefully Prepare experiment evidence for Meridian priors by matching outcomes, populations, spend and time windows, and retaining uncertainty about transfer. MMM in Python: validate the weekly data contract Use a small, executable Python audit to reject duplicate weeks, missing values and invalid spend before fitting a marketing mix model. MMM in R: read residual diagnostics before trusting fit Run a base R diagnostic example and interpret time patterns, residual scale and holdout error without confusing prediction checks with causal validation. MMM refreshes: separate new data from a changed business Use a refresh review to distinguish data revisions, delivery changes and structural drift before carrying an old MMM recommendation into a new period. YouTube MMM data audit: reconcile reach and frequency Understand why equal impression totals can hide different YouTube delivery patterns, and prepare reach, frequency and cost inputs for a meaningful MMM decision. Robyn hyperparameters: investigate estimates at the bounds Use a boundary-hit review to diagnose Robyn adstock and saturation settings without widening the search until a preferred channel return appears. Robyn model selection: review the Pareto candidates Choose among Robyn candidates using validation, plausible decomposition, experimental evidence and decision stability rather than a single winning metric.

Frequently asked questions

Should I learn R or Python for MMM?

Use the language your team can maintain, then learn the modelling assumptions. The library includes a base R walkthrough and a Python walkthrough on the same synthetic dataset so you can compare the workflow.

What should I ask an MMM vendor to demonstrate?

Ask for data reconciliation, out-of-time validation, sensitivity to assumptions, treatment of experiment evidence and an exportable decision record. A polished dashboard alone does not demonstrate reliable channel measurement.

Connect the ideas