TL;DR
Estimating the entropy of a dataset is notoriously difficult when you haven't observed all the possible items (the "under-sampled regime"). This paper introduces the Pitman-Yor Mixture (PYM) estimator, a novel Bayesian approach that accurately estimates entropy for data with unknown or infinite alphabet sizes—and heavy-tailed distributions—by using a mixture of non-parametric priors to create a flat, uninformative prior over the entropy itself.
What Problem Does This Paper Address?
Shannon’s discrete entropy is a fundamental metric used across fields—from measuring neural information capacity in neuroscience to quantifying species diversity in ecology. However, estimating entropy from real-world data is incredibly tricky in the under-sampled regime. This is the scenario where the number of unique symbols you observe is tiny compared to the total number of possible symbols (which might be unknown or even infinite).
If you just calculate the probabilities based on observed frequencies and plug them into the entropy formula (the "plugin" or maximum likelihood estimator), you get a severely biased underestimate. Existing Bayesian solutions, like the popular Nemenman-Shafee-Bialek (NSB) estimator, fix this bias but require you to know the exact size of the "alphabet" (the total number of possible symbols) beforehand. For things like undiscovered species or complex neural spike patterns, knowing the alphabet size is impossible. This paper seeks to create an entropy estimator that doesn't require a known alphabet size and can handle the heavy-tailed distributions commonly found in nature.
Methods
The authors turn to Bayesian non-parametrics, specifically the Dirichlet Process (DP) and the Pitman-Yor Process (PYP). These are stochastic processes that act as priors over the space of countably infinite discrete distributions. The PYP is particularly useful because it can model power-law tails (where rare events happen more often than a standard bell curve would predict), which are ubiquitous in natural data like language and neural activity.
However, the authors identify a major trap: if you use a PYP with fixed parameters, it inadvertently imposes a very narrow, highly opinionated prior distribution over the entropy. To fix this, they introduce the Pitman-Yor Mixture (PYM) prior.
Instead of picking fixed parameters for the PYP, they mix over a range of parameters. By carefully choosing this mixing distribution, they mathematically flatten the implied prior over entropy. To make this computationally tractable, they leverage a mathematical property of PYPs called "invariance under size-biased sampling" to derive exact, closed-form analytical formulas for the posterior mean and variance. They also use a compressed "multiplicities" data structure (a histogram of histograms) to drastically speed up the numerical integration.
Datasets
The authors evaluated their estimator on both simulated and real-world datasets:
- Simulated Data: Stick-breaking distributions (Poisson-Dirichlet), power-law distributions, and finite support distributions (uniform, Poisson, and truncated $1/n$).
- Real Data 1 (Language): Word frequencies from Herman Melville’s novel Moby Dick, which exhibits classic heavy-tailed, power-law behavior.
- Real Data 2 (Neuroscience): Neural spike patterns from 27 simultaneously recorded retinal ganglion cells from a macaque monkey.
Key Insights and Ideas
- Fixed priors are secretly opinionated: In infinite-dimensional spaces, seemingly standard, fixed priors (like a standard Dirichlet or PYP) actually encode massive, unwarranted confidence about single statistics like entropy. You might think you are being objective, but the math is forcing a specific entropy value.
- Power-laws matter for entropy: Natural data is full of heavy tails. Standard Dirichlet processes (which have exponential tails) fail to capture this, leading to poor entropy estimates. The PYP's "discount parameter" allows it to model these heavy tails gracefully.
- Agnosticism is a virtue: By assuming a countably infinite alphabet, the PYM model frees the researcher from having to guess the maximum possible number of symbols. It lets the data dictate the effective support of the distribution.
Key Results
- Superior Performance: The PYM estimator (and its DP variant, DPM) consistently outperformed standard estimators (like the plugin and Miller-Maddow methods) and performed competitively with state-of-the-art estimators in the under-sampled regime.
- Handles Heavy Tails: On the Moby Dick dataset, which is notoriously difficult due to its heavy tail of rare words, PYM provided much closer estimates to the true asymptotic entropy than competing methods, which suffered from severe downward bias.
- Theoretical Guarantees: The authors mathematically prove that the PYM estimator is consistent for a broad class of distributions—meaning that as your sample size approaches infinity, the estimator is guaranteed to converge to the true entropy.
- Fast Computation: Thanks to the analytical derivations and the "multiplicities" data representation, the estimator is highly efficient. Computing the entropy for $10^5$ samples takes only about 0.1 seconds.
Limitations and Future Work
- Overconfidence on complex data: The authors note that for highly complex real-world data (like Moby Dick), the PYM estimator can sometimes become overly confident as the dataset grows, producing credible intervals (error bars) that are slightly too narrow to capture the true value.
- Future Directions: The authors suggest that future work could explore better ways to set the prior on the tail behavior of the distribution. They also propose combining the PYM approach with more structured, domain-specific priors (e.g., taking into account the specific physics of a neural circuit) and theoretically investigating the exact rates of convergence.
Summary updated