Mathematical Calculation of Risk of Ruin For a Fixed EV
Applies to a fixed expectation with a fixed bet of 1 unit
let win = probability of win
let loss = probability of loss
let tie = probability of tie (win + loss + tie = 1)
let bank = number of units gambler is willing to risk
let profit = number of units gambler hopes to win
let goal = bank + profit = number of units gambler wishes to achieve
let Sbank = probability of succeeding with bank units
Sgoal = 1, since if goal is reached chance of success = 1
S0 = 0, since if gambler has 0 units chance of success = 0
Sbank = win*Sbank+1 + loss*Sbank-1 + tie*Sbank
Since win + loss + tie = 1
- (win + loss + tie) * Sbank = win*Sbank+1 + loss*Sbank-1 + tie*Sbank
- win*Sbank + loss*Sbank + tie*Sbank = win*Sbank+1 + loss*Sbank-1 + tie*Sbank
- win*Sbank + loss*Sbank = win*Sbank+1 + loss*Sbank-1
- win*(Sbank+1 - Sbank) = loss*(Sbank - Sbank-1)
- Sbank+1 - Sbank = loss/win*(Sbank - Sbank-1)
- if bank = 1, S2 - S1 = loss/win*(S1 - S0)
- since S0 = 0, S2 - S1 = loss/win*(S1)
- if bank = 2, S3 - S2 = loss/win*(S2 - S1)
- since S2 - S1 = loss/win*(S1), S3 - S2 = (loss/win)2 * S1
- in general if bank = x, Sx+1 - Sx = (loss/win)x * S1 where (0 < x < goal)
- Sum(Sx+1 - Sx) = Sum((loss/win)x * S1) as x varies from 1 to x
- Sum(Sx+1 - Sx) = (S2-S1)+(S3-S2)+(S4-S3)+....+(Sx-Sx-1)+(Sx+1-Sx) as x varies from 1 to x
- Sum(Sx+1 - Sx) = Sx+1 - S1 = Sum((loss/win)x * S1) as x varies from 1 to x
- Sx+1 = S1 + Sum((loss/win)x * S1) as x varies from 1 to x
- Sx+1 = S1 * (1 + Sum((loss/win)x) as x varies from 1 to x
- since (loss/win)0 = 1, Sx+1 = Sum((loss/win)x) as x varies from 0 to x
- Sum((loss / win)x) is the sum of a geometric sequence whose initial term equals 1
- Sx+1 = S1 * (1 - (loss/win)x+1) / (1 - loss/win)
- Let x = goal - 1 and since Sgoal = 1, 1 = S1 * (1 - (loss/win)goal) / (1 - loss/win)
- S1 = (1 - loss/win) / (1 - (loss/win)goal)
- substituting 20 into 18, Sx+1 = (1 - (loss/win)x+1) / (1 - (loss/win)goal)
- if x = bank - 1, Sbank = (1 - (loss/win)bank) / (1 - (loss/win)goal)
- Sbank = (1 - (loss/win)bank) / (1 - (loss/win)goal) = probability of reaching goal with bank units
Let R = probability of ruin
R = (1 - probability of success) = (1 - Sbank)
R = 1 - (1 - (loss/win)bank) / (1 - (loss/win)goal)
R = (1 - (loss/win)goal) / (1 - (loss/win)goal) -
(1 - (loss/win)bank) / (1 - (loss/win)goal)
R = ((loss/win)bank - (loss/win)goal) / (1 - (loss/win)goal) =
probability of of being ruined with a bank of bank units and a goal of goal units