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.
Marketing Science in Python — a practical guide to marketing analytics, causal inference, marketing mix modeling, pricing, forecasting, and customer analytics.
FLO wants to determine roadmap for sales and marketing activities. In order for the company to make a medium long -term plan, it is necessary to estimate the potential value that existing customers will provide to the company in the future.
TRACE: a transformer model and the Trajectory-Signal Validity (TSV) test for auditing trajectory signal in early high-value customer (CLV) prediction. Reference implementation accompanying the paper.
NBA game prediction & value-bet demo — XGBoost + Kelly Criterion Streamlit app (synthetic training workflow).
End-to-end Customer Lifetime Value (CLV) prediction pipeline using RFM analysis and CatBoost
End-to-end customer analytics project — segmenting 5,878 customers using RFM scoring, cohort analysis & CLV modelling to uncover £41M in revenue at risk. Built with Python, MySQL & Power BI.
🚀 EcomOpti: 6-phase ML pipeline for telco churn prediction, CLV estimation & retention campaign optimization. Features survival analysis, causal uplift modeling, budget optimization, FastAPI microservice & interactive Power BI-style Dash dashboard.
This repository contains a collection of marketing calculators implemented in Python. These tools are designed to assist marketers, business analysts, and students in performing essential calculations related to customer lifetime value, economic value to the customer, linear interpolation, and relative importance of attributes.
Worth Signal — an open, local-first customer value toolkit for marketers: RFM, CLV, customer equity, retention, BG/NBD and BG/BB
Gamma-Gamma CLV puts Power at €5,166 vs Dormant €27.7, a 187× gap; predictive methods run 2.9–5.9× above historical.
Production-grade analytics platform for a vehicle e-commerce marketplace. Airbyte → Snowflake (medallion) → dbt → Dagster → Elementary + Great Expectations → Power BI.
Customer Lifetime Value manager built end-to-end on Databricks: a Streamlit Databricks App computing CLV tiers from sample data, an AI/BI dashboard, and a Lakebase Postgres OLTP mirror
Buy-till-you-die models for a non-contractual business, in Python that installs. Four dependencies, Python 3.11+, published estimates reproduced in CI.
Predicts each customer's 90-day value, then sets a marketing action and a spend ceiling per customer. Part of the Customer Intelligence Engine.
Customer lifetime value and campaign optimization on UCI Online Retail II: audited ETL, BG/NBD + Gamma-Gamma vs ML baselines on temporal backtests, OR-Tools budget-constrained campaign optimizer, FastAPI + dashboard, all in Docker Compose.
1.067M-Row UK Retail CLV Prediction, Kaplan-Meier Survival, Isolation Forest Anomaly Audit, 20D TruncatedSVD Market Basket & 8-Sheet Live Excel
This project aims to perform customer segmentation and revenue prediction for a gaming company based on customer attributes. The company wants to create persona-based customer definitions and segment customers based on these personas to estimate how much potential customers can generate in revenue.
Next-quarter purchase and spend forecasts for repeat customers: Pareto/NBD and BG/NBD with Gamma-Gamma against gradient boosting, validated quarter by quarter forward in time on the CDNOW order log.
Data-driven customer retention strategy using churn risk, customer value, and ROI-based intervention simulation on the Online Retail II dataset.
To associate your repository with the clv topic, visit your repo's landing page and select "manage topics."