Calculating error of a multi-varialbe function

  • Context: Graduate 
  • Thread starter Thread starter hkBattousai
  • Start date Start date
  • Tags Tags
    Error Function
Click For Summary

Discussion Overview

The discussion revolves around calculating the error of a multi-variable function, specifically how to express the error in terms of the individual errors associated with each variable. The scope includes theoretical aspects of error propagation in mathematical functions.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant asks how to calculate the error of a function defined with multiple variables, given the errors associated with each variable.
  • Another participant notes that the calculation depends on the functional form of the function and any dependencies among the variables.
  • A follow-up question seeks clarification on what these dependencies entail and requests a general formula for specific cases involving power and division operations.
  • A participant provides a formula for error propagation using partial derivatives, illustrating how to calculate the error in terms of the errors of the individual variables.
  • Examples are given for specific functions, demonstrating how to derive the error for products and ratios of variables, along with a rule of thumb regarding the addition and multiplication of errors.

Areas of Agreement / Disagreement

Participants generally agree on the importance of the functional form and dependencies in calculating errors, but the discussion includes multiple approaches and examples without a consensus on a single method or formula.

Contextual Notes

Limitations include the approximation involved in using derivatives for error estimation and the need for specific functional forms to apply the provided formulas accurately.

hkBattousai
Messages
64
Reaction score
0
I have a function defined as:

y = f(x1, x2, x3,... , xn)

xi has an error of ei, where 1 <= i <= n.

How can I calculate the error of y in terms of e1,...,en?
 
Physics news on Phys.org
It depends explicitly on the functional form of f as well as any dependencies among the Xi.
 
mathman said:
It depends explicitly on the functional form of f as well as any dependencies among the Xi.

So what is this dependancy, is there a general formula?

For instance, how do you calculate,
p = v . i (errors: ep, ev and ei)
R = v / i (errors: eR, ev and ei)
errors of "p" and "R"?
 
If the errors in x1, x2, ..., xn are e1, e2, ..., en, respectively, then the error in f(x1, x2, ..., xn) is [itex]E(f)= \frac{\partial f}{\partial x_1}e_1+ \frac{\partial f}{\partial x_2}e_2+ \cdot\cdot\cdot\frac{\partial f}{\partial x_n}e_n[/itex], approximately. (Approximately because we are using the derivative rather than the actual difference- but that will give a good upper bound on the possible error.)

In particular, if O(x,y)= x+ y then [itex]e_o= 1(e_x)+ 1(e_y)= e_x+ e_y[/itex], if P(v, i)= vi, then [itex]e_p= i e_v+ v e_i[/itex] and if P(v, i)= v/i= vi-1, then [itex]e_R= i^{-1} e_v- vi^{-2}e_i[/itex]

Notice that
[tex]\frac{e_P}{P}= \frac{i}{vi}e_v+ \frac{v}{vi} e_i= \frac{e_v}{v}+ \frac{e_i}{i}[/tex]
and
[tex]\frac{e_R}{R}= \frac{e_v}{v}- \frac{e_i}{i}[/tex]

illustrating an old mechanics "rule of thumb": if measurements are added, their errors add and if errors are multiplied, their relative errors add.
 
Last edited by a moderator:
Those are some great formulas, thank you very much.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
3
Views
2K
Replies
6
Views
2K