Re:Data scientists need to learn about significant digits
by prepend on Monday December 25, 2023 @05:42PM
(#38766977)
I hate how values are rounded for presentation and precision is lost.
[ Parent
| on HN ]
Re:Data scientists need to learn about significant digits
by SAI_Peregrinus on Monday December 25, 2023 @06:16PM
(#38767256)
If you have a material sample with measured length of 1cm ±0.5cm, and a measured mass of 3g±0.5g, then reporting 3.3333333333g/cm for mass per unit length is just lying. It's between 0.14 and 0.6, so "about 0.3g/cm" is not lying, whereas "0.333333333333g/cm" is.
Re:Data scientists need to learn about significant digits
by mitthrowaway2 on Monday December 25, 2023 @06:32PM
(#38767362)
What do you think about 0.333 ± 0.222 g/cm?
Re:Data scientists need to learn about significant digits
by SAI_Peregrinus on Monday December 25, 2023 @09:35PM
(#38768452)
0.3 (-0.2+0.3) g/cm would be more correct. You've still got 3 significant figures when the inputs only had 1. Just don't lie, it's not that hard.
Re:Data scientists need to learn about significant digits
by mitthrowaway2 on Monday December 25, 2023 @09:40PM
(#38768474)
Interesting definition of a "lie". I don't think anything about that is inaccurate or untruthful. At best it could be called verbose, but yours is actually no shorter. Confidence intervals supersede significant figures in all respects, and now you've introduced a small but unnecessary bias that depends on the peculiarities of base 10.
Re:Data scientists need to learn about significant digits
by tobinfricke on Monday December 25, 2023 @06:17PM
(#38767270)
This is the issue that is addressed by paying attention to "significant figures." Digits that are significant are shown. Those that aren't, aren't. It's appropriate to round where your precision ends.
Re:Data scientists need to learn about significant digits
by boredemployee on Monday December 25, 2023 @06:05PM
(#38767183)
business ppl ~always~ prefer that approach.
When we go to industry or "the real world", it's as if we are forced to unlearn all good practices