This applet is made avaiable for your use and redistribution under the terms of the GPL version 2 or later. This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The source for this program can be
downlaoded in jar format by clicking here.
Notes
Note that this applet has limitations. The purpose of this applet is
to help users understand the concept of risk of ruin and is not intended to
calculate the risk of ruin for any specific games under any specific conditions.
Entering incorrect values or extremely large values for the bankroll figures
will have undetermined results.
The estimate of the maximum number of trials is interesting. Setting the bankrolls for
the house and player to 10 and setting the player win percentage to 50%, will produce
an estimate of 100 trials (10 * 10). However, setting palyer win percentage to 49%
will produce an estimate of 500 trials ( (51/49^20 - 51/49^10) / (51/49^20 - 1) ).
Notice that as the average wager increases, the risk of ruin decreases. Also,
as the bankroll of the house increases in comparison to the player, the exact amount
of the house bankroll becomes less significant.
Two formulas for risk of ruin of the player:
for 50/50 games
(1) D/c
for games where player has less than a .50 probability of winning
(2) (q/p)^c - (q/p)^d / (q/p)^c - 1
where q = house odds, p = player odds, c = house bankroll + player bankroll
D = bankroll of house, d = bankroll of the player
3 formulas to estimate of the maximum number of trials to ruin:
for 50/50 games
(1) D * d
for games where player has less than .50 probability of winning
(2) d/q-p
for games where player has greater than .50 probability of winning
(3) D/p-q