1 Errors And Approximations

Numerical Methods · Unit 1

Errors and Approximations

Exam-focused notes for Errors and Approximations (Numerical Methods, BIT203): what the TU syllabus asks and how it has actually been tested, with 2 solved past questions from this unit.

Errors and Approximations in short

Numerical methods give approximate answers, so every result carries some error. This chapter explains how errors are measured, where they come from, and how they affect a calculation.

Errors and Approximations: notes

True error and relative error definitions

The true value is the exact answer. The approximate value is what we get from a method or a calculator.

The true error is the difference between the true value and the approximate value.

$$E_t = \text{true value} - \text{approximate value}$$

The absolute error is $|E_t|$. It ignores the sign. The relative error compares the error with the size of the true value.

$$\varepsilon_t = \frac{\text{true error}}{\text{true value}}, \qquad \text{percentage relative error} = \frac{|E_t|}{|\text{true value}|} \times 100%$$

Example. Take $\pi = 3.14159265$ and the approximation $22/7 = 3.14285714$.

$$\begin{aligned} E_t &= 3.14159265 - 3.14285714 \ &= -0.00126449 \ \varepsilon_t &= \frac{0.00126449}{3.14159265} \times 100 \ &= 0.0402% \end{aligned}$$

When the true value is not known, we use the approximate error. It is the difference between the present estimate and the previous estimate of an iterative method.

$$\varepsilon_a = \left|\frac{x_{\text{new}} - x_{\text{old}}}{x_{\text{new}}}\right| \times 100%$$

Sources of errors in numerical computation

Errors enter a numerical solution at several places.

  • Inherent error (data error): The input data come from measurements. They are never exact.
  • Modelling error: The mathematical model leaves out some real effects, such as friction or air resistance.
  • Round-off error: The computer stores numbers with a limited number of digits.
  • Truncation error: An infinite process is cut short, such as stopping a series after a few terms.
  • Human (blunder) error: A wrong formula, a typing mistake, or a bug in the program.
  • Propagation error: Small errors in early steps grow as later steps use them.

What this unit covers

  • True error and relative error definitions
  • Sources of errors in numerical computation
  • Round-off error and truncation error
  • Error precision and convergence criteria
  • Effect of errors on numerical computations

Round-off error and truncation error

2082 · 5 marks

Differentiate between round-off error and truncation error. Explain how they affect numerical computations, with the help of an example. [2+3]

--- Aspect Round-off Error Truncation Error --------- Definition Error caused by representing a number with a finite number of digits (limited precision of the machine) Error caused by truncating (cutting off) an infinite mathematical process to a finite number of steps Source Limitation of compu...

Open this answer on its own page →

Sources of errors in numerical computation

2080 · 5 marks

What are the sources of errors? Discuss various types of errors encounters in numerical computation. [5]

Show solved answer

Sources of Errors in Numerical Computation

Sources of Errors

In numerical computation, errors arise from several sources:

  1. Mathematical Modeling - Simplifying real-world problems into mathematical models introduces approximation.
  2. Input Data - Measured or observed data always contains some inaccuracy.
  3. Machine/Computer Limitations - Computers represent numbers in finite precision (finite word length).
  4. Numerical Methods - Approximate algorithms (e.g., truncating infinite series) introduce error.
  5. Human Error - Mistakes in formulation or programming.

Types of Errors in Numerical Computation

1. Inherent Error

  • Error that exists in the problem data before computation begins.
  • Arises from limitations in measuring instruments or approximating irrational numbers.
  • Example: Using Ï€ ≈ 3.14159 instead of the exact value.

2. Round-off Error

  • Caused by representing numbers with a finite number of digits in a computer.
  • Since computers cannot store infinite decimal places, numbers are rounded or chopped.
  • Example: 1/3 = 0.3333... is stored as 0.3333 (4 decimal places), introducing error = 0.0000333...
  • Accumulates over many arithmetic operations.

3. Truncation Error

  • Error introduced by replacing an infinite (exact) mathematical process with a finite approximation.
  • Arises when an infinite series is truncated after a finite number of terms.
  • Example: The Taylor series for eË£ is:

$$e^x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots$$

If we use only the first three terms, the remaining terms constitute the truncation error.


4. Absolute Error

  • The magnitude of the difference between the true value and the approximate value.

$$E_a = |X_{true} - X_{approx}|$$

  • Example: True value = 2.5, Approximate = 2.4 → Absolute Error = |2.5 - 2.4| = 0.1

5. Relative Error

  • Absolute error expressed relative to the true value; gives a sense of significance.

$$E_r = \frac{|X_{true} - X_{approx}|}{|X_{true}|}$$

  • Example: Relative Error = 0.1 / 2.5 = 0.04 = 4%

6. Percentage Error

$$E_{%} = \frac{|X_{true} - X_{approx}|}{|X_{true}|} \times 100%$$


7. Gross Error (Blunder)

  • Errors due to human mistakes such as incorrect data entry, wrong formula, or programming bugs.
  • These are not systematic and can be avoided with careful checking.

Summary Table

Error TypeCause
Inherent ErrorInaccurate input data
Round-off ErrorFinite digit representation
Truncation ErrorApproximating infinite processes
Absolute ErrorMeasure of deviation from true value
Relative ErrorDeviation relative to true value
Gross ErrorHuman mistakes/blunders

Note: In practice, round-off and truncation errors are the most significant in numerical methods, and minimizing them is a central concern in algorithm design.

Open this answer on its own page →