BG/NBD Model

Statistics
Introduced by
Peter S. Fader, Bruce G. S. Hardie & Ka Lok Lee
Year
2005
Type
Probabilistic buy-till-you-die model of repeat transactions
Family
Customer-base analysis / latent attrition models

What does it do?

The BG/NBD (Beta-Geometric/Negative Binomial Distribution) model is a probabilistic buy-till-you-die model for non-contractual settings.

From each customer's past purchase recency and frequency, it predicts how many transactions that customer will make in the future and the probability that the customer is still active. Peter Fader, Bruce Hardie and Ka Lok Lee introduced it in their 2005 Marketing Science paper 'Counting Your Customers the Easy Way', proposing it as a simpler alternative to the Pareto/NBD model of Schmittlein, Morrison and Colombo that yields very similar results across a wide variety of purchasing environments. The model couples a Poisson purchasing process, with rates varying across customers by a gamma distribution, to a geometric dropout process whose probability varies across customers by a beta distribution.

The intuition behind the method

Consider a business, such as an online retailer, where customers stop buying without announcing that they have left. You never observe the departure itself; you only see purchases that simply stop for customers who have gone. The BG/NBD model handles this with two ideas. While a customer is active, purchases arrive at random but at a steady pace, and each customer has their own pace. After each purchase, the customer may drop out for good, with a fixed personal probability. Because pace and dropout tendency differ across customers, the model lets both vary according to population distributions. Inference then runs in reverse: a customer who has bought many times and whose last purchase was recent is likely still active and will probably keep buying, whereas a customer with a similar purchase history whose last purchase was long ago has probably churned. By combining frequency and recency in this way, the model turns a transaction history into a forward-looking forecast and a probability that the customer is still active.

History

The BG/NBD model belongs to a line of stochastic customer-base models in marketing science. It is a variant of the Pareto/NBD model of Schmittlein, Morrison and Colombo (1987), which counts and identifies customers who are still active by combining an NBD purchasing process with a continuous-time (Pareto) dropout process. The Pareto/NBD proved difficult to implement, mainly because of computational challenges in parameter estimation. In 2005 Peter Fader, Bruce Hardie and Ka Lok Lee proposed the BG/NBD as an easier alternative that replaces continuous-time dropout with beta-geometric dropout tied to purchase occasions. In their Marketing Science paper, 'Counting Your Customers the Easy Way', they report very similar results to the Pareto/NBD across a wide variety of purchasing environments and show that the parameters can be obtained in Microsoft Excel.

When to use it

Use the BG/NBD model in non-contractual settings where customers can lapse silently and you observe only a transaction log, such as e-commerce, retail, donations or many app contexts. It fits when each customer can be summarized by recency, frequency and tenure, and when purchasing is reasonably described by a steady-while-active Poisson process with dropout occurring after a purchase. Choose it when the goal is to forecast future transactions, estimate P(alive), or rank customers for targeting and CLV, and when a simpler implementation than the Pareto/NBD is wanted. Avoid it for contractual settings such as subscriptions, where churn is observed directly and survival models are more appropriate. It is also a poor fit for demand with strong seasonality or trend, which violates the stationary Poisson assumption, and for purchases that cluster strongly in time. Because it models only the timing and count of transactions, it must be paired with a spend model such as Gamma-Gamma to produce monetary lifetime value.

Limitations and considerations

  • Dropout can occur only immediately after a purchase, so a customer with no repeat purchase is assigned a P(alive) of 1 and is never inferred to have churned; this can distort forecasts for one-time buyers.
  • The purchasing process is a stationary Poisson process with a constant rate per active customer, so seasonality, trends, marketing covariates and time-varying behavior are not represented.
  • Only transaction timing and counts are modeled, so spend per transaction and total monetary value fall outside the model.
  • Population heterogeneity is forced into gamma (for purchase rates) and beta (for dropout probabilities) forms, which may misfit customer bases with multimodal or otherwise non-standard behavior.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Requires only recency, frequency and tenure (x, t_x, T) for each customer, so it can be estimated from minimal transaction summaries; the 2005 paper shows its parameters can be obtained in Microsoft Excel.
  • The individual likelihood and P(alive) are given by elementary expressions, while expected future transactions involve the Gaussian hypergeometric function, so estimation avoids the computational difficulty that the authors associate with the Pareto/NBD.
  • According to the 2005 authors, it yields very similar results to the Pareto/NBD across a wide variety of purchasing environments while being far easier to implement.
  • Gives a per-customer P(alive) that supports targeting, retention and lifetime-value analysis.

Applications

  • Forecasting the number of future purchases for each customer and for the customer base as a whole in e-commerce and retail.
  • Estimating the probability that each customer is still active, to flag high-value customers who may be at risk for retention campaigns.
  • Providing the transaction-count component of customer lifetime value when combined with a spend model such as Gamma-Gamma.
  • Ranking and segmenting customers by expected future activity to prioritize marketing budget and targeting.
  • Monitoring the size and growth of an ongoing customer base, a use that Schmittlein, Morrison and Colombo (1987) also highlight for the related Pareto/NBD framework.

How it works

How it works

1

The model first specifies how an active customer generates purchases. Conditional on being alive, each customer buys according to a Poisson process with their own rate lambda, so the number of purchases in an interval of length t is Poisson with mean lambda times t, and the times between purchases are exponential. Customers differ, so lambda is treated as a random draw from a gamma distribution across the population with shape r and rate alpha, so that E[lambda] = r/alpha and Var[lambda] = r/alpha^2. Mixing a Poisson process over a gamma-distributed rate gives exactly the negative binomial distribution (NBD), which gives the model half of its name and accounts for the observed differences in how often customers buy.

Formula
X(t)\mid\lambda \sim \text{Poisson}(\lambda t),\qquad \lambda \sim \text{Gamma}(r,\alpha)
2

Next the model describes how customers become permanently inactive. Immediately after each purchase, a customer flips a coin and 'dies' (drops out forever) with probability p, otherwise remaining active until the next purchase opportunity. This makes the number of purchases before dropout follow a geometric (shifted geometric) distribution. Just as buying rates differ, dropout propensities differ, so p is drawn from a beta distribution with parameters a and b across customers. This beta-geometric component is the other half of the model's name and is the feature that distinguishes BG/NBD from the Pareto/NBD, which instead lets dropout occur in continuous time.

Formula
P(\text{inactive after } j\text{-th purchase})=p(1-p)^{\,j-1},\qquad p \sim \text{Beta}(a,b)
3

Combining the purchasing and dropout stories yields the likelihood of a customer's observed history, summarized by frequency x (number of repeat transactions), recency t_x (time of the last transaction) and the observation window T. The individual-level likelihood has two interpretable pieces: a term for a customer who remains active through the whole window and is silent only by chance, plus a term (active only when x is greater than zero) for a customer who dropped out right after their last observed purchase. This closed-form likelihood is what makes the model tractable, because it integrates the unobserved 'alive or dead' status into a formula that depends only on x, t_x and T. The title of the 2005 paper, 'Counting Your Customers the Easy Way', refers to this ease of estimation.

Formula
L(\lambda,p\mid x,t_x,T)=(1-p)^{x}\lambda^{x}e^{-\lambda T}+\delta_{x>0}\,p(1-p)^{x-1}\lambda^{x}e^{-\lambda t_x}
4

The four population parameters are estimated by maximum likelihood: r and alpha, which govern the gamma distribution of buying rates, and a and b, which govern the beta distribution of dropout probabilities. The analyst sums the log of each customer's individual likelihood across the whole calibration sample and maximizes this total log-likelihood, typically with a numerical optimizer or even a spreadsheet solver. Crucially, no individual lambda or p needs to be estimated directly; the heterogeneity distributions are estimated once for the whole base, and individual-level quantities are then recovered as posterior expectations. This is what Fader, Hardie and Lee meant by counting your customers 'the easy way.' All four parameters must be strictly positive, because they are shape and rate parameters of the gamma and beta distributions. In a fitted model, r/alpha is the population-average purchase rate per unit of time for an active customer, and a/(a+b) is the average dropout probability after each purchase; a larger a/(a+b) means customers tend to lapse sooner. The shape parameter r controls how dispersed buying rates are across customers (smaller r means more heterogeneity), and the parameters a and b play the same role for dropout propensities. Optimization can converge to a boundary solution (for example, a parameter pushed toward zero) or to a local optimum, so the fitted values should be checked for plausibility before they are used.

Formula
LL(r,\alpha,a,b)=\sum_{i=1}^{N}\ln L(r,\alpha,a,b\mid x_i,t_{x_i},T_i)\;\longrightarrow\;\max
5

With parameters in hand, the central managerial output is the expected number of future transactions a given customer will make over a horizon t, conditional on their observed (x, t_x, T). This conditional expectation, which involves a Gaussian hypergeometric function, is defined only when a > 1, because of the factor (a+b+x-1)/(a-1) in the formula; fitted estimates with a <= 1 cannot be used for this forecast. The expectation weights a customer's apparent buying intensity by the probability they are still alive. The result is that recent, frequent buyers receive high forecasts while frequent-but-stale buyers are heavily discounted because they have likely churned. Summed across the base, these expectations forecast aggregate sales and, when combined with a monetary-value model and discounting, feed into customer lifetime value calculations.

Formula
E[Y(t)\mid x,t_x,T]=\frac{\frac{a+b+x-1}{a-1}\left[1-\left(\frac{\alpha+T}{\alpha+T+t}\right)^{r+x}\,{}_2F_1\!\big(r+x,b+x;a+b+x-1;\tfrac{t}{\alpha+T+t}\big)\right]}{1+\delta_{x>0}\frac{a}{b+x-1}\left(\frac{\alpha+T}{\alpha+t_x}\right)^{r+x}}
6

The model also returns, for each customer, the probability that they are still active at the end of the observation window given their history. In the formula, the ratio (alpha+T)/(alpha+t_x) increases as the last purchase t_x falls further behind T, and the exponent r+x means that customers with more repeat purchases see their probability fall faster for the same gap. A customer with no repeat purchase (x = 0) receives a P(alive) of 1 under this formula. This follows from the model's likelihood, in which the dropout term applies only to customers with repeat purchases (the indicator for x > 0); it is a consequence of the stated dropout assumption and not an empirical finding about one-time buyers. P(alive) is a model-based probability rather than a calibrated churn probability, and it should be checked against holdout behavior before being used as one. Within that limit, P(alive) gives managers a per-customer ranking of inferred activity, which can highlight valuable customers who appear to be slipping away and guide retention effort. It turns the otherwise hidden dropout event into a quantified estimate.

Formula
P(\text{alive}\mid x,t_x,T)=\left[1+\delta_{x>0}\frac{a}{b+x-1}\left(\frac{\alpha+T}{\alpha+t_x}\right)^{r+x}\right]^{-1}

Common pitfalls

  • Applying BG/NBD to a contractual or subscription business, where churn is observed directly, instead of using survival models that take observed churn into account.
  • Including the first (trial) purchase in frequency x; the model requires x to count repeat transactions only.
  • Judging the model only on in-sample fit, without a calibration/holdout split that compares predicted and actual future transactions.
  • Reporting expected transaction counts as if they were lifetime value, without a separate spend model and discounting.
  • Forecasting with fitted values where a <= 1, for which the expected-transactions formula is undefined.
  • Reading the model's P(alive) as a calibrated churn probability without checking it against holdout behavior.

Frequently asked questions

How does the BG/NBD model differ from the Pareto/NBD model?

Both are buy-till-you-die models that combine an NBD purchasing process with a latent dropout process, and both give expected future transactions and P(alive). The difference is the dropout story. In the Pareto/NBD, a customer can drop out at any moment in continuous time, with dropout rates varying across customers through a gamma distribution. In the BG/NBD, dropout can occur only immediately after a purchase, and the dropout probability is beta-distributed across customers. This discrete-occasion assumption makes BG/NBD far easier to estimate, with closed-form likelihood and P(alive) expressions that can be fit in a spreadsheet, and the 2005 authors report very similar results across a wide variety of purchasing environments. One consequence is that BG/NBD treats a customer with no repeat purchase as still alive.

What data do I need to fit a BG/NBD model?

Remarkably little. For each customer you need three numbers summarizing the calibration period: frequency x (the number of repeat transactions, that is, total transactions minus the first one), recency t_x (the time of the last transaction measured from the customer's first purchase), and T (the total length of time the customer has been observed, from first purchase to the end of the calibration window). You do not need the full transaction-by-transaction detail to estimate the four population parameters, and you do not need any demographic or marketing data. This minimalism is a major reason the model is so widely used; almost any business with a timestamped order history can construct the required (x, t_x, T) summary.

Can the BG/NBD model tell me a customer's lifetime value?

Not on its own. The BG/NBD model is about transaction timing and counts: it predicts how many times a customer will buy and whether they are still active, but it says nothing about how much money each purchase generates. To get monetary customer lifetime value, you combine the expected-transactions output with a separate model of spend per transaction, most commonly the Gamma-Gamma spend model, which estimates each customer's expected average order value. Multiplying expected future transactions by expected spend and applying a discount rate yields a residual lifetime value. Separating 'how often' from 'how much' is the usual structure in customer-base analysis.

Related methods

Sources

  1. Fader, P. S., Hardie, B. G. S., & Lee, K. L. (2005). "Counting Your Customers" the Easy Way: An Alternative to the Pareto/NBD Model. Marketing Science, 24(2), 275-284.

    Open DOI reference
  2. Schmittlein, D. C., Morrison, D. G., & Colombo, R. (1987). Counting Your Customers: Who Are They and What Will They Do Next? Management Science, 33(1), 1-24.

    Open DOI reference