13.14 Creating a Graph of an Empirical Cumulative Distribution Function

13.14.1 Problem

You want to graph the empirical cumulative distribution function (ECDF) of a data set.

13.14.3 Discussion

The ECDF shows what proportion of observations are at or below the given x value. Because it is empirical, the line takes a step up at each x value where there are one or more observations.