Index: The Book of Statistical Proofs ▷ General Theorems ▷ Probability theory ▷ Cumulative distribution function ▷ Moments and point-wise consistency of the empirical CDF

Theorem: Let $X_1, X_2, \ldots$ be an infinite sequence of independent and identically distributed real observations. For each integer $n \geq 1$, use its first $n$ observations. Their common cumulative distribution function is $F(x)=\mathrm{Pr}(X_i \leq x)$, $x \in \mathbb{R}$. Define the empirical distribution function by

\[\label{eq:ecdf-momcons-definition} F_n(x) = \frac{1}{n} \sum_{i=1}^n I_i(x), \qquad I_i(x) = \mathbf{1}_{X_i \leq x} \; .\]

The indicator $I_i(x)$ is 1 when $X_i \leq x$, and 0 otherwise. For every fixed real $x$,

\[\label{eq:ecdf-momcons-moments} \mathrm{E}[F_n(x)] = F(x), \qquad \mathrm{Var}[F_n(x)] = \frac{F(x)[1-F(x)]}{n} \; .\]

For each $\varepsilon > 0$,

\[\label{eq:ecdf-momcons-bound} \mathrm{Pr}\left( \lvert F_n(x)-F(x) \rvert \geq \varepsilon \right) \leq \frac{F(x)[1-F(x)]}{n\varepsilon^2} \leq \frac{1}{4n\varepsilon^2} \rightarrow 0 \; .\]

Thus, $F_n(x)$ converges in probability to $F(x)$ at each fixed $x$. The value of $x$ is fixed before taking the probability or the limit. We do not assume that $F$ is continuous. Both $F_n(x)$ and $F(x)$ are dimensionless probabilities, even when the observations and threshold have physical units.

Proof: For a fixed threshold $x$, $I_i(x)$ is a Bernoulli variable with success probability $F(x)$. The indicators are independent because each depends on a different independent observation. Since $I_i(x)^2 = I_i(x)$,

\[\label{eq:ecdf-momcons-indicator} \mathrm{E}[I_i(x)] = F(x), \qquad \mathrm{Var}[I_i(x)] = F(x)-F(x)^2 \; .\]

Using the linearity of the expected value, we have:

\[\label{eq:ecdf-momcons-mean} \mathrm{E}[F_n(x)] = \frac{1}{n} \sum_{i=1}^n \mathrm{E}[I_i(x)] = \frac{nF(x)}{n} = F(x) \; .\]

Because the indicators are independent, the cross-covariance terms in the variance of the sum are zero:

\[\label{eq:ecdf-momcons-variance} \begin{split} \mathrm{Var}[F_n(x)] &= \frac{1}{n^2} \sum_{i=1}^n \mathrm{Var}[I_i(x)]\\ &= \frac{nF(x)[1-F(x)]}{n^2} = \frac{F(x)[1-F(x)]}{n} \; . \end{split}\]

Appyling Chebyshev’s inequality to the unbiased estimator $F_n(x)$ gives the first bound in \eqref{eq:ecdf-momcons-bound}. The identity $q(1-q) = 1/4-(q-1/2)^2 \leq 1/4$ for $q \in [0,1]$ gives the second bound. For fixed $\varepsilon > 0$, the resulting upper bound tends to zero as $n$ grows. Thus, $F_n(x)$ converges in probability to $F(x)$ at each fixed $x$.

If $F(x)=0$ or $F(x)=1$, the indicators are constant almost surely and the sampling variance is exactly zero. There was no division by $F(x)[1-F(x)]$, so these cases are included. Point-wise convergence proves the claim separately for each fixed threshold $x$.

∎
Sources:
  • John A. Rice (2007): "The empirical cumulative distribution function"; in: Mathematical Statistics and Data Analysis, Third edition, Section 10.2.1, pp. 378-380.

Metadata: ID: P562 | shortcut: ecdf-mompwc | author: kjpetrykowski | date: 2026-10-19, 20:30.