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

Get uncertainties from Hist obejct #524

Open
anjabeck opened this issue Aug 14, 2023 · 1 comment
Open

Get uncertainties from Hist obejct #524

anjabeck opened this issue Aug 14, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@anjabeck
Copy link

anjabeck commented Aug 14, 2023

I would like to plot the residuals between a histogram and a function and could not find a (simple) way to get the uncertainties of the histogram.

I think this functionality is available in poisson_interval where poisson_interval(H.values()) returns the Poissonian uncertainties for the counts in Hist H if I understand correctly.

However it would be useful to have a method implemented for the Hist object that returns this uncertainty directly, something like

H.uncertainties(uncertainty_type="poisson")

And it would be particularly nice if a similarly simple syntax could return uncertainties for the density values returned by H.density().

EDIT: I found the variances() method which seems to return the uncertainties. It would be very useful if the words "uncertainty" or "error" appeared at least once in the documentation in relation to this method.

@henryiii
Copy link
Member

Improving the docs here would be great! A small discussion of how to compute different quantities of interest would be ideal. :)

@henryiii henryiii added the documentation Improvements or additions to documentation label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants