Ninh Louis Avatar

Ninh's Notes

Insights for Effective Strategies

πŸ“Š Customer Lifetime Value Prediction Model

Context & Problem

In our B2B marketplace, customers have no contractual obligation to stay β€” they buy when they want, and stop without notice. This presented a challenge: how can we estimate the sales potential of each existing buyer if their future behavior is unknown?

We framed this business question as: β€œWhat is the expected customer lifetime value (CLV) of each buyer in the next 1, 3, and 6 months?” This would let us forecast future revenue, detect potential churn, and personalize interventions.

Solution & Methodology

Inspired by Fader et al. (2005) and Fader & Hardie (2013), we implemented a non-contractual CLV framework using:

BG/NBD purchase timeline

The BG/NBD model uses frequency (x), recency (tx), and total time observed (T) to estimate repeat purchasing and churn probability.

Using transaction logs from our data warehouse, we trained and validated the model weekly with lifetimes Python library, using a root mean squared error (RMSE) threshold of 5% to ensure acceptable predictive accuracy.

Results & Business Value

πŸ“‚ Files and Scripts


View them on GitHub:
πŸ”— View CLV project on GitHub

← Back to All Projects