In an earlier post I used a one-line formula for the value of a casino bonus: winnings minus the expected cost of the wagering. It is fast and it is what most calculators use, ours included. But a single expected value hides the thing players actually experience: most of the time the result is nothing, and once in a while it is a lot.
So I wrote a small Monte Carlo simulation in plain JavaScript and ran 100,000 players through the same offers. The averages barely surprised me. The distributions did.
Note: this is a probability exercise, not advice to gamble.…