thanks for sharing the article. I think I spotted a minor logical error in it tho.
> This is because on average, you will gain $1 with every coinflip. For those interested in the maths, you have a 50% chance of winning $2, and a 50% chance of losing $1. 50% * (+2) + 50% * (-1) = +$1.
Isn’t it an average gain of $ 50ct per coin flip? That way the calculation would be correct aswell.
I was looking for a go module that exposes runtime metrics with little compile and runtime overhead, and an idiomatic interface. I couldn't find one, so I just built one. I hope this might be helpful to anybody out there.
thanks for sharing the article. I think I spotted a minor logical error in it tho.
> This is because on average, you will gain $1 with every coinflip. For those interested in the maths, you have a 50% chance of winning $2, and a 50% chance of losing $1. 50% * (+2) + 50% * (-1) = +$1.
Isn’t it an average gain of $ 50ct per coin flip? That way the calculation would be correct aswell.