# CDF-based nonparametric confidence interval

In statistics, cumulative distribution function (CDF)-based nonparametric confidence intervals are a general class of confidence intervals around statistical functionals of a distribution. To calculate these confidence intervals, all that is required is an independently and identically distributed (iid) sample from the distribution and known bounds on the support of the distribution. The latter requirement simply means that all the nonzero probability mass of the distribution must be contained in some known interval $\left[a,b\right]$.

## Intuition

The intuition behind the CDF-based approach is that bounds on the CDF of a distribution can be translated into bounds on statistical functionals of that distribution. Given an upper and lower bound on the CDF, the approach involves finding the CDFs within the bounds that maximize and minimize the statistical functional of interest.

## Properties of the bounds

Unlike approaches that make asymptotic assumptions, including bootstrap approaches and those that rely on the central limit theorem, CDF-based bounds are valid for finite sample sizes. And unlike bounds based on inequalities such as Hoeffding's and McDiarmid's inequalities, CDF-based bounds use properties of the entire sample and thus often produce significantly tighter bounds.

## CDF bounds

When producing bounds on the CDF, we must differentiate between pointwise and simultaneous bands.

### Pointwise band

A pointwise CDF bound is one which only guarantees their Coverage probability of $1-alpha$ percent on any individual point of the empirical CDF. Because of the relaxed guarantees, these intervals can be much smaller.

One method of generating them is based on the Binomial distribution. Considering a single point of a CDF of value $F\left(x_i\right)$, then the empirical distribution at that point will be distributed proportional to the binomial distribution with $p=F\left(x_i\right)$ and $n$ set equal to the number of samples in the empirical distribution. Thus, any of the methods available for generating a Binomial proportion confidence interval can be used to generate a CDF bound as well.

### Simultaneous Band

CDF-based confidence intervals require a probabilistic bound on the CDF of the distribution from which the sample were generated. A variety of methods exist for generating confidence intervals for the CDF of a distribution, $F$, given an i.i.d. sample drawn from the distribution. These methods are all based on the empirical distribution function (empirical CDF). Given an i.i.d. sample of size n, $x_1,ldots,x_nsim F$, the empirical CDF is defined to be

: $hat\left\{F\right\}_n\left(t\right) = frac\left\{1\right\}\left\{n\right\}sum_\left\{i=1\right\}^n1\left\{x_ile t\right\},$

where $1\left\{A\right\}$ is the indicator of event A. The Dvoretzky–Kiefer–Wolfowitz inequality, whose tight constant was determined by Massart, places a confidence interval around the Kolmogorov–Smirnov statistic between the CDF and the empirical CDF. Given an i.i.d. sample of size n from $F$, the bound states

: $P\left(sup_x|F\left(x\right)-F_n\left(x\right)|>varepsilon\right)le2e^\left\{-2nvarepsilon^2\right\}.$

This can be viewed as a confidence envelope that runs parallel to, and is equally above and below, the empirical CDF.The equally spaced confidence interval around the empirical CDF allows for different rates of violations across the support of the distribution. In particular, it is more common for a CDF to be outside of the CDF bound estimated using the Dvoretzky–Kiefer–Wolfowitz inequality near the median of the distribution than near the endpoints of the distribution. In contrast, the order statistics-based bound introduced by Learned-Miller and DeStefano allows for an equal rate of violation across all of the order statistics. This in turn results in a bound that is tighter near the ends of the support of the distribution and looser in the middle of the support. Other types of bounds can be generated by varying the rate of violation for the order statistics. For example, if a tighter bound on the distribution is desired on the upper portion of the support, a higher rate of violation can be allowed at the upper portion of the support at the expense of having a lower rate of violation, and thus a looser bound, for the lower portion of the support.

## A nonparametric bound on the mean

Assume without loss of generality that the support of the distribution is contained in $\left[0,1\right].$ Given a confidence envelope for the CDF of $F$ it is easy to derive a corresponding confidence interval for the mean of $F$. It can be shown that the CDF that maximizes the mean is the one that runs along the lower confidence envelope, $L\left(x\right)$, and the CDF that minimizes the mean is the one that runs along the upper envelope, $U\left(x\right)$. Using the identity

: $E\left(X\right) = int_0^1\left(1-F\left(x\right)\right),dx,$

the confidence interval for the mean can be computed as

: $left\left[int_0^1\left(1-U\left(x\right)\right),dx, int_0^1\left(1-L\left(x\right)\right),dx ight\right].$

## A nonparametric bound on the variance

Assume without loss of generality that the support of the distribution of interest, $F$, is contained in $\left[0,1\right]$. Given a confidence envelope for $F$, it can be shown that the CDF within the envelope that minimizes the variance begins on the lower envelope, has a jump discontinuity to the upper envelope, and then continues along the upper envelope. Further, it can be shown that this variance-minimizing CDF, F', must satisfy the constraint that the jump discontinuity occurs at $E\left[F\text{'}\right]$. The variance maximizing CDF begins on the upper envelope, horizontally transitions to the lower envelope, then continues along the lower envelope. Explicit algorithms for calculating these variance-maximizing and minimizing CDFs are given by Romano and Wolf.

## Bounds on other statistical functionals

The CDF-based framework for generating confidence intervals is very general and can be applied to a variety of other statistical functionals including
• Entropy
• Mutual information
• Arbitrary percentiles