[{"type":"article-journal","title":"A Maximum-Entropy Method to Estimate Discrete Distributions from Samples Ensuring Nonzero Probabilities","issued":{"date-parts":[["2018"]]},"volume":"20","issue":"8","page":"Article: 601","container-title":"Entropy","DOI":"10.3390\/e20080601","author":[{"family":"Darscheid","given":"Paul"},{"family":"Guthke","given":"Anneli"},{"family":"Ehret","given":"Uwe"}],"ISSN":"1099-4300","abstract":"When constructing discrete (binned) distributions from samples of a data set, applications exist where it is desirable to assure that all bins of the sample distribution have nonzero probability. For example, if the sample distribution is part of a predictive model for which we require returning a response for the entire codomain, or if we use Kullback\u2013Leibler divergence to measure the (dis-)agreement of the sample distribution and the original distribution of the variable, which, in the described case, is inconveniently infinite. Several sample-based distribution estimators exist which assure nonzero bin probability, such as adding one counter to each zero-probability bin of the sample histogram, adding a small probability to the sample pdf, smoothing methods such as Kernel-density smoothing, or Bayesian approaches based on the Dirichlet and Multinomial distribution. Here, we suggest and test an approach based on the Clopper\u2013Pearson method, which makes use of the binominal distribution. Based on the sample distribution, confidence intervals for bin-occupation probability are calculated. The mean of each confidence interval is a strictly positive estimator of the true bin-occupation probability and is convergent with increasing sample size. For small samples, it converges towards a uniform distribution, i.e., the method effectively applies a maximum entropy approach. We apply this nonzero method and four alternative sample-based distribution estimators to a range of typical distributions (uniform, Dirac, normal, multimodal, and irregular) and measure the effect with Kullback\u2013Leibler divergence. While the performance of each method strongly depends on the distribution type it is applied to, on average, and especially for small sample sizes, the nonzero, the simple \u201cadd one counter\u201d, and the Bayesian Dirichlet-multinomial model show very similar behavior and perform best. We conclude that, when estimating distributions without an a priori idea of their shape, applying one of these methods is favorable.","keyword":"histogram; sample; discrete distribution; empty bin; zero probability; Clopper\u2013Pearson; maximum entropy approach","kit-publication-id":"1000085954"}]