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 values 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. Lifetimes is a Python library to calculate CLV for you.
Installation
pip install lifetimes
Requirements are only Numpy, Scipy, Pandas, Dill (and optionally-but-seriously matplotlib).
Documentation and tutorials
Questions? Comments? Requests?
Please create an issue in the lifetimes repository.
More Information
Roberto Medri did a nice presentation on CLV at Etsy.
R implementation is called BTYD (for, Buy ‘Til You Die).
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 Distributions
File details
Details for the file Lifetimes-0.9.0.0.tar.gz
.
File metadata
- Download URL: Lifetimes-0.9.0.0.tar.gz
- Upload date:
- Size: 572.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 863170a91ea091d0f2b6e0725c606de10e917dc119911e14e176129ed9f45f36 |
|
MD5 | 6694bfc0dc18d6c681ad2702afcbcbeb |
|
BLAKE2b-256 | 849db55295d7c494c55f2191979940d672bd493c424bd8b2301b2b24086e7102 |
File details
Details for the file Lifetimes-0.9.0.0-py3-none-any.whl
.
File metadata
- Download URL: Lifetimes-0.9.0.0-py3-none-any.whl
- Upload date:
- Size: 605.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f71b502990a2f16859e16a058af1328d292d70d3655a8bdc48172af26798c39 |
|
MD5 | 900f097768faf012ec319df75ff3c809 |
|
BLAKE2b-256 | 055bb2eb4de1e2e225938fdcafcd25d4c7ee3659d2428ae70b1447be0e2c4e54 |
File details
Details for the file Lifetimes-0.9.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: Lifetimes-0.9.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 605.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0610bd3ac5d75fc0bf71513d5dbf455fdb036721caba38acedffeb47add4ea90 |
|
MD5 | 7c945be96ca5ebe1daa07901847d46db |
|
BLAKE2b-256 | 8df980e837f60e183cdbb0a62f009eacadc332d0e843b413752dbc66dd212420 |