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

fix kde scaling #582

Merged
merged 3 commits into from
Feb 6, 2019
Merged

fix kde scaling #582

merged 3 commits into from
Feb 6, 2019

Conversation

aloctavodia
Copy link
Contributor

This fixes #581. Also add tests and add xmin and xmax arguments to _fast_kde. After internal discussion we decided not to add xmin-xmax arguments to plot_kde.

@ahartikainen
Copy link
Contributor

LGTM

@ahartikainen
Copy link
Contributor

I tested this with locally, and everything looks ok. The integral is maybe 1% off from the 1, but given that there are much bigger uncertainties in KDE estimation than that error and we are not even suggesting that there is no probability mass outside the estimated area,

I will merge this in.

@ahartikainen ahartikainen merged commit bca224f into master Feb 6, 2019
@aloctavodia aloctavodia deleted the bugfix/kde_scaling branch February 6, 2019 20:05
Ban-zee pushed a commit to Ban-zee/arviz that referenced this pull request Feb 9, 2019
* manual limits for kde

* fix norm constant, check limits, add tests

* remove xmin, xmax args from plot_kde
@ColCarroll ColCarroll mentioned this pull request Feb 22, 2019
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

Successfully merging this pull request may close these issues.

KDE plot produces strange results
2 participants