I Error analysis: simple but confusing matter

AI Thread Summary
The discussion revolves around the complexities of error analysis and significant figures in mathematical expressions. It highlights the confusion arising from different methods of calculating errors in expressions like L = 2x versus L = x + x, emphasizing that the correlation of errors in multiple terms affects the accuracy. The conversation points out that standard error formulas assume uncorrelated variables, which can lead to discrepancies in error calculations. Participants suggest that understanding these relationships is crucial for applying rules of thumb correctly. Overall, the thread underscores the importance of considering error correlation when analyzing mathematical expressions.
haushofer
Science Advisor
Insights Author
Messages
3,045
Reaction score
1,579
TL;DR Summary
Two rules give different answers for same expression
Dear all,

We learn students to work with significant figures. I guess we all know those rules of thumb. Now imagine I have an expression like L = 2x, where x is a length a the 2 is an amount, i.e. the value of a discrete 'function'. If x=0,72 m (2 significant figures), then L = 1,44 --> 1,4 (2 significant figures); we view the 2 as exact.

But if I write L=x+x, then L = 0,72+0,72=1,44, and I use the rule of thumb that I look at the same amount of decimals. What exactly is the origin of these contradicting accuracies?

Within error analysis, I can define a function z=f(x,y) and calculate the error dz as a function of dx and dy,

<br /> dz = \sqrt{(\frac{\partial f}{\partial x} dx)^2 + (\frac{\partial f}{\partial y}dy)^2 }<br />

If z(x,y) = x+y, then

<br /> dz = \sqrt{(dx)^2 + (dy)^2}<br />

and if z(x,y)=x*y, then

<br /> dz = |x*y|\sqrt{(\frac{dx}{x})^2 + (\frac{dy}{y})^2}<br />

If I take y=x in z(x,y) = x+y, I obtain z=x+x and hence

<br /> dz = \sqrt{2}|dx|<br />

while if I take y=2 (dy=0) in z(x,y) = x*y, I obtain z=2x and hence

<br /> dz = 2|dx| &gt; \sqrt{2}|dx|<br />

Do these two different errors for the same mathematical expression make sense? Does it have it have to do something with different meanings to the expressions z=2x and z=x+x and errors canceling each other out such that the first error is smaller than the second? And is the answer to this question also the answer for my first question about significant numbers and those rules of thumb? Any references to this? Many thanks! :)
 
  • Like
Likes kith, Stephen Tashi and etotheipi
Physics news on Phys.org
haushofer said:
But if I write L=x+x
The problem with this is that the error in the first x is perfectly correlated with the error in the second x.

haushofer said:
Within error analysis, I can define a function z=f(x,y) and calculate the error dz as a function of dx and dy,
You forgot to include the terms for the covariance.

haushofer said:
What exactly is the origin of these contradicting accuracies?
In the expressions you used it is important that the errors in the different terms be uncorrelated. In ##y=2x## there is a single term so there is no issue. But in your other equations there are multiple terms and the usual formulas you mentioned only work if the covariance is zero.
 
  • Like
Likes kith, haushofer, vanhees71 and 1 other person
I think @Dale is right, in my notes I have the more general formula, for a function of two variables ##z = f(x,y)##,$$s_z^2 = \left( \frac{\partial z}{\partial x} \right)^2 s_x^2 + \left( \frac{\partial z}{\partial y} \right)^2 s_y^2 + 2 \frac{\partial z}{\partial x} \frac{\partial z}{\partial y} s_{xy}$$
 
  • Like
Likes haushofer, Dale and vanhees71
Yes, this sounds right. Indeed, the derivation of the error formules assumes no dependence/correlation between the variables.

A nice example of how careful one needs to be with those tules of thumb. Thanks guys!
 
  • Like
Likes etotheipi, vanhees71 and Dale
Thread 'Question about pressure of a liquid'
I am looking at pressure in liquids and I am testing my idea. The vertical tube is 100m, the contraption is filled with water. The vertical tube is very thin(maybe 1mm^2 cross section). The area of the base is ~100m^2. Will he top half be launched in the air if suddenly it cracked?- assuming its light enough. I want to test my idea that if I had a thin long ruber tube that I lifted up, then the pressure at "red lines" will be high and that the $force = pressure * area$ would be massive...
I feel it should be solvable we just need to find a perfect pattern, and there will be a general pattern since the forces acting are based on a single function, so..... you can't actually say it is unsolvable right? Cause imaging 3 bodies actually existed somwhere in this universe then nature isn't gonna wait till we predict it! And yea I have checked in many places that tiny changes cause large changes so it becomes chaos........ but still I just can't accept that it is impossible to solve...
Back
Top