optBINS: Optimal Binning for histograms

Discussion topics for individual codes
Post Reply
Ada Coda
ASCL Robot
Posts: 1839
Joined: Thu May 08, 2014 5:37 am

optBINS: Optimal Binning for histograms

Post by Ada Coda » Sun Apr 01, 2018 3:21 am

optBINS: Optimal Binning for histograms

Abstract: 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.

Credit: Knuth, Kevin H.

Site: http://knuthlab.org/pmwiki.php/Products/Code

Bibcode: 2018ascl.soft03013K

Preferred citation method: http://adsabs.harvard.edu/abs/2006physics...5197K

ID: ascl:1803.013
Last edited by Ada Coda on Sun Jul 05, 2020 6:18 pm, edited 1 time in total.
Reason: Updated code entry.

Post Reply