Statistics

Empirical CDF

A student traces a rising staircase on the classroom board.

Empirical CDF definition

An empirical cumulative distribution function gives the fraction of observed values at or below each input.

In Spanish
función de distribución empírica
Topic
Quantiles and measures of position

Empirical CDF in a picture

Empirical CDF diagramIn the sample 2, 2, 5, 7, the empirical CDF jumps from zero to one half at 2.Sample: 2, 2, 5, 7There are four observationsAt x = 2, two are countedBoth tied values contributeFₙ(2) = 2/4 = 0.5The next jump occurs at 5
In the sample 2, 2, 5, 7, the empirical CDF jumps from zero to one half at 2.

How it works

For n observations, Fₙ(x) is the count of observations ≤ x divided by n. It is a nondecreasing right-continuous step function. At a value appearing k times, the jump has size k/n. It is zero below the minimum and one at or above the maximum.

Worked examples

Find Fₙ(4) for 2, 2, 5, 7.

Two of four observations are at or below 4, so Fₙ(4) = 0.5.

Find Fₙ(5) for the same sample.

Three of four are counted, so it is 0.75.

What is the value at 7?

1, because every observation is at or below 7.

Common mistake

Include observations equal to x. Repeated values produce a single larger jump at their shared location.

Quick check

For 1, 3, 3, 8, what is Fₙ(3)?

What is the total height of all jumps?

Show answer

1.

When is the CDF flat?

Show answer

Between consecutive distinct sample values.

Sources

Flashcard

Empirical CDF

Reveal the definition

An empirical cumulative distribution function gives the fraction of observed values at or below each input.

Effortless Math. “Empirical CDF.” Math Dictionary.