Error Analysis: After Reading This Chapter, You Should Be Able To
Error Analysis: After Reading This Chapter, You Should Be Able To
Error Analysis: After Reading This Chapter, You Should Be Able To
Error Analysis
After reading this chapter, you should be able to:
1. Know about the exact, relative and percentage error.
2. Relate the absolute relative approximate error to the number of significant digits
at least correct in your answers.
3. Know that there are two inherent sources of error in numerical methods – round-
off and truncation error.
4. Know the difference between round-off and truncation error.
5. Know the concept of significant digits.
Introduction:
Error in solving an engineering or science problem can arise due to several factors. First, the error may
be in the modeling technique. A mathematical model may be based on using assumptions that are not
acceptable. For example, there are two kinds of numbers such as exact and approximate numbers, such
2 3
the exact numbers are 1, 2, 5, … . , 5 , 2 , … … , 𝜋, 𝑒, … . . 𝑒𝑡𝑐 and the approximate numbers are
representations of exact numbers to a certain degree of accuracy. Thus, 3.1416 is an approximate
number of and 3.14159265 is another approximate number of . Second, errors may arise from
mistakes in programs themselves or in the measurement of physical quantities. But, in applications of
numerical methods itself, hear we focus on these type of errors,
1. Absolute error
2. Relative error
3. Percentage error
4. Round off error
5. Truncation error.
Different Types of Error:
In this section we discussed about different types of error.
Absolute Error:
Prepared By,
Md. Mehedi Hasan, Senior Lecturer in Mathematics, Department of General Educational Development (GED),
FSIT, Daffodil International University (DIU), Dhaka, Bangladesh.
Error Analysis Page |2
The absolute error of a quantity is the absolute value of the difference between the exact value and the
approximate value. It is denoted by E A . If the exact value is 𝑋 and approximate value is 𝑥, the absolute
error is define by, 𝐸𝐴 = |𝑋 − 𝑥|.
Relative Error:
The relative error of a quantity is the ratio of its absolute error to its exact value. It is denoted by ER ,
𝐸𝐴
that is 𝐸𝑅 = .
𝑋
Percentage Error:
The percentage error of a quantity is 100 times of its relative error. It is denoted by E p , that is 𝐸𝑃 =
100𝐸𝑅
Problem: If an approximate value of is 3.1428571 and let exact value is 3.1415926. Find the
absolute, relative and percentage errors.
Solution: We have, exact value is 𝑋 = 3.1415926 and approximate value is 𝑥 = 3.1428571
The absolute error is,
𝐸𝐴 = |𝑋 − 𝑥| = |3.1415926 − 3.1428571| = |−0.0012645| = 0.0012645
𝐸𝐴 0.0012645
The relative error is, 𝐸𝑅 = = 3.1415926 = 0.000402
𝑋
Problem: Find the absolute, relative and percentage errors of the number 8.6 if both of its digits are
correct (i.e, this number rounded to one decimal place).
Solution: The given number is 𝑃 = 8.6
Since both digits are correct so N = 1
1
The absolute error is, 𝐸𝐴 = 2 (10−1 ) = 0.05 (i.e, exact value 𝑋 = 8.6)
Prepared By,
Md. Mehedi Hasan, Senior Lecturer in Mathematics, Department of General Educational Development (GED),
FSIT, Daffodil International University (DIU), Dhaka, Bangladesh.
Error Analysis Page |3
𝐸𝐴 0.05
The relative error is, 𝐸𝑅 = = = 0.0058
𝑋 8.6
The percentage error is, 𝐸𝑃 = 100𝐸𝑅 = 100 × 0.0058 = 0.58%
Significant Digits:
Significant digits are certain digits that have significance or meaning and give more precise details
about the value of the number. If I offered you $2,000, the 2 in 2000 is significant because it tells you
exactly how many thousands. Again let's say two people ran a race. Runner 1 took 30.01 seconds, and
runner 2 took 30.02 seconds. Who would win the race? Obviously, runner 1 because he took less time.
All those numbers are significant because we need them all to tell us exactly who won the race.
So we have some rules to identify the significant numbers,
Rule 1: Every non-zero digit is significant
More Examples:
Problem: Evaluate the sum 𝑆 = √2 + √3 + √5 to 4 significant digits and also find its absolute, relative
and percentage errors.
Solution: For the 4 significant digits we may write √2 = 1.414, √3 = 1.732, √2 = 2.236
Prepared By,
Md. Mehedi Hasan, Senior Lecturer in Mathematics, Department of General Educational Development (GED),
FSIT, Daffodil International University (DIU), Dhaka, Bangladesh.
Error Analysis Page |4
Since the values of √2, √3 and √5 are rounded to three decimal places, so 𝑁 = 3.
1 1 1
Now the absolute error is, 𝐸𝐴 = 2 (10−3 ) + 2 (10−3 ) + 2 (10−3 )
= 0.0005 + 0.0005 + 0.0005 = 0.0015
The absolute error shows that the sum is correct to two decimal places only, so we take exact value
𝑋 = 5.38
𝐸𝐴 0.0015
The relative error is, 𝐸𝑅 = = = 0.00028
𝑋 5.38
The percentage error is, 𝐸𝑃 = 100𝐸𝑅 = 100 × 0.00028 = 0.028%
Problem: Evaluate the sum 𝑆 = √11 + √21 + √31 to 5 significant digits and also find its 𝐸𝐴 , 𝐸𝑅 , 𝐸𝑃 .
Solution: For the 5 significant digits we may write, √11 = 3.3166, √21 = 4.5826, √31 = 5.5678
Since the values of √11, √21 and √31 are rounded to four decimal places, so 𝑁 = 4.
1 1 1
Now the absolute error is, 𝐸𝐴 = 2 (10−4 ) + 2 (10−4 ) + 2 (10−4 )
= 0.00005 + 0.00005 + 0.00005 = 0.00015
The absolute error shows that the sum is correct to three decimal places only, so we take exact value
𝑋 = 13.467
𝐸𝐴 0.00015
The relative error is, 𝐸𝑅 = = = 0.00001113834
𝑋 13.467
The percentage error is, 𝐸𝑃 = 100𝐸𝑅 = 100 × 0.00001113834 = 0.001113834%
Problem: If the number 5.365489 is correct to 5 significant digits, then find the values of 𝐸𝐴 , 𝐸𝑅 , 𝐸𝑃 .
Solution: The given number is 5.365489, but this number is correct to 5 significant digits so
𝑃 = 5.3655.
Since 𝑃 rounded to 4 decimal places so 𝑁 = 4.
1
The absolute error is, 𝐸𝐴 = 2 (10−4 ) = 0.00005 (i.e, exact value 𝑋 = 5.3655)
𝐸𝐴 0.00005
The relative error is, 𝐸𝑅 = = = 0.0000093188
𝑋 5.3655
Prepared By,
Md. Mehedi Hasan, Senior Lecturer in Mathematics, Department of General Educational Development (GED),
FSIT, Daffodil International University (DIU), Dhaka, Bangladesh.
Error Analysis Page |5
Practice Work
1) Define absolute, relative, percentage error, round off error, truncation error with example.
1
2) Three approximations of the number are given as 0.32, 0.33 and 0.34. Find the best
3
approximation among the three.
3) Evaluate the sum 𝑆 = √3 + √5 + √7 + √11 to 6 significant digits and find its percentage
error, absolute error, relative error?
4) Find the absolute, relative and percentage errors of the number 5.2356 if 4 significant digits are
correct.
5) Evaluate the sum S = √𝟏𝟏 + √𝟐𝟏 + √𝟑𝟏 to 5 significant digits and find its E A , ER , EP ?
6) Find the absolute, relative and percentage errors of the number 0.3576 if 2 significant digits are
correct.
Prepared By,
Md. Mehedi Hasan, Senior Lecturer in Mathematics, Department of General Educational Development (GED),
FSIT, Daffodil International University (DIU), Dhaka, Bangladesh.