You could simulate this game without any VBA code as follows:
Column A: current bankroll = some start value for first row, start value
from one row up plus winnings (column E) from one row up for all other rows.
Column B: formula to randomly select game =if(RAND()<.5,"a","b")
Column C: formula to determine if bankroll is divisible by 3: =mod(A1,3)
will return 0 of value in A1 is divisible by 3
Column D: random number =RAND()
Column E: calculate winnings with this formula:
=IF(B1="A",1*(D1<0.495)-1*(D1>0.495),IF(C1=0,1*(D1<0.095)-1*(D1>0.095),1*(D1
<0.745)-1*(D1>0.745)))
Copy these formulas down for a whole bunch of rows and see what the running
bankroll is.
Peter Jamieson wrote in message ...
Peter Jamieson <ldo...@bigpond.net.au> wrote in message
news:Ycfo5.7798$Xg.7...@news-server.bigpond.net.au...
As I recall, it was also a way they devised for a shsking plstform to move an
object uphill, *but* the ratios were such that they were from a small set of
integer-valued multiples. I only saw a second-hand report; is there an on-line
version of this that bests what I read in the Wall Street Journal, because it
seems really, really cool. Also, does the bank have infinitely deep pockets? If
not, we might get into a St.Petersburg paradox were we to adjust the
probabilities to *exactly* 1/2.
Thanks, Peter, for the post.
Dave Braden
listless MVP-Excel trying to avoid some chores in the garage.
On first inspection, one would expect game B by itself to win on average,
assuming that the bankroll is divisible by 3 33.333% of the time. But
what tends to happen is when the bankroll is divisible by 3, the heavily
negatively biased coin is used resulting more often than not in a $1 loss.
The next game, the bankroll is not divisible by 3, so the heavily positively
biased coin is used resulting more often than not in a $1 gain, bring the
bankroll back to a value divisible by 3. This pattern repeats itself so
often that when game B is played by itself, the bankroll is divisible by 3
approximately 38% of the time, making game B a loser on average.
However, when game A is thrown into the mix, the pattern described above
gets interrupted, so that the likelihood of the bankroll being divisible by
3 returns to approximately 33%, at which game B wins often enough to offset
the slightly negative bias of Game A.
"Alan E" <alane...@email.com> wrote in message
news:39a288b9$1...@news6.fast.net...