Quantitative Interview Questions 2026

Practice Bank

Probability Questions

5 free questions

↗
You have an unbiased \( 30\)-sided die, and \( 100 \) moves. The die starts on the side with \( 1 \) on it. You can choose to re-roll the die, which takes \( 1 \) move, or take money which is the face value of the die, which takes \( 2 \) moves. An example of how this could play out is: You re-roll the dice, using \( 1 \) move, and it lands on \( 13 \). You choose to take money, which takes two moves, and you recieve \( $13 \). You have \( 97 \) moves left. How can you extract maximum profit from this game?


A logical way to begin this is to consider the expected value of multiple events. Let's try and wait until the die reaches \( 30 \), taking an expected amount of rolls as \( 30 \). Now, we have \( 70 \) moves left, so we can take \( 35 * 30 = $1050 \).

Now, logically, we can cut the expected value of getting \( 30 \) in half by aiming for \( 29 \) or \( 30 \), which will take \( 15 \) rolls. We have the same chance of getting \( 29 \) as we do \( 30 \), so the expected value here is \( 29.5 \). Dividing \( 85 \) moves (remaining left) by \( 2 \) and multiplying by \( 29.5 \) gives \( $1253.75 \), so more profitable than waiting for a \( 30 \) to be rolled.

We can continue this until we find the optimum number, which turns out to be waiting for a \( 27, 28, 29, \) or \(30 \), and then continously taking the money, which give EV of \( $1318.13 \).

This equation is generalised to be: \[ P = \frac{100 - \frac{x}{n}}{2} * \frac{\sum_{i=1}^{n-1} x - i}{n} \] for an x-sided dice.
Optimisation
↗
You are given an even coin, and 50 flips of this coin. You can choose to flip, or cashout. Every time you flip a heads, $10 is added to your winnings. You can cashout only when a heads is present, But you will no longer be able to play the game. If you reach the end of the 50 flips, and the last flip is a tails, then you recieve no money. What is the optimal strategy for this game?


As with all optimisation questions, we will pose a strategy and then calculate various outcomes for each of those strategies. Our success metric will be expected value, as this will tell us how much money we will make per attempt. Let's begin by employing a simple strategy, whereby the first 49 flips are completed, and then (hopefully) take our money out on the last flip. Let's calculate the expected number of heads, denoting E[H] as the average number of heads per 49 coin flips: \[ E[H] = 49 * 0.5 = 24.5 \] There are two outcomes for the next result: We land a heads, achieving 25.5 total heads and taking out \( 25.5 * 10 = $255 \) dollars, or we land a tails, and lose everything. This gains an expected value of: \[ E[X] = 255 * \frac{1}{2} + 0 * \frac{1}{2} = $127.50 \] Now, we can certainly optimise this by allowing a higher chance of landing a heads and be able to withdraw our money. Now let's consider the event where we flip the coin 48 times, and then withdraw our money if either of the next 2 coin flips land on heads: \[ E[H] = 48 * 0.5 = 24 \] Now, there are 3 events that can occur:
1. We land a heads on the 49th attempt, bringing us to 25 heads flips, and we withdraw our money. This event has a \( \frac{1}{2} \) chance of occuring.
2. We land a tails on the 49th attempt, and then land a heads on the 50th attempt, bringing us to 25 heads flips, and allowing us to withdraw our money. This event has a \( \frac{1}{4} \) chance of occuring.
3. We land a tails on both the 49th attempt and 50th attempt, meaning we lose all our saved up money. This event has a \( \frac{1}{4} \) chance of occuring.

Converting this to expected value, we get: \[ E[X] = 250 * \frac{1}{2} + 250 * \frac{1}{4} + 0 * \frac{1}{4} = 250 * \frac{3}{4} = $187.50 \] If you haven't discovered a pattern yet, we can equate this into an equation, and solve to optimise for the number of coin flips to begin considering banking. If we decide to bank on the 50th throw, we will have \( E[X] = 10 (\frac{49}{2} + 1) * \frac{1}{2} \), if we decide to bank on the 49th throw and beyond, we will have \( E[X] = 10 * (\frac{48}{2} + 1) * \frac{3}{4} \), if we decide to bank on the 48th throw and beyond, we wil have \( E[X] = 10 * (\frac{47}{2} + 1) * \frac{7}{8} \). Thus, we can model this as: \[ E[X] = 10 * (\frac{50 - n}{2} + 1) * \frac{2^n - 1}{2^n} \] where \( n \) is 50 subtracted by the number before you will bank if a heads appears. We can use this to optimally calculate each value:

For n = 3: \[ E[X] = 10 * (\frac{47}{2} + 1) * \frac{7}{8} = 245 * \frac{7}{8} = $214.38 \] For n = 4: \[ E[X] = 10 * (\frac{46}{2} + 1) * \frac{15}{16} = 240 * \frac{15}{16} = $225.00 \] For n = 5: \[ E[X] = 10 * (\frac{45}{2} + 1) * \frac{31}{32} = 235 * \frac{31}{32} = $227.65 \] For n = 6: \[ E[X] = 10 * (\frac{44}{2} + 1) * \frac{63}{64} = 230 * \frac{63}{64} = $226.41 \] Since n = 5 generates a greater profit than n = 6, it seems like we have identified a local maximum. Therefore, the optimum strategy we found would be to start banking on any heads that appears after the 45th flip, which would return an average of $227.65 per game.

To further optimise this solution, we could introduce a dynamic programming system which updates on every roll. Although this method is impractical for quantitative trading, since you typically will not have access to program in the interview, it may be beneficial for you to bring this up.
Optimisation
↗
You are playing a dice rolling game. If the dice rolls on the number 6, you lose all money, but if the dice rolls on anything else, you have the option to stop the game and take the money, or to roll again. What strategy will return the highest profit possible?
In order to maximise our expected profit for this game, compare the current bankroll \( n \) with the expected value of rolling again. If we roll again, then a 1, 2, 3, 4, or 5 adds to our bankroll, while a 6 loses everything: \[ E(\text{roll} | n) = \frac{(n+1)+(n+2)+(n+3)+(n+4)+(n+5)+0}{6} \] \[ E(\text{roll} | n) = \frac{5n+15}{6} \] We should roll when this is greater than simply stopping with \( n \): \[ \frac{5n+15}{6} > n \] \[ 15 > n \] Therefore, the optimal simple threshold strategy is to keep rolling while your bankroll is below $15, be indifferent at $15, and stop once your bankroll is above $15.
Optimisation
↗
You have a bag containing 13 red marbles and 7 blue marbles. You draw marbles one at a time without replacement. For each red marble you draw, you win $5. However, if you draw a blue marble, the game ends immediately and you lose all your winnings. What is the optimal strategy for deciding when to stop drawing and cash out?
We will calculate and compare the expected value of pulling out a marble and the current balance. At the beginning, the bank balance is $0. The expected value of pulling out a marble is given by: \[ \frac{13}{20} * $5 + \frac{7}{20} * $0 = $3.25 \] Since \( $3.25 \) is greater than the bank balance (\( $0 )\), it is profitable to pull out a marble.

Now, we have a balance of \( $5 \). The expected value of pulling out another marble is given by: \[ \frac{12}{19} * $10 + \frac{7}{19} * $0 \approx $6.32 \] Once again, since \( \approx $6.32 \) is greater than the bank balance (\( $5 )\), it is profitable to pull out a marble.

The expected value of pulling out another marble is given by; \[ \frac{11}{18} * $15 + \frac{7}{18} * $0 \approx $9.17 \] Since \( $9.17 \) is less than the bank balance (\( $10 )\), it is not profitable to pull out a marble.

Therefore, the optimal strategy is to pull out a maximum of 2 marbles and then quit.
Optimisation
↗
In tennis, players play 'sets', and the first player to win 2 sets wins a match. Up to 3 sets can be played, if both players win a set each. If you didn't know the probability of each player winning a set, would you bet on a match going to 3 sets or only going 2 sets? Type 1 for 3 sets, and 2 for 2 sets respectively.
Let \( p \) be the odds that player A wins a set, and let \( 1 - p \) be the odds that player B wins a set.

Therefore, the probability that the match ends in 2 sets is given by \( p^2 + (1 - p)^2 \), and the probability that the match ends in 3 sets is given by \( 2*p*(1 - p) \). Let's create an inequality: \[ p^2 + (1 - p)^2 \ge 2p(1 - p) \] simplifying this, we get: \[ 2p^2 - 2p + 1 - 2p + 2p^2 \ge 0 \] \[ 4p^2 - 4p + 1 \ge 0 \] We need to check if the inequality holds for \( 0 < p < 1 \). The local minimum is given by: \[ \frac{d}{dp} = 8p - 4 \] \[ 4 = 8p \] \[ p = \frac{1}{2} \] The local minimum is at \( \frac{1}{2} \). Substituting this into the equation we get: \[ 4 * (\frac{1}{2})^2 - 4 * \frac{1}{2} + 1 \ge 0 \] \[ 1 - 2 + 1 \ge 0 \] \[ 0 \ge 0 \] The local minimum at \( \frac{1}{2} \) satisfies the inequality.

Therefore, the equation \( p^2 + (1 - p)^2 \ge 2p(1 - p) \) satisfies for all values, and we can conclude that a tennis match being won in 2 sets is more probable than a match being won in 3 sets.

Final Answer

2
Optimisation
6

You have a six-sided die. You keep a cumulative total of your rolls. If, at…

Unlock the rest

Explore the complete question bank, with hints and worked solutions.

Unlock all interview questions →

© 2026 EverythingQuant. All Rights Reserved.