Probability interview questions and answers: puzzles, Bayes and expected value

Probability interview questions test whether you can set up a random experiment correctly and then compute with it: counting outcomes, conditioning on information, applying Bayes' rule, and finding expected values with linearity, indicators or recursion. Quant, data science and actuarial screens lean on classic puzzles such as the birthday problem, Monty Hall, expected rolls to see every face and waiting times for coin patterns. Interviewers care most about a clean setup and a sanity check, so say your sample space out loud before you calculate.

By Published 10 min read

Who gets probability questions, and in what form

Probability is the core of quantitative trading and research interviews, and it appears in data science, machine learning, actuarial and some software screens. The format ranges from mental-math rounds with a timer, where you are expected to answer simple questions quickly, to a whiteboard puzzle that takes twenty minutes and several hints. Some firms use online tests with many short questions; others ask one puzzle and then change it to see whether you can adapt. Expect follow-ups such as "what if the coin is biased?" or "what if there are n doors?" The point is how you reason under a slight change, not a memorized answer.

  1. Mental math or online testMany quick questions: dice sums, card draws, simple expected values. Speed and accuracy both count.
  2. Puzzle interviewOne or two problems talked through with an interviewer who gives hints. Your setup and the way you check your answer are graded.
  3. Applied roundFor data roles, probability shows up inside a product question, such as the chance a fraud alert is a true positive.
  4. Games and betting questionsSome trading interviews frame questions as bets: would you take this game, what would you pay to play, how would you size the bet.

Fundamentals questions

Counting, conditioning and basic distributions
QuestionWhat it testsWhat a strong answer shows
Two dice are rolled. What is the chance the sum is 7?Counting outcomes6 of the 36 equally likely ordered pairs, so 1/6. Mention that ordered pairs keep outcomes equally likely.
How many ways to choose a 5-card hand from 52 cards?Combinations52 choose 5, because order does not matter. Contrast with permutations when it does.
Are independent events and mutually exclusive events the same thing?DefinitionsNo. Mutually exclusive events with positive probability are dependent: if one happens, the other cannot.
What is the probability of at least one six in four rolls?Complement rule1 minus (5/6) to the 4th, about 0.518. Going through the complement avoids counting overlaps.
State Bayes' rule and give a use.ConditioningP(A given B) equals P(B given A) times P(A) over P(B). The classic use is a diagnostic test with a rare condition.
Expected number of rolls of a fair die until the first six?Geometric distribution6. The number of trials to the first success with probability p has mean 1/p.
What does memoryless mean?Geometric and exponentialThe remaining wait does not depend on how long you have already waited. Only the geometric (discrete) and exponential (continuous) distributions have it.
When is a Poisson distribution a good approximation to a binomial?LimitsMany trials, each with a small probability, and a moderate expected count. The Poisson mean equals n times p.
What is the variance of the sum of two random variables?CovarianceThe sum of the variances plus twice the covariance. Only independent or uncorrelated variables let you drop the last term.
Counting, conditioning and basic distributions. Scroll sideways on a small screen.
function posterior(prevalence, sensitivity, specificity) {
  const truePos = prevalence * sensitivity;
  const falsePos = (1 - prevalence) * (1 - specificity);
  return truePos / (truePos + falsePos);
}

console.log(posterior(0.01, 0.99, 0.95).toFixed(3)); // 0.167
console.log(posterior(0.10, 0.99, 0.95).toFixed(3)); // 0.687
Bayes' rule for a screening test with 99 percent sensitivity and 95 percent specificity. Prints 0.167 at 1 percent prevalence and 0.687 at 10 percent.

Say the screening result in counts as well, since interviewers like it: out of 10,000 people with 1 percent prevalence, about 99 of the 100 sick people test positive, and about 495 of the 9,900 healthy people do too. Fewer than one positive in five is a true case, even with an accurate-sounding test.

Intermediate questions: the classic puzzles

  • How many people are needed for a better-than-even chance of a shared birthday? 23, ignoring leap years and assuming birthdays are uniform. Compute the chance that all birthdays differ, multiply the falling fractions, and subtract from one.
  • In Monty Hall, should you switch? Yes. Your first pick is right one time in three, and the host's informed choice of a goat door means switching wins the other two times in three. If the host opened a door at random and happened to show a goat, the answer changes to one half.
  • Expected rolls of a die to see every face at least once? Add the expected waits for each new face: 6/6 + 6/5 + 6/4 + 6/3 + 6/2 + 6/1, which is 14.7. This is the coupon collector problem.
  • Expected flips of a fair coin to get two heads in a row? 6. Set up states for no progress and one head, condition on the next flip, and solve the two equations.
  • Why does heads-tails take fewer flips on average than heads-heads? After one head, a miss for HT (another head) keeps your progress, while a miss for HH (a tail) sends you back to the start. HT takes 4 flips on average.
  • In a random shuffle of n letters into n envelopes, how many letters land in the right envelope on average? 1, for any n. Each letter has a 1/n chance, and linearity adds n of those chances.
  • Break a stick at two random points. What is the chance the pieces form a triangle? 1/4. Every piece must be shorter than half the stick; map the two cut points to a unit square and measure the region.
  • A family has two children and at least one is a boy. What is the chance both are boys? 1/3 under the usual reading, from the equally likely outcomes BB, BG and GB. Point out that the answer depends on how you learned there is a boy.
  • You flip a fair coin until heads. You win 2 to the power of the number of flips. What is this worth? The expected value is infinite, which is the St. Petersburg paradox. A good answer discusses why nobody would pay much: finite bankrolls and diminishing utility.
from fractions import Fraction
from math import prod

def p_shared_birthday(n, days=365):
    """Exact probability that at least two of n people share a birthday."""
    p_all_distinct = prod(Fraction(days - i, days) for i in range(n))
    return 1 - p_all_distinct

print(float(p_shared_birthday(23)))
print(float(p_shared_birthday(50)))

def expected_rolls_all_faces(sides=6):
    """Coupon collector: n * (1 + 1/2 + ... + 1/n)."""
    return sides * sum(Fraction(1, k) for k in range(1, sides + 1))

e = expected_rolls_all_faces()
print(e, float(e))
Exact answers with fractions. Prints about 0.507 for 23 people, about 0.970 for 50, and 147/10 (14.7) expected rolls to see every face.
import random

def monty_hall(trials=100_000, switch=True, seed=3):
    rng = random.Random(seed)
    wins = 0
    for _ in range(trials):
        car, pick = rng.randrange(3), rng.randrange(3)
        # the host opens a goat door that is neither the pick nor the car
        opened = next(d for d in rng.sample(range(3), 3) if d != pick and d != car)
        if switch:
            pick = next(d for d in range(3) if d != pick and d != opened)
        wins += pick == car
    return wins / trials

print(round(monty_hall(switch=True), 3), round(monty_hall(switch=False), 3))

def flips_until(pattern, rng):
    seq = ""
    while not seq.endswith(pattern):
        seq += rng.choice("HT")
    return len(seq)

rng = random.Random(11)
for pattern in ("HH", "HT"):
    trials = 200_000
    print(pattern, round(sum(flips_until(pattern, rng) for _ in range(trials)) / trials, 2))
Check puzzle answers by simulation. With these seeds it printed 0.667 and 0.333 for Monty Hall, then about 6.01 and 3.99 flips for HH and HT.

Intermediate questions: random variables and expectation

Expectation, variance and continuous variables
QuestionWhat it testsWhat a strong answer shows
What is the expected maximum of three independent uniform(0, 1) draws?Order statistics3/4. The maximum of n uniforms has CDF x to the n, so its mean is n over n plus 1.
X and Y are independent uniform(0, 1). What is P(X > Y)?Symmetry1/2 by symmetry, since ties have probability zero. Say the symmetry argument before reaching for an integral.
How do you find E[X] for a non-negative integer variable without its full distribution?Tail sumSum P(X greater than or equal to k) over k from 1 upward. It turns many waiting-time questions into a short series.
Two cards are drawn without replacement. What is the chance both are aces?Dependent draws4/52 times 3/51, which is 1/221. Conditioning on the first draw changes the second.
What is the law of total expectation?ConditioningE[X] equals the expectation of E[X given Y]. Use it to split a hard problem by the outcome of the first step.
What is the expected number of distinct values in 10 rolls of a die?IndicatorsSum over the six faces of the chance each appears at least once: 6 times (1 minus (5/6) to the 10th), about 5.03.
Expectation, variance and continuous variables. Scroll sideways on a small screen.
import random

rng = random.Random(5)
trials, ok = 200_000, 0
for _ in range(trials):
    x, y = sorted((rng.random(), rng.random()))
    a, b, c = x, y - x, 1 - y
    ok += max(a, b, c) < 0.5          # triangle only if every piece < 1/2
print(round(ok / trials, 3))

avg_max = sum(max(rng.random() for _ in range(3)) for _ in range(trials)) / trials
print(round(avg_max, 3))
The broken stick and the expected maximum, simulated. With this seed it printed 0.248 (theory 1/4) and 0.75 (theory 3/4).

Senior and scenario questions

  • You roll a die and may roll once more, keeping the second result. What is the game worth with the best strategy? Reroll on 1, 2 or 3, since a new roll averages 3.5. The value is one half times 5 plus one half times 3.5, which is 4.25. Then extend it to two rerolls by working backward.
  • A gambler with k units bets one unit on fair coin flips until reaching n or going broke. What is the chance of reaching n? k over n for a fair coin. Mention that the expected wealth stays constant, which gives the result quickly, and that a biased coin changes the formula.
  • Model a customer moving between active, dormant and churned states each month. What do you need? A transition matrix where rows sum to one, with churned as an absorbing state. Expected time to churn comes from solving linear equations for each starting state.
  • Arrivals follow a Poisson process at 3 per hour. What is the chance of no arrival in 20 minutes? e to the minus 1, about 0.37, because the expected count in a third of an hour is 1. Waiting times between arrivals are exponential.
  • You have a coin of unknown bias. After 8 heads in 10 flips, what is your estimate? The maximum likelihood estimate is 0.8. With a uniform prior, the posterior is Beta(9, 3), whose mean is 0.75. Explain why the prior pulls the estimate toward one half.
  • Would you pay 3 to play a game that pays the value of a fair die roll? Yes in expectation, since it is worth 3.5, but discuss variance, how many times you can play, and the size of the bet relative to your bankroll.
  • How would you sample a uniformly random point inside a circle? Taking the radius uniform crowds points toward the center. Use the square root of a uniform for the radius, or sample in the bounding square and reject points outside.
  • How do you check a puzzle answer when you are not sure? Test small cases, look at limits such as p near 0 or 1, use symmetry, and if allowed, sketch a quick simulation.

Fictional example

Talking through a waiting-time question
Interviewer
How many flips of a fair coin, on average, until you see two heads in a row?
Candidate
Let me define states by progress. Let E0 be the expected flips from scratch and E1 the expected flips when the last flip was a head. From scratch, I flip once: half the time I get a head and move to E1, half the time a tail and stay at E0. So E0 equals 1 plus half E1 plus half E0. From E1, one more flip: a head finishes, a tail sends me back to scratch, so E1 equals 1 plus half E0. Substituting, E0 equals 6 and E1 equals 4. As a sanity check, it must be more than 4, the answer for heads then tails, because a tail after one head loses my progress here. If you want three heads in a row, the same setup gives 14.

A two-week probability practice plan

  1. Days 1 to 3: counting and conditioningWork through dice, cards and committees until permutations, combinations and the complement rule feel automatic. Do every Bayes question both with formulas and with counts of people.
  2. Days 4 to 6: expectation toolsPractice linearity with indicators, the tail-sum formula and conditioning on the first step on a dozen problems each.
  3. Days 7 to 9: the classicsSolve the birthday, Monty Hall, coupon collector, coin pattern and broken stick problems from scratch, then change one detail and solve again.
  4. Days 10 to 12: distributions and processesGeometric, Poisson, exponential, uniform order statistics, simple Markov chains and the gambler's ruin.
  5. Days 13 and 14: timed and spokenDo mental-math drills against a clock and two mock puzzle interviews where you speak every step. Check a few answers with a ten-line simulation.

Puzzle interviews grade your spoken setup, and it is hard to judge your own clarity while you are thinking. Natively, an AI interview assistant for Mac and Windows, can transcribe a practice puzzle session on your computer, so afterward you can see where you jumped to a number without stating the states. During practice it can also read a problem from a screenshot and suggest a solution path or a short simulation to check against, which is useful for finding the gap in your own reasoning rather than for getting the answer handed to you.

Questions people ask

What probability questions are asked in quant interviews?

Dice and card counting, conditional probability and Bayes, expected value with linearity and indicators, waiting times for coin patterns, the birthday, Monty Hall and coupon collector problems, betting games and simple Markov chains.

How do I solve expected-value puzzles in an interview?

Define states, condition on the first step to write equations, and solve them. For counts of things, write the total as a sum of indicator variables and add their probabilities.

Should I switch doors in the Monty Hall problem?

Yes, if the host knowingly opens a goat door: switching wins two times in three. If the host opened a door at random and happened to reveal a goat, switching wins half the time.

How should I prepare for probability interview questions?

Drill counting and Bayes until they are automatic, practice expectation tools on many problems, solve the classic puzzles and their variations, and check answers with small cases or a short simulation.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP