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
CalculatorComparison
Frameworks
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 1–5 of 5 · filtered from 100Clear filters
  1. 007You roll a fair six-sided die six times. What is the expected number of different faces that appear?Expected value and optimal stoppingCoreQuant tradingProp trading firms

    Try it first

    Your estimate before any working?

    Show the worked solution

    About 3.99. Give each face an indicator that equals 1 if that face appears at least once. A given face is missed on all six rolls with probability (5/6) to the 6th, about 0.335, so it appears with probability 0.665. The expected count of distinct faces is the sum of the six indicators' expectations: 6 x 0.665 = 3.99. No case listing is needed.

    Why not list the cases?

    You could work out the chance of exactly one, two, up to six distinct faces and average them. It works, but it needs Stirling numbersCounts of the ways to split a set of items into a given number of non-empty groups; they appear when counting surjections. or a lot of careful counting, and it is easy to slip. Linearity of expectation lets you ignore how the faces interact: the expected total of several indicators is the sum of their expectations, whether or not they are independent. Here the six indicators are clearly dependent, since seeing many faces leaves fewer rolls for the others, and it does not matter at all.

    Six indicators, one per face, each switched on 66.5% of the time66.5%66.5%66.5%66.5%66.5%66.5%Each bar: 1 - (5/6) to the 6th, the chance that face shows up at least onceSum of the six bars = 6 x 0.6651 = 3.99Exact spread of distinct faces122%323%450%523%62%mean 3.99distinct faces in six rolls
    Each of the six faces appears at least once with probability 66.5%, so the expected number of distinct faces is six times that, 3.99; the exact distribution peaks at four distinct faces and has all six only 1.5% of the time.

    How does the indicator trick work step by step?

    Think of a teacher counting how many of six friends turn up to a party. Instead of listing every guest list, she asks for each friend separately how likely that friend is to come, then adds. Write the count as I1 + I2 + ... + I6, where I_k is 1 if face k appears; take expectations; each E[I_k] is just the probability face k appears. Face k is missed on one roll with probability 5/6, on all six with (5/6) to the 6th, 0.335. So each indicator averages 0.665 and the total averages 3.99.

    The relationship
    E[D]=∑k=16P(face k appears)=6(1−(56)6)≈6×0.665=3.99E[D] = \sum_{k=1}^{6} P(\text{face } k \text{ appears}) = 6\left(1 - \left(\tfrac{5}{6}\right)^6\right) \approx 6 \times 0.665 = 3.99
    Dthe number of distinct faces seen in six rolls
    (5/6)^6the chance a given face never appears in six rolls
    What it says in wordsThe expected number of distinct faces is six times the chance that any one face appears.

    Where does this pattern reappear?

    The same shape answers how many distinct birthdays a group of n people has, how many of n hash buckets get used, and how many different stocks a random sample of trades touches. For n faces and n rolls, the expected share of faces seen is 1 - (1 - 1/n) to the n, which tends to 1 - 1/e, about 63.2%, as n grows. Six faces give 66.5%, already close. The exact enumeration of all 46,656 rolls gives a mean of 3.9906, the same number.

    Where candidates lose it

    The instinctive answer is 6, or something close to it, because six rolls over six faces feels like one of each. In reality repeats are the norm, and all six different faces happen in under 2% of runs.

    The costlier trap is starting to enumerate cases under time pressure. Candidates who try to list exactly four distinct faces lose minutes. Say indicator variables and linearity in the first sentence.

    What the interviewer asks next

    • What is the expected number of faces that appear exactly once?
    • How many rolls do you need, on average, to see all six faces?
    • What is the variance of the number of distinct faces?
  2. 040Game: roll a fair die and receive its face in rupees; whenever you roll a six you also roll again and add the next result, with no limit on repeats. What is the expected payout of the game?Expected value and optimal stoppingCoreQuant tradingOptions market making

    Try it first

    What is the game worth?

    Show the worked solution

    Rs 4.20. Every roll pays its face, averaging 3.5, and with probability 1/6 the game then starts again, worth the same V. So V = 3.5 + V/6, which gives (5/6)V = 3.5 and V = 4.2. A second route agrees: the number of rolls averages 1/(5/6) = 1.2, and each averages 3.5, so 1.2 x 3.5 = 4.2.

    Why write the game in terms of itself?

    A pass that gets a free renewal each time you use it on a lucky day is worth its first use plus, on lucky days, another pass exactly like it. When a game can repeat with no memory, the value after the repeat is the value of the whole game, so one equation replaces an infinite sum. Here, after a six you are paid 6 and then face precisely the game you started with, worth V.

    The game after a six is the same game: write V in terms of itselfRollworth V5/61/6Faces 1 to 5: stopcollect the face, average 3Face 6: collect 6then play the whole game againloop: the future is worth V againV = (5/6) x 3 + (1/6) x (6 + V)V = 2.5 + 1 + V/6(5/6) V = 3.5V = 4.2rupeesCheck: expected rolls = 1 / (5/6) = 1.2each roll averages 3.5: 1.2 x 3.5 = 4.2Capping at one re-roll gives 4.08:close, but it drops the chain of sixes
    Faces 1 to 5 end the game, and a six pays 6 and restarts the same game, so V = (5/6) x 3 + (1/6) x (6 + V), which solves to V = 4.2; the number of rolls averages 1.2, and 1.2 x 3.5 gives the same 4.2.

    How do you set up the equation without slipping?

    Condition on the first roll. With probability 5/6 it shows 1 to 5, averaging 3, and you stop. With probability 1/6 it shows 6: you collect 6 and then expect V more. So V = (5/6) x 3 + (1/6) x (6 + V), which simplifies to V = 3.5 + V/6, and V = 3.5 x 6/5 = 4.2. The form 3.5 + V/6 is worth saying: every roll pays 3.5 on average, and one time in six you get another go at the whole game.

    The relationship
    V=56⋅3+16 (6+V)  ⇒  V=3.51−1/6=4.2V = \tfrac56\cdot 3 + \tfrac16\,(6 + V) \;\Rightarrow\; V = \frac{3.5}{1 - 1/6} = 4.2
    Vexpected payout of the game, in rupees
    3average of faces 1 to 5
    6 + Vpayout after a six: the six itself plus a fresh game
    What it says in wordsThe game's value is one roll's average plus a one-in-six chance of the whole game again.

    Check by counting rolls. The chance a roll triggers another is 1/6, so the number of rolls averages 1/(1 - 1/6) = 1.2, and each roll averages 3.5 whatever came before, giving 1.2 x 3.5 = 4.2. Summing the series directly, k sixes and then a stop, also lands on 4.2, but the recursion gets there in two lines. The limitation to name if asked to price it: 4.2 is a fair value for one play; the payout has a long right tail, since two sixes in a row, one time in 36, already pay at least 13.

    Where candidates lose it

    The usual loss is capping the chain: adding one re-roll, 3.5 + 3.5/6 = 4.08, and stopping. The re-roll can be a six too, and the question says there is no limit.

    The second is writing V = 3.5 + V without the 1/6, which has no solution, or forgetting the six itself is paid before the restart. Condition on the first roll and write each branch in full.

    What the interviewer asks next

    • What would you pay to play if a six pays nothing but gives a re-roll?
    • What is the probability the payout exceeds 12?
    • Now a one ends the game with zero payout. What is the game worth?
  3. 052You roll a fair die repeatedly until the first six appears. What is the expected sum of all the rolls before the six, not counting the six itself?Expected value and optimal stoppingCoreQuant tradingProp trading firms

    Try it first

    Pick your answer before working it.

    Show the worked solution

    15. The first six takes 6 rolls on average, so 5 rolls come before it. Each of those rolls is known not to be a six, so it is uniform on 1 to 5 and averages 3. Expected count times expected size gives 5 x 3 = 15. The check: all rolls including the six average 6 x 3.5 = 21, and taking off the final six leaves 15.

    How many rolls come before the six?

    Picture waiting at a stop where each minute a bus arrives with chance 1 in 6. On average you wait 6 minutes, and the sixth is the one where it comes. The number of rolls up to and including the first six is geometric with mean 1/p = 6, so the number strictly before it is 5. That is the first factor. Most candidates get this far; the loss comes in the second factor.

    Expected count times expected size: 5 rolls of 3 eachOne sample game25516sum before the six: 13The average game333336stopsexpected count of non-six rolls: 5How many before the six6 rolls on average, less 1E[N] = 5xHow big each one isfaces 1 to 5 only: not 3.5E[X | not 6] = 3=Expected sum15Check: all rolls including the six average 6 x 3.5 = 21; take off the final 6 and 15 is left.
    A typical game has five non-six rolls before the stopping six, and each of those rolls averages 3 because it is known not to be a six, so the expected sum is 5 x 3 = 15; the full-sum check of 6 x 3.5 less the final 6 also gives 15.

    Why is each of those rolls worth 3 and not 3.5?

    Because you are told something about them. Every roll before the stopping six is, by definition, not a six, so its distribution is the die conditioned on 1 to 5, which averages exactly 3. Using 3.5 gives 17.5, the most common wrong answer. It is the same slip as averaging the income of people who did not win a prize with everyone's income, prize winners included.

    The relationship
    E[∑i=1NXi]=E[N] E[X∣X≠6]=5×3=15E=56 (3+E) ⇒ E=15E\Big[\sum_{i=1}^{N} X_i\Big] = E[N]\,E[X \mid X \ne 6] = 5 \times 3 = 15 \qquad E = \tfrac56\,(3 + E)\ \Rightarrow\ E = 15
    Nthe number of rolls before the first six, mean 5
    X | X not 6a roll known not to be a six, uniform on 1 to 5
    Ethe expected sum from any fresh start
    What it says in wordsExpected count times the expected size of each piece gives 15, and the one-step recursion confirms it.

    How do you check 15 a second way in the room?

    Two checks, both fast. The recursion: with chance 5/6 the next roll is not a six, adds 3 on average and you are back where you started, so E = (5/6)(3 + E), which solves to 15. The full sum: Wald's identityFor a stopping time N that does not look into the future, the expected sum of N independent identical draws equals E[N] times the mean of one draw. applied to every roll including the six gives 6 x 3.5 = 21, and the last roll is always exactly 6, so the rest must average 15. Say both; the second one shows you understand why the conditional mean is 3.

    Where candidates lose it

    The trap is 17.5: the right count, 5, multiplied by the unconditional mean of a die. The interviewer set the question up so that the rolls you sum are selected, not random, and wants to see whether you notice.

    The second trap is multiplying 6 rolls by 3.5 and stopping at 21, which includes the six the question told you to exclude. Say what is counted before you multiply.

    What the interviewer asks next

    • What is the expected sum if you do count the six?
    • What is the expected sum of the rolls before the first time you roll a 1 or a 2?
    • What is the expected number of rolls until two sixes in a row?
  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. 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?
Fin Maverick Free CoursesExplore Free Courses
Fin Maverick BootcampsExplore Bootcamps
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.