Skip to content
/ btyd Public
forked from ColtAllen/btyd

Buy Till You Die and Customer Lifetime Value statistical models in Python.

License

Notifications You must be signed in to change notification settings

mopatches/btyd

 
 

Repository files navigation

BTYD

Actively Maintained PyPI version GitHub license

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:

  1. Users interact with you when they are active, or "alive"
  2. 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

User Guide

Questions? Comments? Requests?

Please create an issue in the BTYD repository.

Supported Models

Additional Information

  1. R implementation is called BTYDplus.
  2. Bruce Hardie's website, especially his notes, is full of useful and essential explanations, many of which are featured in this library.

About

Buy Till You Die and Customer Lifetime Value statistical models in Python.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Makefile 0.1%