---
title: 'Weighted ECDF: Theory, Methods, and Applications'
url: https://www.emergentmind.com/topics/weighted-empirical-cumulative-distribution-function-weighted-ecdf
type: topic
---

# Weighted ECDF: Theory, Methods, and Applications

A weighted empirical cumulative distribution function (weighted ECDF) is a central nonparametric estimator used when observations in a dataset are assigned non-uniform, often data- or design-driven, weights. This generalization of the classical ECDF is instrumental in survey sampling, dealing with missing data, informative selection, and non-i.i.d. data. The weighted ECDF captures the empirical distribution of a population under non-uniform selection or contribution scenarios, and serves as the foundation for risk estimation, quantile inference, and asymptotic distributional theory under complex data-generating processes.

## 1. Formal Definition and Principal Forms

Let $X_1, \dots, X_n$ be independent (not necessarily identically distributed) random variables on $\mathbb{R}^s$ and $w_1, \dots, w_n$ be associated deterministic, non-negative weights satisfying $\sum_{i=1}^n w_i = n$. The weighted ECDF is defined as
\[
\widehat{F}_n(x) = \frac{1}{n} \sum_{i=1}^n w_i \, \mathbf{1}\{X_i \le x\}, \quad x \in \mathbb{R}^s,
\]
with expectation
\[
F_n(x) = \frac{1}{n}\sum_{i=1}^n w_i F_{i}(x),
\]
where $F_i$ is the distribution function of $X_i$ [1002.4338]. Design-weighted ECDFs arise naturally with Horvitz–Thompson weights in survey sampling, as well as under length-biased or informative sampling [1211.5468, 2510.07235]. In time-dependent or functional data regimes, the weighted ECDF generalizes further by introducing a weight function $w(x)$ applied to process values, leading to empirical processes indexed by both $t$ and $x$ [1412.8162].

## 2. Asymptotic Theory: Weak Convergence, CLT, Edgeworth Expansions

The asymptotic distribution of the weighted ECDF and its functionals depends crucially on the weighting structure and the (non-)identical distribution of the data. Under suitable regularity, a central limit theorem (CLT) applies to smooth functionals $T(\widehat{F}_n)$, yielding
\[
\sqrt{n} \, (T(\widehat{F}_n) - T(F_n)) \to_d \mathcal{N}\Big(0,\,a_{2,1}\Big),
\]
where $a_{2,1}$ is the asymptotic variance involving the first von Mises derivative of $T$ and the weights [1002.4338].

For finer, finite-sample accuracy, a third-order Edgeworth–Cornish–Fisher expansion provides percentile corrections:
\[
P(Y_n \le x) = \Phi(x) + n^{-1/2} h_1(x)\varphi(x) + n^{-1} h_2(x)\varphi(x) + O(n^{-3/2}),
\]
with explicit Hermite-polynomial based terms $h_1$, $h_2$, and cumulant expressions involving the weights and higher-order von Mises derivatives [1002.4338]. This allows construction of confidence intervals and approximations with coverage error $O(n^{-3/2})$, rather than $O(n^{-1/2})$ as in basic CLT-based inference.

In time-dependent and functional settings, the weak convergence of the weighted empirical process to a Gaussian limit in $\ell^\infty(E \times [0,1])$ depends on the regularity and decay of $w(x)$, tail conditions, and local oscillation (WL-condition) [1412.8162]. For instance, if $w(x)$ is regularly varying at zero and other constraints hold, the process converges to a mean-zero Gaussian process with
\[
\operatorname{Cov}(G(s, x), G(t, y)) = w(x)w(y) \big\{ P(X(s) \le x, X(t) \le y) - x y \big\}.
\]

## 3. Weighted ECDF under Informative Selection and Complex Sampling

Informative selection from finite populations results in empirical CDFs that do not converge to the true superpopulation CDF, but rather to a weighted version that reflects the selection mechanism. Under such sampling designs, the limiting CDF is
\[
F_s(\alpha) = \frac{\int_{-\infty}^\alpha m(y)f(y)\,dy}{\int_{-\infty}^\infty m(y)f(y)\,dy},
\]
where $m(y)$ is the asymptotic inclusion propensity as a function of the outcome variable, and $f(y)$ is the superpopulation density [1211.5468]. Uniform $L_2$ and almost sure convergence are obtained under weak dependence and moment conditions on the sampling indicators, even in presence of dependence among sampled units.

This weighting construction subsumes classical Glivenko–Cantelli convergence (when $m(y)$ is constant), and allows modeling of length-biased, PPS, and stratified sampling designs. The limit theory provides explicit guidelines for validity of empirical process inference under complex survey and observational study designs.

## 4. Weighted ECDFs and Missing Data: Inverse Probability Weighting and Smoothing

When responses are subject to missingness under a missing at random (MAR) assumption, the inverse probability weighted (IPW) ECDF is formulated as
\[
\widetilde{F}_n(y) = \frac{1}{n}\sum_{i=1}^n \frac{\delta_i}{\pi_i} \ \mathbf{1}\{Y_i \le y\},
\]
where $\delta_i$ is the response indicator and $\pi_i$ is the propensity of observation [2510.07235]. Bernstein polynomial smoothing of $\widetilde{F}_n$ yields monotone, boundary-corrected estimators which achieve optimal mean integrated squared error by an explicit sample size-dependent smoothing degree:
\[
m_{\mathrm{opt}} = n^{2/3}\left[\frac{4 \int_0^1 B(y)^2\,dy}{\int_0^1 V(y)\,dy}\right]^{2/3},
\]
where $B(y)$ and $V(y)$ are explicit bias and variance functionals depending on the unknown true CDF and the weighting structure. Feasible estimators, with propensities estimated from auxiliary variables, display variance reduction over pseudo (oracle) versions [2510.07235].

## 5. Functional Weighted ECDFs and Empirical Processes in Dependent Data

Weighted ECDFs extend to time-dependent or functional data by assigning location- and value-dependent weights. For stochastic processes $X(t)$, the empirical process constructed as
\[
U_n(t,x) = n^{-1/2} \sum_{i=1}^n w(x)\left( \mathbf{1}\{X_i(t) \le x\} - x \right )
\]
provides a general framework for weighted Donsker-type theorems under broad regularity. The limit Gaussian process is characterized through process-level covariances determined by the weights and the temporal covariance structure of $X$ [1412.8162]. Applications include distributional analysis of copula processes, inference on smoothed quantile curves, and high-dimensional (functional) data settings.

## 6. Practical Implications and Examples

Weighted ECDFs arise across survey methodology, regression diagnostics, Bayesian estimation, and non-i.i.d. inference. In survey sampling, Horvitz–Thompson and design-based weighted ECDFs ensure unbiasedness under complex sampling. In missing data, IPW and smoothed estimators correct for selection bias and are validated via simulation and real-world applications such as NHANES plasma glucose estimation [2510.07235]. For dependent or time-indexed data, weighted empirical processes underpin advanced central limit theorems for functional statistics [1412.8162].

Rigorous asymptotics (CLT and higher-order expansions) validate quantile inference, confidence interval construction, and bias correction for functionals in weighted and/or non-i.i.d. data [1002.4338]. Empirical convergence results imply that practitioners must carefully account for the weighting structure—whether arising from design, missingness, or dependence—for correct inferential procedures. Failure to do so leads to invalid conclusions about superpopulation distributions, particularly under informative designs [1211.5468].

## 7. Summary Table: Main Regimes for Weighted ECDFs

| Scenario                | Weighted ECDF Formulation                     | Key Reference    |
|-------------------------|-----------------------------------------------|------------------|
| Non-i.i.d., arbitrary w | $\widehat F_n(x) = \frac{1}{n}\sum w_i \mathbf{1}\{X_i \le x\}$ | [1002.4338]      |
| Survey sampling         | $F^w(\alpha) = \frac{1}{N} \sum w_k \mathbf{1}\{Y_k \le \alpha\}$, $w_k=1/\pi_k$ | [1211.5468] |
| Missing data (IPW)      | $\widetilde F_n(y) = \frac{1}{n}\sum \frac{\delta_i}{\pi_i} \mathbf{1}\{Y_i \le y\}$ | [2510.07235]|
| Time-dependent process  | $U_n(t,x) = n^{-1/2}\sum w(x)(\mathbf{1}\{X_i(t)\le x\} - x)$ | [1412.8162]      |

The weighted ECDF unifies and extends classical empirical process theory, underpinning modern statistical methodologies for biased, dependent, and incomplete data. Comprehensive asymptotic analysis and practical simulation results guide applied usage and further theoretical development across domains where sample representativity is nontrivial.

Source: https://www.emergentmind.com/topics/weighted-empirical-cumulative-distribution-function-weighted-ecdf