PyMC-Marketing

    PyMC-Marketing is an open-source Python library from PyMC Labs for Bayesian marketing analytics, including mix models and customer lifetime value models.

    Last reviewed

    It's built on PyMC, a general-purpose Bayesian modeling library, so it's the most flexible of the main open-source options and asks the most of the analyst. You can change the model's structure freely, which is a strength if you know what you're doing.

    Topic
    Mix modeling

    Related terms

    Bayesian MMM
    A Bayesian mix model combines what you believed about each channel before seeing the data (priors) with what the data show, and reports each result as a range of plausible values.
    Meridian
    Meridian is Google's open-source marketing mix modeling framework, written in Python. It's a Bayesian model designed for regional data, with support for reach and frequency and for priors based on experiments.
    Robyn
    Robyn is an open-source marketing mix modeling package from Meta, written in R, that fits many candidate models using ridge regression and an automated search over settings.
    Markov chain Monte Carlo (MCMC)
    Markov chain Monte Carlo is the family of algorithms that Bayesian models use to draw thousands of samples from the posterior when it can't be worked out with a formula.
    Customer lifetime value (LTV)
    Customer lifetime value is the total profit (or sometimes revenue) you expect from a customer over the whole time they stay with you.

    Go deeper

    Want a second opinion?

    Tell us what you're trying to decide and what data you have, and we'll tell you what we'd do. Or take the short readiness quiz first. It's a rough screen, not a verdict. Both open on the home page.