Chapter 11 Language of Descriptive Statistics

Section 11.1 Terminology and Language

11.1.3 Remarks on the Rounding Processes


As the following considerations and examples will show, we have to be very careful when calculating with rounded results. Let us consider the set M=0 of all non-negative real numbers. On this set, let us define the multiplication

M×M  M    ,    (a,b)    ab

by the calculation rule

ab  =   1 102 · round ( 102 ·a·b)  =   1 102 · 102 ·a·b+ 1 2 ,

i.e. the product ab is calculated by calculating the usual product a·b first and subsequently rounding the result mathematically to two fractional digits.  
The law of associativity no longer applies to the rounded multiplication. For the numbers a=2.11, b=3.35, and c=2,61, we have, for example,

ab  =  2.113.35  =  7.07   and   (ab)c  =  7.072.61  =  18.45.

Changing the brackets, however, results in

bc  =  3.352.61  =  8.74     and     a(bc)  =  2.118.74  =  18.44.


Info 11.1.11
 
Since calculators (and computers) always calculate using rounded results, this means that the law of associativity does not apply unrestrictedly to multiplication on calculators.

Likewise, false results can be caused by careless rounding. Let us consider the numbers a=4.98 and b=1.001. Then, we have

a·b  =  4.98·1.001  =  4.98498     , i.e.   ab  =  4.981.001  =  4.98  =  a.

Furthermore, we have

a· b1000   =  4.98·1. 0011000   =  a· b··b 1000   factors 13.53028118.

Rounding after each multiplication to 2 fractional digits results (due to ab=a) in the wrong result:

(((a b)b)b 1000   factors )  =  a  =  4.98.


Info 11.1.12
 
In practice, this means that you must calculate at least with double precision (twice the required digits) and round the result only finally to the required digits.