Theory Behind Pareto/NBD Part 1

1 Introduction

The Pareto/NBD model was developed by Schmittlein et al. (1987) to describe repeat-buying behavior in a noncontractual setting.

There are 4 key questions:

  1. How many “alive” customers does the firm now have?

  2. How has this customer base grown over the past year?

  3. Which individuals on this list most likely represent active customers? Inactive customers?

  4. What level of transactions should be expected next year by those on the list, both individually and collectively?

In order to answer these questions, we need to build up the model(s) to estimate:

  1. What is the \(\mathbb{P}(alive|\text{her trans infor})\)?

  2. What is the \(\mathbb{E}(\text{# of trans}|\text{her trans infor})\)?

2 PNBD Model Assumptions

2.1 Two stages in the lifetime

Customers go through 2 stages in their “lifetime”: they are “alive” for some period of time, then become permanently inactive.

2.2 Poisson Purchase

Given a customer while alive, the number of transactions follows Poisson distribution with parameter \(\lambda\), called transaction rate. The probability of observing \(x\) transactions in the time interval \((0,t]\) is given by:

\[P(X(t) = x | \lambda ) = e^{-\lambda t}\frac{(\lambda t)^x}{x!}, \ x = 0,1,2,...\]

This is equivalent to assuming that the time between transactions is \(Exp(\lambda)\),

\[f(t_j - t_{j-1} | \lambda ) = \lambda e^{(t_j - t_{j-1})}, \ t_j > t_{j-1}> 0, \]

where \(t_j\) is the time of the jth purchase.

2.3 Exponential Lifetime

A customer’s unobserved “lifetime” of length \(\tau\), \[\tau \sim Exp(\mu), \ \ f(\tau | \mu) = \mu e^{-\mu\tau},\] where \(\mu\) is called dropout rate.

2.4 Gamma transaction rate

Heterogeneity in transaction rates across customers follows a gamma distribution with shape parameter \(r\) and scale parameter \(\alpha\):

\[ \lambda \sim Gamma(r, \alpha ), \ \ g(\lambda|r, \alpha ) = \frac{\alpha ^r \lambda^{r-1}e^{-\lambda \alpha }}{\Gamma (r)}. \]

2.5 Gamma dropout rate

Heterogeneity in dropout rates across customers follows a gamma distribution with shape parameter \(s\) and scale parameter \(\beta\):

\[ \mu \sim Gamma(s, \beta), \ \ g(\mu | s, \beta ) = \frac{\beta^s\mu^{s-1}e^{-\mu\beta}}{\Gamma(s)}. \]

2.6 Two processes are Independent

The transaction rate \(\lambda\) and the dropout rate \(\mu\) vary independently across customers,

\[ \lambda \perp \mu. \]

3 Why named Pareto/NBD?

Short answer:

\[ \text{Poisson Purchase} + \text{Gamma transaction rate} \implies \text{NegBin} \]

\[ \text{Exponential lifetime} + \text{Gamma dropout rate} \implies \text{Pareto} \]

3.1 Poisson Gamma Mixture

Theorem 3.1 If we assume the Poisson purchase and the Gamma transaction rate, then the distribution of the number of transactions while the customer is alive is Negative Binomial (NBD).

Proof. \[\begin{align} P(X(t) = x | r, \alpha ) &= \int_{0}^{\infty}P(X(t) = x | \lambda )g(\lambda |r, \alpha ) d\lambda \\ & = \int_{0}^{\infty} e^{-\lambda t}\frac{(\lambda t)^x}{x!}\frac{\lambda^{r-1}\alpha^re^{-\lambda \alpha }}{\Gamma(r)} d\lambda\\ & = \frac{\alpha ^r}{\Gamma(r)}\frac{t^x}{x!}\int_{0}^{\infty }\lambda ^{x+r-1}e^{-\lambda (t+\alpha )} d\lambda, \text{ let } u = (t+\alpha )\lambda ,\\ & = \frac{\alpha ^r}{\Gamma(r)}\frac{t^x}{x!}\frac{1}{(t+\alpha)^{x+r} }\int_{0}^{\infty }u^{x+r-1}e^{-u}du, \text{ note the form of } \Gamma(.),\\ & = \frac{\alpha ^r}{\Gamma(r)}\frac{t^x}{x!}\frac{1}{(t+\alpha)^{x+r} }\Gamma(x+r) \\ & = \frac{\Gamma(r+x)}{\Gamma(r)x!}\left ( \frac{\alpha }{\alpha +t} \right )^{r}\left ( \frac{t}{\alpha +t} \right )^x \end{align}\]

Note that the last line is the density of negative binomial. It looks a little bit different from our familiar version of NegBin, and the parameter \(r\) extends to the \(\mathbb{R}^{+}\). In this case, it is called Polya distribution which is a special case of negative binomial.

3.2 Exponential Gamma Mixture

Theorem 3.2 If we assume the Exponential lifetime and the Gamma dropout rate, then the distribution of the “lifetime” is “Pareto distribution of the second kind”.

Proof. \[\begin{align} f(\tau|s, \beta ) &= \int_{0}^{\infty }f(\tau|\mu)g(\mu|s, \beta)d\mu \\ &= \int_{0}^{\infty }\mu e^{-\mu\tau}\frac{\beta e^{-\beta\mu}(\beta\mu)^{s-1}}{\Gamma(s)}d\mu\\ &= \frac{\beta^s}{\Gamma(s)} \int_{0}^{\infty }\mu^{s} e^{-\mu(\tau+\beta)}d\mu, \text{ let } \ \ u = \mu(\tau+\beta) \\ &= \frac{\beta^s}{\Gamma(s)} \int_{0}^{\infty }\frac{1}{(\tau+\beta)^s}u^s e^{-u}\frac{1}{\tau+\beta}du\\ &= \frac{\beta^s}{\Gamma(s)}\frac{1}{(\tau+\beta)^{s+1}}\int_{0}^{\infty }u^s e^{-u}du\\ &= \frac{\beta^s}{\Gamma(s)}\frac{1}{(\tau+\beta)^{s+1}}\Gamma(s+1)\\ &= \frac{\beta^s}{\Gamma(s)}\frac{1}{(\tau+\beta)^{s+1}}s\Gamma(s)\\ &= \frac{s}{\beta}\left ( \frac{\beta}{\tau+\beta} \right )^{s+1} \end{align}\]

Note that

\[ \begin{align} F(\tau|s, \beta ) &= \int_{0}^{\infty }F(\tau|\mu)g(\mu|s, \beta)d\mu \\ &= 1 - \left ( \frac{\beta}{\beta + \tau} \right ) ^{s} \end{align} \]

Therefore, if we assume Exponential lifetime and Gamma dropout rate, we have ended with Pareto Type II distribution, or more specifically, Lomax distribution.

In conclusion, the NBD and Pareto labels for each of the sub-models naturally leads to the name of the integrated model.

In the next post we will talk about the likelihood, the mean of the Pareto/NBD model, and other related derivations, eg. probability of the customer being alive.

4 Reference

  1. Schmittlein DC, Morrison DG, Colombo R (1987). “Counting Your Customers: Who-Are They and What Will They Do Next?” Management Science, 33(1), 1-24.

  2. Fader PS, Hardie BGS (2005). “A Note on Deriving the Pareto/NBD Model and Related Expressions.” URL

  3. Fader PS, Hardie BGS (2007). “Incorporating time-invariant covariates into the Pareto/NBD and BG/NBD models.” URL.

  4. Fader PS, Hardie BGS (2020). “Deriving an Expression for P(X(t)=x) Under the Pareto/NBD Model.” URL

Chen Xing
Chen Xing
Founder & Data Scientist

Enjoy Life & Enjoy Work!

Related