News for hackers. Stuff that matters.
Re:An oral history of Bank Python by carnitine on Thursday November 04, 2021 @05:54AM (#29105171)
Always funny to see the objections of new hires without finance experience to the use of floating point for pricing. It’s more related to the inherent inaccuracy of any pricing model though, rather than clients not caring about pennies.
Re:An oral history of Bank Python by brazzy on Thursday November 04, 2021 @08:12AM (#29106127)
Exactly. Floating point is inappropriate for anything related to accounting (payments, balances, etc.), but when the numbers you're producing are effectively forecasts or estimates, it's no different than what floats were originally invented for (numerical modelling in physics and engineering).
Re:An oral history of Bank Python by JackFr on Thursday November 04, 2021 @08:10AM (#29106104)
I remember someone demanding that we needed to run our Monte Carlo pricer on 1024 paths, that 256 just wasn’t precise enough and one of the risk guys said “Well since we know our assumptions are wrong I’m not sure what difference it makes.”
Re:An oral history of Bank Python by brazzy on Thursday November 04, 2021 @08:14AM (#29106143)
The difference between precision and accuracy in a nutshell.
Re:An oral history of Bank Python by Chris2048 on Thursday November 04, 2021 @09:56AM (#29107233)
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"

Re:An oral history of Bank Python by carnitine on Thursday November 04, 2021 @12:49PM (#29109483)
You don’t do that though, there’s no use case to account with the output of a model.
Re:An oral history of Bank Python by Chris2048 on Thursday November 04, 2021 @02:30PM (#29110834)
I'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.

Re:An oral history of Bank Python by chewbaxxa on Thursday November 04, 2021 @04:28PM (#29112180)
Sure 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.