Measure customer lifetime value in Python
Project description
Measuring users is hard. Lifetimes makes it easy.
Introduction
Lifetimes can be used to analyze your users based on a few assumption:
- Users interact with you when they are "alive".
- Users under study may "die" after some period of time.
I've quoted "alive" and "die" as these are the most abstract terms: feel free to use your own definition of "alive" and "die" (they are used similarly to "birth" and "death" in survival analysis). Whenever we have individuals repeating occurrences, we can use Lifetimes to help understand user behaviour.
Applications
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
Specific Application: Customer Lifetime Value
As emphasized by P. Fader and B. Hardie, understanding and acting on customer lifetime value (CLV) is the most important part of your business's sales efforts. And (apparently) everyone is doing it wrong (Prof. Fader's Video Lecture). Lifetimes is a Python library to calculate CLV for you.
Installation
pip install lifetimes
Contributing
Please refer to the Contributing Guide before creating any Pull Requests. It will make life easier for everyone.
Documentation and tutorials
Questions? Comments? Requests?
Please create an issue in the lifetimes repository.
Main Articles
- Probably, the seminal article of Non-Contractual CLV is Counting Your Customers: Who Are They and What Will They Do Next?, by David C. Schmittlein, Donald G. Morrison and Richard Colombo. Despite it being paid, it is worth the read. The relevant information will eventually end up in this library's documentation though.
- The other (more recent) paper is “Counting Your Customers” the Easy Way: An Alternative to the Pareto/NBD Model, by Peter Fader, Bruce Hardie and Ka Lok Lee.
More Information
- Roberto Medri did a nice presentation on CLV at Etsy.
- Papers, lots of papers.
- R implementation is called BTYD (Buy 'Til You Die).
- 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 Lifetimes-0.11.2.tar.gz
.
File metadata
- Download URL: Lifetimes-0.11.2.tar.gz
- Upload date:
- Size: 559.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96c251e235db1efe23c49593e437431ad301ca7de6fcd909ebae19f3ea50247b |
|
MD5 | db593fcd3a60e71feca92935867ef545 |
|
BLAKE2b-256 | 8e8b11930acc2594dfd0e0a00e81c6333c0c2a8e3d9cb6b034f450d27c58c37e |
File details
Details for the file Lifetimes-0.11.2-py3-none-any.whl
.
File metadata
- Download URL: Lifetimes-0.11.2-py3-none-any.whl
- Upload date:
- Size: 584.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdd9a35cb9f8ec7ec91695ecc975793eaa797a95064d0c556bc581cae1029699 |
|
MD5 | 3f087762723caa9465cbb2b3dd6d0472 |
|
BLAKE2b-256 | 8d5afdd8f399606b945433d224e2753691cb2620f6fcf376a9f9e625edd49291 |