Editing 2295: Garbage Math

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 24: Line 24:
 
|-
 
|-
 
|Precise number × Precise number = Slightly less precise number
 
|Precise number × Precise number = Slightly less precise number
|<math>\mathop\sigma(X\times Y)\cong</math><br><br><math>\sqrt{\mathop\sigma(X)\times Y^2+\mathop\sigma(Y)\times X^2}</math>
+
|<math>\mathop\sigma(X\times Y)\approx</math><br><br><math>\sqrt{\mathop\sigma(X)\times Y^2+\mathop\sigma(Y)\times X^2}</math>
 
|Here, instead of absolute error, relative error will be added. For example, if our precise numbers are 1 (±10<sup>-6</sup>) and 1 (±10<sup>-6</sup>), then our product is 1 (±2·10<sup>-6</sup>).
 
|Here, instead of absolute error, relative error will be added. For example, if our precise numbers are 1 (±10<sup>-6</sup>) and 1 (±10<sup>-6</sup>), then our product is 1 (±2·10<sup>-6</sup>).
 
|-
 
|-
Line 32: Line 32:
 
|-
 
|-
 
|Precise number × Garbage = Garbage
 
|Precise number × Garbage = Garbage
|<math>\mathop\sigma(X\times Y)\cong</math><br><br><math>\sqrt{\mathop\sigma(X)\times Y^2+\mathop\sigma(Y)\times X^2}</math>
+
|<math>\mathop\sigma(X\times Y)\approx</math><br><br><math>\sqrt{\mathop\sigma(X)\times Y^2+\mathop\sigma(Y)\times X^2}</math>
 
|Likewise, if one of the numbers has a high relative error, then this error will be propagated to the product. Here, this is independent of the sizes of the numbers.
 
|Likewise, if one of the numbers has a high relative error, then this error will be propagated to the product. Here, this is independent of the sizes of the numbers.
 
|-
 
|-
 
|√<span style="border-top:1px solid; padding:0 0.1em;">Garbage</span> = Less bad garbage
 
|√<span style="border-top:1px solid; padding:0 0.1em;">Garbage</span> = Less bad garbage
|<math>\mathop\sigma(\sqrt X)\cong\frac{\mathop\sigma(X)}{2\times\sqrt X} </math>
+
|<math>\mathop\sigma(\sqrt X)\approx\frac{\mathop\sigma(X)}{2\times\sqrt X} </math>
 
| When the square root of a number is computed, its relative error will be halved. Depending on the application, this might not be all that much ''better'', but it's at least ''less bad''.
 
| When the square root of a number is computed, its relative error will be halved. Depending on the application, this might not be all that much ''better'', but it's at least ''less bad''.
 
|-
 
|-
 
|Garbage<sup>2</sup> = Worse garbage
 
|Garbage<sup>2</sup> = Worse garbage
|<math>\mathop\sigma(X^2)\cong2\times X\times\mathop\sigma(X)</math>
+
|<math>\mathop\sigma(X^2)\approx2\times X\times\mathop\sigma(X)</math>
 
|Likewise, when a number is squared, its relative error will be doubled. This is a corollary to multiplication adding relative errors.
 
|Likewise, when a number is squared, its relative error will be doubled. This is a corollary to multiplication adding relative errors.
 
|-
 
|-
Line 48: Line 48:
 
|-
 
|-
 
|Precise number<sup>Garbage</sup> = Much worse garbage
 
|Precise number<sup>Garbage</sup> = Much worse garbage
|<math>\mathop\sigma(b^X)\cong|b^X|\times\mathop{\mathrm{ln}}b\times\sigma(X)</math>
+
|<math>\mathop\sigma(b^X)\approx|b^X|\times\mathop{\mathrm{ln}}b\times\sigma(X)</math>
 
|The exponent is very sensitive to changes, which may also magnify the effect based on the magnitude of the precise number.
 
|The exponent is very sensitive to changes, which may also magnify the effect based on the magnitude of the precise number.
 
|-
 
|-
Line 56: Line 56:
 
|-
 
|-
 
|<math>\frac{\text{Precise number}}{\text{Garbage}-\text{Garbage}}</math> = Much worse garbage, possible division by zero
 
|<math>\frac{\text{Precise number}}{\text{Garbage}-\text{Garbage}}</math> = Much worse garbage, possible division by zero
|<math>\mathop\sigma\left(\frac{a}{X-Y}\right)\cong</math><br><br><math>\frac {|a|}{(X-Y)^2}\times\sqrt{\mathop\sigma(X)^2+\mathop\sigma(Y)^2}</math>{{fact}}
+
|<math>\mathop\sigma\left(\frac{a}{X-Y}\right)\approx</math><br><br><math>\frac {|a|}{(X-Y)^2}\times\sqrt{\mathop\sigma(X)^2+\mathop\sigma(Y)^2}</math>{{fact}}
 
|Indeed, as with above, if error bars overlap then we might end up dividing by zero.
 
|Indeed, as with above, if error bars overlap then we might end up dividing by zero.
 
|-
 
|-

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)