-
Hello, how can one practically interpret the result of a calculation with uncertainties? I sometimes struggle to understand the results. Assuming a simple case of from uncertainties import ufloat as uf
a = uf(5, 2)
b = uf(3, 1)
a + b
Out[64]: 8.0+/-2.23606797749979 So this obviously corresponds to the linear expansion and resulting Out[64]: 8.0+/-3 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
As pointed out in the documentation of this package, the type of probability distribution of the uncertain variable doesn't matter when looking at (linear) error propagation and uncertainty budgets, as these are all just defined in terms of standard deviation/uncertainty. That being said, the typical practical interpretation of standard deviation would be to define a level of confidence based on its value. E.g. for a normally distributed value, you can assume that with a ~68% probability, your value will fall within the range defined by +- std. However, this is only exactly true for a normal distribution and your level of confidence could vary otherwise. Taking your above example, the result of If you want to maintain the information about the kind of distribution within the variable, you can have a look at the metrolopy package which also defines variables with uncertainties but also uses Monte-Carlo methods and convolved probability distributions. However, in many practical cases the assumption of a normal distribution is absolutely valid, especially if you have >3 uncertainty variables that contribute the combined uncertainty, even if all of them are uniformly distributed. I have taken most of this from the Guide to the expression of uncertainty in measurement (GUM), of which I would also welcome anyone of the maintainers to correct me if I am spreading half-truths here, since I am also 100% self-taught when it comes to uncertainty calculations. |
Beta Was this translation helpful? Give feedback.
-
This is correct. I would add two points:
Now, to go back to the original question, it is not true that |
Beta Was this translation helpful? Give feedback.
This is correct.
I would add two points:
uncertainties
doesn't do Monte-Carlo calculations (they are slow).Now, to go back to…