optimalBinary | R Documentation |
Simulating the generalized coin tossing gambling game.
optimalBinary(bankroll, p, a, b, trials = 100)
bankroll |
initial bankroll to bet with |
p |
probability of winning each trial |
a |
payout on winning toss on top of wager |
b |
wager lost on each trial on losing toss |
trials |
number of trials to simulate |
Start off with a given value of wealth and bet the Kelly fraction each round.
vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.