Quant puzzles, solved step by step
- Puzzles
- 100
- Traced to a firm
- 71
- Topics
- 12
- Hard
- 30
002You are flying to a city where it rains on 25% of days. You phone three friends who live there. Each tells the truth with probability 2/3, independently of the others, and all three say it is raining. What is the probability that it is actually raining?Jane StreetNew York · 2025
Try it first
Pick your answer before working it.
Show the worked solution
8/11, about 72.7%. If it is raining, all three say yes with probability (2/3)^3 = 8/27. If it is dry, all three must be lying, (1/3)^3 = 1/27. Weight each by how often it happens: 1/4 x 8/27 against 3/4 x 1/27, which is 8 parts to 3. Three agreeing witnesses move a 25% prior a long way, but not to certainty.
Why is the answer not simply 8/9?
Picture a clinic where a test is quite reliable but the illness is uncommon. A positive result makes the illness more likely, but how much more depends on how rare it was to begin with. The friends' agreement tells you how much more likely rain makes their answer than dry does, eight times, but it does not erase the fact that dry days are three times as common. 8/9 is the answer you get if rain and dry start level. Here they do not.
Rain covers a quarter of days and all three friends say yes on 8/27 of those, while dry days cover three quarters and all three lie on only 1/27 of them, so the shaded areas stand 8 to 3 and the chance of rain given three yeses is 8/11, about 72.7%. How do you set it up so the arithmetic stays small?
Use odds rather than probabilities. Posterior odds are prior odds times the likelihood ratioHow many times more likely the evidence is if the hypothesis is true than if it is false., and both are easy numbers here. Prior odds of rain are 1 to 3. The likelihood ratio of three yeses is (2/3)^3 over (1/3)^3, which is 2 cubed, 8. So the posterior odds are 8 to 3, and the probability is 8 over 8 plus 3, 8/11. Each additional agreeing friend would double the odds again.
The relationshipR, D rain and dry YYY all three friends say yes (2/3)^3 and (1/3)^3 the chance of three yeses when it rains, and when it is dry What it says in wordsMultiply the prior odds by how much more likely the evidence is under rain, then turn the odds back into a probability.What assumption is doing the work, and should you say it?
The calculation needs the friends to lie independently. If they could be coordinating a joke, three yeses are really one piece of evidence, and the answer falls back towards the one-friend figure of 2/5. Say the independence assumption out loud, then give 8/11. Interviewers often follow up by making one friend unreliable or by letting them talk to each other.
Where candidates lose it
The most common wrong answer is 8/9: the candidate compares the chance of three truths with the chance of three lies and forgets the weather's own odds. The rain prior is a quarter, and leaving it out quietly assumes it is a coin flip.
The second loss is writing out a full Bayes formula with 27ths and 108ths and losing the thread under time pressure. Odds times likelihood ratio gets 8 to 3 in two lines and is easier to check out loud.
What the interviewer asks next
- What if only two of the three friends say yes?
- How many agreeing friends would you need before you were 95% sure it is raining?
- What changes if the friends can talk to each other before answering?
Asked at Jane Street, Generalist, New York, 2025 (Wall Street Oasis):
There was a question about the probability of rain the next day that relied on a very in depth understanding of bayes theorem
014Five per cent of fund managers are skilled and beat the market in any given year with probability 60%; the rest are unskilled and beat it with probability 50%. Years are independent. A manager has beaten the market in exactly 8 of the last 10 years. What is the probability the manager is skilled?Citadel SecuritiesMiami · 2022
Try it first
Roughly how likely is it that this manager is skilled?
Show the worked solution
About 12.7%. A skilled manager wins exactly 8 of 10 with probability 0.1209; an unskilled one with 0.0439, a likelihood ratio of about 2.75. Prior odds of skill are 5 to 95, 1 to 19. Posterior odds are 2.75 to 19, so the probability is 0.05 x 0.1209 / (0.05 x 0.1209 + 0.95 x 0.0439) = 0.127. The record helps, but luck has far more players.
Why does an impressive record move the needle so little?
Imagine a thousand people each tossing a coin ten times. About 55 of them will get eight heads or better with a fair coin. If a handful of the thousand had slightly biased coins, you still could not pick them out from the lucky crowd by one run of ten. Evidence moves a belief in proportion to how much more likely it is under one explanation than the other, and 8 wins in 10 is not much more likely from a 60% manager than from a 50% one. The ratio is about 2.75.
Eight wins in ten years has probability 12.1% for a 60% manager and 4.4% for a 50% manager, but after weighting by how common each type is, 5% against 95%, the chance that an eight-win manager is skilled is only 12.7%. How do you set it up quickly?
Use odds. Prior odds of skill are 1 to 19; the likelihood ratioHow many times more likely the evidence is under one hypothesis than under the other. of the record is (0.6/0.5) to the 8 times (0.4/0.5) squared, which is 1.2 to the 8 times 0.64, about 2.75; multiply to get posterior odds of about 0.145. Converting, 2.75 over 2.75 + 19 is 12.7%. The binomial coefficient, 45, is the same in both likelihoods and cancels, so you never need it.
The relationshipS, U skilled and unskilled 0.6^8 0.4^2 the chance of one particular sequence of 8 wins and 2 losses for a skilled manager 0.5^{10} the same for an unskilled manager What it says in wordsPrior odds of 1 to 19, times a likelihood ratio of 2.75, give a posterior of about 12.7%.What does this say about picking managers?
When skill is rare and its edge is small, even a long, strong track record leaves luck as the likelier explanation. Using 8 or more wins instead of exactly 8 barely changes things: the answer becomes 13.9%. The honest limitation is that the model is stylised: real skill is not a fixed 60%, and survivorship means the managers you hear about were already filtered for good records, which pushes the true figure lower still.
Where candidates lose it
The common answer is around 80%, reading the record's win rate as the chance of skill. That skips the prior entirely, and with only 5% of managers skilled, the prior dominates.
The quieter trap is computing the full binomial probabilities, 45 x 0.6 to the 8 x 0.4 squared and so on, and getting lost in decimals. The coefficient cancels. Say odds and likelihood ratio and the arithmetic stays on one line.
What the interviewer asks next
- How many years of 80% wins would you need before the manager is more likely skilled than not?
- What if 20% of managers were skilled?
- How does survivorship bias change the answer if you only ever see managers with good records?
Asked at Citadel Securities, Sales and Trading, Miami, 2022 (Wall Street Oasis):
I got a question about Bayes' theorem applied to a practical scenario, which I handled decently
027A bag holds three dice: one fair, one that shows six half the time with its other faces equally likely, and one that never shows six. You draw one at random and roll it twice, getting two sixes. What is the probability it is the loaded die?Belvedere TradingChicago · 2022
Try it first
Before you calculate: how likely is it now that you hold the loaded die?
Show the worked solution
90%. Each die starts at one in three. The chance of two sixes is 1/36 for the fair die, 1/4 for the loaded die and zero for the die with no six. Weight each by its prior: 1/108 for the fair die, 1/12 for the loaded die, nothing for the third. The loaded die's weight is nine times the fair die's, so its probability is 9/10.
What does the die that never shows six do to the answer?
A neighbour tells you a red car blocked the gate this morning. If one of your suspects owns only a blue scooter, that suspect is out, however likely they looked before. A hypothesis that cannot produce the evidence gets zero weight afterwards, no matter what its prior was. The no-six die could never give two sixes, so it drops out, and the question becomes a contest between the fair die and the loaded die, which started level at one third each.
Each die starts at one third; multiplying by the chance of two sixes gives weights of 1/108 for the fair die, 1/12 for the loaded die and zero for the no-six die, so the loaded die ends at 90% and the fair die at 10%. How much does each surviving die's likelihood count?
Now compare how easily each remaining die produces what you saw. The fair die gives two sixes 1 time in 36. The loaded die gives a six half the time, so two in a row 1 time in 4. With equal priors, the posterior odds are just the ratio of the likelihoodsThe probability of the observed evidence under each hypothesis, before any prior is applied.: 1/4 against 1/36, which is 9 to 1. Nine parts in ten is 90%.
The relationshipL the loaded die was drawn 66 the evidence: two sixes in two rolls 1/3 the prior for each die 1/36, 1/4, 0 the chance of two sixes from the fair, loaded and no-six dice What it says in wordsThe loaded die's share of all the ways two sixes can happen is nine tenths.Check it by counting, the safer habit under pressure. Imagine 108 rounds of drawing a die and rolling it twice, 36 rounds with each die. The fair die gives two sixes once, the loaded die 9 times, the no-six die never. Of the 10 double sixes, 9 came from the loaded die, and the prior of one third cancels because every die got the same number of rounds. The loaded die's other faces, 1 in 10 each, never enter, because only sixes were seen.
Where candidates lose it
The quick wrong answer is 1/2: two dice can roll a six, so it must be one or the other. That ignores how differently they produce two sixes in a row, a gap of nine to one.
The other loss is getting tangled in the loaded die's other faces, or leaving the no-six die in the denominator with some weight. Neither belongs: only the chance of the observed rolls counts, and for the no-six die that chance is zero.
What the interviewer asks next
- A third roll is also a six. What is the probability of the loaded die now? (It rises to 27/28.)
- The rolls were a six and then a two. Which die is most likely now?
- What is the chance the next roll is a six? (It is 7/15.)
Asked at Belvedere Trading, Capital Markets, Chicago, 2022 (Wall Street Oasis):
The technical portion of the interview consisted of probability questions including one questions relating to Bayes' theorem
039A surveillance screen flags suspicious trades. One order in 100 is genuinely manipulative. Alert A fires with a likelihood ratio of 9, and an independent alert B with a likelihood ratio of 4. Both fire on the same order: what is the probability it is manipulative?CitadelMiami · 2022
Try it first
Both alerts fire. Roughly how likely is the order manipulative?
Show the worked solution
About 26.7%. Work in odds. The prior odds are 1 to 99. Independent evidence multiplies the odds by each likelihood ratio: 1 x 9 x 4 = 36, so the posterior odds are 36 to 99. As a probability that is 36/135, about 26.7%. Even with both alerts, roughly three flagged orders in four are clean, because manipulation is rare to begin with.
Why is odds form the fast way to combine alerts?
Think of two smoke detectors in a kitchen where real fires are rare. Each beep makes a fire more likely, but toast sets both off far more often than fire does. In odds form, Bayes' rule is one multiplication per piece of independent evidence: posterior odds equal prior odds times each likelihood ratioHow much more often the evidence appears when the hypothesis is true than when it is false.. A ratio of 9 means alert A fires nine times as often on manipulative orders as on clean ones, for example on 90% of manipulative orders and 10% of clean ones.
Starting from odds of 1 to 99, alert A multiplies the odds by 9 to reach 9 to 99, an 8.3% chance, and alert B multiplies by 4 to reach 36 to 99, which is only 26.7% because the prior was so low. How do you check 26.7% by counting?
Take 10,000 orders: 100 manipulative and 9,900 clean. Suppose A fires on 90% of manipulative orders and 10% of clean ones, and B on 80% and 20%, which gives the stated ratios of 9 and 4. Both fire on 100 x 0.9 x 0.8 = 72 manipulative orders and on 9,900 x 0.1 x 0.2 = 198 clean ones. Of the 270 orders where both fire, 72 are manipulative: 26.7%, the same as the odds route.
The relationshipM the order is manipulative 1/99 prior odds: 1 manipulative order per 99 clean 9, 4 likelihood ratios of alerts A and B What it says in wordsMultiply the prior odds by each alert's likelihood ratio, then turn odds back into a probability.State the assumption that made multiplication legal: the alerts are independent given the truth. If both alerts key off the same feature, say order size, the second adds little new information and multiplying by 4 overstates the case. With one alert alone the chance is 8.3% for A and 3.9% for B, which is why a desk reviews orders on combined evidence rather than a single flag.
Where candidates lose it
The common loss is treating a likelihood ratio of 36 as odds of 36 to 1 and answering about 97%. That throws away the base rate: the evidence multiplies the prior odds of 1 to 99, not even odds.
The second is adding the ratios, 9 + 4 = 13, instead of multiplying. Independent evidence compounds, and odds form makes that one line of arithmetic.
What the interviewer asks next
- How many independent alerts with a ratio of 4 would you need to pass 50%?
- Alert B is triggered by the same feature as alert A. How does that change your answer?
- A third alert has a likelihood ratio of 0.5 and does not fire. What does that do?
Asked at Citadel, Sales and Trading, Miami, 2022 (Wall Street Oasis):
I got a question about Bayes' theorem applied to a practical scenario
056You roll a fair die until each of 2, 4 and 6 has appeared at least once. Given that the last even number to make its first appearance was 2, what is the probability that the very first roll was a 1? Why is it not 1/5?Squarepoint CapitalLondon · 2026
Try it first
Given that 2 was the last even to show up, what is the chance the first roll was a 1?
Show the worked solution
1/6, the same as with no information. An odd first roll says nothing about the order in which 2, 4 and 6 first appear, so it is independent of 2 finishing last. A first roll of 4 or 6 raises the chance 2 is last from 1/3 to 1/2, so conditioning on that ending shifts weight onto 4 and 6, which rise to 1/4 each. The odd faces keep 1/6 each; 1/5 wrongly spreads the weight evenly.
Why does the ending tell you anything about the start?
Suppose you hear that a friend reached a party last. That makes it a little more likely they left home late, because leaving late and arriving last go together. It says nothing about whether they wore a blue shirt, which has no bearing on arrival order. Conditioning on an outcome reweights every starting state by how likely that state makes the outcome, and a state that does not affect the outcome keeps its original probability. Here the outcome is 2 finishing last among the evens; the question is which first rolls make that more or less likely.
A first roll of 1, 3 or 5 leaves 2 a one in three chance of finishing last, a first roll of 4 or 6 raises it to one in two, and a first roll of 2 makes it impossible, so given that 2 finished last the odd faces are worth 1/6 each and 4 and 6 are worth 1/4 each. How do the numbers work out with Bayes?
Odd rolls never change which new even appears next, so only the order of first appearances matters, and without information it is a random ordering of three: 2 is last with chance 1/3. If the first roll is 4, then 2 and 6 are left to race, and each is equally likely to show first, so 2 ends last with chance 1/2. Now weigh: each face has prior 1/6. The joint chance of first roll 1 and 2 last is 1/6 x 1/3 = 1/18; of first roll 4 and 2 last, 1/6 x 1/2 = 1/12. The total is 1/3, so first roll 1 has posterior (1/18)/(1/3) = 1/6 and first roll 4 has (1/12)/(1/3) = 1/4.
The relationship1/6 the prior chance of any face on the first roll 1/3 the chance 2 is last when the first roll is odd, and also overall 1/2 the chance 2 is last when 4 or 6 is already seen What it says in wordsAn odd first roll is independent of the ending and keeps 1/6; the even faces 4 and 6 absorb the weight that 2 loses.Where does the 1/5 intuition go wrong?
It treats the information as simply ruling out one face and renormalising the rest. Ruling out an outcome and conditioning on an event are the same thing only when every remaining outcome makes the event equally likely, and here they do not. A check: the posteriors 1/6, 1/6, 1/6, 1/4, 1/4 and 0 add to 1, while five faces at 1/5 would give 4 and 6 the same weight as 1. On a desk this is the error of reading a trade's outcome as if it said nothing about which signal triggered it.
Where candidates lose it
Nearly everyone's first answer is 1/5. The interviewer is not testing the arithmetic; the question itself says it is not 1/5 and asks you to explain why, so an answer that only produces 1/6 without the reason loses most of the credit.
The second trap is getting lost in the odd rolls. They can be ignored completely, because they never change which even appears next. Say that early and the problem shrinks to the order of three numbers.
What the interviewer asks next
- Given that 2 finished last, what is the probability the first roll was a 4?
- What is the expected number of rolls until all three evens have appeared?
- Given that 2 finished last, what is the probability the first even to appear was 4?
Asked at Squarepoint Capital, Quant Research Intern Interview, London, 2026 (Wall Street Oasis):
why is the probability of seeing a 1 on our first roll, given that we end on a 2, not 1/5
068A box holds ten coins: one has heads on both sides and nine are fair. You pick a coin at random, flip it five times and see five heads. What is the probability you picked the double-headed coin?Jump TradingChicago · 2018
Try it first
After five heads, roughly how likely is the double-headed coin?
Show the worked solution
32/41, about 78%. Before flipping, the odds are 1 to 9 against the double-headed coin. Five heads happen for certain with it and with chance 1/32 with a fair coin, a likelihood ratio of 32. Multiply: posterior odds are 32 to 9, which is 32/41. Each extra head doubles the odds, so a sixth head would take it to 64/73, about 88%.
Why is the answer not close to certain?
Imagine a rare illness and a decent test. A positive result raises the chance you have it, but if the illness is rare enough, most positives still come from healthy people. Evidence is weighed against how common each explanation was to begin with, so five heads, which a fair coin produces only once in 32 tries, still has to overcome nine fair coins for every double-headed one. The 97% instinct takes 1 minus 1/32 and forgets the nine-to-one start.
Starting from odds of 1 to 9, five heads multiply the odds by 32 to give 32 to 9, so the chance of the double-headed coin rises from 10% to 78%, roughly doubling the odds with each head. How do you run Bayes in odds form?
Odds form is the fastest way to say it in the room. Posterior odds equal prior odds times the likelihood ratio: (1 to 9) times 32 gives 32 to 9. Converting back, 32 out of 32 + 9 is 32/41, about 78%. The long form gives the same thing: the joint chance of picking the special coin and seeing five heads is 1/10, the joint chance of a fair coin and five heads is 9/10 x 1/32 = 9/320, and the posterior is (32/320) / (41/320).
The relationshipD the event that the double-headed coin was picked 5H the observation of five heads in five flips 32 the likelihood ratio: 1 divided by 1/32 What it says in wordsPrior odds of one to nine, multiplied by a likelihood ratio of thirty-two, give odds of thirty-two to nine.What does the odds picture tell you about more flips?
Each head is twice as likely under the double-headed coin, so every head doubles the odds and every tail ends the question, since the special coin never shows tails. After 0 to 5 heads the chance runs 10%, 18%, 31%, 47%, 64% and 78%; it passes 50% only after the fourth head. The useful follow-up is the next flip: it lands heads with chance 32/41 + (9/41)(1/2) = 73/82, about 89%. On a desk, the same arithmetic tells you how many winning days it takes before a new strategy's record says anything about skill.
Where candidates lose it
The trap is answering 31/32, about 97%, by looking only at how unlikely five heads are from a fair coin. That ignores the prior; with nine fair coins in the box, the base rate matters as much as the evidence.
The second slip is the reverse: staying near 10% because the coin was chosen at random. Say the odds form, prior times likelihood ratio, and both errors disappear.
What the interviewer asks next
- What is the probability that the next flip is heads?
- How many heads in a row would you need to be 99% sure?
- If one of the ten coins were double-tailed instead, how would five heads change the answer?
Asked at Jump Trading, Quantitative Research, Chicago, 2018 (Wall Street Oasis):
Then he asked one question of probability which can be solved by Bayesian formula.
087A new strategy has won on 9 of its first 10 trading days. With no prior knowledge, you treat its daily win rate as uniform between 0 and 1. What is the probability that it wins tomorrow, and why is the answer not 0.9?Wolverine TradingChicago · 2017
Try it first
What probability do you give to a win tomorrow?
Show the worked solution
10/12, about 0.833. A uniform prior on the win rate, updated with 9 wins and 1 loss, gives a Beta(10, 2) posterior. The chance of winning tomorrow is the posterior mean, (9 + 1)/(10 + 2). The answer is below 0.9 because ten days cannot rule out a lower true win rate, and averaging over that uncertainty pulls the estimate towards one half.
Why is 0.9 too confident?
A new restaurant with nine five-star reviews out of ten looks excellent, but you would not bet that the next diner rates it five stars with 90% certainty. Ten reviews is a small sample, and a restaurant that truly earns five stars 70% of the time could easily post nine out of ten. The right forecast averages over every win rate the evidence still allows, and with only ten days that includes plenty of rates below 0.9. The average of that spread of possibilities is what you should quote for tomorrow.
After 9 wins in 10 days from a flat prior, the win rate follows a Beta(10, 2) curve that peaks at 0.9 but has a long left tail, so its mean, the chance of winning tomorrow, is 10/12, about 0.833, and its middle 90% still spans 0.64 to 0.97. How does the Bayesian update give 10/12?
Start with every win rate p between 0 and 1 equally likely. The chance of the observed record is proportional to p^9 (1 - p), so the posterior is proportional to that, which is the Beta(10, 2) distribution. The chance of a win tomorrow is the average of p over the posterior, and the mean of a Beta(a, b) is a/(a + b), here 10/12. The shortcut is Laplace's rule of succession: add one imaginary win and one imaginary loss to the record, then divide.
The relationshipp the unknown daily win rate p^9 (1 - p) the likelihood of 9 wins and 1 loss Beta(10, 2) the posterior after a flat prior What it says in wordsMultiply the flat prior by the likelihood of the record, and the mean of the result is the chance of a win tomorrow.When does the pull towards one half stop mattering?
When the record is long. At 90 wins out of 100 the rule gives 91/102, about 0.892, almost exactly the raw 0.9, because a hundred days of data swamp the one imaginary win and loss. The limitation is the prior itself. A uniform prior says a 99% win rate was as plausible as a 50% one before you saw any data, which no trader believes about a new strategy. With a sceptical prior centred near one half, ten days would pull the estimate even further below 0.9. The posterior also tells you more than one number: the chance of winning both of the next two days is (10 x 11)/(12 x 13), about 0.705, not 0.833 squared.
Where candidates lose it
The trap is answering 0.9, the maximum likelihood estimate. It treats the observed win rate as the truth and ignores how little ten days can tell you.
The second loss is getting 10/12 by the rule of succession without being able to say where it comes from. Name the flat prior, the Beta(10, 2) posterior and its mean, and say that more data pushes the answer back towards 0.9.
What the interviewer asks next
- What is the probability the strategy's true win rate is above one half?
- With a Beta(5, 5) prior instead of a flat one, what is your forecast for tomorrow?
- How many consecutive wins would you need before your forecast exceeds 0.95?
Asked at Wolverine Trading, Prop Trading, Chicago, 2017 (Wall Street Oasis):
Phone interviews were pretty standard brainteasers and fit questions. There was a Bayes question

