3 ms·
Can cause issues if you are accounting for things, e.g. "The sum of these values need to equal the sum of these values" In that case you'd then needs to avoid
by Chris2048 5y ago
Can cause issues if you are accounting for things, e.g.
"The sum of these values need to equal the sum of these values"
In that case you'd then needs to avoid
"sum_a == sum_b"
and use instead
"abs(sum_a - sum_b) < SOME_SMALL_VALUE"
- carnitine 5y agoYou don’t do that though, there’s no use case to account with the output of a model.
- Chris2048 5y agoI'm not sure what you mean - aside from speculative pricing models there are regulatory constraints too, that are a part of the same codebase. Not to mention that there is a use case for auditing pricing models (as in external requirement, or internally) or comparing alternative models.
- chewbaxxa 5y agoSure we add up the numbers, but there are thresholds for everything anyway. We might not be concerned about something within a 1MM range let alone a floating point inaccuracy. The uncertainty is accounted for already.