Content deleted Content added
m fix typo |
Owen Reich (talk | contribs) Link suggestions feature: 3 links added. |
||
(8 intermediate revisions by 7 users not shown) | |||
Line 1:
{{Short description|Mathematical concept}}
{{redirect-distinguish|Absolute error|Absolute deviation}}
{{redirect-distinguish|Relative error|Relative change}}
{{broader|Approximation}}
[[File:E^x with linear approximation.png|thumb|Graph of <math>f(x) = e^x</math> (blue) with its linear approximation <math>P_1(x) = 1 + x</math> (red) at a = 0. The approximation error,
The '''approximation error''' in a given data value
An approximation error can
In the [[mathematics|mathematical]] field of [[numerical analysis]], the crucial concept of [[numerical stability]]
==Formal definition==
Given some true or exact value ''v'', we
:<math>|v-v_\text{approx}| \leq \varepsilon</math>
where the vertical bars, | |, unambiguously denote the [[absolute value]] of the difference between the true value ''v'' and its approximation ''v''<sub>approx</sub>. This mathematical operation signifies the magnitude of the error, irrespective of whether the approximation is an overestimate or an underestimate.
:<math> \eta = \frac{|v-v_\
= \left| \frac{v-v_\text{approx}}{v} \right|
= \left| 1 - \frac{v_\text{approx}}{v} \right|
</math>.
Note that the first term in the equation above implicitly defines `ε` as `|v-v_approx|` if `η` is `ε/|v|`.
The '''percent error''',
:<math>\delta = 100\%\times\eta = 100\%\times\left| \frac{v-v_\text{approx}}{v} \right|.</math>
An '''error bound'''
==Examples==
{{Diophantine_approximation_graph.svg}}
The utility of relative error
There are two crucial features or caveats associated with the interpretation and application of relative error that should always be kept in mind.
== Comparison ==
When comparing the behavior and intrinsic characteristics of these two fundamental error types, it is important to recognize their differing sensitivities to common arithmetic operations. Specifically, statements and conclusions made about ''relative errors'' are notably sensitive to the addition of a non-zero constant to the underlying true and approximated values, as such an addition alters the base value against which the error is relativized, thereby changing the ratio. However, relative errors remain unaffected by the multiplication of both the true and approximated values by the same non-zero constant, because this constant would appear in both the numerator (of the absolute error) and the denominator (the true value) of the relative error calculation, and would consequently cancel out, leaving the relative error unchanged. Conversely, for ''absolute errors'', the opposite relationship holds true: absolute errors are directly sensitive to the multiplication of the underlying values by a constant (as this scales the magnitude of the difference itself), but they are largely insensitive to the addition of a constant to these values (since adding the same constant to both the true value and its approximation does not change the difference between them: (''v''+c) − (''v''<sub>approx</sub>+c) = ''v'' − ''v''<sub>approx</sub>).<ref name=":02">{{Cite Geometric Algorithms and Combinatorial Optimization}}</ref>{{Rp|page=34}}
== Polynomial-time approximation of real numbers ==
The reverse implication, namely that polynomial computability with absolute error implies polynomial computability with relative error, is
An algorithm that, for every given rational number ''η'' > 0, successfully computes a rational number ''v''<sub>approx</sub> that approximates ''v'' with a relative error no greater than ''η'', and critically, does so in a time complexity that is polynomial in both the size of the input and in the reciprocal of the relative error, 1/''η'' (rather than being polynomial merely in log(1/''η''), which typically allows for faster computation when ''η'' is extremely small), is
==Instruments==
In the context of most indicating measurement instruments, such as analog or digital voltmeters, pressure gauges, and thermometers, the specified accuracy is frequently guaranteed
== Generalizations ==
{{Expand section|date=April 2023}}
The fundamental definitions of absolute and relative error, as presented primarily for scalar (one-dimensional) values, can be naturally and rigorously extended to more complex scenarios where the
</ref>
|