# CamDavidsonPilon/lifetimes

Lifetime value in Python

Repository: https://github.com/CamDavidsonPilon/lifetimes
Canonical: https://ross.abutalabs.com/products/lifetimes
Language: Python
License: MIT
License Family: permissive
Topics: python, statistics, data-science
Archived: true
Last push: 2024-06-28T14:10:21+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4265, "days_push": 796, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1476, forks 373 (observed 2026-08-28T04:04:50.207375+00:00)

## What it is
A Python library for measuring customer lifetime value (CLV) and modeling repeat-purchase behavior using probabilistic models like BG/NBD and Pareto/NBD. It is now archived, with PyMC-Marketing named as its successor.

## Use cases
- predict customer lifetime value in python
- estimate how often customers will make repeat purchases
- predict which app users have churned from usage history
- model customer purchase frequency and recency
- analyze repeat visitor behavior on a website

## When to choose
- you need classic BG/NBD or Pareto/NBD CLV models in a lightweight pandas-friendly library
- you're maintaining legacy code that already depends on lifetimes

## When to avoid
- you're starting a new project - use PyMC-Marketing instead
- you need bug fixes, new features, or issue support, since the repo is archived

## Facets
- artifact type: library
- maturity: abandoned
- function: data-science, analytics
- domain: data-science, analytics, e-commerce
- platform: python
- tags: customer-lifetime-value, clv, bgnbd, pareto-nbd, survival-analysis, churn-prediction, statistics

## Member repositories
- CamDavidsonPilon/lifetimes (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:50.207375+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:34:26.248054+00:00, confidence not recorded.
  - readme: https://github.com/CamDavidsonPilon/lifetimes (fetched 2026-08-28T04:04:50.207375+00:00, sha 53c9634d1116)
  - registry_pypi: https://pypi.org/pypi/lifetimes/json (fetched 2026-08-29T11:41:33.562367+00:00, sha 0a18da88f582)
- Data as of 2026-08-30T08:39:29.467469+00:00.
