Quant interview prep

Probability interview questions

Probability is the backbone of every quant interview — expected value, conditional probability, Markov chains, and the classic coin, dice, and card games desks reach for first. Work through the set below, then drill the full bank with hints, answers, and worked solutions.

1,130 probability questions · 30 free to preview · 2,516 problems total

16 practice questions

FreeProbabilityEasyJane StreetSIGFive Rings

How many rolls of a fair NN-sided die are required, on average, to observe every face at least once? Compute the value for N=100N = 100, rounded to the nearest integer.

Solution

Coupon Collector's Problem

High-level idea. Decompose the total waiting time into independent geometric stages, then apply linearity of expectation.

Stage decomposition

Let TT be the total number of rolls of a fair NN-sided die needed to observe every face at least once. Define stage kk (k=1,,Nk = 1, \ldots, N) as the period that begins the moment the (k1)(k{-}1)-th distinct face was first seen and ends when the kk-th distinct face is first seen. Writing TkT_k for the number of rolls in stage kk,

T=T1+T2++TN.T = T_1 + T_2 + \cdots + T_N.

Distribution of each stage

At the start of stage kk, exactly k1k-1 faces have been observed. Each roll independently reveals a previously unseen face with probability

pk=N(k1)N=Nk+1N.p_k = \frac{N-(k-1)}{N} = \frac{N-k+1}{N}.

Hence TkGeometric(pk)T_k \sim \operatorname{Geometric}(p_k) (number of trials until first success), so

E[Tk]=1pk=NNk+1.E[T_k] = \frac{1}{p_k} = \frac{N}{N-k+1}.

Closed-form expected value

By linearity of expectation,

E[T]=k=1NNNk+1.E[T] = \sum_{k=1}^{N} \frac{N}{N-k+1}.

Reindexing with j=Nk+1j = N-k+1 (as kk runs 1N1 \to N, jj runs N1N \to 1):

E[T]=Nj=1N1j=NHN,E[T] = N \sum_{j=1}^{N} \frac{1}{j} = N \cdot H_N,

where HN=j=1N1jH_N = \displaystyle\sum_{j=1}^{N} \frac{1}{j} is the NN-th harmonic number.

Numerical evaluation for N=100N = 100

Using the Euler–Maclaurin asymptotic expansion

HN=lnN+γ+12N112N2+1120N4,H_N = \ln N + \gamma + \frac{1}{2N} - \frac{1}{12N^2} + \frac{1}{120N^4} - \cdots,

with γ=0.57721566490153\gamma = 0.57721566490153\ldots (Euler–Mascheroni constant):

H1004.60517018598809ln100+0.57721566490153γ+0.005000000000001/2000.000008333331/1200005.18737752.\begin{aligned} H_{100} &\approx \underbrace{4.60517018598809}_{\ln 100} + \underbrace{0.57721566490153}_{\gamma} + \underbrace{0.00500000000000}_{1/200} - \underbrace{0.00000833333}_{1/120000} \\ &\approx 5.18737752. \end{aligned}

Therefore,

E[T]N=100=100×H100518.74.E[T]\big|_{N=100} = 100 \times H_{100} \approx 518.74.

Rounded to the nearest integer:

519.\boxed{519}.
FreeProbabilityEasyJane StreetSIGFive Rings

A fair coin is flipped repeatedly until the first heads appears. The payout is 2n2^n dollars if the first heads occurs on the nnth toss. Determine the fair value of this game. If the expected value is infinite, output 1-1.

Solution

Let NN be the number of coin flips until the first heads appears. Since the coin is fair, NN follows a geometric distribution with success probability 1/21/2: P(N=n)=(1/2)nP(N = n) = (1/2)^n for n=1,2,3,n = 1, 2, 3, \dots (the first n1n-1 flips are tails and the nnth flip is heads). The payout when N=nN = n is 2n2^n dollars. The expected value of the payout is

E[payout]=n=12nP(N=n)=n=12n(12)n=n=11=.E[\text{payout}] = \sum_{n=1}^{\infty} 2^n \cdot P(N = n) = \sum_{n=1}^{\infty} 2^n \cdot \left(\frac{1}{2}\right)^n = \sum_{n=1}^{\infty} 1 = \infty.

Since the expected value is infinite, the game does not have a finite fair value. Per the problem instructions, output 1-1.

FreeProbabilityEasyJane StreetSIGFive Rings

A fair standard die is rolled until two consecutive 11s first appear. Find the expected number of rolls.

Solution

High-level idea

Model the process as a Markov chain with two transient states tracking the current "run" of consecutive 1s. Set up first-step equations and solve the 2×22\times 2 linear system.

States and equations

Let p=16p = \tfrac{1}{6} be the probability of rolling a 1. Define:

  • S0S_0: start, or the last roll was not a 1.
  • S1S_1: the last roll was a 1 (one consecutive 1 in progress).

Let μ0,μ1\mu_0,\mu_1 be the expected number of additional rolls needed to reach absorption (two consecutive 1s) from each state.

From S0S_0 — one roll is used; with probability 16\tfrac{1}{6} we move to S1S_1, with probability 56\tfrac{5}{6} we remain in S0S_0:

μ0=1+16μ1+56μ0.\mu_0 = 1 + \frac{1}{6}\mu_1 + \frac{5}{6}\mu_0.

From S1S_1 — one roll is used; with probability 16\tfrac{1}{6} we finish (0 more rolls), with probability 56\tfrac{5}{6} we return to S0S_0:

μ1=1+56μ0.\mu_1 = 1 + \frac{5}{6}\mu_0.

Solving the system

Rearranging the first equation:

μ056μ0=1+16μ1    μ0=6+μ1.\mu_0 - \frac{5}{6}\mu_0 = 1 + \frac{1}{6}\mu_1 \implies \mu_0 = 6 + \mu_1.

Substituting μ1=1+56μ0\mu_1 = 1 + \tfrac{5}{6}\mu_0:

μ0=7+56μ0    16μ0=7    μ0=42.\mu_0 = 7 + \frac{5}{6}\mu_0 \implies \frac{1}{6}\mu_0 = 7 \implies \mu_0 = 42.

Check: μ1=1+56(42)=36\mu_1 = 1 + \tfrac{5}{6}(42) = 36, and 6+36=426 + 36 = 42. ✓

Final answer

The expected number of rolls is 42\boxed{42}.

FreeProbabilityEasyJane StreetSIGFive Rings

Three independent random variables XX, YY, and ZZ are each uniformly distributed on [0,1][0, 1]. What is the probability that XX, YY, and ZZ are the side lengths of a valid triangle?

Solution

Idea

Work with the complement: a triple fails the triangle inequality if and only if one side is at least as large as the sum of the other two. The three failure events turn out to be mutually exclusive, so the failure probability is simply 3P(A)3P(A) for any one of them.

Setup

Let X,Y,ZiidUniform[0,1]X, Y, Z \overset{\text{iid}}{\sim} \text{Uniform}[0,1]. Define the failure events

A={X+YZ},B={X+ZY},C={Y+ZX}.A = \{X+Y \le Z\}, \quad B = \{X+Z \le Y\}, \quad C = \{Y+Z \le X\}.

Mutual Exclusivity of AA, BB, CC

Suppose ABA \cap B occurs: X+YZX+Y \le Z and X+ZYX+Z \le Y. Adding these inequalities gives 2X+Y+ZY+Z2X + Y + Z \le Y + Z, hence X0X \le 0. Since X0X \ge 0 a.s., this forces X=0X = 0, an event of probability zero. By symmetry, every pairwise intersection has measure zero, so AA, BB, CC are mutually exclusive a.s. Combined with symmetry of the joint distribution,

P(ABC)=P(A)+P(B)+P(C)=3P(A).P(A \cup B \cup C) = P(A) + P(B) + P(C) = 3\,P(A).

Computing P(A)P(A)

Condition on Z=zZ = z. The event {X+Yz}\{X + Y \le z\} within [0,1]2[0,1]^2 traces the right triangle {x0,y0,x+yz}\{x \ge 0,\, y \ge 0,\, x+y \le z\}, which has area z2/2z^2/2. Therefore

P(A)=01z22dz=1213=16.P(A) = \int_0^1 \frac{z^2}{2}\,dz = \frac{1}{2} \cdot \frac{1}{3} = \frac{1}{6}.

Final Answer

P(valid triangle)=1316=112=12.P(\text{valid triangle}) = 1 - 3 \cdot \frac{1}{6} = 1 - \frac{1}{2} = \boxed{\dfrac{1}{2}}.
FreeProbabilityHardJane StreetSIGFive Rings

Two players share a fair coin and flip it repeatedly, recording the sequence of heads (HH) and tails (TT) that appears. The first player wins if HTHHTH occurs before HHTHHT; otherwise, the second player wins. What is the probability that the first player wins?

Solution

Idea

Track the game state as the longest suffix of the flip sequence that is a prefix of either target pattern. This yields a small Markov chain whose first-step equations determine the win probability exactly.

States and Transitions

Target patterns: Player 1 wins on HTHHTH; Player 2 wins on HHTHHT.

The transient states are {ε,H,HH,HT}\{\varepsilon,\, H,\, HH,\, HT\}, where ε\varepsilon denotes no useful suffix (start, or after a progress-resetting tail).

StateFlip HHFlip TT
ε\varepsilonHHε\varepsilon
HHHHHHHTHT
HHHHHHHHP2 wins
HTHTP1 winsε\varepsilon

Remark on HHHHHHH \xrightarrow{H} HH: after any run of heads, the longest suffix that prefixes a target is still HHHH (the length-2 prefix of HHTHHT).

System of Equations

Let psp_s denote the probability that Player 1 wins from state ss.

pε=12pH+12pε    pε=pH(1)p_{\varepsilon} = \tfrac{1}{2}p_H + \tfrac{1}{2}p_{\varepsilon} \implies p_{\varepsilon} = p_H \tag{1} pH=12pHH+12pHT(2)p_H = \tfrac{1}{2}p_{HH} + \tfrac{1}{2}p_{HT} \tag{2} pHH=12pHH+120    pHH=0(3)p_{HH} = \tfrac{1}{2}p_{HH} + \tfrac{1}{2}\cdot 0 \implies p_{HH} = 0 \tag{3} pHT=121+12pε(4)p_{HT} = \tfrac{1}{2}\cdot 1 + \tfrac{1}{2}\,p_{\varepsilon} \tag{4}

Equation (3) reflects that HHHH is a trap: every additional HH keeps the game in HHHH, and the inevitable first TT completes HHTHHT, so Player 1 cannot win from HHHH.

Solution

Substituting (3)(3) into (2)(2):

pH=12pHT.p_H = \tfrac{1}{2}p_{HT}.

Combined with (1)(1), we have pε=pH=12pHTp_{\varepsilon} = p_H = \tfrac{1}{2}p_{HT}. Substituting into (4)(4):

pHT=12+1212pHT=12+14pHT.p_{HT} = \frac{1}{2} + \frac{1}{2}\cdot\frac{1}{2}p_{HT} = \frac{1}{2} + \frac{1}{4}p_{HT}. 34pHT=12    pHT=23.\frac{3}{4}p_{HT} = \frac{1}{2} \implies p_{HT} = \frac{2}{3}. pε=1223=13.p_{\varepsilon} = \frac{1}{2}\cdot\frac{2}{3} = \boxed{\dfrac{1}{3}}.

The game begins in state ε\varepsilon, so Player 1 wins with probability 13\dfrac{1}{3}.

ProbabilityWarmupJane StreetSIGFive Rings

Three ants are placed, one on each side of an equilateral triangle. Each ant independently chooses one of the two adjacent vertices with equal probability and moves there. What is the probability that no two ants meet at a vertex?

Approach

Label the vertices and assign each ant to the side opposite its starting vertex, then list the possible moves.

ProbabilityWarmupJane StreetSIGFive Rings

On a game show, you choose one of three doors at random. Behind one door is a car; behind the other two are goats. The host, who knows what is behind each door, then opens a different door that reveals a goat. You are given the option to either stick with your original door or switch to the other unopened door. What is the probability of winning the car if you switch?

Approach

Consider the probability that your initial guess was wrong, and what happens if you switch in that case.

ProbabilityWarmupJane StreetSIGFive Rings

A witness claims that a trader leaked intellectual property from a quant firm. Witnesses are correct 2/32/3 of the time. At the firm, 2/32/3 of the employees are traders and 1/31/3 are researchers. Given the witness's statement, what is the probability that the leaker was a trader?

Approach

Identify the prior probabilities for the leaker being a trader versus a researcher.

ProbabilityEasyJane StreetSIGFive Rings

In a pile of 100100 coins, 11 coin is two-headed and 9999 are fair. You select a coin at random and flip it 1010 times, seeing all heads. What is the probability that you selected the two-headed coin?

Approach

Set up two competing hypotheses — that you selected the two-headed coin or that you selected a fair coin — with their prior probabilities.

ProbabilityEasyJane StreetSIGFive Rings

14 slips numbered 1141-14 are placed in a random order. A position ii is called a local maximum if the slip there is strictly greater than each of its immediate neighbors. Find the expected number of local maxima. For example, with 6 numbers the arrangement 513246 has local maxima at positions 1, 3, and 6, giving 3 local maxima.

Approach

Write the total number of local maxima as a sum of indicator random variables, one for each position.

ProbabilityEasyJane StreetSIGFive Rings

25 fair coins are placed in a line and each is flipped once. All coins that land tails are then removed, and the remaining coins are all flipped again. This repeats until either no coins remain or a round of flips lands all heads. Find the probability that the game ends with an all-heads round.

Approach

Define $p_k$ as the probability of ending with all heads when $k$ coins remain, and write a recurrence for $p_k$ by conditioning on the number of heads in the current round.

ProbabilityEasyJane StreetCitadelTwo Sigma

Michael rides a remote-control skateboard around campus. The front of the Hopkins sign is the origin (0,0)(0,0); rightward is positive xx and into campus (upward) is positive yy. Every second he picks an angle uniformly from [0,2π)[0, 2\pi) and moves 1 foot in that direction from his current position. After 1616 seconds, what is the expected squared distance from the Hopkins sign?

Approach

Write the squared distance as the squared norm of a sum of random unit vectors and expand the square.

ProbabilityEasyJane StreetSIGIMC

A casino offers a game with a fair 66-sided die: you are paid the value of the roll. You may roll once; if satisfied, you cash out; otherwise, you may re-roll once and cash out the second value. What is the fair value of this game?

Approach

Decide on a threshold strategy: stop on the first roll if it is at least some value, otherwise re-roll and accept the second roll.

ProbabilityEasyJane StreetCitadelTwo Sigma

There are NN employees, each driving a separate car to QuantEssential. The cars are initially well-spaced and travel at distinct speeds assigned uniformly at random. Whenever a faster car catches up to a slower one, it adopts the slower car's speed. After a long time, the cars form KK clusters, each moving at a distinct speed. Find the expected value of KK when N=10N = 10.

Approach

Consider the speeds of the cars in order from front to back and think about which cars become cluster leaders.

ProbabilityEasyJane StreetSIGFive Rings

You generate a uniformly random number in (0,1)(0,1). You may either keep that number or generate one more number; your payout is the last number generated. What is the expected payout under optimal play?

Approach

Consider a threshold policy: keep the first number if it exceeds some value, otherwise draw a second number.

Related topics & firms

Frequently asked questions

How many probability questions does QuantGrind have?

1,130 probability questions in total across our 2,516-problem set. 30 are free to preview here; the rest unlock with a membership, each with hints, the accepted answer, and a full worked solution.

Are probability questions important for quant interviews?

Yes — probability shows up in nearly every quant trading and research process, from the first phone screen through the final round. Building fluency here is one of the highest-leverage things you can do to prepare.

What's the best way to practice probability for interviews?

Work problems timed and explain each step out loud, the way you would to an interviewer. When you miss one, redo it from scratch a day later — recognizing a problem is not the same as being able to solve a fresh variant fast.

Practice the full Probability set

Every question comes with progressive hints, the accepted answer, and a full worked solution. 100 free to start — no card required.