18 min read
Accumulated Error
Small rounding errors can build up into a much larger total error when a calculation is repeated many times.
Small Errors Add Up
Example 1 — accumulated rounding error in a sum
measurements are each rounded to the nearest whole number (a maximum absolute error of each). They are all added together. Find the worst-case accumulated error.
- Each value can be off by up to
- In the worst case, every error points the same direction (all too high, or all too low)
- Multiply the individual error by the number of values:
Answer: Worst-case accumulated error =
Example 2 — accumulated error in a real setting
A shop's till rounds every price to the nearest cent (a maximum error of 200$ transactions in a day, find the worst-case accumulated rounding error.
- Each transaction can be off by up to $0.005
- Multiply by the number of transactions:
Answer:
Practice
lengths are each rounded to the nearest cm (a maximum error of cm each). Find the worst-case accumulated error when they are all added together.
Your answer
More lessons in Numerical Precision, Accuracy and Errors · Next: Reporting Appropriate Precision · Previous: Error Propagation in Calculations
