pymc-marketing  by pymc-labs

Bayesian marketing toolbox for MMM, CLV, and customer choice analysis

created 3 years ago
901 stars

Top 41.2% on sourcepulse

GitHubView on GitHub
Project Summary

PyMC-Marketing is a Bayesian marketing analytics toolbox for Media Mix Modeling (MMM), Customer Lifetime Value (CLV), and Customer Choice Analysis (CSA). It empowers businesses to optimize marketing ROI and understand customer behavior through advanced statistical modeling, targeting marketing professionals and data scientists.

How It Works

The library leverages PyMC's probabilistic programming capabilities to implement sophisticated Bayesian models. For MMM, it incorporates adstock transformations, saturation effects, and time-varying parameters using Gaussian processes, allowing for flexible and interpretable analysis of marketing channel effectiveness. CLV models include various implementations like BG/NBD and Gamma-Gamma for both contractual and non-contractual settings. Customer Choice Analysis utilizes Multivariate Interrupted Time Series (MVITS) for product launch impact assessment.

Quick Start & Requirements

  • Installation: conda create -c conda-forge -n marketing_env pymc-marketing
  • Prerequisites: Python environment (conda recommended), PyMC. GPU support is available via PyMC backends.
  • Resources: Official installation documentation, Dockerfile available.

Highlighted Details

  • Bayesian MMM API supports custom priors, adstock, saturation functions, time-varying contributions, and causal identification via DAGs.
  • Offers multiple inference algorithms (NUTS samplers like BlackJax, NumPyro, Nutpie) and GPU acceleration.
  • CLV models cater to contractual/non-contractual and continuous/discrete transaction data.
  • MVITS models for Customer Choice Analysis handle saturated and unsaturated markets with market share and causal impact assessment.

Maintenance & Community

  • Supported by PyMC Labs.
  • Community resources include PyMC Discourse, Bayesian Discord, and MMM Hub Slack.
  • MMM-GPT AI assistant available for guidance.

Licensing & Compatibility

  • Licensed under Apache 2.0, free for commercial use.
  • Compatible with closed-source linking.

Limitations & Caveats

The library is actively developed, with new features constantly added. Users should refer to example notebooks for specific model implementations and usage details.

Health Check
Last commit

3 days ago

Responsiveness

1 day

Pull Requests (30d)
34
Issues (30d)
22
Star History
77 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), and
1 more.

alibi by SeldonIO

0.1%
3k
Python library for ML model inspection and interpretation
created 6 years ago
updated 1 month ago
Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Nathan Lambert Nathan Lambert(AI Researcher at AI2), and
1 more.

tianshou by thu-ml

0.1%
9k
PyTorch RL library for algorithm development and application
created 7 years ago
updated 2 days ago
Feedback? Help us improve.