Empirical CDF definition
An empirical cumulative distribution function gives the fraction of observed values at or below each input.
Empirical CDF in a picture
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
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.



