Solve probability and game-theory puzzles
This interview assesses your analytical and quantitative problem-solving skills through a series of probability and game theory puzzles.
1) Two Bottles, Add/Remove Balls (100 Rounds)
You have two bottles (A and B), initially empty, and an unlimited supply of identical balls. The game lasts 100 rounds.
In each round, you choose exactly one action:
- Add: One ball is placed into a uniformly random bottle (A or B). You do not observe which bottle received the ball.
- Remove: One bottle is chosen uniformly at random (A or B). If the chosen bottle is non-empty, you remove one ball (and you observe that you removed a ball). If the chosen bottle is empty, you remove nothing.
Goal: Maximize the expected number of balls removed over 100 rounds.
Tasks:
- Describe an optimal strategy.
- Compute the expected number of balls removed under that strategy.
2) 100 Coin Flips with Unknown Bias
A coin is flipped 100 times. The probability of Heads is an unknown parameter p, where p ~ Unif(0,1) a priori.
Before each flip, you must guess Heads or Tails. You earn $1 if your guess is correct.
Tasks:
- What guessing strategy maximizes expected winnings?
- Let X be the price to play (paid upfront). For what values of X (risk-neutral) would you be willing to play?
3) Stop/Continue with a 10-Sided Die (Single-Player and Competitive)
A fair 10-sided die (faces 1–10) is rolled repeatedly. You maintain a running profit S, starting at S=0.
- If you roll 2–10, you add that value to S.
- If you roll 1, the game ends immediately and your final payout is 0.
Before each roll (while the game has not ended), you may choose to stop and take your current S as payout.
Tasks (single-player): Determine the optimal stopping rule.
Tasks (two-player competition): Two players independently play this same game (each with their own die sequence). Each chooses when to stop. The player with the higher final payout receives their payout from a third party; the loser receives $0. (If tied, split equally.) Describe how optimal play changes vs. the single-player case.
4) Bidding the Sum of Two Dice with Private Information
Two fair six-sided dice are rolled, one assigned to each player.
- You see only your die outcome
a. - Your opponent sees only their die outcome
b.
Players take turns in an ascending bid game about the total sum a+b:
- On your turn, either raise to a strictly higher integer bid
k ∈ {2,...,12}, or challenge the previous bid. - A bid
kis a claim that the true sum satisfiesa+b ≥ k. - If a player challenges, the dice are revealed:
- If
a+b ≥ k, the last bidder wins. - Otherwise, the challenger wins.
- If
Task: Describe an optimal strategy (how to decide whether to raise or challenge, and what to raise to) as a function of your observed die value and the bid history.
AI interview prep
Core dilemma
Making optimal decisions under uncertainty and incomplete information, leveraging probabilistic reasoning, expected value calculations, and strategic game theory to maximize outcomes.
3 tradeoffs and 3 stress tests locked
Interview prep
Unlock the interviewer X-Ray rubric, tradeoff matrix, stress tests, clarifying questions, and key concepts.
Solve probability and game-theory puzzles
This interview assesses your analytical and quantitative problem-solving skills through a series of probability and game theory puzzles.
1) Two Bottles, Add/Remove Balls (100 Rounds)
You have two bottles (A and B), initially empty, and an unlimited supply of identical balls. The game lasts 100 rounds.
In each round, you choose exactly one action:
- Add: One ball is placed into a uniformly random bottle (A or B). You do not observe which bottle received the ball.
- Remove: One bottle is chosen uniformly at random (A or B). If the chosen bottle is non-empty, you remove one ball (and you observe that you removed a ball). If the chosen bottle is empty, you remove nothing.
Goal: Maximize the expected number of balls removed over 100 rounds.
Tasks:
- Describe an optimal strategy.
- Compute the expected number of balls removed under that strategy.
2) 100 Coin Flips with Unknown Bias
A coin is flipped 100 times. The probability of Heads is an unknown parameter p, where p ~ Unif(0,1) a priori.
Before each flip, you must guess Heads or Tails. You earn $1 if your guess is correct.
Tasks:
- What guessing strategy maximizes expected winnings?
- Let X be the price to play (paid upfront). For what values of X (risk-neutral) would you be willing to play?
3) Stop/Continue with a 10-Sided Die (Single-Player and Competitive)
A fair 10-sided die (faces 1–10) is rolled repeatedly. You maintain a running profit S, starting at S=0.
- If you roll 2–10, you add that value to S.
- If you roll 1, the game ends immediately and your final payout is 0.
Before each roll (while the game has not ended), you may choose to stop and take your current S as payout.
Tasks (single-player): Determine the optimal stopping rule.
Tasks (two-player competition): Two players independently play this same game (each with their own die sequence). Each chooses when to stop. The player with the higher final payout receives their payout from a third party; the loser receives $0. (If tied, split equally.) Describe how optimal play changes vs. the single-player case.
4) Bidding the Sum of Two Dice with Private Information
Two fair six-sided dice are rolled, one assigned to each player.
- You see only your die outcome
a. - Your opponent sees only their die outcome
b.
Players take turns in an ascending bid game about the total sum a+b:
- On your turn, either raise to a strictly higher integer bid
k ∈ {2,...,12}, or challenge the previous bid. - A bid
kis a claim that the true sum satisfiesa+b ≥ k. - If a player challenges, the dice are revealed:
- If
a+b ≥ k, the last bidder wins. - Otherwise, the challenger wins.
- If
Task: Describe an optimal strategy (how to decide whether to raise or challenge, and what to raise to) as a function of your observed die value and the bid history.