Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options for smoothing histograms #28

Open
DamienIrving opened this issue Oct 30, 2015 · 2 comments
Open

Options for smoothing histograms #28

DamienIrving opened this issue Oct 30, 2015 · 2 comments

Comments

@DamienIrving
Copy link
Owner

Python libraries for calculating your own kernel density estimate:
http://stackoverflow.com/questions/33274506/kernel-density-estimation-in-seaborn-for-cyclic-end-points

@DamienIrving
Copy link
Owner Author

@DamienIrving
Copy link
Owner Author

DamienIrving commented Jan 23, 2017

A problem with the pre-existing KDE packages is that they don't let you specify weights like the numpy.histogram function does. (This is especially problematic when you need to weight by volume.) This post describes the problem:
http://blog.technariumas.lt/post/111695107866/weighted-kde-in-python

The people who develop these packages seem to be aware of the problem (e.g. see this issue), but at the moment there's a work around that someone has written:
http://nbviewer.jupyter.org/gist/tillahoffmann/f844bce2ec264c1c8cb5
http://stackoverflow.com/questions/27623919/weighted-gaussian-kernel-density-estimation-in-python

(The other solution suggested in the Stack Overflow post is PyQT-Fit, however the code hasn't been updated for 2 years and when I pip installed it I got error upon importing it.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant