Artificial intelligent assistant

Casino/House bankroll for Blackjack Given a maximum bet size of "x" in blackjack, how many maximum bets should the house keep in its bankroll/account to prevent it ever realistically losing all its money against players playing perfectly? (not including card counting/other factors) For arguments sake, assume the house probability of winning is 50.5% per game.

If you treat this as $\pm1$ random walk where the independent probability of $+1$ steps is $p$ and of $-1$ steps is $1-p$ then it is a known result that with $p \lt \frac12$ the probability of the sum of the steps ever reaching some positive integer $n$ is $\left(\dfrac {p}{1-p}\right)^n$

Here $p =0.495$. You need to quantify _realistically_ : if you want the probability or risk of ever losing a net $n$ or more to be less than some $r$ then you need $r \lt \left(\dfrac {p}{1-p}\right)^n$ and so want $n > \dfrac{\log(r)}{\log(p) - \log(1-p)}$

For some illustrative values of the risk $r$ (the first shown is $1\%$ and the fifth $0.0001\%$) you get suggested values of $n$. You can round down if you want the risk of strictly exceeding these positions to be $r$ or less.


r n
0.01 230.25
0.001 345.38
0.0001 460.50
0.00001 575.63
0.000001 690.75

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 3c5604bf596787c079f9cbf5619474a9