How do you round numbers?

Yes, except that you’d round to 4, not to 4.0. If you’re keeping the second digit, leave it as 3.5. As mentioned several times, the point of rounding to even is that if you are rounding a lot of numbers, you don’t add a bias to your numbers. Why even instead of odd? I’d guess that it’s because if you subsequently have to divide the number by two, there’s no rounding again.

it does give you more information, though. Suppose the number is 0.34 ± 0.1. Then the real number could be anywhere in the range 0.24 to 0.44. If you round off to 0.3, that’s off by up to 0.14. If you keep it as 0.34, you’re only off by up to 0.1. That’s the point of keeping a guard digit.

The value *using significant figures only *does not change. The digits you’re eliminating are insignficant. By going half and half, you average out any bias that insignificant figures might introduce. Yes, that insignificant figure is sometimes 0 - so what? It’s still insignificant.

See above. Rounding bogus digits to the lower ten 60% of the time and the higher ten 40% of the time *would *introduce bias.

Now: It doesn’t matter what those bogus digits are; they’re bogus. Acting as if they had significance would introduce bias. It looks like this concept was indeed forgotten along with the slide rule: Significant figures - Wikipedia

kevlaw is right about cases where the digits following the 5 are significant after all.

Yes, but there is subtle distinction that you are missing.

3.5 does not round to 4.0–it rounds to 4. When you round, you are eliminating significant figures. Keeping the same number of significant figures is not rounding. It is changing the number to a different number. You see, 3.5 and 4 represent the same number. They just have a different number of significant figures. On the other hand, 3.5 and 4.0 are two different numbers.
Now, for anyone who doesn’t understand why the “5 rounds the preceding digit to even” rule is important, I’ve got a simple example that should make it clear.

Using the “5 rounds the preceding digit to even” rule:
1.5 → 2
2.5 → 2
3.5 → 4
4.5 → 4

If you take the average of the original numbers (1.5, 2.5, 3.5, and 4.5), you get an average of 3.0.

If you take the average of the rounded numbers (2, 2, 4, and 4), you get an average of 3.

See? The data has not been skewed using this method.

On the other hand, if you use the “5 always rounds up” rule that most people are used to, you would round in this manner:

1.5 → 2
2.5 → 3
3.5 → 4
4.5 → 5

The average of the original numbers (1.5, 2.5, 3.5, and 4.5) is unchanged. The average is 3.0.

However, the average of the rounded numbers (2, 3, 4, and 5) is different than that of the original data. (The average is 3.5).

See? Following this method, you have introduced an upward bias in the data. This is bad.

That’s why you round to even.

Finally, if there are any non-zero digits after the five, you would always round up. So 2.50001 rounds up (whereas 2.5 rounds down).

Unfortunately, both methods are bad, because the American method introduces an upward bias, and the English method introduces a downward bias.

If you use the “5 rounds the preceding digit to even” method, you don’t introduce an upward or a downward bias to the data. I think the only reason this is not taught in elementary school is because it is somewhat confusing, and the “5 rounds up” rule works most of the time.

Note that I did not just make this rule up. I’ve actually got a cite. From Chemistry: Matter and Its Changes, by Brady, Russell, and Holum, John Wiley & Sons, Inc., 2000:

You’re not rounding up 60% of the time and rounding down 40% of the time. You’re rounding up 45% of the time, rounding down 45% of the time, and leaving the number alone 10% of the time. If you don’t believe me, do a simulation. Generate every integer in the range 1 to 100. Round every number to the nearest tens digit, one run rounding 5 up always, one rounding 5 up if the tens digit is even and rounding 5 down if the tens digit is odd. Here, I’ll do it for you:

Rounding 5 up always: avg is 5.1
Round 5 up half the time: avg is 5

Bah. Found two bugs. The fix results in:

sum always rounding up is 5100
avg is 51

sum round up half the time is 5050
avg is 50.5

proper sum from 1 to 100 is 100 * 101 / 2 = 5050, avg is 50.5

Here’s the code for anyone to check my math:



#!/usr/bin/perl -w

use strict;

my $sum = 0;

for(my $i = 1; $i <= 100; $i++)
{
  my $mod = $i % 10;
  my $val = int($i / 10) * 10;
  if ($mod >= 5)
  {
    $val += 10;
  }
  $sum += $val;
}

print "sum always rounding up is $sum
avg is ", $sum / 100, "
";

$sum = 0;

for(my $i = 1; $i <= 100; $i++)
{
  my $mod = $i % 10;
  my $val = int($i / 10) * 10;
  if ($mod == 5)
  {
    if (int($i / 10) % 2 == 1)
    {
      $val += 10;
    }
  }
  elsif ($mod > 5)
  {
    $val += 10;
  }
  $sum += $val;
}

print "
sum round up half the time is $sum
avg is ", $sum / 100, "
";

print "
proper sum from 1 to 100 is 100 * 101 / 2 = 5050, avg is 50.5
";


R, which is the standard for statistical computing, uses round towards even.

punoqllads, you’re not rounding up or down, because you’re not changing “actual” values at all. You’re eliminating insignficant figures.

Couldn’t we just sidestep the whole issue by going to a base-eleven system?

Whatever it is you’re doing, you’re doing it 10% of the time.

Not really. With base-11, instead of having the dividing line be the neat digit 5, it is now between the digits 6 and 5 (it is .5555555). On the plus side you won’t be faced with the “5 dilemma” head-on. But consider this: You take a measurement and it is 12.5. You’d like to round it. Do you round it to 12 or 13? You don’t really know, because you don’t know what digits followed the 5. Were they truncated? If they were truncated, you have to use round-to-even again.

The values of the figures is a distraction. Your method does more of one thing than the other, therefore it introduces bias. This can be very easily demonstrated either as in post #22, or by generating a sequence of a few hundred numbers and applying your method, vs conventional rounding and comparing the totals of the three columns.

Those two statements are inconsistent with each other, if you think a bit more.

Please, look into “significant figures” (Wiki link already provided). The figures you’re eliminating do not have significance. They’re noise. Hash. Meaningless. No *actual *value is being changed by removing them and using only significant ones instead. There is no net bias introduced by splitting the roundings half and half, but there WOULD be bias introduced by believing they had meaning and by treating them as if they did - such as the approach you describe.

An odd-base system, as Alex describes, would require a different method of rounding off nonsignificant figures - perhaps by alternating up and down?

As long as we’re throwing around Wikipedia cites, let’s see what they have to say about tie-breaking in rounding:

Not true, for virtually every real-world application where you might want to use rounding.

The low digits in a measurement may not be absolutely precise, but that doesn’t mean they’re completely meaningless. If I take my temperature and the thermometer reads “98.3”, I can be fairly confident that my temperature is closer to 98 than 99, even though it’s probably not exactly 98.3. If the “.3” were completely random meaningless noise, I couldn’t make that claim.

Then you didn’t get the use of significant figures beat into you in high school, either.

No, I got numerical methods beat into me in graduate school.

If they had no meaning, there would be no need to split the values half and half - simple truncation would suffice - 0.349 would round to 0.34, because of the lack of meaning in the 0.009.

Some Italian, I think, figured it all out in about the year 1900. The round 5s up to even and down to odd was proven to be satisfactory.

The reason so many of us were taught to round 5s up is because most will need it for accounting, not laboratory accuracy and precision.

Oh, and by the way, my experience has been that if you work in a lab don’t argue with your boss about this. Bosses want your approval and your agreement. They have no interest in accuracy, precision or mathematical correctness. That is why they are the boss. Peter Principle goosed them up to their position.

There is some confusion here, probably in terminology. Fundamentally, the disagreement lies in when you round in the first place. You don’t round when you make a measurement. You round as the result of calculations.

That being said, here is why ElvisL1ves is stating that the digits after the last significant figure are “meaningless hash.”

The number of significant figures in a measured value is equal to the number of digits known for sure (i.e. “certain” digits) plus one uncertain digit.

In your example above, Hamster King, it is implied that your thermometer is graduated in one-degree increments. Thus you are certain that the temperature is between 98 and 99 degrees. You are estimating that the last digit is 3, because, as you say, you can tell that the temperature is closer to 98 than 99.

However, what ElvisL1ves is trying to explain to you is that all of these figures are referred to as “significant figures,” which, by definition, includes all of the certain digits, plus ONE uncertain digit.

In your example, all three digits of your measurement, including the 3, are significant. Your measurement, in other words, has three significant figures. So if you have an additional digit beyond your uncertain digit (i.e. the last significant figure), it is indeed meaningless.

In this instance, however, there would be no reason to round your measurement. You only round when you combine numbers in calculations.