Cumulative Gain Chart Calculator

Create cumulative gain curves, compare classifiers, test targeting cutoffs, inspect lift and capture rates, then export clear charts and detailed tables instantly for decisions.

Results

Calculated results appear here after analysis.

Enter data and select Analyze Data.

Cumulative Gain Chart

Selected Cutoff Analysis

No cutoff results yet.

Interpretation

The interpretation will explain model ranking performance.

Model Comparison

ModelGain @ 10%Gain @ 20%Gain @ 30%Gain @ 50%AUGCNormalized GainMax Separation
No model results yet.

Segment Comparison

SegmentRowsPositive RateGain @ 20%Lift @ 20%Normalized Gain
No segment results yet.

Gain Summary Table

No rows calculated.
BucketScore RangePopulationPopulation %Cumulative PopulationCumulative Population %PositivesCumulative PositivesPositive RateCumulative GainRandom GainGain Above RandomBucket LiftCumulative LiftMinimum Score
No gain table yet.

Data Input

Paste a delimited dataset. Include one actual-class column and one or more score columns.

Separate multiple models with commas.
Leave blank for unweighted analysis.

Calculation Options

Threshold and Targeting Options

Chart Options

Formula Used

Cumulative Gain (%) = Cumulative positive weight captured ÷ Total positive weight × 100.

Population (%) = Cumulative selected weight ÷ Total observation weight × 100.

Cumulative Lift = Cumulative gain percentage ÷ Cumulative population percentage.

Normalized Gain compares the model area against random and perfect ranking areas.

How to Use

  1. Paste or upload data with actual labels and prediction scores.
  2. Enter the actual label column and one or more model score columns.
  3. Choose the positive class, grouping method, cutoff, and chart settings.
  4. Select Analyze Data to build curves and detailed tables.
  5. Review gains, lift, thresholds, segment performance, and export options.

Example Data Format

idactualmodel_amodel_bweightsegment
110.960.821Retail
200.890.761Retail
310.850.911Enterprise
400.720.611Enterprise

Interpretation Guide

A curve above the diagonal baseline indicates useful ranking performance. A steeper early rise means the model captures positives quickly. This matters when only a limited population can be targeted.

The perfect curve shows ideal ordering with every positive ranked first. Gain charts evaluate ranking quality rather than probability calibration. Review the cutoff matching your operational capacity.

Lift compares model capture against random selection at the same population depth. Segment results can expose uneven model performance. Always validate findings on unseen or production-like data.

Frequently Asked Questions

What does cumulative gain measure?

It measures the percentage of all positive cases captured after selecting a percentage of the ranked population.

How is a gain chart different from a lift chart?

A gain chart shows captured positives. A lift chart divides model gain by random expected gain.

Should scores be probabilities?

No. Any numeric score works when its ordering represents model confidence or predicted risk.

Why is the random baseline diagonal?

Random selection captures positives in direct proportion to the selected population percentage.

What is a strong early gain?

A strong early gain captures a large positive share within a small selected population.

Can multiple models be compared?

Yes. Enter several score columns and the calculator plots and ranks every valid model.

How are tied scores handled?

Ties can remain together across bucket boundaries or follow their original stable row order.

What does normalized gain mean?

It scales area improvement from random performance toward the best theoretically possible ranking.

Can weighted observations be used?

Yes. Provide a positive numeric weight column to calculate weighted population and positive capture.

Related Calculators

Confusion Matrix HeatmapPrecision-Recall CurveLift ChartCalibration CurveDecision Boundary PlotProbability Distribution PlotThreshold Performance PlotClass Distribution ChartMulticlass ROC CurveError Analysis Bar Chart

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.