Maison BeaulieuMAISON BEAULIEUAB ÉDITIONS · CULINARY ARTS & ARCHIVES
Cuisine · Measurements & Tools

Two Scale Readings: When Do Rounding Errors Cancel Out?

You read a mass before an addition, then another afterward. Subtracting seems to tell you exactly what just went into the bowl. Yet both numbers have already been rounded. Will the errors cancel out, add up, or shift depending on the starting point? That question grows even more interesting when two consecutive additions share the same middle reading.

We will solve it on a paper scale. It performs only one operation: rounding a given value. No physical device was tested, and no manufacturer’s internal algorithm is assumed to be known. The chosen masses serve for calculation and are not recipe dosing instructions. We will not zero the display between readings: we will compare cumulative indications.

🎁 Free Reader Gift · A4 Printable Recipe Booklet

Receive “12 Signature French Recipes & Culinary Index” (Free A4 PDF)

Instant complimentary delivery: 12 foundational French recipes, temperature & conversion charts, and a direct guide to our 240-volume English culinary library.

Subtracting after rounding

Fix a strictly positive display step d. Our rule Q rounds to the nearest multiple of d; exactly halfway between two multiples, it chooses the higher one. It is written Qd(x)=d×floor(x/d+1/2), where floor denotes the greatest integer less than or equal to the argument. This convention is chosen for the model. We will examine another one later.

Walt Kester’s tutorial MT001 treats an ideal converter and presents a quantization-error approximation built on assumptions of uniformity and decorrelation. Here we will explicitly preserve the link between our two readings rather than assigning them two independent errors at the outset.

Take d equal to one gram. A prescribed value of 100.1 displays as 100. Add exactly 0.2 in our construction: 100.3 still displays as 100. The displayed difference is zero, whereas the addition is 0.2. The error in that difference is therefore −0.2 g. Both roundings here landed on the same integer.

Change only the starting point, which is now 100.4. After the same addition, we reach 100.6. The readings jump from 100 to 101: their difference is one gram. Its error this time is +0.8 g. The addition stayed the same, and so did the step; what changed is crossing a rounding boundary.

We can track the two errors separately. In the first case, they are −0.1 and then −0.3 g; the second minus the first gives −0.2. In the second, they are −0.4 and then +0.4 g; their difference gives +0.8. Each individual rounding stays within half a gram of its true value, yet subtracting two rounded values does not automatically inherit that same bound.

Two prescribed starting values for a 0.2-gram addition: displayed differences of zero or one gram.
Prescribed values → rounded numbers. The same 0.2 g addition yields two different displayed differences here.

Locate the position within a graduation

To understand every possible starting value without listing them endlessly, look at where the first number sits inside its rounding interval. Write x/d+1/2=n+r, where n is an integer and r lies between zero inclusive and one exclusive. The part r indicates how far along the value sits from the lower boundary of that interval, expressed as a fraction of a step. We will call it the phase here.

Decompose the addition the same way: m/d=k+f, with k an integer and f between zero and one. In our first example, k is zero and f is 0.2. After the addition, the quantity inside floor becomes n+k+r+f. The two integers n cancel out in the subtraction, and the displayed difference D satisfies D/d=k+floor(r+f).

There are therefore only two possible outcomes whenever f is strictly positive. If r stays below 1−f, r and f together do not cross the next integer: D equals kd. If r reaches or exceeds that threshold, D equals (k+1)d. We found both outcomes while keeping a single starting phase shared by both roundings.

For the 0.2 g addition with d equal to one, the threshold is r equal to 0.8. Starting at 100.1 gives r equal to 0.6: the difference is zero. Starting at 100.4 gives r equal to 0.9: it is one. Reading the interval thus recovers both calculations without replacing their errors by separate random draws.

The integer part k shifts both outcomes without changing their spread. With a 2.2 g addition and the same step, D is two or three grams. The error remains −0.2 or +0.8, respectively. This is not newfound accuracy earned by a larger addition: we kept the exact same fraction of a step.

An unknown phase is not a distribution

So far, we have only described the possible outcomes. Not knowing r does not justify assigning a probability to each one. To go further, add an explicit assumption: r is uniformly distributed between zero and one. Every slice of the interval then receives a weight equal to its length. That distribution belongs to our mathematical setup, with no kitchen observation claimed to prove it.

The interval yielding kd has length 1−f; the one yielding (k+1)d has length f. The corresponding probabilities are therefore 1−f and f. For f equal to 0.2, we get eight-tenths low outcomes and two-tenths high outcomes under this theoretical law. We are not claiming that eight out of ten weighings on a real scale would follow that split.

The mean of D is kd×(1−f)+(k+1)d×f, which equals (k+f)d. It recovers m. Yet an unbiased mean does not imply that any individual reading is exact. In the 0.2 g case, the mean is 0.2, while the two permitted outcomes are zero and one: neither equals that mean.

Let us compute their spread around m. The errors are −fd and (1−f)d. The mean of their squares is f²d²×(1−f)+(1−f)²d²×f. Factoring yields the variance d²f(1−f). Its square root is the standard deviation. Variance here is expressed in square grams; it is not a maximum error in grams.

For f equal to 0.2 and d equal to one gram, the variance is 0.16 g² and the standard deviation is 0.4 g. For f equal to one half, they become 0.25 g² and 0.5 g. For f equal to zero, only one outcome remains: D equals kd and the variance is zero. These numbers describe our phase law, not the total uncertainty of a real scale.

The maximum can be read off without multiplying examples: f(1−f)=1/4−(f−1/2)². Over the permitted interval, this expression peaks at one quarter at the midpoint and returns to zero when the fraction vanishes. Spread therefore depends on the fractional step of the addition. It does not simply grow with its total mass.

Why two uniform errors are not enough

Under our uniform-phase assumption, each of the two rounding errors separately follows a uniform distribution of width d. Its variance is d²/12. If one added the assumption that they are independent, the variance of their difference would be d²/6. Yet we just found d²f(1−f), which varies with f.

There is no contradiction between those calculations. Distributions viewed one by one do not describe how errors meet in pairs. The same r fixes both. Two lists can contain the exact same values individually and still produce very different differences depending on how their terms are paired.

Appendix A of NIST Technical Note 1297 retains a covariance term in uncertainty propagation. Here we use the exact identity for a difference of variables: its variance equals the sum of the two variances minus twice their covariance. We apply no Taylor approximation to the discontinuous floor function.

Let e₀ and e₁ denote the initial and final errors. In our case, their covariance is therefore d²/12−d²f(1−f)/2. For an integer-step addition, f is zero: both errors coincide and their covariance equals their variance. They subtract out completely. Shifting by an integer number of steps preserved their relative position inside the rounding interval.

For f equal to one half, the covariance turns negative, −d²/24. The variance of the difference then reaches d²/4, larger than d²/6. Assuming independent errors would therefore have underestimated that particular spread. In the integer case, the same assumption would instead have invented a spread that does not exist in the model.

The shared term plays a precise role: it restores the permitted pairs. Zero covariance would not, on its own, prove that two variables are independent anyway. For our variance calculation, it is the actual covariance that matters; to describe their full joint distribution, you must keep more than that single number.

A common offset can shift the boundaries

Introduce an offset b, identical before and after the addition. The two unrounded values become x+b and x+b+m. Their difference is still m: b cancels out there. Yet the displayed readings are Qd(x+b) and Qd(x+b+m). The offset now enters before a nonlinear operation.

Return to x equal to 100.1 and m equal to 0.2, with a one-gram step. Without an offset, the readings were 100 and 100. With b equal to 0.3, they become those of 100.4 and 100.6, namely 100 and 101. An identical offset in both values can thus change their displayed difference.

Saying “the error is shared, so it cancels out” would skip over where rounding sits in the expression. By contrast, for a two-gram addition, our convention always gives a two-gram difference regardless of b: shifting by two full steps preserves the phase. That algebraic fact provides no estimate of b or of an instrument’s other errors.

If a phase was already assumed uniform, adding a fixed offset while keeping its fractional part would leave the same uniform distribution. The distribution of outcomes would then remain unchanged, even though individual pairs shift. One must therefore distinguish a comparison on the same starting point from a comparison of distributions: they do not ask the same question.

Three readings, two additions, one shared indication

Move on to a sequence of two additions, a then c. Call R₀, R₁, and R₂ the three cumulative readings. The two differences are D₁=R₁−R₀ and D₂=R₂−R₁. When you add them, R₁ disappears: D₁+D₂=R₂−R₀. That is an identity on the displayed numbers, requiring no probability assumption at all.

For a one-gram step, pick a equal to 0.6 g and c equal to 0.4 g. Starting from 100.1, the prescribed values are 100.1, then 100.7, then 101.1. The displayed readings are 100, 101, and 101. We would thus assign one gram to the first addition and zero to the second if we kept only those differences.

The errors on the two additions are +0.4 and −0.4 g, respectively: they cancel out. Starting from 100.6, the readings become 101, 101, and 102. The differences are now zero and one, with errors of −0.6 and +0.6. The displayed total remains one gram, yet its split between the two additions has shifted.

The reason for that exact total is twofold. The middle reading cancels out in the sum, and the total addition equals exactly one step under our convention. The first fact holds for any numbers R₀, R₁, and R₂. The second relies on our specific rounding rule and our chosen total.

Under uniform phase, each difference here has a variance of 0.24 g²: the fractions 0.6 and 0.4 give the same product. Yet their sum has zero variance. To recover it, you need their covariance of −0.24 g²: 0.24+0.24+2×(−0.24)=0. Simply adding the two variances would have treated the shared reading as though it linked nothing.

That distinction helps when reading a recipe calculation sheet. A correct sum of additions does not prove that each ingredient received its nominal quantity. In our constructed example, the first assignment can absorb the entire displayed total. The endpoint balance and the balance for each ingredient remain two different results, even when computed from the same three readings.

When the total is no longer an integer step

Keep the first addition at 0.6 g, but now set the second to 0.6 as well. Their total is 1.2 g. The cancellation of R₁ remains exact, yet it no longer guarantees that the difference between endpoints equals the added mass. We are back to an addition whose fractional step is 0.2.

Starting at 100.1, the readings are 100, 101, and 101; the differences are one and then zero, for a total of one. Starting at 100.4, they are 100, 101, and 102; the differences are one and then one, for a total of two. The total error is therefore −0.2 or +0.8 g, despite the algebraic cancellation of the middle reading.

Under uniform phase, the variance of each addition is still 0.24 g². That of the total is now 0.16 g². Their covariance must therefore be −0.16 g², since 0.24+0.24+2×(−0.16)=0.16. Negative covariance reduces the variance of the sum without necessarily driving it to zero.

We can recover the same result by naming the errors of the three readings e₀, e₁, and e₂. The errors attributed to the additions are e₁−e₀ and e₂−e₁. Their sum is e₂−e₀. The middle reading has vanished; the two remaining errors have no general reason to be equal. It was the extra property of an integer total that forced them to match in the previous case.

The exact half-step case

Our convention is not the only one. The NIST Guide for the Use of the SI, in section B.7.1, also describes the rule that, on an exact tie between two rounded values, keeps an even last digit. When rounding to the nearest integer, that picks the even integer among the two neighbors. We compare two rules on paper here, without attributing either one to any physical scale.

Apply that second convention to 100.5: it gives 100. After a one-gram addition, 101.5 gives 102. The displayed difference is two grams for a prescribed addition of one. If instead we start from 101.5, which gives 102, the landing point 102.5 also gives 102. The difference is then zero.

For a starting point x/d=n+1/2 and an addition d, the result is therefore 2d when n is even and zero when n is odd. Away from exact half-steps, it equals d. The rule “a one-step addition always gives a one-step difference” belonged strictly to our first convention; it cannot be carried over without checking how ties are broken.

Under a continuously uniform phase, exact half-steps form a set of probability zero. Changing only those points therefore does not alter the means and variances calculated for that distribution. Yet if our prescribed series lands right on those points, that probabilistic argument does not erase them. The two preceding examples remain exact counterexamples to any claim about all starting values.

Repeating the same calculation does not refresh the phase

Finish with a single fixed pair: start 100.4, addition 0.2, one-gram step, and the first convention. We get a difference of one gram. Repeating that paper calculation ten times without changing any input produces the exact same result ten times. Their average is still one gram; its error is still +0.8.

We can give the uniform law a different meaning: imagine a collection of starting values spanning the phases in the assumed way. That justifies the averages over that constructed collection. It does not justify treating every new reading of the same starting value as a fresh independent member of the collection. To model real-world repetition, one would have to describe what actually varies from trial to trial.

Our opening question thus receives a calculable answer. For a pair, you must keep track of the phase linking the two roundings. For two additions, you must keep track of the middle reading they share. And when an exact tie occurs, you must know the convention that resolves it. It is those relationships—not merely how many decimal places are copied down—that govern the results of our paper scale.

Sources and scope

NIST1297, Appendix A: paragraphs A.1 through A.5, covariance and assumptions in the averaging example.

Walt Kester, MT001: passages on the ideal model, quantization error, and correlation. No electronic performance results are transposed onto a kitchen scale.

NIST SI Guide, B.7.1: tie-breaking rounding rule. Our masses, pairs, and distributions are constructed; they constitute neither a calibration nor a hardware test.