In descriptive statistics, there are two computational algorithms for determining the variance S2, of a set of observations :
Algorithm 1: S2= - ,
Algorithm 2: S2= ,
where . It is interesting to discuss, which of the above formulas is numerically more trustworthy in machine numbers sets. I this paper, based on total effect of rounding error, we prove that the second Algorithm is better than the first Algorithm. Numerical experiments show the efficiency of Algorithm 2.
Rostami,D . (2010). Camparison of Numerically Stability of Two Algorithms for the Calculation of Variance. (e21083). Journal of Sciences, Islamic Republic of Iran, 21(3), e21083
MLA
Rostami,D . "Camparison of Numerically Stability of Two Algorithms for the Calculation of Variance" .e21083 , Journal of Sciences, Islamic Republic of Iran, 21, 3, 2010, e21083.
HARVARD
Rostami D. (2010). 'Camparison of Numerically Stability of Two Algorithms for the Calculation of Variance', Journal of Sciences, Islamic Republic of Iran, 21(3), e21083.
CHICAGO
D Rostami, "Camparison of Numerically Stability of Two Algorithms for the Calculation of Variance," Journal of Sciences, Islamic Republic of Iran, 21 3 (2010): e21083,
VANCOUVER
Rostami D. Camparison of Numerically Stability of Two Algorithms for the Calculation of Variance. J. Sci. I. R. I.. 2010;21(3):e21083.