Request: add Knuth and Bayesian blocks binning methods to histogram
See original GitHub issueThe astropy package hast two very useful bin methods that could be added to histogram
:
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Feature Binning using Bayesian Blocks - Kaggle
Feature binning is a method of turning continuous variables into categorical variables. This is accomplished by grouping the values into a pre-defined number...
Read more >Dynamic Programming in Python: Bayesian Blocks
The paper discusses a framework called Bayesian Blocks, which is essentially a method of creating histograms with bin sizes that adapt to ...
Read more >Bayesian Blocks for Histograms — astroML 1.0 documentation
Bayesian Blocks is a dynamic histogramming method which optimizes one of several possible fitness functions to determine an optimal binning for data, ...
Read more >Optimal data-based binning for histograms and ... - knuthlab
We introduce a straightforward data-based method of determining the optimal number of bins in a uniform bin-width histogram. By assigning a ...
Read more >Bayesian Blocks in High Energy Physics: Better Binning made ...
Knuth's Rule Knuth (2006) takes the structure of the distribution into account but uses bins of fixed width. The Bayesian Block algorithm, in ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is clear consensus above that these don’t belong to numpy ,so I’m going to close this issue. If there is a notion that these would be a net benefit to scipy (most bugs got already smoked out of them while the code was in astroML and then in astropy), and if there is a want for it, then I’m happy to do the upstreaming myself as I have some familiarity with the code itself.
I think this would be fine for scipy, especially since the building blocks are already there, but I will defer to people with actual experience in the matter.
While we are all gathered here, I would like to ask if there is any interest in Wand’s estimator. It is supposedly as good as you can get in terms of MISE: http://www.stat.cmu.edu/~rnugent/PCMI2016/papers/WandBinWidth.pdf, found via http://stats.stackexchange.com/a/55205/102011. The implementation I am thinking of would have an additional order parameter that would have a default value.