ECDF Plot Calculator

Build interactive empirical distribution plots, compare machine learning datasets, calculate percentiles, detect shifts, inspect statistics, and export clear results from one responsive tool easily.

ECDF result

Load data, then select Calculate ECDF.
Click a plotted point to inspect its value and cumulative probability.

Datasets

CSV or TXT import Papa Parse detects headers and common delimiters.
No file loaded.

Data preprocessing

Plot configuration

Percentiles, thresholds, and annotations

Values above 1 are treated as percentages.
Select a query tool to inspect a quantile or cumulative probability.

Theoretical CDF comparison

Use JavaScript Math functions and variable x.

Distribution comparison

Statistical summary

No active dataset

Detailed ECDF table

Rank Value Frequency Weight Cumulative count Cumulative weight ECDF ECDF percentage
No calculated data.

Export and session tools

Session data stays in this browser unless exported.

Formula used

Fₙ(x) = (1 / n) Σ I(xᵢ ≤ x)

For weighted observations, cumulative weight replaces cumulative count. The result is divided by total valid weight.

Fₙ,w(x) = Σ wᵢ I(xᵢ ≤ x) / Σ wᵢ

The ECDF rises at observed values. Larger jumps indicate repeated values or greater observation weights.

How to use

  1. Paste numeric observations into one or more dataset cards.
  2. Add optional nonnegative weights with one weight per value.
  3. Choose preprocessing, step behavior, scales, and annotations.
  4. Select Calculate ECDF to update every result section.
  5. Use percentile, theoretical, and comparison tools as needed.
  6. Export the graph, tables, report, or reusable configuration.

Example data

Use caseDataset ADataset BInterpretation
Train-test shiftTraining feature valuesTesting feature valuesA wide vertical gap suggests distribution shift.
Prediction errorsModel A absolute errorsModel B absolute errorsA curve further left generally indicates smaller errors.
Model latencyBaseline millisecondsOptimized millisecondsCompare percentiles such as P50, P90, and P99.

Machine learning applications

ECDF plots reveal complete empirical distributions without histogram bins. They help compare features, residuals, predictions, scores, and latency.

Training and testing curves can expose covariate shift. Grouped curves can also support fairness and robustness reviews.

Percentile analysis is valuable for service-level targets. Tail behavior often matters more than averages.

Frequently asked questions

What does an ECDF show?

It shows the proportion of observations less than or equal to each value.

Why use an ECDF instead of a histogram?

An ECDF avoids arbitrary bin widths and displays every observation.

What does a steep ECDF section mean?

Many observations are concentrated within a narrow value range.

How are repeated values handled?

Repeated values create a larger vertical jump at that value.

Can ECDFs compare train and test data?

Yes. Separation between curves can reveal distribution shift.

What is a complementary ECDF?

It shows the proportion greater than each threshold, emphasizing tails.

What is a weighted ECDF?

Each observation contributes according to its assigned nonnegative weight.

What does the KS statistic measure?

It is the largest vertical difference between two cumulative distributions.

Can this calculator estimate percentiles?

Yes. It returns the first value reaching the requested probability.

Related Calculators

HistogramDensity Plot (KDE)Box PlotViolin PlotBar ChartCount PlotPie ChartDot PlotStrip PlotSwarm Plot

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.