Bounds on non-linear errors for variance computation with stochastic rounding *
Preprint
Abstract
The main objective of this work is to investigate non-linear errors and pairwise summation using stochastic rounding (SR) in variance computation algorithms. We estimate the forward error of computations under SR through two methods: the first is based on a bound of the variance and Bienaym{\'e}-Chebyshev inequality, while the second is based on martingales and Azuma-Hoeffding inequality. The study shows that for pairwise summation, using SR results in a probabilistic bound of the forward error proportional to log(n)u rather than the deterministic bound in O(log(n)u) when using the default rounding mode. We examine two algorithms that compute the variance, called ''textbook'' and ''two-pass'', which both exhibit non-linear errors. Using the two methods mentioned above, we show that these algorithms' forward errors have probabilistic bounds under SR in O($\sqrt$ nu) instead of nu for the deterministic bounds. We show that this advantage holds using pairwise summation for both textbook and two-pass, with probabilistic bounds of the forward error proportional to log(n)u.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Stochastic Rounding Variance and Probabilistic Bounds: A New ApproachSIAM Journal on Scientific Computing, 2023
- Precision-aware deterministic and probabilistic error bounds for floating point summationNumerische Mathematik, 2023
- Stochastic rounding: implementation, error analysis and applicationsRoyal Society Open Science, 2022
- Climate Modeling in Low Precision: Effects of Both Deterministic and Stochastic RoundingJournal of Climate, 2022
- Stochastic Rounding and Its Probabilistic Backward Error AnalysisSIAM Journal on Scientific Computing, 2021
- Probabilistic Error Analysis for Inner ProductsSIAM Journal on Matrix Analysis and Applications, 2020