# rounding 5 exactly to evens

**URL:** <https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214>\
**Category:** Factual Questions\
**Created:** [March 15, 2017, 3:09am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214 "2017-03-15T03:09:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [March 15, 2017, 3:09am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/1 "2017-03-15T03:09:37Z")

</div>

All my life, I was taught to round up if the next digit is a 5. But, lately, I’ve been hearing that, if it’s exactly 5 (e.g. 0.5000 not 0.5001), I should round to the closest even number instead, to avoid bias.

But I can’t see how this doesn’t make things worse. Here’s my logic: no matter which place you take it to, you will always have the same number of chunks for [-0.5,+0.5).

Let me show an example. We’ll just use 25. If I stick with integers, I have 15,16,17,18,19,20,21,22,23,24, which would normally be rounded to 20, and 25,26,27,28,29,30,31,32,33,34, which would normally be rounded to 30. That’s 10 each. If I use 15,15.1,15.2,15.3, etc, I wind up with 100 each. 15.00 gets 1000, and so on.

But, if you follow the “round 5 to evens” rule then you get 15,16,17,18,19,20,21,22,23,24,25 which round to 20 and 26,27,28,29,30,31,32,33,34 which round to 30. That’s 11 and 9. If I use the tenth’s place, I get 15,15.1,15.2,…24.9,25.0, which is 101 that round to 20, and 25.1,25.2,…34.8,34.9, which gives me 99.

So, for any fixed level of precision to start with, it would seem that this “round 5 to evens” rule would introduce rather than remove bias. Yet I’m told exactly the opposite.

Can anyone, using the level of math I am used if possible, show why the normal method of always rounding up on 5 is biased?

And, probably more importantly, can someone explain why my logic here is wrong?

---

<div class="post-metadata">

**Author:** ![Rysto](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@Rysto](https://boards.straightdope.com/u/Rysto)\
**Post date:** [March 15, 2017, 3:31am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/2 "2017-03-15T03:31:17Z")

</div>

The issue with always rounding a 5 up is that it increases the mean (average) of the sample. The difficulty lies in the fact that with this rounding algorithm, one digit does not change (0), 4 digits get decreased (1-4) and 5 digit (5-9) get increased. This leads to an inherent bias that increases the mean value. By changing it so that 50% of 5 digits are rounded up and 50% are rounded down, the bias is eliminated.

For example, in your sample set of integers, the true mean of the values is 24.5. The mean of the samples after applying the traditional rounding method is 25, but the mean of the samples after applying the banker’s rounding method (roll to nearest even) is still 24.5.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [March 15, 2017, 4:12am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/3 "2017-03-15T04:12:51Z")

</div>

> [@Rysto](#):
>
> The issue with always rounding a 5 up is that it increases the mean (average) of the sample. The difficulty lies in the fact that with this rounding algorithm, one digit does not change (0), 4 digits get decreased (1-4) and 5 digit (5-9) get increased. This leads to an inherent bias that increases the mean value. By changing it so that 50% of 5 digits are rounded up and 50% are rounded down, the bias is eliminated.
> 
> For example, in your sample set of integers, the true mean of the values is 24.5. The mean of the samples after applying the traditional rounding method is 25, but the mean of the samples after applying the banker’s rounding method (roll to nearest even) is still 24.5.

But then 24.5 would be rounded down to 24, which is still just as wrong as 25. Your average of numbers with a certain precision can’t have a higher precision than the numbers you started with. Inherently, rounding to the nearest integer means that you will be off by 0.5 either direction.

And it still doesn’t explain what’s wrong with my reasoning.

---

<div class="post-metadata">

**Author:** ![OldGuy](https://avatars.discourse-cdn.com/v4/letter/o/3bc359/32.png) [@OldGuy](https://boards.straightdope.com/u/OldGuy)\
**Post date:** [March 15, 2017, 4:16am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/4 "2017-03-15T04:16:02Z")

</div>

> [@BigT](#):
>
> But then 24.5 would be rounded down to 24, which is still just as wrong as 25. Your average of numbers with a certain precision can’t have a higher precision than the numbers you started with. Inherently, rounding to the nearest integer means that you will be off by 0.5 either direction.

You don’t round the numbers, average, then round again.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [March 15, 2017, 4:24am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/5 "2017-03-15T04:24:42Z")

</div>

> [@BigT](#):
>
> And it still doesn’t explain what’s wrong with my reasoning.

Having 11 cases round to evens and 9 round to odds is exactly the goal. The only way for rounding to be symmetric is if there are an odd number of cases: an equal number on both sides, plus the center element.

This doesn’t happen if you group the elements by tens. You do if you group by 11s and 9s. Sure, you end up with some bias towards the evens, but as \*\*Rysto \*\*said, it makes the \*mean \*unbiased.

---

<div class="post-metadata">

**Author:** ![Pleonast](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pleonast/32/1183_2.png) [@Pleonast](https://boards.straightdope.com/u/Pleonast)\
**Post date:** [March 15, 2017, 6:39am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/6 "2017-03-15T06:39:11Z")

</div>

> [@BigT](#):
>
> Your average of numbers with a certain precision can’t have a higher precision than the numbers you started with.

In fact, an average will have better precision and that’s usually the reason one takes an average.

---

<div class="post-metadata">

**Author:** ![thelurkinghorror](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@thelurkinghorror](https://boards.straightdope.com/u/thelurkinghorror)\
**Post date:** [March 15, 2017, 8:41am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/7 "2017-03-15T08:41:29Z")

</div>

I usually see this called [banker’s rounding](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even). And it usually only comes up in computer systems or programming languages’ optional treatment.

---

<div class="post-metadata">

**Author:** ![Isilder](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@Isilder](https://boards.straightdope.com/u/Isilder)\
**Post date:** [March 15, 2017, 10:01am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/8 "2017-03-15T10:01:33Z")

</div>

Bigt There’s nothing wrong with your reasoning when you are looking at the sum of the absolute of the errors. Round up is then more accurate.

When its rounding to remove just decimal place, the average is worst affected and you might have to consider even rounding.

if the numbers are losing 8 decimal places, the average would have a tiny error and you’d best use round up.

ergo, ordinary folk uses round up by default - sometimes someone might use round to even for a specific use such as bankers or for where they are going to require averages and its a simple one or two digit loss just because of differences in data acquisation/storage standards.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [March 15, 2017, 10:17am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/9 "2017-03-15T10:17:29Z")

</div>

> [@](#):
>
> Bigt There’s nothing wrong with your reasoning when you are looking at the sum of the absolute of the errors. Round up is then more accurate.

There is no circumstance where the always-round-5-up rule is more accurate. At best, there are some circumstances where the two rules are equally accurate.

In the real world, of course, it makes almost no difference, because you’ll almost always have more digits after the 5, and you use those to decide which way to round.

---

<div class="post-metadata">

**Author:** ![bob\_2](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bob_2/32/3341_2.png) [@bob\_2](https://boards.straightdope.com/u/bob_2)\
**Post date:** [March 15, 2017, 11:00am UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/10 "2017-03-15T11:00:15Z")

</div>

> [@Chronos](#):
>
> In the real world, of course, it makes almost no difference, because you’ll almost always have more digits after the 5, and you use those to decide which way to round.

I don’t follow that. If there are _ **any** _ digits (other than zero) after the 5 then rounding must go up; surely?

If the original data set is only accurate to ½ then it is probably not going to be a problem either way. Finance is always at least two digits after the decimal (Dollars & cents or Pounds and pence) and frequently more. The likelihood of any individual data being exactly ½ is going to be quite small.

---

<div class="post-metadata">

**Author:** ![Patx2](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@Patx2](https://boards.straightdope.com/u/Patx2)\
**Post date:** [March 15, 2017, 12:04pm UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/11 "2017-03-15T12:04:26Z")

</div>

I thought the rule was always 5 and above, give it a shove, 4 or below let it go. I never heard the rule about 5s.

---

<div class="post-metadata">

**Author:** ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)\
**Post date:** [March 15, 2017, 12:29pm UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/12 "2017-03-15T12:29:59Z")

</div>

Interesting stuff. I prefer round up 5, myself. The only semi-rational alternative I’ve heard is to look at the preceding digit and round up or down based on whether that’s odd or even. E.g., 1.5 goes up to 2 while 2.5 goes down 2. That creates an _appearance_ of uniform distribution of rounding direction.

OTOH, it ignores properties like [Benford’s Law](https://en.wikipedia.org/wiki/Benford's_law) for naturally occurring data. That strongly suggests rounding up is a much better idea. I.e., 5 thru 9 appear less often in a given digit’s position that 0-4 so rounding the former up counterbalances a bit of rounding the latter down.

---

<div class="post-metadata">

**Author:** ![Dorjan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dorjan/32/12440_2.png) [@Dorjan](https://boards.straightdope.com/u/Dorjan)\
**Post date:** [March 15, 2017, 2:38pm UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/13 "2017-03-15T14:38:10Z")

</div>

In my engineering classes I was taught unbiased rounding. Greater than 5, round up, less than 5, round down. If 5, then:

1. If the number before 5 is even, round down (1.25 becomes 1.2)
2. If the number before 5 is odd, round up (1.35 becomes 1.4)

---

<div class="post-metadata">

**Author:** ![RealityChuck](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/realitychuck/32/195_2.png) [@RealityChuck](https://boards.straightdope.com/u/RealityChuck)\
**Post date:** [March 15, 2017, 3:03pm UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/14 "2017-03-15T15:03:41Z")

</div>

> [@Dorjan](#):
>
> In my engineering classes I was taught unbiased rounding. Greater than 5, round up, less than 5, round down. If 5, then:
> 
> 1. If the number before 5 is even, round down (1.25 becomes 1.2)
> 2. If the number before 5 is odd, round up (1.35 becomes 1.4)

This is the way I was told: round to the even number. By doing this that way, you skew the data less than if always rounding up or down.

---

<div class="post-metadata">

**Author:** ![Blue\_Blistering\_Barnacle](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/blue_blistering_barnacle/32/3386_2.png) [@Blue\_Blistering\_Barnacle](https://boards.straightdope.com/u/Blue_Blistering_Barnacle)\
**Post date:** [March 15, 2017, 3:09pm UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/15 "2017-03-15T15:09:34Z")

</div>

> [@Chronos](#):
>
> There is no circumstance where the always-round-5-up rule is more accurate. At best, there are some circumstances where the two rules are equally accurate.
> 
> In the real world, of course, it makes almost no difference, because you’ll almost always have more digits after the 5, and you use those to decide which way to round.

> [@bob\_2](#):
>
> I don’t follow that. If there are _ **any** _ digits (other than zero) after the 5 then rounding must go up; surely?
> 
> If the original data set is only accurate to ½ then it is probably not going to be a problem either way. Finance is always at least two digits after the decimal (Dollars & cents or Pounds and pence) and frequently more. The likelihood of any individual data being exactly ½ is going to be quite small.

> [@Patx2](#):
>
> I thought the rule was always 5 and above, give it a shove, 4 or below let it go. I never heard the rule about 5s.

> [@Dorjan](#):
>
> In my engineering classes I was taught unbiased rounding. Greater than 5, round up, less than 5, round down. If 5, then:
> 
> 1. If the number before 5 is even, round down (1.25 becomes 1.2)
> 2. If the number before 5 is odd, round up (1.35 becomes 1.4)

I thought rounding \*\*\*only \*\*\*considered the next digit, not those beyond? (Although I admit I follow Patx2’s rule on the basis of Chrono’s reasoning, and 'cuz that’s how I was taught.)

When a colleague challenged me on rounding rules, I looked them up. What Patx2 and I do is called “Rounding away from zero”, which is perfectly cromulent and unbiased IF your numbers are equally likely to be positive or negative.

(In fact, in my daily life, numbers are almost always positive, but I just decided that I don’t have enough time and brain cells to waste in on hairsplitting that requires me to check extra conditions to see how I will round. But my numbers are not as precise as they pretend to be, so I can see that science and engineering might ask for more.)

---

<div class="post-metadata">

**Author:** ![Ignotus](https://avatars.discourse-cdn.com/v4/letter/i/ecc23a/32.png) [@Ignotus](https://boards.straightdope.com/u/Ignotus)\
**Post date:** [March 15, 2017, 6:37pm UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/16 "2017-03-15T18:37:43Z")

</div>

> [@Blue\_Blistering\_Barnacle](#):
>
> I thought rounding \*\*\*only \*\*\*considered the next digit, not those beyond? (Although I admit I follow Patx2’s rule on the basis of Chrono’s reasoning, and 'cuz that’s how I was taught.)

Rounding considers the entire string of digits as a whole from the one you’re rounding and onwards. The problem is that you usually only have a finite string to work with. If the readout on your three-digit scales/thermometer/speedometer/whatever is 26.5, this means that the _actual_ value is somewhere between 26.45 and 26.55, but you have no way of knowing whether it’s in the lower or upper half of that interval.

---

<div class="post-metadata">

**Author:** ![Blue\_Blistering\_Barnacle](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/blue_blistering_barnacle/32/3386_2.png) [@Blue\_Blistering\_Barnacle](https://boards.straightdope.com/u/Blue_Blistering_Barnacle)\
**Post date:** [March 15, 2017, 7:25pm UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/17 "2017-03-15T19:25:41Z")

</div>

so, does 4.5000005 round to 4 or 5 using “round to even” rules?

It is closer to 5 in fact.

Rounding to millionths place should give you 4.500000, which is way more precise than rounding to units.

Rounding to units gives 5 if all information (to 10 millionths) is considered, but 4 if someone has previously rounded to millionths.

There is something counterintuitive about this.

---

<div class="post-metadata">

**Author:** ![Snarky\_Kong](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@Snarky\_Kong](https://boards.straightdope.com/u/Snarky_Kong)\
**Post date:** [March 15, 2017, 7:47pm UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/18 "2017-03-15T19:47:53Z")

</div>

> [@Blue\_Blistering\_Barnacle](#):
>
> so, does 4.5000005 round to 4 or 5 using “round to even” rules?
> 
> It is closer to 5 in fact.
> 
> Rounding to millionths place should give you 4.500000, which is way more precise than rounding to units.
> 
> Rounding to units gives 5 if all information (to 10 millionths) is considered, but 4 if someone has previously rounded to millionths.
> 
> There is something counterintuitive about this.

You don’t round twice. If rounding more than once was acceptable you could round to any arbitrary number depending on the rounding convention.

---

<div class="post-metadata">

**Author:** ![Blue\_Blistering\_Barnacle](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/blue_blistering_barnacle/32/3386_2.png) [@Blue\_Blistering\_Barnacle](https://boards.straightdope.com/u/Blue_Blistering_Barnacle)\
**Post date:** [March 15, 2017, 8:03pm UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/19 "2017-03-15T20:03:32Z")

</div>

> [@Snarky\_Kong](#):
>
> You don’t round twice. If rounding more than once was acceptable you could round to any arbitrary number depending on the rounding convention.

Really? You could round 4.50000005 to 9? How about to 1,000,000? Which rounding convention would get you there?

---

<div class="post-metadata">

**Author:** ![Blue\_Blistering\_Barnacle](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/blue_blistering_barnacle/32/3386_2.png) [@Blue\_Blistering\_Barnacle](https://boards.straightdope.com/u/Blue_Blistering_Barnacle)\
**Post date:** [March 15, 2017, 8:06pm UTC](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214/20 "2017-03-15T20:06:21Z")

</div>

> [@Snarky\_Kong](#):
>
> You don’t round twice. If rounding more than once was acceptable you could round to any arbitrary number depending on the rounding convention.

Anyway, with this in hand, I feel more justified than ever in “rounding away from zero”. Why should I ben my brain to accommodate occasional cases where trailing zeros go out (well-nigh) forever?

[Next page](https://boards.straightdope.com/t/rounding-5-exactly-to-evens/782214.md?page=2)
