4.5.4.6 Absolute and Relative Errors Flashcards
Be able to calculate the absolute error of numerical data stored and processed in computer systems. AND Be able to calculate the relative error of numerical data stored and processed in computer systems.
Rounding Errors
Some decimal numbers cannot be represented exactly in binary even with fixed point or floating point, some numbers only can be approximately represented.
For this reason floating point and fixed point may be inaccurate
Absolute Error
The actual amount by which the value is inaccurate, calculated by finding the difference between the given and actual value.
Relative Error
Measure of uncertainty in given value compared to actual value relative to size of given value.
Relative Error Formula
~ relative error = absolute error/actual value
~ can give a percentage when x by 100
Relative Error Example
12.4 is represented in fixed point binary as 1100.011 calculate relative error as percentage to 4 S.F
~ 0.025 /12.4 x 100 = 0.2016
Absolute Error Example
14.6 is represented as 1110.1 in binary calculate the absolute error
~ 14.6 - 14.5 = 0.1
Errors in relation to magnitude
Absolute error of 0.1cm in 50cm is a very small relative error of 0.002% same absolute error of 0.1cm in 1cm is a much larger relative error of 10%