-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Dealing with two errors #16
Comments
Thank you! I am glad that my package is being put to good use! Since your two kinds of errors are completely uncorrelated, you can simply do:
or more concisely:
The main idea is that the errors are independent random variables with average value 0: you just create two independent random variables with Multiple measurements can even share the same statistical or systematic error, in which case their uncertainties will automatically be correlated by the |
I'm going to interject here with some extra thoughts. lebigot, you wrote that these errors are "independent random variables with average value 0" -- which I think is a key distinction from the situation that's being asked about here. Statistical error will be "independent random variables with average value of 0" -- while systematic errors are NOT, in general, correctly described in that way. Specifically, one of the nastier features is that they can have an average value != 0. So, to address the initial question -- you are right to address them separately, as the correct way of handling any particular systematic error depends very much on the particulars of the situation. Although I don't have any clever ideas on how to handle this situation within the |
True. I was just interpreting the initial post as meaning that there was a value 1 plus two errors centered in 0. The
|
Ok, my question was more how to propagate them keeping them separated. So that when adding, multiplying etc. two numbers i get the correct propagation for the two errors separately. Talking to some colleagues I got the suggestion to do like this:
where quad is a simple function to sum in quadrature |
That's almost perfect. :) Note that it would be more robust and faster to have the non-systematic uncertainty be calculated as This is a very good use of the PS: I added details in the documentation about the possibility of using the same tag for different variables. Thank you for your input! Here is the page: http://pythonhosted.org/uncertainties/user_guide.html#access-to-the-individual-sources-of-uncertainty |
That is a very slick implementation! I suspect I'll be using this in the very near future myself. |
Dear lebigot,
first of all let me thank you for such an awesome package.
I have a question: I am dealing with numbers that have TWO errors, one is statistical, the other is the so called "systematic" and is considered good practice to deal with them separately.
Something like:
1.0 +/- 0.1 +/- 0.05
The two errors are considered to be totally uncorrelated.
Do you have any suggestion on how to treat this problem with your package?
I tried looking up in the documentation but I could not find anything useful
Thank you
The text was updated successfully, but these errors were encountered: