14 Comments
 

If you get a heads on the first flip, obviously stop. If you get tails 1st, heads 2nd, stop. If you get 2 tails to start keep flipping until 0.5 ratio (or very close to it). Expected ratio of future flips is 0.5, so if you're above that you want to stop, and if you're below that you want to keep flipping (it will bring up your expected average). As an example, if you flip 3: 2 tails, 1 heads, your ratio is 0.33. Future flips are 0.5 so they will bring up your 0.33 average.

 

this is by no means an easy question but the solution is the same as the solution to the perpetual american put option. the solution above such that you ratio > 1/2 is definitely not the optimal solution and even if that were true, would you be able to derive the value of this given your strategy? the solution is state dependent on the total flips and the total number of heads till this point and it is markovian. given this, you should be able to derive a solution but i have not had the time to do it. hope this helps

http://www.ieor.berkeley.edu/~xinguo/papers/I.A.9.pdf

 
Best Response

I'll state my strategy more explicitly and give an approximate expected value.

Flip if: # of Heads flipped so far = # of Tails flipped so far

50% of the time you will flip Heads the first time (Ratio = 1), and 50% of the time you will flip Tails.

1st Flip Heads (50%): Stop. Ratio = 1. 1st Flip Tails (50%): Continue Forever. Ratio = 0.5.

This makes Expected Ratio = 0.75. However, what if you flip tails, heads, heads? Then you would stop with a 0.67 Ratio, rather than flipping forever. This case happens 12.5% of the time. So,

1st Flip Heads (50%): Ratio = 1 Tails, Heads, Heads (12.5%): Ratio = 0.67 Everything Else (37.5%): Ratio = 0.5

This gives you an expected ratio of 0.77. As you keep doing this (3 heads, 2 tails 3% of time = Ratio 0.6, etc.), the solution is bound at ~0.78. Obviously, you could find out exact answer with some more advanced math than this trial and error method, but it appears 0.78 is about right.

 

@"woohoobaby" : Thanks for your answer, but I cannot figure out completely how is this connected to american put option, for example what is strike price of that option, is it 1/2 ? I didn't actually find a way how to apply that approach for solution to this problem...

@"derivstrader5" : Your solution is quite good, but the biggest problem for me was that advanced math at the end :). Unless I got something wrong, it seems that you have to count for every even number (2n) number of possible outcomes where you always have less or equal heads than tails and after 2n throws you have exact number of heads and tails, which is non-trivial, at least to me...

 

Actually, the math comes out to the following and I was bored at work so I proved it...

It turns out the answer is that you stop the second your ratio is greater than 1/2. Now, solving the expected value of this problem is key. So using @derivstrader5 scenario, 1st flip, if heads you stop. if tails you continue. On 2nd flip, in either scenario, you don't stop, so actually we deduce that the game ends only on an odd flip (why? think of this problem as the first stopping time such that the number of heads > number of tails. the first occurance can only on an odd number of flips).

Now let's say you are given that the game stopped on the 1st, 3rd, or 5th flip, how many heads do you have? In each respective case, you have 1,2, and 3 heads. Why? Because again, it is the first time such that the number of heads is greater than the number of tails.

Now, we have a closed form sum of the expected value which is:

Sum i=0 to infinity ( {[(1/2)^(i)]/C} * { (i+1)/(2i+1)} )

where C is a normalizing constant to normalize the distribution of the probability space of the length of the game. Solving the rest from here is trivial. Also, this game is very similar to a perpetual american put because if you think about it, you are exercising your option. In this game, it is actually a perpetual call option with a boundary with strike 0.

 

@"woohoobaby": Thank you for your response. I understand everything, expect what C actually means. By solving this, I got that we have C=1 when i =1, C=1/2 when i=2, and C=1/5 when i=3. Could you explain what C means and represents a bit more :)

 

@"woohoobaby" : From your post it seems like C is equal 2/3 (a bit of calculations with geometric progressionss:)). It seems to me that you assumed that there is a probability [(1/2)^(2i+1)] that the game will stop after (2i+1)- flips, which isn't true in all cases. For example, when i=2 there is a probability 2/32 that the game will stop after (2*2+1=5)-flips, the possible desired results of tossing a coin are {TTHHH- first you get tail, then another tail and so on..., and THTHH}. Did I misunderstood your meaning of C?

 

Tempore asperiores dolor quas voluptatem temporibus. Harum voluptas et a reprehenderit quas voluptatem deserunt eaque. Nulla iusto est suscipit ex ut voluptas.

Atque voluptatibus eius officia asperiores. Et nihil sed blanditiis ex quo laudantium. Eaque ea voluptates laudantium. Consectetur eum error quibusdam et quam magni eaque. Dolore sunt mollitia omnis voluptas consectetur.

Career Advancement Opportunities

August 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • JPMorgan 01 98.3%
  • Morgan Stanley 08 97.8%
  • Goldman Sachs 02 97.2%

Overall Employee Satisfaction

August 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.9%
  • Morgan Stanley 01 98.3%
  • Banco Santander 02 97.8%
  • BMO Capital Markets 12 97.2%

Professional Growth Opportunities

August 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • Morgan Stanley 06 98.3%
  • Goldman Sachs 01 97.8%
  • JPMorgan 01 97.2%

Total Avg Compensation

August 2026 Investment Banking

  • Vice President (16) $429
  • Associates (48) $259
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (25) $178
  • Intern/Summer Associate (14) $159
  • 1st Year Analyst (83) $151
  • Intern/Summer Analyst (75) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
kanon's picture
kanon
99.0
3
Secyh62's picture
Secyh62
99.0
4
BankonBanking's picture
BankonBanking
99.0
5
CompBanker's picture
CompBanker
98.9
6
DrApeman's picture
DrApeman
98.9
7
dosk17's picture
dosk17
98.9
8
GameTheory's picture
GameTheory
98.9
9
Betsy Massar's picture
Betsy Massar
98.9
10
Linda Abraham's picture
Linda Abraham
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”