Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was recently asked this question in an interview, but was completely stumped as to how to even begin answering it - it's been bugging me ever since, and I thought it was quite a nice question, so hopefully someone on here can help me out. Any help would be appreciated! Here goes:

You start off with £100 and you toss a coin 100 times. Before each toss you choose a stake $S$ which cannot be more than your current balance $x$ (so your maximum stake for the first toss is £100). If the coin comes up heads, you win $2S$ and your new balance is $x+2S$. If it comes up tails, you lose your stake and have $x-S$. How do you choose your stake so as to maximise your expected winnings from the game, not including the initial balance?



share|cite|improve this question
There was a Project Euler problem where your objective was to maximize the chance you finish with at least (as I recall) $10^9$. The thought process is different. – Ross Millikan Nov 19 '12 at 15:41
up vote 4 down vote accepted

It really is as simple as "the bet is in your favor-take it." $S=x$. You win $100(3^{100}-1)$ with probability $2^{-100}$ and lose $100$ with almost certainty. This presumes somebody can pay you that much. The expected win is then $\frac {3^{100}-1}{2^{100}}\cdot 100 -100(1-\frac 1{2^{100}})\approx 4\cdot 10^{19}$

To maybe make this less unbelievable, imagine a two round game. Clearly on the last throw, you want to bet all you have, increasing your expected fortune by $50\%$. On the first throw, then your expectation is $1.5(\frac {x-S}2+\frac {x+2S}2)=1.5(x+\frac S2)$ which (given the rules) is maximized when $S=x$. Alternately, your result is the same if you interchange the two flips. Since you should be all on the last flip, you should on the first as well.

share|cite|improve this answer
Thanks Ross - I really appreciate your help. If you're willing, I extended the question slightly here:… – Boris Nov 28 '12 at 16:11
Can you explain how you get 3^100 − 1, and why do you subtract a lose of 1, i.e. why is this not £100? – timboj May 22 '13 at 23:02
@timboj: yes, it should be winning $100(3^{100}-1)$ You end with $100\cdot 3^{100}$ and started with $100$, so that is the profit. – Ross Millikan May 23 '13 at 3:31

I'm not sure that you wrote out the explanation of the question correctly (please correct me if I'm wrong), but if you bet S, then right after betting and before the coin is tossed your wealth is x-S.. now if the game is such that you either lose everything or gain 2S, then your wealth after one coin toss is either x-S or x-S+2S=x+S with prob. 1/2 each. In this case, no matter how much you bet your expected wealth will be x and since we are risk averse you probably don't want to bet anything.

share|cite|improve this answer
You didn't read the question carefully. You are getting 2:1 odds, so if you win your balance is $x+2S$, not $x+S$ – Ross Millikan Jan 21 '15 at 19:38
I did, I was just asking him if it is possible that he made a mistake because on one hand he says you win 2S on the other your new balance is x+2S (which means you win 3S).. – andros Jan 21 '15 at 22:20

In my opinion this calls for the Kelly Criterion ( In this case, the fraction of your wealth that should be bet is $\frac{0.5 \times 3-1}{3-1}$.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.