45.05.02 · mathematical-statistics / 05-empirical-processes-nonparametric

The Empirical Distribution and Glivenko-Cantelli Classes

shipped3 tiersLean: none

Anchor (Master): van der Vaart 1998 Asymptotic Statistics (Cambridge) §19.1-19.2 and §19.4 (Glivenko-Cantelli, VC classes, the DKW inequality); van der Vaart & Wellner 1996 Weak Convergence and Empirical Processes (Springer) §2.4-2.6 (bracketing/uniform-entropy GC theorems, VC theory, symmetrisation); Dudley 1999 Uniform Central Limit Theorems (Cambridge) Ch. 4-6

Intuition Beginner

You have a sample of data and you want to know the distribution it came from — not just its average, but its whole shape: where the values pile up, how spread out they are, where the tails sit. The most honest summary you can build is the empirical distribution: pretend the only possible outcomes are exactly the data points you saw, each equally likely. If you collected numbers, you treat the world as a lottery with those tickets. This turns a sample into a full-fledged distribution you can compute anything from.

The empirical distribution function records, for each threshold, the fraction of your data at or below it. As you collect more data, this staircase of fractions should fill in and match the true distribution function. The law of large numbers already promises that at any single fixed threshold the fraction settles to the true probability. The deeper claim is that this happens everywhere at once: the entire empirical curve hugs the true curve, with the worst gap across all thresholds shrinking to zero.

That uniform promise is the Glivenko-Cantelli theorem, sometimes called the fundamental theorem of statistics. It is what lets you treat a sample as a faithful stand-in for the population, and it is the reason plug-in estimates — compute something from the data exactly as you would from the truth — actually work as the sample grows.

The one-sentence takeaway: the empirical distribution built from a sample converges to the true distribution uniformly, so a large sample is a trustworthy picture of the whole population, not just of one feature at a time.

Visual Beginner

Picture the true distribution function as a smooth rising curve from on the left to on the right. The empirical version is a staircase: it jumps up by at each data point and is flat in between. Watch the staircase as the sample size grows.

Sample size What the staircase looks like Worst gap to the true curve
Small A few big steps, blocky, only roughly tracking the curve Large
Medium Many smaller steps hugging the curve more closely Smaller
Large A fine staircase nearly on top of the smooth curve Tiny
Growing without bound The staircase merges into the smooth curve everywhere Shrinks to zero

The single number to watch is the worst gap: the largest vertical distance between the staircase and the smooth curve, taken over every threshold. Glivenko-Cantelli says this worst gap closes to zero as the sample grows, for almost every run of data collection. The same worst gap is what the Kolmogorov-Smirnov test measures to decide whether a sample really came from a proposed distribution.

Worked example Beginner

We build the empirical distribution function from a tiny sample and measure its worst gap to a true distribution. Take five data points drawn from a distribution that is uniform on the interval from to , whose true distribution function is the straight line on that interval. Suppose the five values are .

Step 1. Build the staircase. With points, each one contributes a jump of . The empirical fraction at or below a threshold counts how many of the five values are , divided by . Below the fraction is ; at it jumps to ; at to ; at to ; at to ; at to .

Step 2. Compare to the true line just before each jump. The biggest gaps sit just under each data point, where the staircase has not yet jumped but the true line has risen. Just below , the staircase is and the true value is , a gap of . Just below , the staircase is and the true value is , a gap of . The same pattern repeats: just below , , , each gap is .

Step 3. Compare just after each jump. Just above , the staircase is and the true value is , a gap of . The same gap appears just above each data point.

Step 4. Read off the worst gap. Every gap computed is , so the largest vertical distance between staircase and true line is .

Step 5. What this tells us. With only five evenly spaced points the worst gap is already just . Pack in more data and the steps get finer and the worst gap shrinks. Glivenko-Cantelli is the promise that, for genuinely random samples, this worst gap keeps dropping toward zero as the sample grows, so the staircase becomes a faithful copy of the true distribution.

Check your understanding Beginner

Formal definition Intermediate+

Throughout, are independent and identically distributed random elements of a measurable space with common law . The development follows van der Vaart [van der Vaart 1998] Ch. 19 and van der Vaart-Wellner [van der Vaart Wellner 1996] §2.4. The modes of stochastic convergence and the notion of consistency used below are those fixed in 45.04.01, and the strong law of large numbers 37.02.02 is the single probabilistic input.

Definition (empirical measure and empirical process). The empirical measure of the first observations is the random discrete probability measure

where is the unit point mass at . For a measurable write and . The empirical process indexed by is .

Definition (empirical distribution function). When , the empirical distribution function (EDF) is

It is the EDF that the elementary statistics curriculum estimates with; it is a right-continuous step function with jumps of size (or multiples, at ties) at the observations, and it is the special case for .

Definition (the supremum norm over a class). For a class of measurable functions with for all , set

For the EDF the relevant class is , and then , the Kolmogorov-Smirnov distance.

Definition (Glivenko-Cantelli class). A class is -Glivenko-Cantelli (or simply Glivenko-Cantelli, GC) if

where is outer almost-sure convergence (the supremum may fail to be measurable; the outer expectation handles this without changing anything for the countable or pointwise-separable classes met in practice). Equivalently in (outer) probability suffices to call Glivenko-Cantelli in probability; for the classes below the two notions coincide.

Definition (bracketing number). Given two functions , the bracket is the set of all with pointwise; it is an -bracket in if . The bracketing number is the minimum number of -brackets needed to cover (every lies in at least one bracket). Finiteness of for every is the bracketing entropy condition.

Definition (Vapnik-Chervonenkis dimension). A collection of subsets of shatters a finite set if every one of its subsets is cut out as for some . The VC dimension is the largest for which some -point set is shattered (and if arbitrarily large sets are shattered). A class of sets with is a VC class; a class of functions is VC if the collection of its subgraphs is a VC class of sets. This is the identical combinatorial notion that governs uniform generalisation bounds in statistical learning theory; the learning-theoretic development is 45.07.03.

Key theorem with proof Intermediate+

Theorem (classical Glivenko-Cantelli). Let be i.i.d. real random variables with distribution function , and let be the empirical distribution function. Then

Proof. The argument upgrades the pointwise strong law to uniformity by exploiting monotonicity of and a finite grid. Fix an integer . Using right-continuity and monotonicity of , choose grid points

such that for each ; this is possible because increases from to and has at most countably many jumps, so the values can be straddled by grid points, splitting any jump exceeding at its location. By the strong law of large numbers 37.02.02 applied to the bounded indicators and , for each fixed ,

and since there are only finitely many grid points, all of these limits hold simultaneously off a single null set .

Fix and any ; say . Monotonicity of both and gives the two-sided sandwich

Taking the supremum over and then , every grid-point difference vanishes off , leaving

Let , a null set. For the bound holds for every , so the is , which is uniform almost-sure convergence.

Bridge. The grid-and-monotonicity device builds toward the abstract Glivenko-Cantelli theorem, where monotonicity is replaced by the more flexible bracketing of a function class, and it appears again in the uniform law of large numbers that drives M-estimator consistency 45.04.04, where the objective function must be controlled uniformly over the parameter. The foundational reason a pointwise strong law lifts to a uniform one is that a class small enough to be straddled by finitely many brackets of small width can only oscillate, between brackets, by the bracket widths; this is exactly the mechanism by which the indicators — totally ordered by and hence bracketable by a coarse grid of quantiles — are tamed. The classical theorem generalises in two directions that the chapter pursues in parallel: the bracketing route, which measures the size of by -covering with brackets, and the combinatorial Vapnik-Chervonenkis route, which measures it by shattering. Putting these together, the empirical measure is a uniformly consistent estimator of over any class that is not too rich, and the bridge is the passage from the single distribution function to an arbitrary index class , which is the move that opens empirical-process theory.

Exercises Intermediate+

Advanced results Master

Theorem 1 (bracketing Glivenko-Cantelli). If for every , then is -Glivenko-Cantelli, with convergence in outer almost-sure sense [van der Vaart Wellner 1996]. The proof brackets by finitely many -small brackets and applies the strong law to the integrable endpoints; the bracket width controls the oscillation of within each bracket, and the strong law controls the finitely many endpoints. The classical theorem is the special case of the totally ordered class , where the brackets are quantile cells and the bracketing number is .

Theorem 2 (VC Glivenko-Cantelli). If is a VC class of sets with (more generally if is a VC class of functions with integrable envelope , ), then is -Glivenko-Cantelli for every — the property is distribution-free [Vapnik Chervonenkis 1971]. The mechanism is symmetrisation followed by Sauer's lemma: the expected uniform deviation is bounded by a Rademacher average over the at most distinct sample-traces, and the polynomial growth against the normalisation forces ; a concentration (bounded-difference) inequality upgrades the mean convergence to almost-sure. The same finite-VC hypothesis is the exact condition under which empirical risk minimisation generalises in statistical learning theory 45.07.03.

Theorem 3 (Dvoretzky-Kiefer-Wolfowitz, Massart's constant). For i.i.d. real data with any distribution function and every ,

with the constant sharp [Massart 1990]; the original DKW bound [Dvoretzky Kiefer Wolfowitz 1956] carried an unspecified constant. This is a non-asymptotic, distribution-free, uniform tail for the EDF, strictly stronger than what Hoeffding gives at a single , and it yields the exact-coverage Kolmogorov-Smirnov confidence band . The asymptotic constant matches: converges in law to the supremum of a Brownian bridge, whose tail is , the Kolmogorov distribution.

Theorem 4 (uniform-entropy / Pollard's GC theorem). If has integrable envelope and finite uniform-entropy integral in the weak sense that for each (supremum over finitely supported probability measures ), then is -Glivenko-Cantelli [van der Vaart Wellner 1996]. VC classes satisfy the uniform-entropy bound by Sauer's lemma, so Theorem 2 is the combinatorial corollary; bracketing classes satisfy Theorem 1 instead. The two entropy regimes — bracketing in a fixed versus uniform covering across all — are the two standard sufficient conditions, neither containing the other.

Theorem 5 (preservation and consequences). The Glivenko-Cantelli property is stable under the operations that arise in plug-in statistics: if and are -GC with integrable envelopes and is Lipschitz, then , finite sums, finite products of uniformly bounded GC classes, and pointwise minima/maxima are again -GC [van der Vaart 1998]. The statistical payoff is uniform consistency of M-estimators: if the criterion functions form a GC class, then a.s., which is exactly the uniform law of large numbers that, with a well-separated maximum, forces argmax consistency 45.04.04.

Synthesis. The empirical measure is the most economical estimator of , and the entire chapter is the study of when it is a uniformly good one. The foundational reason a pointwise strong law lifts to a uniform law over a class is that the class must be small in a sense that admits a finite description at every resolution: either bracketed by finitely many -small brackets, or shattering only sets up to a finite VC dimension, and these are two faces of one demand on the metric entropy of . This is exactly the dichotomy that organises the subject — bracketing entropy controls classes through a fixed reference measure, uniform entropy controls them combinatorially and distribution-free — and the classical Glivenko-Cantelli theorem is the point where both routes degenerate to the totally ordered indicator class with and brackets.

Putting these together, the DKW inequality supplies the sharp non-asymptotic rate that the qualitative theorems leave open, and its asymptotic shadow is the Brownian-bridge supremum that Donsker's empirical-process limit 37.03.03 makes precise, so the EDF's worst gap has a finite-sample exponential tail and a limiting Kolmogorov law that agree in their leading constant. The central insight is that the VC condition that makes uniformly consistent here is identical to the condition that makes empirical risk minimisation generalise in learning theory 45.07.03: uniform convergence of empirical means to population means over a hypothesis class is simultaneously the engine of nonparametric statistics and of statistical learning, and Glivenko-Cantelli is its qualitative skeleton, with Donsker the quantitative refinement that adds a limit law on top.

Full proof set Master

Proposition 1 (the classical theorem as a bracketing corollary). The class has bracketing number , and is therefore -Glivenko-Cantelli for every .

Proof. Pick quantile grid points with , achievable with since rises from to . Form the brackets with and . Any with satisfies pointwise, and . So brackets of -width cover , giving the stated bound. Finiteness of the bracketing number for every invokes the bracketing Glivenko-Cantelli theorem (Proposition 2 below), recovering a.s. without the explicit grid sandwich of the Key theorem.

Proposition 2 (bracketing Glivenko-Cantelli). If for every , then .

Proof. Fix and brackets of -width covering , endpoints integrable. For in bracket ,

and the lower bound is symmetric with . Hence . The maximum is over averages each governed by the strong law of large numbers 37.02.02, so it tends to almost surely; therefore a.s. Intersecting the corresponding full-measure events over gives a.s. Measurability issues are absorbed into the outer expectation, under which the max of finitely many measurable averages is measurable and the bound is exact.

Proposition 3 (Sauer-Shelah lemma). If shatters no set of size , then for every and every -point set, .

Proof. Induct on . Write . Fix points and let be the trace, a set system on shattering no -subset. Remove : let be the trace on , and let be the family of subsets of appearing both with and without . Then , because each lifts to one member of unless both extensions are present, contributing the extra count . Now shatters no -subset of (a shattered subset would be shattered in ), so by induction. And shatters no -subset of : if it shattered a -set , then would shatter , a -set, since every subset of appears in both with and without . Hence . Adding, by Pascal's identity.

Proposition 4 (VC Glivenko-Cantelli via symmetrisation). Let be a VC class of sets with . Then , and consequently .

Proof. Let be an independent ghost sample with empirical measure , and independent Rademacher signs independent of the data. By the standard symmetrisation inequality,

Condition on . The sets of induce at most distinct vectors by Proposition 3. For each fixed such vector , is a Rademacher average with , hence sub-Gaussian with parameter ; the maximal inequality over sub-Gaussian variables gives

The right-hand side is deterministic and tends to , so taking expectations over the data, . For the almost-sure upgrade, is a function of independent variables changing by at most when one is altered, so the bounded-difference (McDiarmid) inequality gives ; summability over and Borel-Cantelli, combined with the mean tending to , yield a.s.

Proposition 5 (DKW gives the classical theorem with a rate). With the DKW inequality in hand, , and moreover almost surely.

Proof. For fixed , , so by the first Borel-Cantelli lemma finitely often a.s.; intersecting over gives a.s. convergence to , a second proof of Glivenko-Cantelli requiring no monotonicity grid, only the uniform tail. For the rate, set ; then , which is summable along for . Borel-Cantelli along this subsequence plus the monotone control of between consecutive gives a.s.; let . (The matching lower bound, giving equality , is the Smirnov-Chung law of the iterated logarithm for the EDF.)

Connections Master

The strong law of large numbers 37.02.02 is the sole probabilistic input to every Glivenko-Cantelli theorem in this unit: the classical proof applies it to the finitely many grid indicators, the bracketing proof applies it to the finitely many bracket endpoints, and the VC proof applies a concentration refinement of it (McDiarmid) to upgrade mean convergence to almost-sure. Glivenko-Cantelli is precisely the statement that the strong law holds uniformly over an index class, so this unit is the uniform-in-index extension of that one.

Consistency and the modes of stochastic convergence 45.04.01 supply the language: the GC property is uniform-in- almost-sure consistency of the plug-in estimator for , and the M-estimator argmax route previewed there is completed here, since the uniform law of large numbers that the Wald argument needs is exactly the assertion that is a Glivenko-Cantelli class.

Donsker's invariance principle and the functional CLT 37.03.03 is the quantitative successor: where Glivenko-Cantelli gives , the empirical-process invariance principle gives an -Brownian bridge in , whose supremum is the limiting Kolmogorov-Smirnov law, and the DKW exponential tail is the finite-sample shadow of that bridge-supremum tail. The Donsker property is to Glivenko-Cantelli what the central limit theorem is to the law of large numbers.

The Vapnik-Chervonenkis theory of learnability 45.07.03 uses the identical VC-dimension and Sauer-lemma machinery proved here: finite VC dimension is simultaneously the condition under which the empirical measure converges uniformly to (this unit) and the condition under which empirical risk minimisation generalises, so the GC theorem for a VC class and the fundamental theorem of statistical learning are two readings of one uniform-convergence result.

Bernstein's inequality and the sub-exponential regime 45.05.01 furnishes the concentration tools that sharpen these qualitative theorems into rates: the bounded-difference inequality used to upgrade VC mean-convergence to almost-sure convergence, and the sub-Gaussian maximal inequality bounding the Rademacher average over the polynomially many sample-traces, are members of the same concentration family, and they reappear when bracketing entropy is integrated to obtain rates rather than mere convergence.

Historical & philosophical context Master

The uniform convergence of the empirical distribution function was established in 1933 by Valery Glivenko and Francesco Paolo Cantelli in companion papers in the Giornale dell'Istituto Italiano degli Attuari [Glivenko 1933]. Glivenko proved the result for continuous distribution functions and Cantelli removed the continuity assumption, giving the general statement that the sample distribution function converges to the population distribution function uniformly with probability one. This was the first uniform law of large numbers and the prototype for all later empirical-process theory; the name fundamental theorem of statistics records its role in justifying the sample as a stand-in for the population.

The sharp non-asymptotic form was obtained in 1956 by Aryeh Dvoretzky, Jack Kiefer, and Jacob Wolfowitz [Dvoretzky Kiefer Wolfowitz 1956], who proved an exponential bound on the uniform deviation in the course of establishing the asymptotic minimax optimality of the empirical distribution function; the optimal constant resisted proof until Pascal Massart settled it in 1990 [Massart 1990]. The abstraction from the single distribution function to arbitrary classes of sets came from Vladimir Vapnik and Alexey Chervonenkis in 1971 [Vapnik Chervonenkis 1971], whose study of uniform convergence of relative frequencies introduced the combinatorial dimension now bearing their names and the shatter-coefficient bound, work undertaken in the service of pattern recognition and later recognised as the combinatorial core of both nonparametric statistics and statistical learning. Richard Dudley and David Pollard subsequently built the metric-entropy and symmetrisation framework that unifies the bracketing and combinatorial routes, the synthesis codified in van der Vaart and Wellner's monograph [van der Vaart Wellner 1996].

Bibliography Master

@article{Glivenko1933gc,
  author  = {Glivenko, Valery I.},
  title   = {Sulla determinazione empirica delle leggi di probabilit\`a},
  journal = {Giornale dell'Istituto Italiano degli Attuari},
  volume  = {4},
  year    = {1933},
  pages   = {92--99}
}

@article{Cantelli1933gc,
  author  = {Cantelli, Francesco Paolo},
  title   = {Sulla determinazione empirica delle leggi di probabilit\`a},
  journal = {Giornale dell'Istituto Italiano degli Attuari},
  volume  = {4},
  year    = {1933},
  pages   = {221--424}
}

@article{DKW1956,
  author  = {Dvoretzky, Aryeh and Kiefer, Jack and Wolfowitz, Jacob},
  title   = {Asymptotic minimax character of the sample distribution function and of the classical multinomial estimator},
  journal = {Annals of Mathematical Statistics},
  volume  = {27},
  number  = {3},
  year    = {1956},
  pages   = {642--669}
}

@article{Massart1990,
  author  = {Massart, Pascal},
  title   = {The tight constant in the {Dvoretzky-Kiefer-Wolfowitz} inequality},
  journal = {Annals of Probability},
  volume  = {18},
  number  = {3},
  year    = {1990},
  pages   = {1269--1283}
}

@article{VC1971,
  author  = {Vapnik, Vladimir N. and Chervonenkis, Alexey Ya.},
  title   = {On the uniform convergence of relative frequencies of events to their probabilities},
  journal = {Theory of Probability and Its Applications},
  volume  = {16},
  number  = {2},
  year    = {1971},
  pages   = {264--280}
}

@book{vanderVaart1998gc,
  author    = {van der Vaart, Aad W.},
  title     = {Asymptotic Statistics},
  publisher = {Cambridge University Press},
  series    = {Cambridge Series in Statistical and Probabilistic Mathematics},
  year      = {1998}
}

@book{vanderVaartWellner1996,
  author    = {van der Vaart, Aad W. and Wellner, Jon A.},
  title     = {Weak Convergence and Empirical Processes: With Applications to Statistics},
  publisher = {Springer-Verlag},
  series    = {Springer Series in Statistics},
  address   = {New York},
  year      = {1996}
}

@book{Dudley1999,
  author    = {Dudley, Richard M.},
  title     = {Uniform Central Limit Theorems},
  publisher = {Cambridge University Press},
  series    = {Cambridge Studies in Advanced Mathematics 63},
  year      = {1999}
}