Gambling system
Discussion
ReallyReallyGood said:
Do you have the win/lose ratio? I hypothesise that whenever the win ratio is higher than 50% the same player will always win (player 2, as the more wins in the run, the more he stakes overall). And vice versa, a win ratio of < 50% player 1 will win.
Which then moves the problem from being a player-strategy one, to a simulation one.
I suspect this is what's happening, less than 50% wins so player 2 has an advantage.Which then moves the problem from being a player-strategy one, to a simulation one.
Edited to add: Bugger, changed the simulator so '1' was a win instead of '2' and player 1 still has an advantage, though less of one.
'Player 1 637 player 2 349 draws 14'
But this would explain why odds of 1 in 6 or 1 in 40 reduce player one's advantage. It must be to do with the way the random numbers are generated.
Edited by Dr Jekyll on Tuesday 29th October 14:11
The random number generator is certainly a bit odd.
I tried another simulation with 4 players.
1: Betting on heads, stakes 2 after a loss 1 after a win.
2: Betting on heads, stakes 1 after a loss 2 after a win.
3: Betting on tails, stakes 2 after a loss 1 after a win.
4: Betting on tails, stakes 1 after a loss 2 after a win.
This covers any propensity for the generator to be biased towards either heads or tails.
Interestingly players 1 and 3 do consistently better than 2 and 4. As if the basic problem is that wins and losses are coming up alternately, without as many runs of heads or tails that a true random system would produce.
I tried another simulation with 4 players.
1: Betting on heads, stakes 2 after a loss 1 after a win.
2: Betting on heads, stakes 1 after a loss 2 after a win.
3: Betting on tails, stakes 2 after a loss 1 after a win.
4: Betting on tails, stakes 1 after a loss 2 after a win.
This covers any propensity for the generator to be biased towards either heads or tails.
Interestingly players 1 and 3 do consistently better than 2 and 4. As if the basic problem is that wins and losses are coming up alternately, without as many runs of heads or tails that a true random system would produce.
Dr Jekyll said:
The random number generator is certainly a bit odd.
I tried another simulation with 4 players.
1: Betting on heads, stakes 2 after a loss 1 after a win.
2: Betting on heads, stakes 1 after a loss 2 after a win.
3: Betting on tails, stakes 2 after a loss 1 after a win.
4: Betting on tails, stakes 1 after a loss 2 after a win.
This covers any propensity for the generator to be biased towards either heads or tails.
Interestingly players 1 and 3 do consistently better than 2 and 4. As if the basic problem is that wins and losses are coming up alternately, without as many runs of heads or tails that a true random system would produce.
The thing is though, it is biased - that's what the 49,100 number tells you. It might not be biased the same way every run but it's certainly not producing a 50:50 heads/tails randomisation.I tried another simulation with 4 players.
1: Betting on heads, stakes 2 after a loss 1 after a win.
2: Betting on heads, stakes 1 after a loss 2 after a win.
3: Betting on tails, stakes 2 after a loss 1 after a win.
4: Betting on tails, stakes 1 after a loss 2 after a win.
This covers any propensity for the generator to be biased towards either heads or tails.
Interestingly players 1 and 3 do consistently better than 2 and 4. As if the basic problem is that wins and losses are coming up alternately, without as many runs of heads or tails that a true random system would produce.
Is it a standard random number library? Or have you written it?
This is such a trivial probability problem my guess is that there's a code error, in your code, where you determine the win/loss condition rather than in the random number generator. Even a crap one would be more than adequate for 100k coin tosses.
hairykrishna said:
The thing is though, it is biased - that's what the 49,100 number tells you. It might not be biased the same way every run but it's certainly not producing a 50:50 heads/tails randomisation.
Is it a standard random number library? Or have you written it?
This is such a trivial probability problem my guess is that there's a code error, in your code, where you determine the win/loss condition rather than in the random number generator. Even a crap one would be more than adequate for 100k coin tosses.
I used an existing random number generator, and I've written separate routines to check what it produces and got odd results such as 49,100. I think it's the seed process that's at fault, it's taking the seed from the system time but probably repeating sequences.Is it a standard random number library? Or have you written it?
This is such a trivial probability problem my guess is that there's a code error, in your code, where you determine the win/loss condition rather than in the random number generator. Even a crap one would be more than adequate for 100k coin tosses.
It sounds like your friend has come up with the same system I came up with about 20 years ago.
You bet on red in a roulete, if you win you pocket the winnings, and keep the bet on red. If you lose and double the stake, again each time you lose, until red comes up. When red comes up, you win your original stake (+ cover any losses to date).
Effectively every time red comes up, you are pocketing your original stake as profit.....perfect plan....other than;
Its a already a well known system
The odds are against you in roulete
Even a short run on black will hit the table limits
A long run of black will bankrupt you, and its inevitable.
You bet on red in a roulete, if you win you pocket the winnings, and keep the bet on red. If you lose and double the stake, again each time you lose, until red comes up. When red comes up, you win your original stake (+ cover any losses to date).
Effectively every time red comes up, you are pocketing your original stake as profit.....perfect plan....other than;
Its a already a well known system
The odds are against you in roulete
Even a short run on black will hit the table limits
A long run of black will bankrupt you, and its inevitable.
Gassing Station | Science! | Top of Page | What's New | My Stuff