Bandwidth selection for kernel density estimators of multivariate level sets and highest density regions

Guangwei Weng, Charles DossElectronic Journal of Statistics 2026

TL;DR

This paper tackles the challenging problem of selecting the right "smoothness" (bandwidth matrix) for kernel density estimators when trying to identify specific regions within a multivariate probability distribution, like level sets or highest density regions. They introduce a novel method that approximates the error in estimating these regions and uses this approximation to find an optimal bandwidth, showing it performs well in simulations and real-world data.

What Problem Does This Paper Address?

Estimating the shape and location of regions within a probability distribution is crucial in many data analysis tasks, from outlier detection to clustering. Kernel Density Estimators (KDEs) are a popular tool for this, but their performance heavily relies on choosing the correct "bandwidth matrix," which controls how smooth the estimated density is. This is particularly tricky in higher dimensions (d ≥ 2) and when estimating specific features like level sets (regions where the density is above a certain value) or highest density regions (regions with a specified probability content).

Existing bandwidth selection methods often focus on minimizing global errors for the density itself or its derivatives. However, this paper addresses a more specific and challenging problem: minimizing the error in estimating the shape of these level sets or highest density regions. The authors highlight that this goal is fundamentally different and more complex than global density estimation, especially for highest density regions where the target level isn't fixed but depends on the data.

Methods

The core of the paper lies in deriving asymptotic risk expansions for the error in estimating level sets and highest density regions. This involves:

  • Defining a specific loss function: The authors use the symmetric difference between the true set and the estimated set as their measure of error. This directly quantifies how well the estimated region matches the true one.
  • Deriving asymptotic approximations: They develop mathematical formulas that approximate the expected value of this symmetric difference error for large sample sizes. These approximations depend on unknown quantities related to the true density.
  • Developing a "plug-in" bandwidth selector: The key innovation is to estimate these unknown quantities from the data (using pilot KDEs) and then plug these estimates into the asymptotic risk approximation. Minimizing this estimated risk function yields an optimal bandwidth matrix.
  • Handling multivariate settings: The methods are developed for general dimensions $d \ge 2$, addressing the complexities of multivariate bandwidth selection.
  • Providing an R package: The authors have implemented their procedure in an R package called lsbs, making it accessible for practical use.

Datasets

The paper evaluates its method using:

  • Simulated data: They use 12 bivariate normal mixture densities from Wand and Jones (1993) with varying shapes and modes, as well as a specific density (equation 11) designed to mimic a sharp mode.
  • Real-world data:
    • Wisconsin Breast Cancer Data: Used for novelty detection.
  • Banknote Authentication Data: Used for novelty detection.

For both real-world datasets, the original features were reduced to the first two principal components.

Key Insights and Ideas

  • Shape matters: The paper emphasizes that minimizing errors in estimating the shape of density regions is a distinct and important problem from minimizing global density estimation errors.
  • Asymptotic risk as a guide: The derived asymptotic risk expansions provide valuable theoretical insights into what drives the estimation error for level sets and highest density regions, highlighting the importance of specific quantities related to the density and its derivatives.
  • Plug-in is practical: The proposed plug-in bandwidth selection method offers a data-driven way to find good bandwidths, avoiding the need for oracle knowledge of the true density.
  • Multivariate challenges are addressed: The work extends existing bandwidth selection techniques to the more complex multivariate setting, which is crucial for analyzing real-world, high-dimensional data.
  • Computational feasibility: The use of closed-form approximations for the risk is highlighted as a benefit for computational feasibility, especially in high dimensions where methods like bootstrap can become intractable.

Key Results

  • Theoretical guarantees: The paper provides theoretical results on the asymptotic risk expansions for both level set and highest density region estimation.
  • Performance in simulations: Simulations show that the proposed bandwidth selection method provides a good approximation to the true optimal bandwidth and performs well compared to LSCV (Least Squares Cross-Validation), especially for lower probability levels (e.g., $\tau = 0.2, 0.5$).
  • Real-world application: The method is applied to novelty detection on two real datasets, demonstrating its practical utility. For the Wisconsin Breast Cancer data, the HDR-based novelty detection was highly effective.

Limitations and Future Work

  • Assumption D1b: The paper notes that their method might struggle when the gradient of the density is close to zero on the boundary of the HDR (as seen with $\tau = 0.8$ in simulations). Relaxing this assumption is identified as an important direction for future work, likely requiring different approximations.
  • Topological Data Analysis: The authors suggest extending their work to handle cases where the gradient is zero at critical points, which is of great interest in Topological Data Analysis (TDA). This would require different analytical tools.
  • Regression and Classification: The paper points out that extending their methods to regression level set estimation and classification problems is a promising avenue.
  • MCMC: The authors suggest that their tools could be adapted for credible regions in Bayesian statistical analyses using Markov Chain Monte Carlo (MCMC) output, where current methods are often ad-hoc.
  • Higher Dimensions: While the theory applies to $d \ge 2$, the implementation of numerical approximations for Hausdorff integrals becomes more challenging in dimensions $d \ge 3$. The paper mentions that while feasible, it's less straightforward than for $d=2$.

Summary updated

BibTeX
@article{weng2026bandwidth,
  author = {Guangwei Weng and Charles Doss},
  title = {{Bandwidth selection for kernel density estimators of multivariate level sets and highest density regions}},
  journal = {Electronic Journal of Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=ycNMCcVLfa},
}
Figure