BIT203 ยท 2080 ยท 5 marks
What are the sources of errors? Discuss various types of errors encounters in numerical computation.
What are the sources of errors? Discuss various types of errors encounters in numerical computation. [5]
Quick answer
In numerical computation, errors arise from several sources: Mathematical Modeling - Simplifying real-world problems into mathematical models introduces approximation; Input Data - Measured or observed data always contains some inaccuracy; Machine/Computer Limitations - Computers represent numbers in finite precision...
Sources of Errors in Numerical Computation
Sources of Errors
In numerical computation, errors arise from several sources:
- Mathematical Modeling - Simplifying real-world problems into mathematical models introduces approximation.
- Input Data - Measured or observed data always contains some inaccuracy.
- Machine/Computer Limitations - Computers represent numbers in finite precision (finite word length).
- Numerical Methods - Approximate algorithms (e.g., truncating infinite series) introduce error.
- 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 Type | Cause |
|---|---|
| Inherent Error | Inaccurate input data |
| Round-off Error | Finite digit representation |
| Truncation Error | Approximating infinite processes |
| Absolute Error | Measure of deviation from true value |
| Relative Error | Deviation relative to true value |
| Gross Error | Human 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.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.