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

Implement histogram representation #23

Closed
aimalz opened this issue Dec 2, 2016 · 7 comments
Closed

Implement histogram representation #23

aimalz opened this issue Dec 2, 2016 · 7 comments

Comments

@aimalz
Copy link
Owner

aimalz commented Dec 2, 2016

For the sake of comparing the quantile representation to more conventional representations, I should implement a PDF.histogram function. Similarly, I want be able to initialize a PDF object with any one of truth, quantiles, or histogram and then convert truth into both alternatives, quantize a histogram, and histogram quantiles. I'm not sure if this should be part of the Epic and/or ready before launch of the first version or if it can wait.

@aimalz aimalz self-assigned this Dec 2, 2016
@aimalz aimalz mentioned this issue Dec 2, 2016
@drphilmarshall
Copy link
Collaborator

drphilmarshall commented Dec 2, 2016 via email

@aimalz
Copy link
Owner Author

aimalz commented Dec 2, 2016

Good idea! I made #24 a separate issue for samples. I've already written code that samples from a histogram representation, so that won't be hard to implement.

@drphilmarshall
Copy link
Collaborator

drphilmarshall commented Dec 2, 2016 via email

@drphilmarshall
Copy link
Collaborator

OK! Histogram code is merged, and results can be seen here. Looks like evenly spaced histogram bins beats evenly spaced quantiles in the simplest possible test case: time to move to better spaced quantiles and more interesting test cases, I think!

@aimalz
Copy link
Owner Author

aimalz commented Dec 7, 2016

I think quantiles are really going to shine when there's small-scale structure. I want to extend the code to take more non-trivial truth functions, but that's a pretty major change requiring additional infrastructure, so I don't think I can do it by the version 1.0 launch date.

@drphilmarshall
Copy link
Collaborator

drphilmarshall commented Dec 8, 2016 via email

@aimalz
Copy link
Owner Author

aimalz commented Dec 8, 2016

Excellent point! I've addressed non-uniform quantile spacing in #38.

Re: non-trivial truth functions, starting with mixtures of supported scipy.stats.rv_continuous objects seems extremely reasonable.

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

No branches or pull requests

2 participants