Fin Maverick
Foundations VocabularyAccounting & ReportingEconomics & MacroQuant Methods & ProgrammingBusiness & Company AnalysisCorporate Finance & ValuationBehavioural Finance
Banking & Market InfrastructureFixed Income & RatesDerivatives & Structured ProductsPublic EquitiesTransactions & DealsPortfolio ConstructionFunds & AMCs
Private Markets & AlternativesRisk, Treasury & ControlAI & Digital FinanceStochastic Calculus & PricingWealth & Personal FinanceIndian Markets & RegulationProfessional Practice
Explore NISM prep
Series-VIII · Equity DerivativesSeries-XII · Securities Markets FoundationSeries-V-A · Mutual Fund DistributorsSeries-XV · Research AnalystSeries-XIX-E · Category III AIF ManagersSeries-XIX-D · Category I & II AIF ManagersSeries-XIX-C · Alternative Investment Fund ManagersSeries-XVI · Commodity DerivativesSeries-VI · Depository OperationsSeries-II-A · Registrars & Transfer AgentsSeries-I · Currency DerivativesSeries-VII · Securities Operations & Risk Management
Explore Bootcamps
Equity ResearchPortfolio ManagementMutual Fund MasteryInvestment Banking Analyst
Private Equity AnalystQuant & Hedge Fund AnalystBreaking Into VCFinancial Analyst Program
Risk Management ProgramPrivate Wealth ManagementDebt Capital MarketsDerivatives Foundation
Explore Free Courses

Equity Research6

Writing an Investment ThesisBuilding a Discounted Cash FlowReading an Annual Report FastReading a Sector Before a CompanySpotting Quality of Earnings Red FlagsBuilding a Revenue Forecast From Drivers

Portfolio Management3

Rebalancing: When, Why and What It CostsStrategic and Tactical Asset AllocationMeasuring Risk in a Portfolio

Mutual Fund Mastery3

Comparing Funds Without Being FooledHow a NAV Is Struck and Which Day You GetReading a Fund Factsheet Properly

Derivatives Unlocked4

Hedging a Real ExposureThe Greeks, PracticallyFutures, the Basis and What Moves ItReading an Option Payoff

AI For Finance2

Retrieval and Grounding for FinanceDocument Extraction in Finance

Breaking Into Quants4

Backtesting a StrategyHypothesis TestingCleaning Financial DataRegression for Finance

Breaking Into VC3

Sizing a MarketReading a Term Sheet as a FounderHow a Venture Round Actually Works

Financial Analyst Program4

Common Size and Trend AnalysisReading a Cash Flow StatementRatio Analysis That Says SomethingBuilding a Working Capital Schedule

Risk Management Program2

Credit Exposure and How It Is ReducedValue at Risk and What It Hides

Investment Banking Analyst3

Precedent Transactions and Why They DifferReading a Term Sheet StructurallyBuilding a Comparable Companies Table

Private Wealth Management3

Tax Aware Portfolio DecisionsBuilding a Client Risk ProfileGoal Based Planning Arithmetic

Debt Capital Markets3

Analysing an Issuer's CreditDuration and What It Does Not Tell YouBond Pricing and Yield Mechanics

Private Equity Analyst2

Fund Waterfalls and CarryThe LBO in Structure

Hedge Funds Analyst2

Short Selling MechanicsLong Short Mechanics
QuarksCourses
Explore Interview Preparation
Investment BankingEquity ResearchVenture CapitalistPrivate EquityHedge Funds
QuantFinancial AnalysisPrivate Wealth ManagementDebt Capital MarketsRisk Management
Derivatives FoundationPortfolio ManagementMutual Fund Mastery
PartnershipsShowdown
Log inSign up
Interview tracksAll
1Investment Banking
Question bankPuzzlesCase studies
2Equity Research
Question bankPuzzlesCase studies
3Venture Capital
Question bankPuzzlesCase studies
4Private Equity
Question bankPuzzlesCase studies
5Hedge Funds
Question bankPuzzlesCase studies
6Quant
Question bankPuzzlesCase studies
7Financial Analysis
Question bankPuzzlesCase studies
8Private Wealth Management
Question bankPuzzlesCase studies
9Debt Capital Markets
Question bankPuzzlesCase studies
10Risk Management
Question bankPuzzlesCase studies
11Derivatives Foundation
Question bankPuzzlesCase studies
12Portfolio Management
Question bankPuzzlesCase studies
13Mutual Fund Mastery
Question bankPuzzlesCase studies

Quant puzzles, solved step by step

Puzzles
100
Traced to a firm
71
Topics
12
Hard
30
Topic
All topicsLogic and algorithmic reasoning10Conditional probability and Bayes7Counting and combinatorics8Continuous and geometric probability9Correlation, regression and linear algebra9Market making, betting and sizing9Expected value and optimal stopping9Statistics and estimation9Pricing, options and index maths7Games and strategic reasoning8Markov chains and random walks7Mental maths and number sense8
Level
AnyWarm upCoreHard
Source
AnyReported at a firmStandard
Showing 21–30 of 30 · filtered from 100Clear filters
  1. 067Five traders drop their business cards in a bowl and each draws one at random. What is the probability that nobody draws their own card, and what does it approach as the number of traders grows?Counting and combinatoricsHardQuant tradingQuant research

    Try it first

    As the number of traders grows very large, the chance nobody gets their own card...

    Show the worked solution

    44/120, about 36.7%, and it tends to 1/e, about 36.8%. Count the orderings with no fixed point by inclusion and exclusion: 5! times (1 - 1 + 1/2! - 1/3! + 1/4! - 1/5!) = 44 of the 120 ways. The bracket is the start of the series for e^(-1), so the answer barely moves with the number of traders: it is within about 0.001 of 1/e at five people and closer still after that.

    Why does the answer not go to 0 or to 1?

    Think of a secret gift exchange at the office. With more people, each person is less likely to draw their own name, but there are more people who could. Each trader matches with chance 1/n and there are n traders, so the expected number of matches is exactly 1 at every size, and the chance of zero matches settles rather than vanishing. That is why the answer converges to a constant. It is also why the question is asked: it checks whether you can count an event defined by an absence, which needs inclusion and exclusion.

    The no-match chance settles at 1/e almost at once1/e = 0.3680.10.20.30.40.50n = 10/10.500n = 21/20.333n = 32/60.375n = 49/240.3667n = 544/1200.3681n = 6265/7200.3679n = 71854/50400.3679n = 814833/40320Five traders: 1 - 1 + 1/2 - 1/6 + 1/24 - 1/120 = 44/120Each extra trader adds a smaller correction, alternating in signNumber of traders, with derangements over all orderings
    The chance that nobody draws their own card swings above and below 1/e for small groups and is 44/120 = 0.3667 for five traders, against 1/e = 0.3679, so the number of traders barely matters once there are more than four.

    How does inclusion and exclusion give 44?

    Count the orderings where at least one trader gets their own card, then subtract. Fix any one trader: 4! orderings each, five traders, 120 in total, but that counts orderings with two fixed traders twice. Alternately subtract and add the counts with one, two, three, four and five traders fixed, and you get 120 - 120 + 60 - 20 + 5 - 1 = 44 orderings with no match. Dividing by 120 gives the probability as 1 - 1 + 1/2 - 1/6 + 1/24 - 1/120, and each term is the e^(-1) series truncated.

    The relationship
    P(no match)=Dnn!=∑k=0n(−1)kk!  ⟶  e−1D55!=44120=0.3667P(\text{no match}) = \frac{D_n}{n!} = \sum_{k=0}^{n} \frac{(-1)^k}{k!} \;\longrightarrow\; e^{-1} \qquad \frac{D_5}{5!} = \frac{44}{120} = 0.3667
    D_nthe number of orderings of n items with no item in its own place, a derangement count
    (-1)^k / k!the inclusion and exclusion term for k traders fixed
    What it says in wordsThe chance of no match is the alternating series for e to the minus 1, cut off after n terms.

    How do you check 44 another way?

    Use the recursion. Trader 1 takes some other trader's card, say trader j's, in n - 1 ways. Either j takes trader 1's card back, leaving n - 2 traders to derange, or j does not, which is the same as deranging n - 1 traders. So D(n) = (n - 1)(D(n - 1) + D(n - 2)), and from D(1) = 0 and D(2) = 1 you get 2, 9 and then 4 x (9 + 2) = 44. The number of matches is close to Poisson with mean 1 for any decent n, so exactly one match has about the same chance as none: for five traders it is 3/8 = 45/120.

    Where candidates lose it

    The trap is answering (4/5)^5, about 33%, by treating each trader's miss as independent. The draws are without replacement, so the events are linked; the right answer is close but not equal, and the reasoning is wrong.

    The second loss is getting 44/120 and stopping, when the follow-up about large groups is the point. Say the series is the start of e^(-1), so the answer is about 37% for any number of traders.

    What the interviewer asks next

    • What is the expected number of traders who draw their own card?
    • What is the probability that exactly one trader draws their own card?
    • With 100 traders, roughly what is the chance that at least two draw their own card?
  2. 069Daily returns are drawn from a normal with mean zero and standard deviation 1% on 90% of days, and from a normal with mean zero and standard deviation 4% on the other 10%. What are the overall standard deviation and the kurtosis of daily returns?Statistics and estimationHardTwo SigmaNew York · 2025

    Try it first

    What is the kurtosis of the mixture?

    Show the worked solution

    The standard deviation is sqrt(2.5), about 1.58%, and the kurtosis is 12.72, against 3 for a normal. Moments of a mixture are weighted averages of the pieces' moments. The variance is 0.9 x 1 + 0.1 x 16 = 2.5. A normal's fourth moment is 3 sigma^4, so the fourth moment is 3 x (0.9 x 1 + 0.1 x 256) = 79.5. Kurtosis is 79.5 / 6.25 = 12.72.

    Why does mixing two normals create fat tails?

    Think of a city's daily traffic: most days are ordinary, and a few days a year there is a festival or a strike and everything is wild. Averaged across the year, the typical day looks calmer than the average suggests, and the extreme days are far more extreme than a single bell curve would allow. Mixing a calm regime with a rare wild one concentrates most days near zero and puts the rest far out, which is exactly what kurtosis measures: a high peak with heavy tails. Every piece is normal; the mixture is not.

    Same variance, very different tails: kurtosis 12.7 against 3-6%-3%0%3%6%mixture, peak 0.37normal,sd 1.58%daily return11e-21e-41e-60%2%4%6%8%10%mixture: 1 day in 75normal: 1 in 6,766Density on a log scale; beyond 6% shown
    With the same 1.58% standard deviation, the mixture is more peaked than the normal and its tail is far heavier: a daily move beyond 6% comes about 1 day in 75 under the mixture against about 1 day in 6,766 under the normal.

    How do you compute the moments without integrating?

    Condition on the regime. Any moment of a mixture is the weighted average of that moment in each regime, because the density itself is the weighted average of the two densities. The second moment is 0.9 x 1^2 + 0.1 x 4^2 = 2.5, so the standard deviation is about 1.58%. For the fourth, use the fact that a normal with standard deviation sigma has fourth moment 3 sigma^4: 3 x (0.9 x 1 + 0.1 x 256) = 79.5. Kurtosis is the fourth moment over the variance squared.

    The relationship
    σ2=∑iwiσi2=2.5κ=3∑iwiσi4(∑iwiσi2)2=3×26.56.25=12.72\sigma^2 = \sum_i w_i \sigma_i^2 = 2.5 \qquad \kappa = \frac{3\sum_i w_i \sigma_i^4}{\big(\sum_i w_i \sigma_i^2\big)^2} = \frac{3 \times 26.5}{6.25} = 12.72
    w_ithe regime weights, 0.9 and 0.1
    sigma_ithe regime standard deviations, 1% and 4%
    kappakurtosis, the fourth moment divided by the variance squared; 3 for any normal
    What it says in wordsAverage the variances and the fourth moments across regimes, then compare the fourth moment with the squared variance.

    What does the number mean for risk?

    Kurtosis is 3 times the ratio of the average of sigma^4 to the square of the average of sigma^2, so any variation in volatility pushes kurtosis above 3, and the more uneven the regimes, the further it goes. The practical cost shows in the tails. A risk model that fits one normal with a 1.58% standard deviation expects a move beyond 6% about once in 6,766 days, roughly once every 27 years of trading; the mixture produces one about once in 75 days, several times a year. This is the simplest model of volatility clustering, and the reason daily returns on real assets show kurtosis well above 3.

    Where candidates lose it

    The trap is answering 3 because each piece is normal, or averaging the two standard deviations to 1.3% and treating the mixture as one normal. Mixtures average densities and moments, not shapes or standard deviations.

    The second slip is forgetting the factor of 3 in a normal's fourth moment, or reporting excess kurtosis without saying so. Say which you mean: kurtosis 12.72, excess kurtosis 9.72.

    What the interviewer asks next

    • What mix of the two regimes maximises the kurtosis for a fixed overall variance?
    • If the two regimes had different means, what would happen to the skew?
    • How would you estimate the two regime volatilities from a year of daily returns?

    Asked at Two Sigma, Quantitative Research, New York, 2025 (Wall Street Oasis): They asked a couple questions involving Mixture Gaussians (e.g., probability density and moments).

  3. 077An equity index stands at 20,000 and its implied volatility is 18% a year. Where do you think it closes in four months? Give a central value and a 90% range you would be willing to make a market around.Market making, betting and sizingHardMSMorgan StanleyTokyo · 2025

    Try it first

    Roughly how wide is a 90% range for the index four months out?

    Show the worked solution

    Centre on today's level, about 20,000, with a 90% range of roughly 16,800 to 23,600. Four months is a third of a year, so one standard deviation is 18% x sqrt(1/3), about 10.4%. In log terms the 90% band is 1.645 of those either side, which gives 16,767 and 23,601. The median sits a little below 20,000 and the upside tail is longer than the downside.

    Why is a single number the wrong answer?

    Ask a cab driver how long the airport run takes and a good one says forty minutes, maybe an hour in traffic. The range is the useful part, because you plan your flight around it. A trading interviewer asking where an index closes wants a distribution, because a market maker quotes against the spread of outcomes, not against a guess. Your central value should not be a view on the economy either: with no edge, the best central estimate of a traded index is roughly its forward, which for four months is close to today's 20,000 once financing and dividends roughly offset.

    The width comes from the implied volatility the market already quotes. Volatility grows with the square root of time, because independent daily moves add their variances, not their standard deviations. Four months is a third of a year, so one standard deviation is 18% x sqrt(1/3) = 10.4%, about 2,078 index points.

    The honest forecast is a distribution, 10.4% wide per standard deviation14,00016,00018,00020,00022,00024,00026,0005th pct 16,76795th pct 23,601median 19,892, mean 20,000middle 90%-3,233 points+3,601 pointsone sd: 18% x sqrt(1/3) = 10.4%
    With 18% volatility over four months, the index's middle 90% runs from about 16,767 to 23,601, which is 3,233 points below today's level and 3,601 points above, because a lognormal distribution stretches further up than down.
    The relationship
    ST=S0 e−σ2T/2+σTZ5th, 95th pct=S0 e−σ2T/2∓1.645 σTS_T = S_0\, e^{-\sigma^2 T/2 + \sigma\sqrt{T} Z} \qquad \text{5th, 95th pct} = S_0\, e^{-\sigma^2T/2 \mp 1.645\,\sigma\sqrt{T}}
    S_0today's level, 20,000
    sigmaimplied volatility, 0.18 a year
    Ttime in years, 1/3
    Za standard normal draw
    What it says in wordsLog returns are normal with a standard deviation of sigma times root T, and a small drift correction keeps the mean at today's level.

    Why is the range lopsided, and where does the median sit?

    A fall of 10% and a rise of 10% are not mirror images in log space. Normal log returns make the upside tail longer: the 90% band stretches 3,601 points up but only 3,233 points down. The same convexity pushes the median below the mean: if the mean is 20,000, the median is 20,000 x exp(-sigma squared T / 2), about 19,892. That gap of about 108 points is small here, but it grows with volatility and time, and a candidate who names it shows they know the difference between the most central outcome and the average one.

    What would you add before quoting a market on it?

    Two honest caveats. Implied volatility is a price, not a forecast: it tends to sit above the volatility that is later realised, because option sellers charge for bearing crash risk, so the band built from it is usually a little wide. Against that, real index returns have fatter tails than the lognormal, so the 5% tails are more likely to hold a larger move than the curve suggests. Say both, then give your market: a tight two-way price around 20,000 if asked for the level, and the 90% band as the range you would sell outside of.

    Where candidates lose it

    The first loss is scaling volatility linearly with time: a third of 18% is 6%, which gives a band far too narrow. Volatility scales with the square root of time, so four months is about 10.4%, not 6%.

    The second loss is answering with a macro story and a point forecast. The interviewer wants you to use the price the market already gives you, implied volatility, and to say that the honest answer is a distribution with a lopsided shape.

    What the interviewer asks next

    • What 90% range would you give for one week out?
    • How would the range change if implied volatility jumped to 30%?
    • If you had to bet on the index finishing above 22,000, what fair probability would you quote?

    Asked at Morgan Stanley, Sales and Trading, Tokyo, 2025 (Wall Street Oasis): What do you think this index will close at by the end of the year (4 months from now)

  4. 079You may draw numbers uniform on 0 to 1, one after another. Each draw costs 0.02, and when you stop you keep the last number drawn. What is your optimal stopping threshold, and what is the game worth?Expected value and optimal stoppingHardQuant tradingQuant research

    Try it first

    What threshold should you stop at?

    Show the worked solution

    Stop at the first draw of 0.8 or more; the game is worth 0.8 after all fees. Holding x, one more draw improves you by (1 - x)^2 / 2 on average, which equals the 0.02 fee at x = 0.8. Check: you expect 5 draws costing 0.10 in total, and the draw you keep averages 0.90, so the net value is 0.80.

    How do you decide whether one more draw is worth it?

    Think of hunting for a flat. Each viewing costs you an evening. If the flat in hand is already good, another viewing rarely beats it, and when it does it only beats it by a little. The value of one more look is the chance of beating what you hold times the average margin when you do, and you stop when that falls below the price of looking. With a uniform draw and a current value x, the chance of beating x is 1 - x and the average margin is (1 - x)/2, so the expected gain is (1 - x)^2 / 2.

    Draw again only while the expected improvement beats the 0.02 feegain above cost:draw againgain below cost:stop and keep xcost of a draw, 0.02gain from one more draw = (1 - x)^2 / 2threshold x* = 0.80.50.60.70.80.91.00.050.100current value x
    The expected gain from one more draw, (1 - x)^2 / 2, falls below the 0.02 cost exactly at x = 0.8, so you keep drawing while you hold less than 0.8 and stop at the first draw above it.
    The relationship
    V=E[max⁡(U,V)]−c=V+(1−V)22−c  ⇒  (1−V)22=c  ⇒  V=1−2c=0.8V = \mathbb{E}[\max(U, V)] - c = V + \frac{(1-V)^2}{2} - c \;\Rightarrow\; \frac{(1-V)^2}{2} = c \;\Rightarrow\; V = 1 - \sqrt{2c} = 0.8
    Vthe value of the game before paying for the next draw
    Uthe next uniform draw
    cthe cost per draw, 0.02
    What it says in wordsThe game is worth one draw plus the option to walk away with it, less the fee, and solving that gives both the threshold and the value, 0.8.

    Why are the threshold and the value the same number?

    Because the game has no memory. After a disappointing draw you are back where you started, facing the same game worth V. You should accept a draw exactly when it beats what the fresh game is worth, so the threshold equals the value. This is the same logic as a reservation price: you walk away from any offer below what the next round is worth to you. The arithmetic check is worth saying: with threshold 0.8 a draw succeeds with probability 0.2, so you expect 5 draws and 0.10 of fees, and an accepted draw is uniform on 0.8 to 1 with mean 0.9. The net is 0.9 - 0.10 = 0.8. A seeded simulation of 200,000 games gives 0.800.

    What happens as the cost changes?

    The threshold is 1 - sqrt(2c), so it responds to the square root of the cost. A fee of 0.005, four times cheaper, only moves the threshold from 0.8 to 0.9. At a fee of 0.5 or more, the threshold hits zero and you take the first draw, because even the first draw's average of 0.5 barely covers what you paid. The limitation of the model is that draws are independent and the distribution is known; if you were learning the distribution as you drew, the first few draws would be worth more than this rule says.

    Where candidates lose it

    The common wrong threshold is 0.98, from reasoning that one more draw is worth it whenever the cost is less than what you could gain at best. That compares the fee with the best case, not with the average improvement, and it draws far too many times.

    The second loss is getting 0.8 as a threshold and then quoting the value as the average of the kept draw, 0.9. The fees paid on the way, 0.10 on average, come off. Say the check out loud: 0.9 minus 0.1 is 0.8.

    What the interviewer asks next

    • What if you are only allowed at most two draws in total?
    • What if each draw is uniform on 0 to 100 and costs 1?
    • Now the fee is charged only on draws after the first. What changes?
  5. 085What are the last two digits of 4 raised to the power 3000?Mental maths and number senseHardBelvedere TradingNew york · 2021

    Try it first

    Which ending is right?

    Show the worked solution

    76. Split 100 into 4 x 25. Any power of 4 is 0 mod 4. Mod 25, Euler's theorem applies because 4 and 25 share no factor, and 3000 is a multiple of phi(25) = 20, so 4^3000 is 1 mod 25. The numbers below 100 that are 1 mod 25 are 1, 26, 51 and 76, and only 76 is divisible by 4.

    Why does the obvious Euler shortcut fail?

    Euler's theorem says a to the power phi(n) is 1 mod n, and phi(100) = 40, so it is tempting to say 4^3000 = (4^40)^75 ends in 01. The theorem needs the base and the modulus to share no factor, and 4 and 100 share a factor of 4, so it does not apply. A quick sense check kills 01 anyway: every power of 4 is divisible by 4, and a number is divisible by 4 exactly when its last two digits are, which 01 is not.

    How do you split the problem so the theorem does apply?

    Think of a clock with 100 hours as two smaller clocks running together, one with 4 hours and one with 25. Knowing where both small clocks point fixes the big one exactly. Mod 4 the answer is 0, since 4^3000 is a multiple of 4; mod 25 the answer is 1, since 4 and 25 share no factor and 3000 is a multiple of phi(25) = 20. Now list the numbers below 100 that are 1 mod 25: 1, 26, 51, 76. Only 76 is a multiple of 4. This step is the Chinese remainder theorem, and naming it earns credit.

    Powers of 4 cycle every 10 steps, and 3000 lands on 7604n=116n=264n=356n=424n=596n=684n=736n=844n=976n=104^n mod 100repeats every 103000 = 10 x 300, and 76 x 76 = 5,776so 4^3000 = (4^10)^300 ends in 76Check with 100 = 4 x 25:mod 44^3000 is 0mod 25 (phi = 20)4^3000 is 11265176numbers below 100 that are 1 mod 25only 76 is also divisible by 4
    The last two digits of 4^n cycle through ten values and the tenth power ends in 76, so every multiple of 10 as an exponent, including 3000, ends in 76; splitting 100 into 4 and 25 confirms it, because 76 is the only number below 100 that is 0 mod 4 and 1 mod 25.
    The relationship
    43000≡0(mod4),43000=(420)150≡1(mod25)  ⇒  43000≡76(mod100)4^{3000} \equiv 0 \pmod 4, \quad 4^{3000} = (4^{20})^{150} \equiv 1 \pmod{25} \;\Rightarrow\; 4^{3000} \equiv 76 \pmod{100}
    mod 4, mod 25the remainders on division by 4 and by 25
    phi(25) = 20how many numbers below 25 share no factor with 25
    What it says in wordsFind the remainder on each small clock, then find the one number below 100 that matches both.

    What is the fastest check if you have a pencil?

    Just list the endings. Multiply each ending by 4 and keep the last two digits: 04, 16, 64, 56, 24, 96, 84, 36, 44, 76, and then 76 x 4 = 304, which ends in 04, so the cycle has length 10. Because 76 x 76 = 5,776 also ends in 76, every power of 76 ends in 76, and 4^3000 = (4^10)^300 must end in 76. On a multiple-choice test, this listing takes about thirty seconds and needs no theorem at all.

    Where candidates lose it

    The trap is applying Euler's theorem with phi(100) = 40 and answering 01. The theorem requires the base and modulus to share no factor, and 4 and 100 do share one.

    The second loss is listing powers without noticing the cycle and running out of time. Say early that the endings must repeat, find the period of 10, and read the answer from 3000 being a multiple of 10.

    What the interviewer asks next

    • What are the last two digits of 7^2026?
    • What are the last three digits of 4^3000?
    • What is the remainder when 2^100 is divided by 7?

    Asked at Belvedere Trading, Equities, New york, 2021 (Wall Street Oasis): It was a 14 question multiple choice test. Some basic number theory (4^3000 modulo 100)

  6. 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?Conditional probability and BayesHardWolverine 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, the win rate is still a wide curve, centred at 0.833flat prior before any data0.00.20.40.60.81.0daily win rate pmean 10/12 = 0.833peak 0.9middle 90%Naive estimate9/10 = 0.900the peak, not the meanRule of succession(9 + 1)/(10 + 2)= 0.833
    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 relationship
    π(p∣data)∝p9(1−p)  =  Beta(10,2),P(win tomorrow)=E[p]=9+110+2=56\pi(p\mid\text{data}) \propto p^{9}(1-p) \;=\; \text{Beta}(10,2), \qquad P(\text{win tomorrow}) = \mathbb{E}[p] = \frac{9+1}{10+2} = \frac{5}{6}
    pthe 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

  7. 091Turn over the cards of a well-shuffled 52-card deck one at a time until the first ace appears. What is the expected number of cards you turn over, counting the ace?Expected value and optimal stoppingHardQuant tradingProp trading firms

    Try it first

    Before you calculate: how many cards do you expect to turn?

    Show the worked solution

    10.6 cards, which is 53/5. Each of the 48 non-aces comes before all four aces with probability 1/5, because among that card and the four aces each is equally likely to be first. So on average 48/5 = 9.6 non-aces precede the first ace, and counting the ace itself gives 10.6. For n cards with m special ones the rule is (n + 1)/(m + 1).

    Why isn't the answer 13?

    Drop four red counters at random into a line of 48 white ones. Nothing distinguishes the stretch of white before the first red from the stretch between the second and third reds, or the stretch after the last red. The four reds cut the whites into five stretches, and by symmetry each stretch holds the same number on average, 48/5 = 9.6. The answer 13 imagines the aces spread evenly from the top of the deck, but that leaves no room for the stretch after the last ace, which is just as long on average as the others.

    Four aces cut the other 48 cards into five gaps of 9.6 on averageOn average: five equal gaps of 48/5 = 9.6 cards9.6A9.6A9.6A9.6A9.6first ace at card 9.6 + 1 = 10.6One real shuffle: gaps of 6, 23, 7, 8, 4. Unequal, yet each gap averages 9.6623784Tempting but wrong: 52 / 4 = 13aces evenly spaced from the top, no gap left after the last ace
    The four aces split the 48 other cards into five gaps that average 9.6 cards each, so the first ace arrives at card 10.6 on average; a single shuffle gives unequal gaps such as 6, 23, 7, 8, 4, and spacing the aces evenly at 13 ignores the fifth gap.
    The relationship
    E[X]=1+∑j=148P(card j precedes all four aces)=1+48×15=535=10.6\mathbb{E}[X] = 1 + \sum_{j=1}^{48} P(\text{card } j \text{ precedes all four aces}) = 1 + 48 \times \tfrac{1}{5} = \tfrac{53}{5} = 10.6
    Xthe position of the first ace, counting the ace
    card jone of the 48 non-aces
    1/5the chance card j is first among itself and the four aces
    What it says in wordsCount the non-aces that come before the first ace one card at a time, add up their probabilities, and add one for the ace.

    How do you make the symmetry argument rigorous?

    Use indicators. Pick any non-ace, say the seven of clubs. It is turned before the first ace exactly when it comes first among five cards: itself and the four aces. Those five cards sit in a random order, so that happens with probability 1/5. An expected count is the sum of the probabilities, even when the events depend on each other, so 48 x 1/5 = 9.6 non-aces come first on average and the ace makes it 10.6. The exact sum of the chances that the first ace is later than card k, over k from 0 to 48, gives 53/5 as well, and a seeded simulation of 100,000 shuffles gives 10.63.

    The mean hides a skewed shape. The first ace is in the top five cards 34.1% of the time, and the median position is 9, below the mean of 10.6, because a few shuffles bury all four aces deep in the deck and drag the average up. If the interviewer asks for the most likely position, the answer is the very first card: each later position needs every earlier card to be a non-ace, so the chances fall card by card.

    How does it generalise, and where is it useful?

    With n cards and m special ones, the m specials cut the n - m others into m + 1 gaps, so the first special arrives at (n - m)/(m + 1) + 1 = (n + 1)/(m + 1). Check it with one ace: (52 + 1)/2 = 26.5, the middle of the deck, which is what you would expect. The first spade, with 13 specials, arrives at card 53/14, about 3.79. The same gap symmetry gives the expected wait for the first default in a pool or the first fill among queued orders, provided every ordering is equally likely. That proviso is the limitation: if defaults cluster in time or the deck is stacked, the gaps stop being exchangeable and the rule fails.

    Where candidates lose it

    The quick wrong answer is 13, from 52 cards divided by 4 aces. That spaces the aces evenly from the top and forgets that the stretch after the last ace is, on average, as long as the stretch before the first.

    The second loss is reaching 9.6 and stopping. That is the number of cards before the ace; the question counts the ace itself, so add one to get 10.6. Say which you are quoting, because interviewers vary the wording to catch exactly this.

    What the interviewer asks next

    • What is the expected position of the second ace?
    • What is the expected number of cards turned until the first spade?
    • Which is more likely: the card after the first ace is the ace of spades, or it is the two of clubs?
  8. 094Two points are chosen independently and uniformly on the surface of a unit sphere. What is the expected distance between them measured along the surface, that is, the great-circle distance?Continuous and geometric probabilityHardTower Research CapitalNew York · 2019

    Try it first

    What is the expected great-circle distance?

    Show the worked solution

    pi/2, about 1.571. Rotate the sphere so the first point sits at the north pole; nothing changes, because the second point is uniform. On a unit sphere the surface distance is the polar angle theta of the second point. The northern and southern hemispheres are mirror images, so theta is as likely to be pi/2 - t as pi/2 + t, and its mean is pi/2.

    Why can you put the first point at the pole?

    Ask how far apart two random towns are on a perfectly round planet, and you can simply stand in one of them: the globe looks the same from every spot on it. Symmetry lets you fix one point anywhere, so the problem shrinks to one random point and its angle from the pole. On a sphere of radius 1, the distance along the surface between the pole and a point at polar angle theta is theta itself, measured in radians, so the question becomes: what is the average polar angle of a uniform point?

    Fix one point at the pole: the angle to the other is symmetric about pi/2thetafirst point, moved to the polesecond pointsurface arc = thetachord2 sin(theta/2)dashed red: the wrong uniform angle, density 1/pimean = pi/2,by symmetry0pi/2piangle theta from the poledensity of theta: (1/2) sin theta0.5
    With the first point at the pole, the surface distance is the polar angle theta of the second point, whose density (1/2) sin theta is symmetric about pi/2, so the expected distance is pi/2; a uniform angle, the dashed line, puts too many points near the poles.
    The relationship
    f(θ)=12sin⁡θ    (0≤θ≤π),E[θ]=∫0πθ 12sin⁡θ dθ=π2f(\theta) = \tfrac12 \sin\theta \;\; (0 \le \theta \le \pi), \qquad \mathbb{E}[\theta] = \int_0^{\pi} \theta\, \tfrac12 \sin\theta \, d\theta = \frac{\pi}{2}
    thetathe polar angle of the second point, equal to the surface distance on a unit sphere
    f(theta)the density of that angle
    sin thetathe relative size of the band of latitude at angle theta
    What it says in wordsThere is more surface near the equator than near the poles, in proportion to sin theta, and that density is symmetric about pi/2.

    Where does sin theta come from? The circle of latitude at angle theta from the pole has circumference 2 pi sin theta, so a thin band there holds surface in proportion to sin theta: almost none near the poles, the most at the equator. Archimedes put it more neatly: the area of a band is proportional to its height along the axis, so cos theta is uniform between -1 and 1. The density (1/2) sin theta is a mirror image about pi/2, so the mean is pi/2 without doing the integral. Integration by parts confirms it, a numerical integral gives 1.5708, and a seeded simulation of 100,000 pairs gives 1.570.

    If a uniform angle gives the same mean, why does the shape matter?

    Because the mean survives by luck of symmetry and almost nothing else does. Choosing theta uniformly on 0 to pi crowds points near the poles. Ask for the chance the two points are within 60 degrees of each other and the correct answer is (1 - cos 60 degrees)/2 = 0.25, while the uniform angle says 0.33. Ask for the expected straight-line chord, 2 sin(theta/2), and the correct density gives 4/3, about 1.333, while the uniform angle gives 4/pi, about 1.273. The simulation gives 1.333 for the chord. This is the limitation of the shortcut: it answers this one question and must not be reused for the next.

    Where candidates lose it

    The commonest wrong answer is 4/3, the expected straight-line chord, which some candidates remember from a related puzzle. The question asks for distance along the surface, which on a unit sphere is the angle itself.

    The second loss is the right answer for the wrong reason: picking the angle uniformly between 0 and pi. The mean comes out right by symmetry, but any follow-up on the chord or on the chance of being close gives the wrong number. Say that the band of latitude grows like sin theta.

    What the interviewer asks next

    • What is the expected straight-line distance between the two points?
    • What is the probability that the two points are within 60 degrees of each other?
    • Four points are chosen uniformly on a sphere. What is the chance they all lie in one hemisphere?

    Asked at Tower Research Capital, Quantitative Research, New York, 2019 (Wall Street Oasis): a 3d geometry question about the surface distance between points chosen randomly on the surface of a sphere

  9. 095A knight starts in a corner of an empty chessboard and moves at random, choosing uniformly among its legal moves at every turn. What is the expected number of moves until it first returns to the starting corner?Markov chains and random walksHardQuant researchQuant trading

    Try it first

    Pick the expected return time.

    Show the worked solution

    168 moves. A random walk that picks uniformly among a square's moves spends time at each square in proportion to its number of moves, its degree. The degrees on a chessboard sum to 336 and a corner has degree 2, so the knight is in that corner 2/336 of the time. The expected return time is the reciprocal, 336/2 = 168.

    Why is the time spent on a square proportional to its number of moves?

    Think of a town where every road is two-way and a lost tourist picks a road at random at each junction. Big junctions get more visits simply because more roads lead into them. For a random walk on a network of two-way links, the long-run share of time at a point is its number of links divided by the total, because that split sends exactly as much traffic along every link in each direction. Check it on one knight move from square u to square v: the flow is (d_u/336) x (1/d_u) = 1/336, and the flow back is the same, so nothing piles up anywhere.

    Time on a square is proportional to its moves: return time = 336 / 22344443234666643468888644688886446888864468888643466664323444432start: the corner, 2 movesMoves per squaresquarestotal2x 483x 8244x 20806x 16968x 16128total degree336share of time in the corner = 2 / 336expected return time = 1 / share= 336 / 2 = 168 moves
    The knight's move counts range from 2 in the corners to 8 in the centre and total 336, so the walk spends 2/336 of its time in the starting corner and returns to it every 168 moves on average.
    The relationship
    πv=dv∑udu,E[return time to v]=1πv=∑ududv=3362=168\pi_v = \frac{d_v}{\sum_u d_u}, \qquad \mathbb{E}[\text{return time to } v] = \frac{1}{\pi_v} = \frac{\sum_u d_u}{d_v} = \frac{336}{2} = 168
    d_vthe number of legal knight moves from square v
    pi_vthe long-run share of time the walk spends at v
    sum of d_uthe total of the move counts over all 64 squares, 336
    What it says in wordsThe share of time at a square is its move count over the total, and the average gap between visits is one over that share.

    How do you get 336 quickly and check it?

    Tally the move counts by symmetry, as in the figure: four corners with 2, eight squares with 3, twenty with 4, sixteen with 6 and sixteen with 8. For a check, count the moves themselves: every knight move is a diagonal of a 2 by 3 or 3 by 2 rectangle, there are 84 such rectangles on the board, each holds 2 moves, so there are 168 two-way moves and 336 move ends. The answer, 168, happens to equal the number of moves, a coincidence of the corner having exactly two.

    What are the limits of the trick?

    The rule that return time is one over the long-run share holds for any chain that can reach every state and settles down, which is Kac's lemma. The degree formula for that share needs two-way moves chosen uniformly; if the knight preferred some moves, you would have to solve for the share directly. One more subtlety is worth saying: a knight always changes square colour, so it can only return after an even number of moves, and the chance of being in the corner at a fixed time does not settle down. The average return time is unaffected, and a seeded simulation of 100,000 returns gives 168.0. From a central square with 8 moves the return time is 336/8 = 42.

    Where candidates lose it

    The usual wrong answer is 64, from assuming the knight spends equal time on every square. It does not: squares with more moves are visited more often, and a corner, with only two moves, is one of the rarest.

    The second loss is setting up 64 equations for expected hitting times. That works on paper and fails in an interview. Say the degree rule, count the degrees by symmetry, and check the total with the rectangle count.

    What the interviewer asks next

    • What is the expected return time to a central square such as d4?
    • Answer the same question for a king starting in a corner.
    • Why does the knight always need an even number of moves to come back?
  10. 099A stock is worth either 100 or 110, with equal probability. 20% of the traders who arrive know the true value: they buy if it is 110 and sell if it is 100. The other 80% buy or sell at random, half and half. Where should a market maker set its ask so that it breaks even, on average, when someone buys from it?Market making, betting and sizingHardJane StreetNew York · 2025

    Try it first

    Where should the ask be?

    Show the worked solution

    Set the ask at 106, and by the same logic the bid at 104. If the stock is worth 110, a buy arrives with probability 0.2 + 0.8 x 0.5 = 0.6; if it is worth 100, with probability 0.4. Given a buy, Bayes puts the chance of 110 at 0.6, so the stock is worth 106 to the market maker selling it. The spread of 2 is the price of trading against informed flow.

    Why can't the market maker just quote the expected value of 105?

    A second-hand car dealer who pays the average price for every car will find that the owners of good cars go elsewhere and the owners of bad ones queue up. Who chooses to trade with you is information. A market maker does not care what the stock is worth on average; it cares what the stock is worth given that someone has just chosen to buy from it. At an ask of 105, noise buyers are harmless, a loss of 5 when the stock is worth 110 and a gain of 5 when it is worth 100. Informed buyers only appear in the 110 world, and they cost 0.5 per arriving trader on average, so 105 is a losing quote.

    A buy is evidence: given a buy, the stock is worth 106, so the ask is 106start0.5worth 110informed 0.2noise 0.80.5worth 100informed 0.2noise 0.8buy0.10buy0.20sell0.20sell0.10buy0.20sell0.20buys from 110:0.10 + 0.20 = 0.30buys from 100: 0.20P(110 | buy) = 0.6ask = 106
    Tracing who sends a buy order in each world, buys come with probability 0.30 from the 110 world and 0.20 from the 100 world, so a buy lifts the chance of 110 from 0.5 to 0.6 and the break-even ask is 106.
    The relationship
    P(110∣buy)=0.5×0.60.5×0.6+0.5×0.4=0.6,ask=E[V∣buy]=100+0.6×10=106P(110 \mid \text{buy}) = \frac{0.5 \times 0.6}{0.5 \times 0.6 + 0.5 \times 0.4} = 0.6, \qquad \text{ask} = \mathbb{E}[V \mid \text{buy}] = 100 + 0.6 \times 10 = 106
    0.6the chance of a buy when the stock is worth 110: 0.2 informed plus 0.8 x 0.5 noise
    0.4the chance of a buy when the stock is worth 100: noise only
    Vthe stock's true value
    What it says in wordsSet the ask at the value of the stock conditional on being bought from, which Bayes' rule gives directly.

    What sets the width of the spread?

    The share of informed traders and the size of what they know. With a share alpha informed, a buy is alpha + (1 - alpha)/2 likely in the high world and (1 - alpha)/2 in the low world, and the ask works out to 105 + 5 alpha. The spread is a fee for adverse selection: it is zero when nobody is informed and widens to the full 100 to 110 range when everyone is. The table runs the formula for a few shares. Order processing and inventory costs add to this in real markets, but the information component is what makes spreads jump around earnings and news.

    Informed shareAskBidSpread
    0%1051050
    10%105.5104.51
    20%1061042
    50%107.5102.55
    100%11010010
    The break-even spread equals the informed share times the 10-point value gap, so it is 2 at 20% informed and 5 at 50% informed.

    What happens after the first trade?

    The market maker updates. After one buy, the chance of 110 is 0.6, and if a second buy arrives the same Bayes step lifts it to 0.692, so the next ask is about 106.92. Each order moves the quotes towards the true value, which is how prices come to reflect what the informed traders know. The limitation is that the model has one share size, no inventory risk and no competition between market makers; real desks also skew quotes to manage position, which this puzzle leaves out.

    Where candidates lose it

    The fast wrong answer is 105, the unconditional expected value. It ignores that the act of buying is evidence: informed traders buy only when the stock is worth 110, so a market maker at 105 loses on every informed buyer and only breaks even on noise traders.

    The second loss is overreacting and quoting 110 because some buyers are informed. Most buyers are noise traders, and a quote at 110 drives them away. Bayes gives the exact weight, 0.6 on the high value, and the ask of 106.

    What the interviewer asks next

    • Where should the bid be, and why is the spread symmetric here?
    • After one buy at 106, where is the next ask?
    • How does the spread change if half of the traders are informed?

    Asked at Jane Street, Generalist, New York, 2025 (Wall Street Oasis): It was a probability theory based quant trading style market making questions which were intense

← PreviousPage 3 of 3
  1. 1
  2. 2
  3. 3
Next →
Fin Maverick

Finance education that ends in a job, not a certificate that gathers dust. Built for young India.

LEARN
CalculatorsFrameworksComparisonsInterview RoadmapsShowdown
RESOURCES
All CoursesFree CoursesBootcampsInternships
COMPANY
AboutJob openingPartnership
LEGAL
Privacy PolicyTerms & ConditionsContent LicenseReturn & Refund Policy
© 2026 FIN MAVERICK / BUILT FOR INDIA.DO FINANCE, DO NOT JUST READ ABOUT IT.