How this calculation works
The empirical cumulative distribution F_n records the fraction of sample values at or below each x. The Dvoretzky–Kiefer–Wolfowitz inequality with Massart’s constant bounds its largest discrepancy from the true CDF. Inverting that bound gives one probability-width epsilon applied across the entire empirical curve. This page constructs the resulting lower and upper bands and displays both the curve’s jumps and the right-continuous values in a table.
ε=√[ln(2/α)/(2n)]; L(x)=max(0,F_n(x)−ε); U(x)=min(1,F_n(x)+ε).A worked example
For observations 1,1,2,4, the empirical CDF jumps to 0.5 at one, 0.75 at two and one at four. With n=4 and confidence 95%, epsilon=√[ln(40)/8]≈0.67905076. At x=2, the band is approximately [0.07094924,1]. The wide band reflects the small sample; choosing a distribution-free simultaneous statement does not make four observations highly informative about an entire population distribution.
Good to know
Supports 2–500 IID observations and confidence levels from 80% through 99.9%. The coverage guarantee is at least the selected level, not exactly that level. Ties and discrete distributions are allowed. This is a band for the whole CDF, not a mean interval or a normality-test p-value. Dependence, selection bias or an unrepresentative sample can invalidate its interpretation.
Reference: Larry Wasserman, CMU — empirical CDF and DKW confidence bands (opens in a new tab) ↗
Simultaneous coverage concerns one event across all real x
The confidence statement is that the true cumulative distribution lies inside the whole band at once. It is stronger than making an individual pointwise interval at several chosen coordinates without controlling their joint coverage. The same epsilon applies everywhere in probability units. Clipping at zero and one keeps the band within the valid range of cumulative probabilities while retaining the simultaneous interpretation.
Equal observations create one combined jump. The table lists the left limit before that jump and the right-continuous empirical CDF at the value. This prevents a tied group from being mistaken for several different coordinates. The plotted vertical jumps connect those limits; values between observed coordinates follow the horizontal steps. The formula also defines the band outside the padded plotting range, even though the drawing displays a finite window.
The Bootstrap confidence interval calculator from raw data approximates uncertainty in a mean or median. The DKW page supplies a simultaneous band for the entire CDF.
A distribution-free guarantee can be deliberately conservative
The inequality does not fit a normal, exponential or other parametric family. That broad applicability costs precision compared with a correctly specified, justified model. A wide band is not a calculation failure. Increasing the sample size shrinks epsilon in proportion to one over the square root of n, while requesting a higher confidence level widens it through the logarithmic confidence term.
A repeated time series or clustered set of measurements is not automatically an IID sample merely because it fits in one input column. The distribution-free claim still depends on independence and a common sampling distribution. This page does not estimate an effective sample size to repair dependence. The mean confidence-interval calculator answers a scalar-parameter question; its interval cannot be substituted for a simultaneous confidence band on the entire CDF.
A few questions, answered
Does the band require a continuous distribution?
No. The DKW inequality applies to CDFs including discrete distributions, so legitimate ties are retained.
Does 95% mean each candidate CDF has a 95% posterior probability?
No. This is a frequentist simultaneous coverage bound over repeated IID samples, not a posterior distribution over CDFs.