Cumulative distributionShare at or below.
A line that climbs from 0 to 100%. At any value, its height says what share of the data is at or below it.
- Answers How are the values spread?
- Your data many values of one number
- Values about 20 or more
- Groups 1 to 4
- Excel and Power BI a line chart of a running share
- New
- Old
What is a cumulative distribution chart?
A cumulative distribution chart (also an ECDF, for empirical cumulative distribution function) draws a line that rises from 0 to 100%. At any value on the bottom axis, the line's height is the share of values at or below it. So the reader can read any percentile straight off the chart: where the line crosses 50% is the median, where it crosses 90% is the 90th percentile.
A web team rebuilt a slow page and timed 20 loads before and after. The new line rises much sooner: half of the new loads finish within 1.65 seconds, against 2.35 before.
Why use a cumulative distribution chart?
Because it answers "how many are at or below this?" for every value at once.
- Percentiles at a glance. The median, the 90th percentile or any other is one look.
- No bins, no smoothing. Every value counts exactly; nothing to tune.
- Groups compare well. The line further left is the faster or smaller group.
- Good for targets. "What share loads in under 2 seconds?" is one point on the line.
How does a cumulative distribution chart work?
Four steps turn values into a rising line.
- Step 1 of 4Every valueTwenty page loads as dots, from fast to slow.
- Step 2 of 4Sort themLine them up from the smallest to the largest.
- Step 3 of 4Step up at each oneAt each value, the line climbs one twentieth: 5% per load.
- Step 4 of 4Read acrossThe line ends at 100%: every load is at or below the slowest.
What are the parts of a cumulative distribution chart?
Four parts, and each one has a job.
- Stepone value; the line rises by its share
- 50% linehalf of the values are at or below it
- Medianwhere the line crosses 50%
- Share axisfrom 0 to 100% of the values
How do you read a cumulative distribution chart?
Three looks, in this order.
- Which line is left?The new line is left of the old one all the way: faster at every share.
- New
- Old
- Read the medianAt 50% the new line is at 1.65 seconds.
- New
- Old
- Read a targetAt 2 seconds or less: 70% of new loads, but only 35% of old ones.
- New
- Old
What kinds of cumulative distribution chart are there?
The same loads, three ways.
- Kind 1Two linesBefore and after on one chart.
- New
- Old
- Kind 2One line litThe old line in grey, the new in the accent.
- New
- Old
- Kind 3As curvesThe same loads as smooth shapes instead.
- New
- Old
When should you use a cumulative distribution chart?
When percentiles, targets or a before-and-after compare matter.
- you need percentiles (median, 90th)
- a target is "share under X"
- two to four groups are compared
- there are about 20 values or more
- the reader needs to see peaks (a histogram or density plot)
- readers are new to charts (a histogram)
- there is only an average (a bar chart)
Cumulative distribution or density plot?
A cumulative line for shares, a density plot for the shape.
- New
- Old
- New
- Old
The density plot shows where loads bunch up, but not what share is under 2 seconds. The cumulative chart answers that exactly, but its peaks are hidden in the steepness of the line.
How do you make a cumulative distribution chart?
A line of a running share, in any tool.
In Excel, sort the values, add a column with =RANK.EQ(value, range, 1)/COUNT(range) for the share, and draw a scatter chart with straight lines of value against share. In Power BI, a measure that counts the values at or below each value, divided by the total, drawn as a line chart, does the same (statistical functions in DAX). In Python, seaborn's ecdfplot draws one in a line.
What goes wrong with cumulative distribution charts?
The most common mistake, and its fix: reading it like a line over time.
- a title that says "share at or below"
- a 50% line and the median marked
| Mistake | Why it hurts | Fix |
|---|---|---|
| Read as growth over time | The rising line looks like a trend | Say "share at or below" in the title |
| No 50% mark | The median is hard to find | A dashed 50% line |
| Smoothing the steps | Hides how few values there are | Keep the steps |
| Too many groups | The lines run together | Two to four groups |
| A share axis not from 0 to 100% | The shape is cut | Always 0 to 100% |
Every chart for “How are the values spread?”
- One groupHistogramTouching bars that count how many values fall in each range.
- One groupDensity plotA smooth curve of where values bunch up.
- One groupStrip plotEvery value as a dot along one line.
- One groupBeeswarm plotDots that push apart instead of overlapping, so every value shows.
- Comparing groupsBox plotThe middle half as a box, the median as a line, the rest as whiskers.
- Comparing groupsViolin plotA box plot with the shape of the values drawn around it.
- Comparing groupsRidgeline plotDensity curves stacked and overlapping, one per group.
- Comparing groupsRaincloud plotHalf a violin, a box and the dots, in one picture.
- Comparing groupsPopulation pyramidTwo histograms back to back, by age and sex.
- CumulativePareto chartBars from biggest to smallest with a running total line.
- Fit checkQ-Q plotDots along a line when the data fits the shape you expect.
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.