question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: add Knuth and Bayesian blocks binning methods to histogram

See original GitHub issue

The astropy package hast two very useful bin methods that could be added to histogram:

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
bsipoczcommented, May 22, 2022

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.

1reaction
madphysicistcommented, Feb 16, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found