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
How many rolls of a fair N-sided die are required, on average, to observe every face at least once? Compute the value for N=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 T be the total number of rolls of a fair N-sided die needed to observe every face at least once. Define stage k (k=1,…,N) as the period that begins the moment the (k−1)-th distinct face was first seen and ends when the k-th distinct face is first seen. Writing Tk for the number of rolls in stage k,
T=T1+T2+⋯+TN.
Distribution of each stage
At the start of stage k, exactly k−1 faces have been observed. Each roll independently reveals a previously unseen face with probability
pk=NN−(k−1)=NN−k+1.
Hence Tk∼Geometric(pk) (number of trials until first success), so
E[Tk]=pk1=N−k+1N.
Closed-form expected value
By linearity of expectation,
E[T]=k=1∑NN−k+1N.
Reindexing with j=N−k+1 (as k runs 1→N, j runs N→1):
E[T]=Nj=1∑Nj1=N⋅HN,
where HN=j=1∑Nj1 is the N-th harmonic number.
Numerical evaluation for N=100
Using the Euler–Maclaurin asymptotic expansion
HN=lnN+γ+2N1−12N21+120N41−⋯,
with γ=0.57721566490153… (Euler–Mascheroni constant):
A fair coin is flipped repeatedly until the first heads appears. The payout is 2n dollars if the first heads occurs on the nth toss. Determine the fair value of this game. If the expected value is infinite, output −1.
Solution
Let N be the number of coin flips until the first heads appears. Since the coin is fair, N follows a geometric distribution with success probability 1/2: P(N=n)=(1/2)n for n=1,2,3,… (the first n−1 flips are tails and the nth flip is heads). The payout when N=n is 2n dollars. The expected value of the payout is
A fair standard die is rolled until two consecutive 1s 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×2 linear system.
States and equations
Let p=61 be the probability of rolling a 1. Define:
S0: start, or the last roll was not a 1.
S1: the last roll was a 1 (one consecutive 1 in progress).
Let μ0,μ1 be the expected number of additional rolls needed to reach absorption (two consecutive 1s) from each state.
From S0 — one roll is used; with probability 61 we move to S1, with probability 65 we remain in S0:
μ0=1+61μ1+65μ0.
From S1 — one roll is used; with probability 61 we finish (0 more rolls), with probability 65 we return to S0:
Three independent random variables X, Y, and Z are each uniformly distributed on [0,1]. What is the probability that X, Y, and Z 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) for any one of them.
Setup
Let X,Y,Z∼iidUniform[0,1]. Define the failure events
A={X+Y≤Z},B={X+Z≤Y},C={Y+Z≤X}.
Mutual Exclusivity of A, B, C
Suppose A∩B occurs: X+Y≤Z and X+Z≤Y. Adding these inequalities gives 2X+Y+Z≤Y+Z, hence X≤0. Since X≥0 a.s., this forces X=0, an event of probability zero. By symmetry, every pairwise intersection has measure zero, so A, B, C are mutually exclusive a.s. Combined with symmetry of the joint distribution,
P(A∪B∪C)=P(A)+P(B)+P(C)=3P(A).
Computing P(A)
Condition on Z=z. The event {X+Y≤z} within [0,1]2 traces the right triangle {x≥0,y≥0,x+y≤z}, which has area z2/2. Therefore
Two players share a fair coin and flip it repeatedly, recording the sequence of heads (H) and tails (T) that appears. The first player wins if HTH occurs before HHT; 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 HTH; Player 2 wins on HHT.
The transient states are {ε,H,HH,HT}, where ε denotes no useful suffix (start, or after a progress-resetting tail).
State
Flip H
Flip T
ε
H
ε
H
HH
HT
HH
HH
P2 wins
HT
P1 wins
ε
Remark on HHHHH: after any run of heads, the longest suffix that prefixes a target is still HH (the length-2 prefix of HHT).
System of Equations
Let ps denote the probability that Player 1 wins from state s.
Equation (3) reflects that HH is a trap: every additional H keeps the game in HH, and the inevitable first T completes HHT, so Player 1 cannot win from HH.
Solution
Substituting (3) into (2):
pH=21pHT.
Combined with (1), we have pε=pH=21pHT. Substituting into (4):
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.
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.
A witness claims that a trader leaked intellectual property from a quant firm. Witnesses are correct 2/3 of the time. At the firm, 2/3 of the employees are traders and 1/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.
ProbabilityEasyHudson River TradingFive RingsJump Trading
Ten chords on a circle have endpoints positioned uniformly and independently along the circumference. Calculate the expected number of crossing points.
Approach
Decompose the total number of crossings into a sum over unordered pairs of chords.
In a pile of 100 coins, 1 coin is two-headed and 99 are fair. You select a coin at random and flip it 10 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.
14 slips numbered 1−14 are placed in a random order. A position i 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.
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.
Michael rides a remote-control skateboard around campus. The front of the Hopkins sign is the origin (0,0); rightward is positive x and into campus (upward) is positive y. Every second he picks an angle uniformly from [0,2π) and moves 1 foot in that direction from his current position. After 16 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.
A casino offers a game with a fair 6-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.
There are N 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 K clusters, each moving at a distinct speed. Find the expected value of K when N=10.
Approach
Consider the speeds of the cars in order from front to back and think about which cars become cluster leaders.
You generate a uniformly random number in (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.
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.