Theoremadvanced
Dvoretzky-Kiefer-Wolfowitz inequality
Also called DKW inequality, Massart's inequality.
The probability that the empirical CDF is more than epsilon from the true CDF anywhere is at most 2 exp(-2 n epsilon^2), with Massart's tight constant. It gives a confidence band.
The Dvoretzky-Kiefer-Wolfowitz (DKW) inequality bounds the chance that the empirical distribution function of independent observations is far from the true distribution function anywhere on the line. In the sharp form of Massart, for every , every and every . This is the same bound that Hoeffding's inequality gives for at one fixed point , so taking the sup over all points costs nothing. It turns the Glivenko-Cantelli theorem into a finite-sample statement, and it gives the confidence band for the whole function .
Statement
Let be independent with distribution function , let be their empirical distribution function, and put
Theorem (Dvoretzky, Kiefer and Wolfowitz 1956; Massart 1990). For every , every and every :
- (two-sided) ;
- (one-sided) and , proved by Massart when .
Dvoretzky, Kiefer and Wolfowitz proved part 1 with an unspecified constant in place of 2. The side condition in part 2 belongs to the one-sided bound only. Part 1 needs no condition: when its right side is above 1. Reeve (2024) proved the one-sided bound with no condition on .
Confidence band. Setting gives , and .
In plain words
Draw a sample and plot the share of the sample below each value. The inequality says how likely it is that this staircase is far from the true curve at even one place. The chance falls very fast as the sample grows: doubling the sample squares a small chance, roughly.
The surprise is the size of the bound. Checking a single place already gives a bound of this form. The inequality says that checking every place at the same time costs only a factor of two. So one simple formula gives a band around the staircase that holds the whole true curve with a chosen confidence, for every distribution, with no table.
Proof
We prove a weaker form completely: the right exponent with an extra factor in front. The sharp constant needs a longer argument, and we cite it.
Theorem A. For every , and with , .
Proof. Take , since . Let , so . Because , and . Use the grid of the Glivenko-Cantelli proof: for , with and . There it is shown that , and that for ,
where the first bracket is 0 for and the second is 0 for . So implies that one of the events or , , happens, with . Each and is the mean of independent indicators with mean or , so by Hoeffding's inequality each event has probability at most . Now , so . The union bound gives
Reduction to the uniform law. For the sharp form one may take continuous. Let be independent uniforms with empirical distribution function , and let with the generalized inverse . Then exactly when , so , and is a sup over a subset of . So is at most the statistic of the uniforms, with equality in law when is continuous. The same holds for and . A bound proved for the uniform law therefore holds for every .
The sharp constant. By the reduction, the sharp bounds are statements about uniform samples. Massart (1990) proved them in a long paper, and Reeve (2024) gave a shorter proof; we do not reproduce either argument. For uniform samples the exact law of has the finite form , and the exact two-sided law is a matrix power (see the Kolmogorov-Smirnov test). We checked the bounds against these exact laws, computed with the code of the Kolmogorov-Smirnov page: for and on a grid of step , never exceeded , and for and on a grid of step , never exceeded .
Consequences
A band with no table. At , , which is for and for . The exact probability that the band misses for a continuous is below , and close to it for large :
| exact | ||
|---|---|---|
| 5 | 0.6074 | 0.02703 |
| 10 | 0.4295 | 0.03429 |
| 20 | 0.3037 | 0.03919 |
| 50 | 0.1921 | 0.04332 |
| 100 | 0.1358 | 0.04533 |
Sample size. To estimate everywhere within with probability , is enough. For this is for and for .
Quantiles. The band for gives simultaneous intervals for all quantiles at once: with probability at least , lies between and for every where these are defined.
Almost sure convergence with a rate. for each , so by the Borel-Cantelli lemma happens only finitely often. This proves the Glivenko-Cantelli theorem again, and also shows almost surely.
A conservative Kolmogorov-Smirnov test. Rejecting when is a valid test of level with no table. It is slightly conservative: at its size is , and the exact 5% critical value is against .
Tightness
The constant 2 and the exponent 2 cannot be improved. By Kolmogorov's limit law, , and the first term of this sum is the bound . The ratio of the limit to the bound is at , at , at , at and at . So any bound that holds for all needs when , and .
The 5% point. The bound gives for the limit, and the exact 95% point of the Kolmogorov law is . The limit tail at the bound's point is . For large the band is as narrow as the exact one to four digits.
The one-sided condition. Massart's proof of the one-sided bound used . The grid check above found no exception for , and Reeve (2024) proved the bound without the condition.
Independence is needed. If for all and is continuous, always, while the bound tends to 0 for each .
History
Aryeh Dvoretzky, Jack Kiefer and Jacob Wolfowitz (1956) proved the bound with an unspecified constant , on the way to showing that the empirical distribution function is asymptotically minimax. Birnbaum and McCarty (1958) conjectured that works for the one-sided bound. Pascal Massart (1990) proved that works for the two-sided bound, which is the best constant, and for the one-sided bound when . Henry Reeve (2024) gave a short proof and removed the condition on the one-sided bound.
References
- A. Dvoretzky, J. Kiefer and J. Wolfowitz, Asymptotic minimax character of the sample distribution function and of the classical multinomial estimator, Annals of Mathematical Statistics 27(3), 1956, pp. 642 to 669 (the bound C exp(-2 n epsilon^2) with an unspecified constant C)
- P. Massart, The tight constant in the Dvoretzky-Kiefer-Wolfowitz inequality, Annals of Probability 18(3), 1990, pp. 1269 to 1283 (the two-sided bound with C = 2, and the one-sided bound with C = 1 when exp(-2 n epsilon^2) is at most 1/2)
- Wassily Hoeffding, Probability inequalities for sums of bounded random variables, Journal of the American Statistical Association 58(301), 1963, the bound exp(-2 n delta^2) for the mean of n independent variables with values in [0, 1], used at each grid point
- Henry W. J. Reeve, A short proof of the Dvoretzky-Kiefer-Wolfowitz-Massart inequality, arXiv:2403.16651, 2024, the abstract (the one-sided bound with no restriction on the failure probability, a conjecture of Birnbaum and McCarty)
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 MS1Y6V Edit this page History Report an error Markdown