Lably
Skip to content

Approximation error

Mathematical concept

  • 11 min read
  • 6 chapters
  • 6 labs on Lably

Learn it on Lably

An approximation error can manifest due to a multitude of diverse reasons. Prominent among these are limitations related to computing machine precision, where digital systems cannot represent all real numbers with perfect accuracy, leading to unavoidable truncation or rounding. Another common source is inherent measurement error, stemming from the practical limitations of instruments, environmental factors, or observational processes (for instance, if the actual length of a piece of paper is precisely 4.53 cm, but the measuring ruler only permits an estimation to the nearest 0.1 cm, this constraint could lead to a recorded measurement of 4.5 cm, thereby introducing an error).

In the mathematical field of numerical analysis, the crucial concept of numerical stability associated with an algorithm serves to indicate the extent to which initial errors or perturbations present in the input data of the algorithm are likely to propagate and potentially amplify into substantial errors in the final output. Algorithms that are characterized as numerically stable are robust in the sense that they do not yield a significantly magnified error in their output even when the input is slightly malformed or contains minor inaccuracies; conversely, numerically unstable algorithms may exhibit dramatic error growth from small input changes, rendering their results unreliable.

Formal definition

Given some true or exact value v, we formally state that an approximation vapprox estimates or represents v where the magnitude of the absolute error is bounded by a positive value ε (i.e., ε>0), if the following inequality holds:

|v−vapprox|≤ε

where the vertical bars, | |, unambiguously denote the absolute value of the difference between the true value v and its approximation vapprox. This mathematical operation signifies the magnitude of the error, irrespective of whether the approximation is an overestimate or an underestimate.

Similarly, we state that vapprox approximates the value v where the magnitude of the relative error is bounded by a positive value η (i.e., η>0), provided v is not zero (v ≠ 0), if the subsequent inequality is satisfied:

|v−vapprox|≤η⋅|v|.

This definition ensures that η acts as an upper bound on the ratio of the absolute error to the magnitude of the true value. If v ≠ 0, then the actual relative error, often also denoted by η in context (representing the calculated value rather than a bound), is precisely calculated as:

η=|v−vapprox||v|=|v−vapproxv|=|1−vapproxv|.

Note that the first term in the equation above implicitly defines `ε` as `|v-v_approx|` if `η` is `ε/|v|`.

The percent error, often denoted as δ, is a common and intuitive way of expressing the relative error, effectively scaling the relative error value to a percentage for easier interpretation and comparison across different contexts:

δ=100%×η=100%×|v−vapproxv|.

An error bound rigorously defines an established upper limit on either the relative or the absolute magnitude of an approximation error. Such a bound thereby provides a formal guarantee on the maximum possible deviation of the approximation from the true value, which is critical in applications requiring known levels of precision.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Topics in mathematics