Bayesian marketing toolbox in PyMC. Media Mix (MMM), customer lifetime value (CLV), buy-till-you-die (BTYD) models and more.
-
Updated
Dec 1, 2026 - Python
Bayesian marketing toolbox in PyMC. Media Mix (MMM), customer lifetime value (CLV), buy-till-you-die (BTYD) models and more.
The main purpose of this repository is to model and forecast customer lifetime value.
Buy-till-you-die models for a non-contractual business, in Python that installs. Four dependencies, Python 3.11+, published estimates reproduced in CI.
A hands-on course on customer lifetime value: survival analysis, BTYD models, machine learning and Markov chains, in executed Jupyter notebooks.
Customer segmentation (RFM + K-Means) and 6-month CLV prediction on 1M+ e-commerce transactions: BG/NBD + Gamma-Gamma implemented from scratch vs. LightGBM, leakage-safe backtesting, revenue-at-risk analysis.
Who comes back, what they're worth over the next six months, and where a retention budget should go. Cohorts, MBG/NBD + Gamma-Gamma CLV, budget optimisation, Power BI.
Measuring Customer Lifetime Value through Buy Till You Die (BTYD) model
Customer Lifetime Value prediction comparing probabilistic BTYD models and machine learning for revenue forecasting and customer prioritization.
Bayesian Commercial Decision Engine: Google Meridian MMM, SHAP explainability, BG/NBD Customer Lifetime Value, and distributed Apache Spark churn pipelines.
To associate your repository with the btyd topic, visit your repo's landing page and select "manage topics."