Definitionintro
Empirical distribution function
Also called ECDF, empirical CDF.
The step function that gives, at each x, the fraction of the sample at most x. It is the nonparametric MLE of the distribution function.
The empirical distribution function of a sample is the function , the fraction of the sample at most . It is a step function that starts at 0, rises by at each data point, and ends at 1. For an independent sample from a distribution function , each value is an unbiased estimate of , and by the Glivenko-Cantelli theorem the whole function converges to uniformly. It is the distribution function of the empirical measure, which puts mass on each data point. It is the basis of the Kolmogorov-Smirnov test, of the bootstrap, and of every plug-in estimator that applies a functional of to .
Definition
Let be real numbers. The empirical distribution function is
With the sorted values , the order statistics, for , with and . A value that occurs times gives one jump of size . is nondecreasing and right-continuous, with limits 0 and 1, so it is a distribution function: that of the empirical measure .
When are random with distribution function , is a random function, and:
- Pointwise law. For independent , is Binomial. So and , and is asymptotically normal for each with .
- Joint law. For , . As a process, converges to a Brownian bridge composed with .
- Nonparametric maximum likelihood. Among all probability measures , the product is largest for . If the distinct values occur times, the product is with and , and Gibbs' inequality gives the maximum at . So is the nonparametric MLE of .
Examples and non-examples
A small sample. For , and the value occurs twice. Then , (one jump of ), , , , and . The sample median is , the smallest with .
A confidence band. The DKW inequality gives , so holds all of with probability at least . At the half-width is for and for . A pointwise 95% interval at a point with has the half-width for , narrower because it covers one point and not the whole function.
Sampling from it. Drawing from by inverse transform sampling is the same as drawing one of the data points uniformly at random. This is the resampling step of the nonparametric bootstrap.
Non-example: the left-continuous version. agrees with except at the data points, where it takes the value before the jump. It is the empirical version of , not of the distribution function.
Non-example: plotting positions. Q-Q plots often place the -th order statistic at the level or . These levels are not values of ; they are chosen so that the extreme points do not land at levels 0 or 1.
Non-example: a smoothed estimate. Integrating a kernel density estimate gives a continuous estimate of . It is not a step function and it is not , although it tends to at every point other than the data points as the bandwidth tends to 0.
Non-example: censored data. With right-censored times, the fraction of observed times at most is biased. The Kaplan-Meier estimator is the nonparametric MLE in that case, and it equals when no time is censored.
Related definitions
- Empirical measure. for any set . . It also makes sense for data in or in any space.
- Empirical quantile function. for . Sample quantiles and the sample median are its values.
- Empirical process. as a function of . Its sup is times the Kolmogorov-Smirnov statistic.
- Empirical survival function. , the fraction of the sample above .
References
- A. W. van der Vaart, Asymptotic Statistics, Cambridge University Press, 1998, Chapter 19 (empirical processes), Section 19.1 (the empirical distribution function, its pointwise laws and the Glivenko-Cantelli theorem)
- A. N. Kolmogorov, Sulla determinazione empirica di una legge di distribuzione, Giornale dell'Istituto Italiano degli Attuari 4, 1933, pages 83 to 91, the empirical distribution function of a sample and its largest distance from the true distribution function
- V. Glivenko, Sulla determinazione empirica delle leggi di probabilità, Giornale dell'Istituto Italiano degli Attuari 4, 1933, pages 92 to 99, the uniform convergence of the empirical distribution function for a continuous distribution function
- P. Massart, The tight constant in the Dvoretzky-Kiefer-Wolfowitz inequality, Annals of Probability 18(3), 1990, pp. 1269 to 1283 (the bound 2 exp(-2 n epsilon^2) that gives the confidence band)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 8EGW3R Edit this page History Report an error Markdown