Talk:Numeric error propagation: Difference between revisions

m
m (Yes, but)
 
(3 intermediate revisions by 2 users not shown)
Line 56:
 
:Yes, but this is at least in part a bug in the implementation of multiplicative uncertainty. See also: [[Talk:Numeric_error_propagation#What_about_correlations.3F|What about correlations?]] and [[Talk:Numeric_error_propagation#Not_sure_how_to_do_this|Not sure how to do this]]. Since this question is so easy to ask, I am going to explicitly address it in the task description. --[[User:Rdm|Rdm]] 10:38, 18 August 2011 (UTC)
:Indeed it's a correlation issue again. Suppose <math>a = a_0 + \epsilon_a</math>, where <math>\epsilon_a</math> is a random variable with mean 0 and stddev <math>\sigma</math>; similiarly <math>b = a_0 + \epsilon_b</math>, then <math>a\times b = a_0^2 + (\epsilon_a + \epsilon_b) a_0 + O(\epsilon^2)</math>, whose standard deviation is the new error. If <math>\epsilon_a</math> and <math>\epsilon_b</math> are independent but with same stddev, then the <math>\epsilon</math>s are added by RMS and error is <math>\sqrt{2}a_0\sigma</math> (= 282); if they are the same variable (correlation = 1) such as in the case of <math>a^2</math>, <math>\epsilon</math>s are directly added and error is <math>2a_0\sigma</math> (400). As a side note, the <math>O(\epsilon^2)</math> will introduce a bias to the mean of the result, which is normally small and ignored.
:It's more work to keep track what's correlated with what, so for this task you can always assume the error terms are independent. If errors are small compared to mean, this is often acceptible. --[[User:Ledrug|Ledrug]] 00:11, 19 August 2011 (UTC)
 
== Wrong values used in demonstration ==
 
I have just fixed the Java entry, which had been tagged as incorrect 2 months ago. The problem was, that the demonstration code swapped the values for x2 and y1. Unfortunately this gives the same distance (111.80) and only a slightly different error value, i. e. 2.94 instead of 2.48.
Several other languages have also swapped x2 and y1 in their demonstration with respect to the values given in the task details. As of today the implementations/demonstrations of the following languages still suffer from this: C++, D, <s>Java,</s> Kotlin, Scala. --[[User:PKai|pKai]] ([[User talk:PKai|talk]]) 21:08, 19 August 2016 (UTC)<br/>
Fixed Kotlin, too. But I have not installed the other languages, and I won't do any fixes, if I can't test it. --[[User:PKai|pKai]] ([[User talk:PKai|talk]]) 21:21, 19 August 2016 (UTC)
Anonymous user