ASCL.net

Astrophysics Source Code Library

Making codes discoverable since 1999

ASCL Code Record

[ascl:1803.013] optBINS: Optimal Binning for histograms

optBINS (optimal binning) determines the optimal number of bins in a uniform bin-width histogram by deriving the posterior probability for the number of bins in a piecewise-constant density model after assigning a multinomial likelihood and a non-informative prior. The maximum of the posterior probability occurs at a point where the prior probability and the the joint likelihood are balanced. The interplay between these opposing factors effectively implements Occam's razor by selecting the most simple model that best describes the data.

Code site:
https://knuthlab.org/pmwiki.php/Products/Code
Described in:
https://ui.adsabs.harvard.edu/abs/2006physics...5197K
Bibcode:
2018ascl.soft03013K

Views: 4097

ascl:1803.013
Add this shield to your page
Copy the above HTML to add this shield to your code's website.