Hi there,
This has been an interesting model to look at, and I have been able to reproduce the behaviour you describe- if theBet is a constant, it yields around the expected -1.4%, however the line:
... results in +ve values around 4%. As an experiment, I made a modification to list the bankroll during a “run” of the model (this requires the presence of a scrolling field “Test”, and I reduced the number of rounds to something more manageable):
Code: Select all
on mouseUp
put 0 into LosingStreak
repeat with rounds = 1 to 50000
put 5*2^LosingStreak into theBet
--put 5 into theBet
add theBet to totalBet
put (random(495)<=244) into wonPassLine
if wonPassLine then
add theBet to bankroll
put 0 into LosingStreak
else
subtract theBet from bankroll
add 1 to LosingStreak
end if
put bankRoll&return after accumulate
end repeat
put accumulate into fld "Test"
put bankroll/totalBet *100 & "%"
end mouseUp
... and I noticed that there was no provision to exit the repeat, should the bankroll become 0. Perhaps bankroll should be loaded with a value before the repeat, and then have an escape from the repeat should bankroll drop to 0. Also, the formula seems to call for the placing of dramatically larger bets, the longer the “losing streak”, which is an interesting strategy. For what it’s worth, I don’t think that there is an error in the calculation of the exponent, but the structure of the model, as written, produces counterintuitive behaviour. Still, I mightn’t have fully understood what’s intended.
Regards,
Michael