- Introduced by
- Peter S. Fader & Bruce G. S. Hardie
- Year
- 2013
- Type
- Probabilistic model of monetary value per transaction
- Family
- Customer-base analysis / spend models
What does it do?
The Gamma-Gamma model of monetary value is commonly paired with buy-till-you-die transaction models.
It estimates how much a customer spends per transaction, so that purchase-count forecasts can be turned into monetary customer lifetime value. Peter Fader and Bruce Hardie set out the model in a 2013 technical note. Each customer's transaction values are assumed to vary around that customer's own average spend according to a gamma distribution. The customer-level rate governing that average is in turn assumed to follow a second gamma distribution across the population, which gives the model its name and implies that average spend varies across customers. A central assumption is that monetary value is independent of transaction frequency, so the spend model can be estimated and combined separately from a frequency model such as BG/NBD or Pareto/NBD. For each customer, the model yields a Bayesian estimate of expected spend that shrinks the observed average toward the population mean, with stronger shrinkage for customers who have made fewer transactions.
The intuition behind the method
Suppose you want to know what a customer typically spends per order. Averaging their past orders is unreliable when they have placed only one or two, because a single unusually large or small order can swing the average widely. The Gamma-Gamma model borrows strength from the whole customer base. It treats each customer's true average spend as a personal value drawn from a population distribution, and each order as a noisy draw around that personal value. A customer with many orders has an observed average the model largely trusts. A customer with few orders is pulled toward what typical customers spend. This is the same shrinkage logic as regression to the mean: extreme averages from thin data are partly walked back toward the group. The two gamma layers formalize the two sources of variation, order-to-order randomness within a customer and genuine differences in spending level between customers.
History
The Gamma-Gamma spend model is set out by Peter Fader and Bruce Hardie in a 2013 technical note, the source cited on this page. That note is not indexed in the bibliographic databases consulted for this page, and the formulas here follow it. Fader, Hardie and Lee had earlier developed the BG/NBD frequency model in their 2005 Marketing Science paper, an easier-to-implement alternative to the Pareto/NBD model. The Gamma-Gamma model is designed to complement such frequency models: it supplies the monetary component, and its independence-from-frequency assumption is what allows the two to be estimated separately and then combined.
When to use it
Use the Gamma-Gamma model whenever you need to convert transaction-count forecasts from a buy-till-you-die model into monetary customer lifetime value in a non-contractual setting. It is appropriate when you have, per customer, the number of repeat transactions and their observed average transaction value, and when transaction values are positive and right-skewed. A precondition is that monetary value is approximately independent of purchase frequency. Screen this with a simple correlation check before relying on the model, but treat a near-zero correlation only as supporting evidence, not as proof of independence, because the standard pipeline assumes the spend and frequency models can be estimated and combined separately. The model is especially valuable when many customers have few transactions, since its shrinkage prevents over- or under-valuing them based on noisy averages. It is less suitable when spend and frequency are strongly correlated, when transaction values can be zero or negative (returns, refunds), or when spend is driven by time-varying factors the model does not include, in which case a richer or covariate-augmented spend model is preferable.
Limitations and considerations
- Relies on the assumption that average transaction value is independent of transaction frequency, which does not always hold.
- Cannot handle zero or negative transaction values, so refunds, returns and discounts need careful pre-processing.
- Assumes a constant gamma shape across all customers and gamma-distributed heterogeneity, which may misfit some spend distributions.
- Models only spend level and ignores time trends, inflation, promotions and other covariates that shift spending over time.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Turns purchase-count forecasts into monetary value, completing the customer-lifetime-value pipeline alongside a frequency model.
- Applies Bayesian shrinkage so that customers with few transactions are not over- or under-valued by noisy observed averages.
- Requires only each customer's transaction count and average spend. The marginal likelihood is available in closed form, so the three population parameters need only numerical maximization.
- Separates 'how much' from 'how often,' so it can be combined modularly with BG/NBD, Pareto/NBD or other frequency models.
Applications
- Estimating each customer's expected spend per transaction as the monetary input to customer lifetime value.
- Combining with BG/NBD or Pareto/NBD transaction forecasts and discounting to compute residual lifetime value.
- Producing shrinkage-based value estimates for customers with few orders, avoiding noisy single-order averages.
- Ranking and segmenting customers by expected monetary value for targeting and budget allocation.
- Feeding customer-equity and customer-base valuation models that require per-customer monetary projections.
How it works
How it works
The model starts with how the value of an individual transaction is generated for a given customer. Conditional on a customer's personal spend parameter, the value of each of their transactions is assumed to follow a gamma distribution. The gamma is a natural choice because spend amounts are positive and right-skewed, and its mean for that customer is the ratio of a shape parameter p to the customer's rate parameter. Importantly, the shape p is assumed common across all customers, so customers differ only in their rate, that is, in their overall spend level, while sharing the same shape of within-customer variation. This is the within-customer layer of the model.
Formula
z_i \mid \nu_i \sim \text{Gamma}(p,\,\nu_i),\qquad E[z_i\mid\nu_i]=\frac{p}{\nu_i}Because customers genuinely differ in how much they tend to spend, the model places a second gamma distribution on the customer-specific rate parameter. This distribution has shape parameter q and a second parameter γ, written Gamma(q, γ) in the mechanics; the closed-form expressions treat γ as a rate parameter. This population layer captures spend heterogeneity: some customers are consistently high-value and others low-value. Mixing the within-customer gamma over this population gamma is what makes the model a gamma-gamma model, and it expresses a prior belief about where an individual customer's average spend is likely to fall before their own data is taken into account.
Formula
\nu_i \sim \text{Gamma}(q,\,\gamma),\qquad \text{(value heterogeneity across customers)}Integrating the per-transaction gamma over the population gamma of rates yields the marginal distribution of a customer's observed average transaction value, given how many transactions they made. This marginal likelihood depends only on the three population parameters p, q and gamma and on each customer's transaction count and observed average spend, not on the unobserved individual rate. The closed form has the structure of a gamma-gamma compound, and it is the quantity used both to estimate the model and to derive each customer's posterior expected spend.
Formula
f(\bar z_i \mid p,q,\gamma,x_i)=\frac{(p x_i)^{p x_i}\,\gamma^{q}\,\bar z_i^{\,p x_i-1}}{\Gamma(p x_i)\,\Gamma(q)\,(\gamma+x_i\bar z_i)^{p x_i+q}}\,\Gamma(p x_i+q)The three population parameters p, q and gamma are estimated by maximum likelihood. The analyst sums the log of each customer's marginal likelihood across all customers who have at least one repeat transaction and maximizes the total with a numerical optimizer. Before fitting, it is standard practice to check the model's key assumption that average transaction value is uncorrelated with transaction frequency, since the model's separability from the frequency model depends on it. Once the population parameters are estimated, no individual rate parameter needs to be estimated directly; individual spend is recovered as a posterior expectation.
Formula
LL(p,q,\gamma)=\sum_{i=1}^{N}\ln f(\bar z_i \mid p,q,\gamma,x_i)\;\longrightarrow\;\maxThe model's main output is each customer's expected spend per transaction, computed as a posterior mean. It is a weighted average of the customer's own observed average transaction value and the population average spend. The weight on the customer's own average grows with their number of transactions, so a customer with many orders is estimated close to their own average, while a customer with few orders is shrunk strongly toward the population mean. The population-mean term γp/(q−1) in the displayed formula is defined only when q > 1, so expected-spend estimates should be used only when the fitted q is greater than 1. Multiplying expected spend by the expected number of future transactions from a frequency model, and discounting, gives monetary customer lifetime value.
Formula
E[Z_i \mid p,q,\gamma,\bar z_i,x_i]=\frac{p\,(\gamma + x_i\bar z_i)}{p x_i + q - 1}Common pitfalls
- Skipping the check that spend and frequency are uncorrelated and then combining the spend and frequency models as if they were independent.
- Including customers with zero repeat transactions, who have no observed average spend, in the estimation sample.
- Using raw single-order averages for thin-data customers instead of the model's shrunk expected-spend estimates.
- Reporting expected spend per transaction as if it were lifetime value without multiplying by expected future transactions and discounting.
Frequently asked questions
Why is the model called 'Gamma-Gamma'?
The name refers to its two layers of gamma distributions. The first gamma describes how an individual customer's transaction values vary around their own average spend, capturing order-to-order randomness within a customer. The second gamma describes the customer-level rate parameter across the population, so that implied average spend differs between high-value and low-value customers. By mixing the within-customer gamma over the between-customer gamma, the model produces a marginal distribution of observed average spend that depends only on three population parameters and each customer's transaction count and average. This compound structure is what enables the Bayesian shrinkage estimate of expected spend, and it parallels the gamma-Poisson (NBD) logic used on the frequency side.
What is the independence assumption, and why does it matter?
The Gamma-Gamma model assumes that a customer's average transaction value is independent of how frequently they transact. This matters because the standard customer-lifetime-value pipeline estimates the spend model and the frequency model separately and then multiplies expected spend by expected future transactions. If spend and frequency were strongly correlated, for example if frequent buyers systematically spent less per order, this multiplication would be biased and the separability would break down. Before applying the model, compute the correlation between each customer's transaction frequency and average transaction value as a screening check. A near-zero correlation is consistent with independence but does not establish it, since the average spend of customers with few transactions is noisier and can distort the correlation. Inspecting how spend varies across frequency bands is a useful complement. A clear dependence is a reason to consider a joint or covariate-augmented model instead.
How does the model handle customers with very few transactions?
It handles them through Bayesian shrinkage. The expected-spend estimate is a precision-weighted blend of the customer's own observed average transaction value and the population average spend, with the weight on the customer's own data increasing with the number of transactions they have made. A customer with many orders has a reliable observed average, so the estimate sits close to it; a customer with only one or two orders has a noisy average, so the estimate is pulled strongly toward the population mean. This prevents the model from over-valuing a customer whose single order happened to be large, or under-valuing one whose single order happened to be small, which is exactly the kind of error a naive raw-average approach makes on thin data.
Related methods
Sources
Fader, P. S., & Hardie, B. G. S. (2013). The Gamma-Gamma Model of Monetary Value. Technical note, www.brucehardie.com/notes/025/.
Open publication referenceFader, 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