15 The other kind of error
15.1 Sampling error
Part 1 showed how to avoid rounding errors, simply by letting numbers track and express their accuracy. However, that is only half the problem with using computers to solve problems that involve real numbers. The other kind of error is variously called discretization error or truncation error or sampling error. “Sampling error” seems the most descriptive, since it is the error caused by sampling something that varies as if it did not vary and was just a constant, representable by just a single value. Whereas rounding error is replacing a correct value with a different value, sampling error is replacing a range of values with a single value. Statisticians use the phrase “sampling error” to describe ...
Get The End of Error now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.