Three-outcome Kelly criterion for p(win, loss, ruin)
matthewdowney.github.io