- Introduced by
- Data mining and marketing analytics
- Year
- 1990s
- Type
- Evaluation visualization
- Family
- Classification Evaluation Tool
What does it do?
Lift and gain charts evaluate a model that ranks samples by predicted score.
They show how much more effectively the top-ranked fraction of samples captures positive cases than random selection would. They are most useful when only a limited share of samples can be acted on, as in marketing, credit scoring and fraud detection.
The intuition behind the method
A lift chart answers the question: 'If I select the top 10% of samples ranked by the model's score, how many more actual positives do I capture than if I had selected 10% at random?' A lift of 3.0 at 10% means the selected group has three times the positive rate of the whole population. A gain chart shows the cumulative share of all positives captured as more of the ranked list is examined. Example reading: if cumulative gain at the 4th decile (40% of the data) is 66.7%, two-thirds of all positives are found in 40% of the list, compared with 40% expected under random selection. The closer the gain curve runs to the top-left corner, the better the ranking. Together the two views show the practical value of a ranking model at each selection size.
History
Lift and gain charts come from data mining and marketing analytics practice, where ranking and targeted selection are central, and they remain common in industry settings. A specific originator or date is not established here.
When to use it
Choose lift and gain charts when the model outputs a score or probability used to rank samples, and when only a limited number of samples can be selected for action, such as contacting customers, reviewing transactions or assessing loan applications. Typical questions are how many responders are in the top 10% of targeted customers, what share of fraud lies in the top 20% of flagged accounts, or how many defaults are in the riskiest 15%. Do not rely on these charts alone when every sample must be classified with a fixed decision threshold, when the model produces only class labels with no scores, or when the question concerns overall accuracy rather than the ranking of a subset.
Limitations and considerations
- Does not provide a single summary score for comparing models; lift values are read at chosen percentiles, so the comparison depends on which percentiles are examined.
- Lift is a ratio to the base rate, so lift values at the same percentile are not directly comparable across datasets whose proportions of positives differ.
- Requires probability or confidence scores; class predictions alone do not define a ranking and so cannot produce a gain curve.
- The charts depend on the sample used; without a held-out evaluation, they may describe the training data rather than the model's future ranking.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Shows the practical yield of selecting the top-ranked samples, which is directly relevant when examining every case is infeasible.
- Lift is normalised against the positive rate of the dataset being evaluated, so within one dataset it shows directly how much better than random the selected group is, even when positives are rare.
- The charts are visual and can be explained to non-specialists as the number of positives found per unit of effort.
Applications
- Direct marketing, where lift shows how many more responders are captured by targeting the top-ranked customers than by random selection.
- Credit scoring, where gain charts show what share of defaulters falls within the riskiest part of a loan portfolio.
- Fraud detection, where lift indicates how much more fraud appears among flagged transactions than in the unflagged population.
- Churn prediction, where gain charts show what share of likely churners is identified among the top-ranked customers.
How it works
How it works
Sort all samples by the model's predicted probability or score, highest first, so that the samples most likely to be positive appear at the top of the list. This assumes the score orders samples by their likelihood of being positive, and that the evaluation uses held-out data whose positive rate is representative of the population where the model will be used. Samples with tied scores should be handled explicitly, because a cut-off that falls inside a group of tied scores splits identically scored samples arbitrarily.
For each cut-off, such as each decile of the ranked list, the cumulative gain is the share of all actual positives that fall within the top fraction: gain(d) = (positives in the top d deciles) / (total positives). Lift at a decile is the ratio between the percentage of positives in that decile and the percentage of positives in the whole population. Cumulative lift uses the whole selected top fraction in place of a single decile. A lift above 1 means the selected group contains a higher share of positives than the population as a whole.
Plot lift against the fraction of samples examined, and plot cumulative gain against the same fraction. Compare the gain curve with the diagonal line that represents random selection, and the lift curve with the horizontal line at a lift of 1, which corresponds to random performance. To choose a cut-off, weigh the cost of acting on each additional sample against the value of the additional positives found.
Common pitfalls
- Comparing lift values across datasets with different positive rates without accounting for the base rate.
- Reading lift at a single percentile without examining the full chart, which can hide how performance changes across the list.
- Treating high lift at the top percentiles as evidence of a good classifier overall; strong top-of-list lift does not guarantee high recall or precision across the whole population.
- Ignoring ties in the predicted scores; when many samples share the same score, a percentile cut-off splits them arbitrarily and the chart can change with the tie-breaking order.
Frequently asked questions
What does a lift of 2.5 mean?
A lift of 2.5 at a given percentile means the positive rate in the selected top fraction is 2.5 times the positive rate in the whole population. For example, lift 2.5 at 20% means that examining the top 20% of ranked samples yields 2.5 times as many positives as randomly selecting 20%.
How do lift and gain charts differ?
Lift charts show the ratio of the positive rate in the selected fraction to the overall positive rate. Gain charts show the cumulative percentage of all positives found as you move through the ranked list. Both convey related information, but lift is more directly interpretable as relative improvement, while gain is more intuitive as how many positives have been found so far.
Can I use lift and gain charts for multi-class problems?
Yes, but the interpretation changes. Typically each class is evaluated separately, one-vs-rest: rank by the probability of a specific class, then compute lift and gain for that class. This produces one chart per class of interest. Because classes have different base rates, lift values are not directly comparable across classes.
Related methods
Sources
Maimon, O. Z., & Rokach, L. (Eds.). (2010). Data Mining and Knowledge Discovery Handbook (2nd ed.). Springer.
Open DOI referenceNaeem Siddiqi (2006). Credit Risk Scorecards: Developing and Implementing Intelligent Credit Scoring. John Wiley & Sons.
Open publication reference