Skip to main content
QUICK REVIEW

[Paper Review] Analysis of k-Nearest Neighbor Distances with Application to Entropy Estimation

Shashank Singh, Barnabás Póczos|arXiv (Cornell University)|Mar 28, 2016
Advanced Statistical Methods and ModelsMathematics37 references27 citations
TL;DR

This paper provides finite-sample bias and variance bounds for the Kozachenko-Leonenko (KL) entropy estimator based on k-nearest neighbor (k-NN) distances. It establishes that the estimator achieves the minimax convergence rate for smooth densities, with bias scaling as $O((k/n)^{\beta/D})$ and variance as $O(1/n)$, under general conditions including unbounded distributions.

ABSTRACT

Estimating entropy and mutual information consistently is important for many machine learning applications. The Kozachenko-Leonenko (KL) estimator (Kozachenko & Leonenko, 1987) is a widely used nonparametric estimator for the entropy of multivariate continuous random variables, as well as the basis of the mutual information estimator of Kraskov et al. (2004), perhaps the most widely used estimator of mutual information in this setting. Despite the practical importance of these estimators, major theoretical questions regarding their finite-sample behavior remain open. This paper proves finite-sample bounds on the bias and variance of the KL estimator, showing that it achieves the minimax convergence rate for certain classes of smooth functions. In proving these bounds, we analyze finite-sample behavior of k-nearest neighbors (k-NN) distance statistics (on which the KL estimator is based). We derive concentration inequalities for k-NN distances and a general expectation bound for statistics of k-NN distances, which may be useful for other analyses of k-NN methods.

Motivation & Objective

  • To address open theoretical questions about the finite-sample behavior of the Kozachenko-Leonenko (KL) entropy estimator.
  • To derive rigorous finite-sample bounds on the bias and variance of the KL estimator under general distributional assumptions.
  • To develop concentration inequalities and moment bounds for k-NN distances applicable to broader k-NN methods.
  • To extend existing results by relaxing strong assumptions such as compact support and bounded density smoothness.
  • To provide theoretical foundations for the widely used KSG mutual information estimator and related functionals.

Proposed method

  • Analyzes k-NN distances in a general metric measure space with a base measure and probability density.
  • Derives concentration inequalities for k-NN distances using moment bounds and tail conditions on the density.
  • Establishes moment bounds for logarithmic k-NN distances, including negative moments critical for variance control.
  • Applies the Efron-Stein inequality and law of large numbers to bound the variance of the KL estimator.
  • Uses Hölder continuity of the density and dimensionality assumptions to derive bias bounds scaling with $ (k/n)^{\beta/D} $.
  • Combines bias and variance bounds to derive a mean squared error rate, optimizing over $ k $.

Experimental results

Research questions

  • RQ1What are the finite-sample bias and variance bounds for the KL entropy estimator under general smoothness and tail conditions?
  • RQ2How do k-NN distance statistics behave in non-compact or unbounded distributions, and what moment bounds apply?
  • RQ3Can concentration inequalities for k-NN distances be established without assuming compact support or bounded density?
  • RQ4Does the KL estimator achieve the minimax convergence rate for differential entropy estimation?
  • RQ5Can the theoretical framework be extended to mutual information and divergence estimators?

Key findings

  • The bias of the KL estimator is bounded by $ Oig((k/n)^{\beta/D}ig) $, where $ \beta $ is the Hölder continuity parameter and $ D $ is the intrinsic dimension.
  • The variance of the KL estimator is bounded by $ O(1/n) $, with a refined bound of $ O(1/nk) $ under geometric constraints on k-NN neighbor counts.
  • Moment bounds for logarithmic k-NN distances are established for general $ \ell $-th central moments, with exponential tail control via $ \ell! / \lambda^\ell $.
  • The mean squared error of the KL estimator achieves the minimax rate $ O\big((k/n)^{2\beta/D} + 1/nk\big) $, with optimal $ k \asymp n^{\max\{0, (2\beta - D)/(2\beta + D)\}} $.
  • The results hold for unbounded distributions under mild tail and density regularity conditions, relaxing prior assumptions of compact support.
  • The analysis provides a theoretical basis for the KSG mutual information estimator and generalizes to Rényi and Tsallis entropies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.