If I had to guess it's a reference to how Python 3 changed the default rounding. When most people do casual rounding they round up if it's equal to or greater than 0.5 and down if it's less than 0.5 to the nearest integer. Python 3 changed from that method to round towards the nearest even choice if both integers are equidistant. Honestly, I'm glad they made the change as it's considered the "standard" way to round. Rounding 0.5 upwards all the time has a slight bias towards the higher number, which is evident when doing any kind of statistics.
Rounding 0.5 upwards all the time has a slight bias towards the higher number, which is evident when doing any kind of statistics.
This confuses me. How does changing to rounding down fix this problem? Would it not just make lower numbers have a slight bias? Since 0.1 - 0.9 contains an odd number of values, won't there never be an equal chance?
With this method you end up rounding up about 50% of the time, and down about 50% of the time, so no bias (unless you only work with numbers between 0 and 1)
5
u/askvictor Nov 24 '16
?