Optimal Data-Based Binning for Histograms
Abstract
Histograms are convenient non-parametric density estimators, which continue to be used ubiquitously. Summary quantities estimated from histogram-based probability density models depend on the choice of the number of bins. We introduce a straightforward data-based method of determining the optimal number of bins in a uniform bin-width histogram. By assigning a multinomial likelihood and a non-informative prior, we derive the posterior probability for the number of bins in a piecewise-constant density model given the data. In addition, we estimate the mean and standard deviations of the resulting bin heights, examine the effects of small sample sizes and digitized data, and demonstrate the application to multi-dimensional histograms.
- Publication:
-
arXiv e-prints
- Pub Date:
- May 2006
- DOI:
- 10.48550/arXiv.physics/0605197
- arXiv:
- arXiv:physics/0605197
- Bibcode:
- 2006physics...5197K
- Keywords:
-
- Physics - Data Analysis;
- Statistics and Probability;
- Mathematics - Probability;
- Mathematics - Statistics Theory;
- Physics - Computational Physics
- E-Print:
- 30 pages and 6 figures. Version 2 corrects an error involving comparisons to other techniques(see Discussion)