Buy Till You Die and Customer Lifetime Value statistical models in Python.
Project description
BTYD
READ FIRST: Project Status
BTYD is the successor to the Lifetimes library for implementing Buy Till You Die and Customer Lifetime Value statistical models in Python. All existing Lifetimes functionality is supported, and Bayesian PyMC model implementations are now in Beta.
Introduction
BTYD can be used to analyze your users based on the following assumptions:
- Users interact with you when they are active, or "alive"
- Users under study may "die" or become inactive after some period of time
If this is too abstract, consider these applications:
- Predicting how often a visitor will return to your website. (Alive = visiting. Die = decided the website wasn't for them)
- Understanding how frequently a patient may return to a hospital. (Alive = visiting. Die = maybe the patient moved to a new city, or became deceased.)
- Predicting individuals who have churned from an app using only their usage history. (Alive = logins. Die = removed the app)
- Predicting repeat purchases from a customer. (Alive = actively purchasing. Die = became disinterested with your product)
- Predicting the lifetime value of your customers
Installation
BTYD installation requires Python 3.8 or 3.9:
pip install btyd
Contributing
Please refer to the Contributing Guide before creating any Pull Requests.
Documentation and Tutorials
Questions? Comments? Requests?
Please create an issue in the BTYD repository.
Supported Models
- BG/NBD Fader, Peter S., Bruce G.S. Hardie, and Ka Lok Lee (2005a), "Counting Your Customers the Easy Way: An Alternative to the Pareto/NBD Model", Marketing Science, 24 (2), 275-84.
- Gamma-Gamma Fader, Peter & G. S. Hardie, Bruce (2013). "The Gamma-Gamma Model of Monetary Value".
- Modified BG/NBD Batislam, E.P., M. Denizel, A. Filiztekin (2007), "Empirical validation and comparison of models for customer base analysis," International Journal of Research in Marketing, 24 (3), 201-209.
Additional Information
- R implementation is called BTYDplus.
- Bruce Hardie's website, especially his notes, is full of useful and essential explanations, many of which are featured in this library.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file btyd-0.1b3.tar.gz
.
File metadata
- Download URL: btyd-0.1b3.tar.gz
- Upload date:
- Size: 576.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.9.12 Linux/5.15.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cdf7a284ccd7e8ca24d52d35954e447bfb46892432634f9a422a464ece3c90c |
|
MD5 | 4bf9e1fe75dd33f7f34d499d1dad4a6c |
|
BLAKE2b-256 | 9e4558abad5d645abdf8281df3be1115503f6b5c3adb60ff7fcf671c3f7232bc |
File details
Details for the file btyd-0.1b3-py3-none-any.whl
.
File metadata
- Download URL: btyd-0.1b3-py3-none-any.whl
- Upload date:
- Size: 605.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.9.12 Linux/5.15.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b60d49d41fbacfbcc0a651fb474b6013ea40b08b42e808ae708e7696e888fed0 |
|
MD5 | 02490986d59f83a6fcf334c98799bab3 |
|
BLAKE2b-256 | 47277bd5884becd9b5bb2d7742c6e489baf5992ce2426445ed6cd70468371ce5 |