Estimating the Shannon Entropy Using the Pitman--Yor Process
Takato Hashino, Koji Tsukuda
TL;DR
This work tackles estimating the Shannon entropy $H= -\sum_i p_i\log p_i$ when the true support $K$ is unknown and potentially large. It introduces a Pitman--Yor process–based estimator via a Dirichlet--Pitman--Yor mixture model to account for unseen species, enabling consistent entropy estimation in small-sample, high-dimensional settings. The methodology derives the MPY predictive distribution, develops data-driven hyperparameter selection using cross-entropy upper bounds and Good--Turing estimates, and proves consistency under regularly varying tails; it is complemented by simulations and real-data applications (tropical trees and 20 Newsgroups) showing improved bias correction and robustness. The approach provides a principled way to quantify diversity when $K$ is unknown and demonstrates practical impact for ecology and text analytics in challenging sampling regimes.
Abstract
The Shannon entropy is a fundamental measure for quantifying diversity and model complexity in fields such as information theory, ecology, and genetics. However, many existing studies assume that the number of species is known, an assumption that is often unrealistic in practice. In recent years, efforts have been made to relax this restriction. Motivated by these developments, this study proposes an entropy estimation method based on the Pitman--Yor process, a representative approach in Bayesian nonparametrics. By approximating the true distribution as an infinite-dimensional process, the proposed method enables stable estimation even when the number of observed species is smaller than the true number of species. This approach provides a principled way to deal with the uncertainty in species diversity and enhances the reliability and robustness of entropy-based diversity assessment. In addition, we investigate the convergence property of the Shannon entropy for regularly varying distributions and use this result to establish the consistency of the proposed estimator. Finally, we demonstrate the effectiveness of the proposed method through numerical experiments.
