Author

Topic: Just-Dice.com : now with added CLAMs : Play or Invest - page 173. (Read 454823 times)

legendary
Activity: 2940
Merit: 1333
So if you want to double you money a single bet is better than a martingale sequence.  If you want to increase you money by 1% than a martingale is better than a single bet by a very small margin.

I wasn't claiming that all martingale sequences are better than a single bet.  It's possible to design bad martingale sequences.

I am claiming that for any single bet, there's an equivalent martingale sequence that gives the same return but with a higher probability of success.
legendary
Activity: 3416
Merit: 1912
The Concierge of Crypto
I am sure this thread will be a better place when Dabs is banned from posting in it.
Perhaps. How sure are you? Would you like to place a bet on it? However, who is going to determine if this is indeed a better place after I'm gone?

Maybe some of these discussions on strategies would not be talked about if I were not here? Maybe they will still be talked about even if it wasn't specifically me who starts them.

Nobody cares about your solicitation of "group bets".
The first time, I stopped, but some random people I have never met or talked to sent me PMs. Some people do care. This second time, I gave it a 1 week "public" deadline, which is this coming Tuesday 13 August 2013 (give or take a few hours.)

If you don't care about my solicitation, feel free to ignore whatever I have to say; (there's a button or clickable link so you don't have to be bothered by me anymore.) or be a little bit more patient you might learn something. If not from me, then from the smart people responding to me.

The next time I will talk about something like this will be on my own thread and I just merely post a little link here. Would that be fine with you?

Thanks.
newbie
Activity: 33
Merit: 0
I ran my simulation with a gain of 2.0.  In that case the single bet beats a martingale by a significant margin.  Here are the results of two simulations at gain = 2.0 and gain = 1.01.

So if you want to double your money a single bet is better than a martingale sequence.  If you want to increase you money by 1% than a martingale is better than a single bet by a very small margin.

100,000 runs
Martingale with p = 0.5, 1000 bitcoin bank, 1 bitcoin starting bet. Stop if gain 2.0 or 0.
Probability to win = 0.448680
Average number of bets to win = 2800
Average win = 2001.073167
Probability of 1000 bitcoin bet winning the same with single bet = 0.494735
Single bet wins by Dp = 0.046055


100,000 runs
Martingale with p = 0.5, 1000 bitcoin bank 1 bitcoin starting bet. Stop if gain 1.01 or 0.
Probability to win = 0.987280
Average number of bets to win = 42
Average win = 1010.936452
Probability of 1000 bitcoin bet winning the with single bet = 0.979290
Martingale wins by Dp = 0.00799

I believe the difference is in the number of bets needed to reach your goal.  The average number of bets needed to double you money in this simulation was 2800.  The average number needed to increase your money by 1% was 42.

The main principle is the more you bet the more you lose.

Here is the code if you want to try this yourself or check my results.

Code: ("Matlab Martingale simulator")
function [profit n] = martin3(edge, p, bank, bankRisk, gain)
% edge     - house advantage for each bet
% p        - probabilty of winning each bet
% bank     - number of bitcoins to start with
% bankRisk - amount of current balance to risk with each
%            starting bet of a series
% gain     - Amount of money times bank which will stop the game.

  winReturn = (1 - edge)/p;
  winProfit = p / (1 - edge - p);

  singleWinGain = bankRisk*bank;
  firstBet = singleWinGain / (1 - edge);
 
  currentBet = firstBet;
  bets = [];
  lose = [];
  i = 1;
  while ((bank(i) > 0) && (bank(i) < bank(1) * gain))
    currentBet = min(currentBet, bank(i));
    bets = [bets currentBet];
    bank = [bank, bank(i) - currentBet];
  
    if (rand(1, 1) < p)
      bank(i+1) = bank(i+1) + winReturn * currentBet;
      lose = [];
      currentBet = bankRisk*bank(i+1) / (1 - edge); % If bank grows amount to bet grows
%      currentBet = firstBet; % Bet same amount independant of balance
    else
      lose = [lose currentBet];
      currentBet = winProfit * sum(lose); % win back only what was lost
%      currentBet = winProfit * sum(lose)+singleWinGain; % win back what was lost and win a bit.
    end
    i = i + 1;
  end
  n = i;
  profit = bank(n);
%  plot(bank,'x-');

Code: ("Matlab script to run simulator")
N = 1000;
e = 0.01;
p = 0.5;
bank = 1000;
bankRisk = 0.001;
gain = 1.1;

profit = [];
number = [];
for i=1:N
  [pr n] = martin3(e, p, bank, bankRisk, gain);
  profit = [profit pr];
  number = [number n];
end;

figure('Position', [0 0 1600 900])
subplot(311);
plot(number,'x');
subplot(312);
hist(number,sqrt(length(number)));
subplot(313);
plot(profit, 'x');

fprintf('mean = %f\n', mean(number));
fprintf('std = %f\n', std(number));
fprintf('min = %f\n', min(number));
fprintf('max = %f\n\n', max(number));
fprintf('mean = %f\n', mean(profit));
fprintf('std = %f\n', std(profit));
fprintf('min = %f\n', min(profit));
fprintf('max = %f\n\n', max(profit));

NWin = sum(profit > 0);
NLose = sum(profit == 0);
ProbWin = NWin / (NWin + NLose);
fprintf('ProbWin = %f\n\n', ProbWin);

meanWin = mean(profit(find(profit ~= 0)));
fprintf('mean win = %f\n\n', meanWin);

singleBetProb = (1 - e)*bank/meanWin;
fprintf('singleProbWin = %f\n\n', singleBetProb);
member
Activity: 98
Merit: 10
I do not sell Bitcoins. I sell SHA256(SHA256()).
I am sure this thread will be a better place when Dabs is banned from posting in it.

Nobody cares about your solicitation of "group bets".
legendary
Activity: 3416
Merit: 1912
The Concierge of Crypto
Yes.  No matter what you're trying to do, two bets are better than one.
So, does it follow that three bets are better than two? Four bets are better than three? Five bets are better than four? Six bets are better than five? Seven bets are lucky? (Okay, what I meant was seven bets are better than six.)

The more steps you break the bet down into, the less you are expected to risk, and so the greater your chance of winning.

I believe that in the limit as number of steps approaches infinity, the amount risked approaches zero, your expected losses approach zero, and so your chance of winning approaches your chance of winning with a single bet on a zero house edge game.

But let's keep that quiet, eh?  Wink
Okay, I will keep quiet.

Yes but to approach zero risk (even remotely) you'll have to start betting so low that your gain over a reasonable period of time will be unsignificant. Also you'll need so many rolls that you'll still have a decent chance to lose it all.
That's why you want to start with a larger bank roll. Or pool lots of money (from other people) together.

Who wants to bet that I will win the 7th?
legendary
Activity: 1218
Merit: 1006
Crypto entrepreneur and consultant
Yes but to approach zero risk (even remotely) you'll have to start betting so low that your gain over a reasonable period of time will be unsignificant. Also you'll need so many rolls that you'll still have a decent chance to lose it all.
hero member
Activity: 854
Merit: 500
I like how up until page 73, $81M was spent playing this dice yet, yet nobody could fully calculate the probabilities of a martingale  Tongue
legendary
Activity: 2940
Merit: 1333
Ah, I see and understand more clearly now. Thanks for putting it that way, and I apologize for missing it previously.

I only just noticed I messed up the quoting in my first post so it was hard to see that I had written anything.  It's fixed now.  I also edited the post you just replied to after you replied, giving the calculation I used to determine the stake and payout multiplier.

Now speaking just about martingales, eliminating the all-in, 1 bet approach. Is it more profitable to have a shorter martingale such as the 2 bet sequence, or say have a 10 bet sequence? Logic is telling me that perhaps the 2 bet sequence is better than the 10 bet sequence, but I could just be misled. For all I know, they have the same probability factor.

The more steps you break the bet down into, the less you are expected to risk, and so the greater your chance of winning.

I believe that in the limit as number of steps approaches infinity, the amount risked approaches zero, your expected losses approach zero, and so your chance of winning approaches your chance of winning with a single bet on a zero house edge game.

But let's keep that quiet, eh?  Wink
sr. member
Activity: 518
Merit: 250
So the martingale has a better probability for turning 1000 into 1010, but how does the math change if you were to try to go from 1000 to 2000? I wonder if the martingale would still have a higher chance of winning than a single bet?

Yes.  No matter what you're trying to do, two bets are better than one.  I posted previously about how to turn 1 BTC into 2 BTC, and have modified the quote here, multiplying everything by 1000:

If you want to double your money, you have a higher chance if you place multiple bets than if you place a single bet.  You have to pick the right multiple bets of course.

It's really quite easy to demonstrate:

If you place a single bet, then the chance of doubling your money is 49.5%.

Now consider this 2 bet sequence:

1. bet 414.21356 BTC with payout 3.41421356x and chance 28.99642866% to win 1414.21356 BTC for a profit of 1000 BTC
2. if you lose, bet 585.78644 BTC at the same payout and chance to win 2000 BTC for a net profit of 1000 BTC.

Your overall chance of success is 49.58492857%.  That is higher than 49.5%.

(Note that those bets aren't exactly available on Just-Dice, since chance is only available to 4 significant figures, but that's just a nit-pick.  It's still possible to double your money with a higher than 49.5% chance using 2 bets, and not using 1 bet).

In both cases you're going to run into the 'max profit' limit on Just-Dice, but we can ignore that for the purposes of this discussion.

Ah, I see and understand more clearly now. Thanks for putting it that way, and I apologize for missing it previously.

Now speaking just about martingales, eliminating the all-in, 1 bet approach. Is it more profitable to have a shorter martingale such as the 2 bet sequence, or say have a 10 bet sequence? Logic is telling me that perhaps the 2 bet sequence is better than the 10 bet sequence, but I could just be misled. For all I know, they have the same probability factor.
legendary
Activity: 2940
Merit: 1333
So the martingale has a better probability for turning 1000 into 1010, but how does the math change if you were to try to go from 1000 to 2000? I wonder if the martingale would still have a higher chance of winning than a single bet?

Yes.  No matter what you're trying to do, two bets are better than one.  I posted previously about how to turn 1 BTC into 2 BTC, and have modified the quote here, multiplying everything by 1000:

If you want to double your money, you have a higher chance if you place multiple bets than if you place a single bet.  You have to pick the right multiple bets of course.

It's really quite easy to demonstrate:

If you place a single bet, then the chance of doubling your money is 49.5%.

Now consider this 2 bet sequence:

1. bet 414.21356 BTC with payout 3.41421356x and chance 28.99642866% to win 1414.21356 BTC for a profit of 1000 BTC
2. if you lose, bet 585.78644 BTC at the same payout and chance to win 2000 BTC for a net profit of 1000 BTC.

Your overall chance of success is 49.58492857%.  That is higher than 49.5%.

(Note that those bets aren't exactly available on Just-Dice, since chance is only available to 4 significant figures, but that's just a nit-pick.  It's still possible to double your money with a higher than 49.5% chance using 2 bets, and not using 1 bet).

In both cases you're going to run into the 'max profit' limit on Just-Dice, but we can ignore that for the purposes of this discussion.

If you're wondering where I got the numbers from, here's the calculation.  "have" is how much we start with, and "gain" is how much we want to win.  We calculate "stake", which is how much to bet on the first bet (we bet the rest on the 2nd bet if the 1st bet loses) and "payout" which is the payout multiplier for both bets:

Code:
>>> have = 1000
>>> gain = 1000
>>> stake = math.sqrt(gain*(gain+have)) - gain
>>> payout = (gain + stake) / stake
>>> stake
414.2135623730951
>>> payout
3.414213562373095
sr. member
Activity: 518
Merit: 250
Does the martingale sequence give you a better chance of winning than a single bet?

I just ran a Monte Carlo simulation.

starting bank = 1000
firstBet = 1
probability of win, each single bet = 0.5
house edge = 0.01
Amount to win = 1.01 * starting bank

Martingale rules:
  Bet firstBet
  If win bet firstBet
  If lose bet enough to win back previous losses.
  If balance = 0 then stop
  If balance = Amount to win then stop
  bet again

This sequence will continue until you have turned 1000 bitcoins into either > 1010 bitcoin or 0 bitcoins.

I ran this 1 million times and got the following results:

Number of wins (>1010 bitcoins) = 988311
Number of loses (0 bitcoins) = 11689
Probability of a win = 0.988311
Mean return of all sequences = 998.627
The mean of all the wins = 1010.43799

If you bet 1000 bitcoins in a single bet at probability of 0.979773138 you would also win 1010.43799, if you win.

So: With the martingale you have a 0.988311000 chance of winning.
     With the single bet you have a 0.979773138 chance of winning.

Martingale wins by a p = 0.008537862.

Important to note: the mean of all the sequence is less than the amount wagered.  If you do this over and over again you will be lose.

So the martingale has a better probability for turning 1000 into 1010, but how does the math change if you were to try to go from 1000 to 2000? I wonder if the martingale would still have a higher chance of winning than a single bet?
sr. member
Activity: 518
Merit: 250

Infinity isn't a problem, it's awesome! Although if I'd invented it I would have called it something way cooler.


Infinity is cool as it is!  Cool

By the way, I wonder which "discovery" is the greatest of all time in maths: mankind's awareness of the 0 (zero), so as the vacuum and the idea of complete absence as well, or the notion of infinity...  Roll Eyes

I would strongly argue that 0 is the greatest mathematical (and philosophical) discovery.
I mean 0 even creates the circle shape, and no one can argue how badass a circle is.

Or perhaps this: e^{i \pi} + 1 = 0  
Or, Or, perhaps 'barel'y related to numbers at all, but Godel's Incompleteness Theorem?

I may be somewhat bad with numbers, but the philosophy behind math is widely fascinating to me.
legendary
Activity: 2156
Merit: 1131
Does the martingale sequence give you a better chance of winning than a single bet?

I just ran a Monte Carlo simulation.

starting bank = 1000
firstBet = 1
probability of win, each single bet = 0.5
house edge = 0.01
Amount to win = 1.01 * starting bank

Martingale rules:
  Bet firstBet
  If win bet firstBet
  If lose bet enough to win back previous losses.
  If balance = 0 then stop
  If balance = Amount to win then stop
  bet again

This sequence will continue until you have turned 1000 bitcoins into either > 1010 bitcoin or 0 bitcoins.

I ran this 1 million times and got the following results:

Number of wins (>1010 bitcoins) = 988311
Number of loses (0 bitcoins) = 11689
Probability of a win = 0.988311
Mean return of all sequences = 998.627
The mean of all the wins = 1010.43799

If you bet 1000 bitcoins in a single bet at probability of 0.979773138 you would also win 1010.43799, if you win.

So: With the martingale you have a 0.988311000 chance of winning.
     With the single bet you have a 0.979773138 chance of winning.

Martingale wins by a p = 0.008537862.

Important to note: the mean of all the sequence is less than the amount wagered.  If you do this over and over again you will be lose.

Now everyone let's play !
newbie
Activity: 33
Merit: 0
Does the martingale sequence give you a better chance of winning than a single bet?

I just ran a Monte Carlo simulation.

starting bank = 1000
firstBet = 1
probability of win, each single bet = 0.5
house edge = 0.01
Amount to win = 1.01 * starting bank

Martingale rules:
  Bet firstBet
  If win bet firstBet
  If lose bet enough to win back previous losses.
  If balance = 0 then stop
  If balance = Amount to win then stop
  bet again

This sequence will continue until you have turned 1000 bitcoins into either > 1010 bitcoin or 0 bitcoins.

I ran this 1 million times and got the following results:

Number of wins (>1010 bitcoins) = 988311
Number of loses (0 bitcoins) = 11689
Probability of a win = 0.988311
Mean return of all sequences = 998.627
The mean of all the wins = 1010.43799

If you bet 1000 bitcoins in a single bet at probability of 0.979773138 you would also win 1010.43799, if you win.

So: With the martingale you have a 0.988311000 chance of winning.
     With the single bet you have a 0.979773138 chance of winning.

Martingale wins by a p = 0.008537862.

Important to note: the mean of all the sequence is less than the amount wagered.  If you do this over and over again you will be lose.
hero member
Activity: 640
Merit: 771
BTC⇆⚡⇄BTC
Like

infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
ity

? Grin

You've just created some kind of strange fractal out there...  Grin
donator
Activity: 2058
Merit: 1007
Poor impulse control.

Infinity isn't a problem, it's awesome! Although if I'd invented it I would have called it something way cooler.


Infinity is cool as it is!  Cool

By the way, I wonder which "discovery" is the greatest of all time in maths: mankind's awareness of the 0 (zero), so as the vacuum and the idea of complete absence as well, or the notion of infinity...  Roll Eyes

0 = Zero
Infinity = Hero
donator
Activity: 2058
Merit: 1007
Poor impulse control.
Infinity does pose a bit of a problem here Undecided

Infinity isn't a problem, it's awesome! Although if I'd invented it I would have called it something way cooler.
Like

infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
ity

? Grin

Damn you! That's way better than my name for infinity, which would have probably been "Gordon". Or maybe "Geoff", if I was feeling adventurous. You win, Nim  Cry
hero member
Activity: 640
Merit: 771
BTC⇆⚡⇄BTC

Infinity isn't a problem, it's awesome! Although if I'd invented it I would have called it something way cooler.


Infinity is cool as it is!  Cool

By the way, I wonder which "discovery" is the greatest of all time in maths: mankind's awareness of the 0 (zero), so as the vacuum and the idea of complete absence as well, or the notion of infinity...  Roll Eyes
hero member
Activity: 784
Merit: 1000
0xFB0D8D1534241423
Infinity does pose a bit of a problem here Undecided

Infinity isn't a problem, it's awesome! Although if I'd invented it I would have called it something way cooler.
Like

infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
infinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfinfin
ity

? Grin
donator
Activity: 2058
Merit: 1007
Poor impulse control.
Love this sort of debate/discussion. Finding myself refreshing too often hoping for another reply Tongue

I also.

Jump to: