Abstract
This paper describes a recursive estimation procedure for multivariate binary densities (probability distributions of vectors of Bernoulli random variables) using orthogonal expansions. For $d$ covariates, there are $2^{d}$ basis coefficients to estimate, which renders conventional approaches computationally prohibitive when $d$ is large. However, for a wide class of densities that satisfy a certain sparsity condition, our estimator runs in probabilistic polynomial time and adapts to the unknown sparsity of the underlying density in two key ways: (1) it attains near-minimax mean-squared error for moderate sample sizes, and (2) the computational complexity is lower for sparser densities. Our method also allows for flexible control of the trade-off between mean-squared error and computational complexity.
Introduction
In fields ranging from biostatistics to the social sciences, researchers frequently encounter multivariate binary data—vectors of "yes/no" or "0/1" responses. Estimating the underlying probability distribution for such data is a fundamental task, yet it is plagued by the "curse of dimensionality." For a vector of $d$ variables, the state space consists of $2^d$ possible outcomes. When $d$ is even moderately large (e.g., $d=50$), the number of possible combinations ($2^{50} \approx 10^{15}$) vastly exceeds any feasible sample size $n$.
Traditional approaches to density estimation struggle in this high-dimensional regime. Kernel Density Estimation (KDE) suffers from slow convergence rates as $d$ increases. Conversely, while orthogonal series estimators—specifically those using the Walsh-Hadamard basis—are theoretically robust, the requirement to compute all $2^d$ coefficients makes them computationally impossible for large $d$. This paper introduces a recursive "pruning" algorithm designed to navigate this exponential space efficiently.
The Recursive Walsh Thresholding (RWT) Algorithm
The proposed method, Recursive Walsh Thresholding (RWT), leverages the Walsh basis, which serves as the binary analogue to the Fourier transform. The innovation of RWT lies in its treatment of the $2^d$ Walsh coefficients as leaves of a complete binary tree of depth $d$.
Tree-Based Pruning
Rather than calculating every individual coefficient, the algorithm estimates the "energy" (the sum of squared coefficients) of entire subtrees at internal nodes. This approach is inspired by the Goldreich-Levin algorithm from computational complexity and cryptography. The process follows a recursive logic:
- Energy Estimation: At any given node in the tree, the algorithm estimates the total energy of the branch below it.
- Recursive Pruning: If the estimated energy of a branch falls below a predefined threshold, the algorithm assumes no significant coefficients exist within that entire subtree and prunes it immediately.
- Factorization Property: The efficiency of this energy estimation is made possible by a unique factorization property of Walsh functions, allowing the algorithm to evaluate blocks of coefficients without computing them individually.
Computational Adaptivity
A defining feature of RWT is its adaptivity. The algorithm utilizes a sequence of thresholds that can be tuned to balance statistical accuracy against computational overhead. This allows for "probabilistic polynomial time" execution, where the computational cost is directly tied to the sparsity of the underlying density: the sparser the distribution, the faster the algorithm runs.
Theoretical Insights
The effectiveness of RWT is rooted in several key properties:
- Sparsity as an Enabler: The algorithm assumes the density is sparse in the Walsh basis, meaning only a few combinations of variables significantly influence the distribution. RWT turns this structural assumption into a computational advantage.
- Incoherence: Similar to principles in compressed sensing, the Walsh basis is "incoherent" with the standard basis, which facilitates the recovery of the signal from a relatively small number of samples.
- Statistical Optimality: The authors demonstrate that for a broad class of sparse densities, the RWT estimator attains near-minimax mean-squared error (MSE), providing a guarantee of statistical efficiency alongside its computational speed.
Experimental Results
The authors evaluated RWT using synthetic datasets designed to mimic the clustering effects often found in real-world populations, such as mixtures of product densities.
- Low-Dimensional Validation ($d=15$): In scenarios where the ground truth could still be computed exhaustively, RWT demonstrated high accuracy, matching the performance of exhaustive methods with a fraction of the computation.
- High-Dimensional Performance ($d=50$): In a space of quadrillions of possibilities, RWT successfully estimated densities by visiting only a tiny fraction of the potential nodes. Traditional methods fail entirely in this regime.
- Thresholding Trade-offs: Simulations confirmed that "constant" thresholding yields the lowest error (matching theoretical minimax rates), while "linear" or "logarithmic" thresholding schemes significantly reduce processing time with only a marginal increase in MSE.
Limitations and Future Directions
While RWT represents a significant step forward, some challenges remain. Like many orthogonal series estimators, the raw output may occasionally yield negative values or fail to sum exactly to one. While post-processing steps like clipping and renormalization can address this, they remain an additional requirement. Furthermore, while the theoretical and synthetic results are robust, future work is needed to validate the algorithm on massive, high-dimensional real-world datasets.
Finally, the authors suggest that this recursive framework could be extended to estimate more complex structures, such as Markov Random Fields or other graphical models on the binary hypercube, potentially bridging the gap between nonparametric density estimation and structured probabilistic modeling.
Summary updated