Interview Question - Flipping a coin

I have received is question on an interview.

"If I offered you a game where you would flip a coin until you get a tails and you receive 2^n payout where n is the number of flips, how much would you pay me for this game?"

Meaning if I got 4 heads in a row, My payout would 2^4 or $16.

My Solution: the expected value at all states is equal to (1/2)^n * 2^n = 1, summed across all states would be infinity. Infinity sounds like a stupid answer because why would you pay an infinite amount to receive possible a few dollars. Do you guys have other insights into this question?

10 Comments
 
Best Response

This is the St. Peter's paradox, and it's a paradox because, as you correctly state, the expected value of this game is infinite, but it would be stupid to pay a very large amount to play it.

There are a lot of reasons for this. One is risk aversion, and people don't want to risk $100 for a very small chance to make a profit (will happen about 1/64 of the time).

That doesn't fully answer it, because not everyone is risk averse, so why shouldn't a rational person who enjoys gambling play for a massive amount of money? I believe the best response to this is diminishing marginal return of the payout...by the time you get to, say, the 200th 1 that is being factored in, the odds are miniscule (1 in 10^15) and they only continue to add 1 because they are being multiplied by an increasing number.

Since in real life a $1 quadrillion payout has about the same meaning as a $1 quinitillion payout, we shouldn't take the "1"s that we factor into the E(V) seriously after a certain point. I believe different people will pay a different amount for this game based on where they start to make that cut off, in conjunction with their appetite for risk.

Read more about it here: http://plato.stanford.edu/entries/paradox-stpetersburg/

Hope this helps.

 

With respect to your question, it really is just asking for the mean of geometric distribution (google this if you do not know what it means; alternatively, refer to http://en.wikipedia.org/wiki/Geometric_distribution).

In short, your expected return should simply be 2. You should not pay more than 2 to play this game - it doesn't matter that this game could potentially stretch to infinity.

As has been mentioned, P(X=n) = [(1-p)^(n-1)]p = [(1-0.5)^(n-1)]0.5 = 0.5^(n). This would thus generate E(x)= 1/p = 1/0.5 = 2.

If the price to play this game were 2, you'd play it. Conversely, you wouldn't play if the game cost > 2 simply because you're already at a disadvantage at the first toss (remember the probability of you getting it right on the nth count diminishes as n increases).

everythingsucks, T3H: Thanks for pointing that out - I had erroneously considered the 2^0 case which is impossible. Corrected the reasoning.

 

Suppose I am indifferent between winning 2^23 = 8, 388, 608 and 2^24 = 16, 777, 216, because having around 8 million dollars is more money than I'll ever need, so having anything more than that adds no practical value.

Then for me, personally, this game is equivalent to a game that is as follows: Keep flipping coins until you get tails. Then for n in {1,2,......,22,23}, if the number if flips is n, the payoff is 2^n. If you don't get tails in 23 flips, you still get 2^n. Then the expected payoff of this game is (very very close to) 23$. Which, should then be the fair price of the game.

-MBP
 
everythingsucksSuppose I am indifferent between winning 2^23 = 8, 388, 608 and 2^24 = 16, 777, 216, because having around 8 million dollars is more money than I'll ever need, so having anything more than that adds no practical value.

Then for me, personally, this game is equivalent to a game that is as follows: Keep flipping coins until you get tails. Then for n in {1,2,......,22,23}, if the number if flips is n, the payoff is 2^n. If you don't get tails in 23 flips, you still get 2^n. Then the expected payoff of this game is (very very close to) 23$. Which, should then be the fair price of the game.

This wouldn't make sense as, by your argument, you could theoretically have any value for an answer and that would be in no way rational.

As a matter of fact, if you reckon $23 to be fair value, you'd "rationally" want to play this game each time I offered you a chance to play at $23 even though the probability of you making a profit is 1/32 (ie. 2^5 where you need to land your first tail on the fifth flip).

Obviously, the probability diminishes as n tends to infinity and I still stand by the crux of the argument that the fair value should revolve around the probability of you getting it right the first time - clearly, this is not a game where you ideally hope to win on the nth try where n is exponentially large (that would be akin to playing the lottery).

To qualify this further, I was actually asked a similar question at a S&T interview some years back with a follow-up question if, assuming I had a tail after 100 attempts, would I still be keen to carry on with this game if I were allowed to rescind the 100th flip (ie. assume it had actually been a head) in exchange for just 1 more flip (with a payout of 2^101 if the 101st flip is a tail). The caveat, however, is that if the 101st flip yields a head, my payout would only be 2^99.

Clearly, while there's no definitive answer to this question, the paradox presented herein has a practical element and limitation with respect to reality as oftentimes, resources aren't infinite (in the context of S&T) and it would clearly make sense to take the 2^100 on offer than risk losing half your profit by flipping one more time.

everythingsucks: this is essentially the 2^n and 2^(n+1) paradox you mentioned above, but this really has no mathematical connotation involved in the context of an interview question

 

Dolor omnis molestias suscipit. Deserunt velit non error sint dolores adipisci. Corporis dicta necessitatibus saepe voluptates quis nisi vel. Deleniti autem corrupti ipsum vero magni. Dicta doloribus labore id nihil alias beatae consectetur architecto. Perferendis porro et officia et unde. Sed perspiciatis necessitatibus fuga reiciendis.

Architecto iste voluptatem adipisci itaque. Aperiam facilis laboriosam eveniet blanditiis. Ipsum sapiente qui beatae atque doloribus.

Illum qui quia enim error velit nihil cupiditate. Laudantium aut est possimus rerum doloremque. Quidem distinctio quibusdam quod at ab a.

Career Advancement Opportunities

June 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • JPMorgan 01 98.3%
  • Guggenheim Partners 01 97.7%
  • Morgan Stanley 07 97.1%

Overall Employee Satisfaction

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Morgan Stanley 02 98.8%
  • Evercore 01 98.3%
  • BMO Capital Markets 12 97.7%
  • Banco Santander 01 97.1%

Professional Growth Opportunities

June 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • Morgan Stanley 05 98.3%
  • JPMorgan No 97.7%
  • Goldman Sachs 02 97.1%

Total Avg Compensation

June 2026 Investment Banking

  • Vice President (14) $434
  • Associates (44) $258
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (13) $156
  • 1st Year Analyst (79) $150
  • Intern/Summer Analyst (73) $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
dosk17's picture
dosk17
98.9
6
CompBanker's picture
CompBanker
98.9
7
GameTheory's picture
GameTheory
98.9
8
DrApeman's picture
DrApeman
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...”