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-I · Currency DerivativesSeries-II-A · RTAs (Corporate)Series-II-B · RTAs (Mutual Fund)Series-III-A · Compliance (Non-Fund)Series-III-C · Compliance (Fund)Series-IV · Interest Rates DerivativesSeries-V-A · Mutual Fund DistributorsSeries-V-B · Mutual Fund FoundationSeries-V-D · SIF DistributorsSeries-VI · Depository OperationsSeries-VII · Operations & Risk ManagementSeries-VIII · Equity DerivativesSeries-IX · Merchant BankingSeries-X-A · Investment Adviser (Level 1)Series-X-B · Investment Adviser (Level 2)Series-XII · Securities Markets FoundationSeries-XV · Research AnalystSeries-XVI · Commodity DerivativesSeries-XVII · Retirement AdviserSeries-XIX-A · Category I & II AIF DistributorsSeries-XIX-B · Category III AIF DistributorsSeries-XIX-C · AIF ManagersSeries-XIX-D · Category I & II AIF ManagersSeries-XIX-E · Category III AIF ManagersSeries-XXI-A · PMS DistributorsSeries-XXI-B · Portfolio ManagersSeries-XXIII · Social Impact AssessorsSeries-XXIV · AML & CFT in Securities Markets
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–10 of 10 · filtered from 100Clear filters
  1. 010A company's value to its current owner is equally likely to be anything from Rs 0 to Rs 100 crore, and only the owner knows the figure. In your hands the company would be worth 1.5 times that value. You may make one take-it-or-leave-it offer, which the owner accepts only if it is at least the company's value to them. What should you bid?Games and strategic reasoningHardQuant tradingQuant research

    Try it first

    Which bid maximises your expected profit?

    Show the worked solution

    Bid nothing. If a bid of b is accepted, the owner has told you the company is worth less than b to them, so its value is uniform on 0 to b and averages b/2. In your hands that is 1.5 x b/2 = 0.75b, a quarter less than you paid. Expected profit is (b/100) x (0.75b - b) = -b squared/400, negative for every positive bid. This is the winner's curse in its purest form.

    Why does 75 look right and fail?

    Picture buying a used car from someone who knows its history while you do not. If they agree to your price at once, that is itself news: sellers of good cars refuse low offers. Acceptance is not random; it happens exactly in the states where the company is worth less than you offered, so the average value you actually receive is the average below your bid, not the average overall. The naive 75 uses the unconditional average of 50 and forgets that you only trade when the owner is happy to sell.

    The seller only says yes when the company is worth less than your bid-25+25+50+7500255075100your bid, Rs crorenaive: worth 75 to you on average,so any bid under 75 looks profitablebid 50: -6.25bid 100: -25Accepted at b: value averages b/2, worth 0.75b to you.You lose 0.25b every time you win
    The naive line values the company at its overall average and shows profit for any bid under 75, but conditioning on the owner accepting gives expected profit of minus b squared over 400, which is below zero for every positive bid, minus 6.25 crore at a bid of 50.

    How do you set up the expected profit?

    Split it into the chance of a deal and the profit given a deal. A bid of b is accepted with probability b/100; given acceptance the owner's value is uniform on 0 to b, averaging b/2, so your value averages 0.75b and your profit averages minus 0.25b. Multiply: minus 0.25b x b/100, which is minus b squared over 400. At a bid of 50 that is minus 6.25 crore: you win half the time and lose 12.5 crore on average when you do.

    The relationship
    E[π(b)]=b100⏟accepted  (1.5⋅b2−b)=−b2400<0 for all b>0E[\pi(b)] = \underbrace{\frac{b}{100}}_{\text{accepted}}\;\Big(1.5\cdot\frac{b}{2} - b\Big) = -\frac{b^2}{400} < 0 \text{ for all } b > 0
    byour bid in Rs crore
    b/100the chance the owner's value is below b
    b/2the owner's average value, given that they accepted
    What it says in wordsThe chance of winning times the loss when you win is negative for every positive bid.

    When would bidding make sense, and where does this show up on a desk?

    The multiplier is the lever. With a multiplier m, the profit given a deal is (m/2 - 1)b, so bidding pays only if you add more than double the owner's value; at exactly 2 you break even, and above 2 you should bid the full 100. On a trading desk the same logic is called adverse selectionThe tendency for the trades you actually get to come from counterparties with better information than you, so they are worse on average than a random trade.: the orders that fill against you are disproportionately the ones from people who know more. A quote that looks profitable against the average counterparty loses against the ones who choose to trade.

    Where candidates lose it

    Most candidates bid somewhere between 50 and 75, reasoning from the unconditional average value. That ignores the information in the owner's acceptance, which is the entire point of the question.

    The second loss is a partial fix: realising acceptance is informative but then bidding a little lower, such as 60, to leave a margin. Any positive bid loses here. Write the expected profit as a function of b and let the algebra say zero.

    What the interviewer asks next

    • What multiplier would make you willing to bid, and how much would you then bid?
    • What if the owner's value is uniform on 50 to 100 instead?
    • How does this relate to a market maker who gets filled on their quotes?
  2. 017The true model is y = x1 + x2 + noise, where x1 and x2 are standardised and have correlation 0.5. You regress y on x1 alone, then regress the residuals on x2. What coefficient do you get on x2, and how would you recover the true value of 1 in two stages?Correlation, regression and linear algebraHardQuant researchQuant trading

    Try it first

    What coefficient does the second stage give on x2?

    Show the worked solution

    You get 0.75, not 1. Regressing y on x1 alone gives a slope of 1 + 0.5 = 1.5, because x1 soaks up the half of x2 that moves with it. The residual is x2 - 0.5x1 + noise, whose slope on x2 is 1 - 0.5 squared = 0.75. To recover 1, residualise x2 on x1 as well and regress the residual of y on the residual of x2: the Frisch-Waugh-Lovell theorem.

    Where does the missing quarter go?

    Picture two salespeople who often work the same client. If you credit all joint sales to the first before looking at the second, the second looks worse than they are, because some of their work was already booked to the first. Stage one regresses y on x1 alone, and since x2 is correlated with x1, the coefficient on x1 rises to 1.5: it takes credit for 0.5 of x2. That piece has been removed from the residual, so stage two can only find what is left of x2's effect.

    x1 has already eaten the part of x2 that points its way0.5 x1: already in x1x1x2part of x2 orthogonalto x1: length 0.87cos 0.5CoefficientsStage 1: y on x11.50True effect of x21.00Residual on raw x20.75Residual on x2 orthogonal1.0010
    With a correlation of 0.5, x2 splits into 0.5 x1 plus an orthogonal part; stage one assigns the 0.5 x1 piece to x1, so regressing the residual on raw x2 gives 0.75, while regressing it on the orthogonal part of x2 recovers the true 1.

    How do you get 0.75 exactly?

    Write the residual out. y - 1.5x1 = x2 - 0.5x1 + noise, and the slope of that on x2 is its covariance with x2 over the variance of x2: (1 - 0.5 x 0.5)/1 = 0.75. The formula generalises to 1 - rho squared times the true coefficient, so the bias gets worse as the regressors get more correlated: with rho = 0.9 you would find only 0.19. A simulation of 100,000 observations gives 1.506 for stage one and 0.752 for stage two.

    The relationship
    β^2,seq=Cov⁡(x2−ρx1, x2)Var⁡(x2)=1−ρ2=0.75β^2,FWL=Cov⁡(x2−ρx1, x2−ρx1)Var⁡(x2−ρx1)=1\hat\beta_{2,\text{seq}} = \frac{\operatorname{Cov}(x_2 - \rho x_1,\ x_2)}{\operatorname{Var}(x_2)} = 1 - \rho^2 = 0.75 \qquad \hat\beta_{2,\text{FWL}} = \frac{\operatorname{Cov}(x_2 - \rho x_1,\ x_2 - \rho x_1)}{\operatorname{Var}(x_2 - \rho x_1)} = 1
    \rhothe correlation between x1 and x2, 0.5
    x_2 - \rho x_1the part of x2 left after regressing it on x1
    What it says in wordsRegressing on raw x2 shrinks the answer by one minus rho squared; regressing on the part of x2 orthogonal to x1 gives the true coefficient.

    What does Frisch-Waugh-Lovell tell you to do?

    To get a variable's coefficient from a multiple regression in stages, partial the other regressors out of both y and that variable, then regress residual on residual. Here that means regressing x2 on x1 as well, keeping the orthogonal part x2 - 0.5x1, and regressing the stage-one residual on it. The slope comes back as exactly 1; the simulation gives 1.003. This is why factor-neutralising a signal before testing it, rather than after, matters in quant research: the order of the stages changes the answer.

    Where candidates lose it

    The common answer is 1, on the belief that regressing residuals step by step is the same as a multiple regression. It is only the same when the regressors are uncorrelated, and the question gives you a correlation of 0.5 precisely to break that.

    The second loss is saying the answer is biased without saying which way or by how much. Give 1.5 for stage one, 0.75 for stage two, the 1 - rho squared rule, and the fix.

    What the interviewer asks next

    • What would the stage-two coefficient be if the correlation were -0.5?
    • In the two-stage FWL regression, how do the standard errors compare with the full multiple regression?
    • You have a new signal correlated with a known factor. How do you test whether it adds anything?
  3. 022A three-way duel: you hit your target with probability 1/3, B with 2/3, and C never misses. You shoot first, then B, then C, repeating in that order until one person is left, and everyone aims to maximise their own survival. Where should you aim your first shot?Games and strategic reasoningHardQuant tradingQuant research

    Try it first

    Which first shot gives you the best chance of surviving?

    Show the worked solution

    Fire into the air. B and C each target the other, the bigger threat, so while both live nobody shoots at you. Aiming in the air gives survival of 2/3 x 3/7 + 1/3 x 1/3 = 25/63, about 39.7%. Aiming at C gives 31.2%, because a hit leaves you in a duel with B shooting first. Aiming at B gives 26.5%, because a hit leaves C, who never misses, to shoot you.

    Who does everyone else aim at?

    Start with the stronger players, because their choices fix yours. B aims at C, because if B shot you instead, C would kill B next turn for certain; C aims at B, the more dangerous of the two remaining threats. So while all three are alive, nobody is shooting at you. Think of two large firms in a price war while a small competitor stays out of it: the small firm's best move is often to let the giants weaken each other.

    The weakest shooter does best by hitting nobodyYour firstshotAim at Csurvive 31.2%hit 1/3: duel B, B shoots first1/7miss 2/3: as if into the air25/63Aim at Bsurvive 26.5%hit 1/3: C shoots you0miss 2/3: as if into the air25/63Fire in the airsurvive 39.7%B hits C, 2/3: duel B, you first3/7B misses, 1/3: C kills B; one shot at C1/3In the air: 2/3 x 3/7 + 1/3 x 1/3 = 25/63 = 39.7%
    Firing into the air gives you 39.7% survival, against 31.2% for aiming at C and 26.5% for aiming at B, because hitting either rival makes you the survivor's only target while missing on purpose lets B and C shoot at each other first.

    How do you work out the two-player duels?

    Against B with you shooting first, you win if you hit now, or if both miss and the same duel restarts. Call your survival x: x = 1/3 + (2/3)(1/3)x, so x = 3/7; if B shoots first, you must survive B's first shot, 1/3 of the time, giving 1/7. Against C you get exactly one shot, since C never misses: 1/3 if you shoot first, 0 if C does. Now combine. In the air: B hits C two times in three, giving you the 3/7 duel; otherwise C kills B and you get your one shot at C, 1/3. Total 25/63.

    The relationship
    Pair=23⋅37+13⋅13=2563PC=13⋅17+23⋅2563=59189PB=23⋅2563=50189P_{\text{air}} = \tfrac23\cdot\tfrac37 + \tfrac13\cdot\tfrac13 = \tfrac{25}{63} \qquad P_{C} = \tfrac13\cdot\tfrac17 + \tfrac23\cdot\tfrac{25}{63} = \tfrac{59}{189} \qquad P_{B} = \tfrac23\cdot\tfrac{25}{63} = \tfrac{50}{189}
    3/7your survival in a duel with B when you shoot first
    1/7your survival in a duel with B when B shoots first
    25/63your survival after a deliberate miss
    What it says in wordsMissing on purpose beats both targeted shots: 75/189 against 59/189 and 50/189.

    What is the general lesson?

    In a game with several players, weakening one rival can hurt you if it frees the strongest remaining player to turn on you. Your best shot is the one that keeps the others focused on each other. Say the limitation too: the answer depends on the hit rates and the order. Change the order of shooting, or let C aim at you, and the tree changes; the interviewer will often change a number or the order to see whether you rebuild the tree or repeat the slogan.

    Where candidates lose it

    The instinctive answer is to shoot at C, the most dangerous player. It ignores what happens after a hit: you have just made yourself B's only target, and B shoots first.

    The second loss is assuming that firing into the air is allowed but not checking it is optimal. Candidates who have heard the answer before often cannot produce 25/63, 59/189 and 50/189 when asked. The numbers are the answer; the slogan is not.

    What the interviewer asks next

    • What if your hit rate were 1/2 instead of 1/3?
    • What if C shot first and you shot last?
    • What is B's overall survival probability when you fire into the air?
  4. 023You flip a fair coin until the pattern HTH appears. What is the expected number of flips? Why is it larger than the expected wait for HTT, when each pattern has the same probability of 1/8 at any given position?Markov chains and random walksHardQuant tradingQuant research

    Try it first

    Expected flips to see HTH?

    Show the worked solution

    10 flips for HTH, against 8 for HTT. Track how much of the pattern you currently hold: nothing, H, or HT. For HTH, a tail after HT wrecks everything and you restart from nothing. For HTT, a head after HT breaks the pattern, but that head is itself a fresh start, so you keep an H. Solving the three expected-wait equations gives 10 and 8.

    Why do equal probabilities give unequal waits?

    Think of a combination lock where a wrong digit sometimes resets you to zero and sometimes lets you keep part of your progress. Two combinations can be equally likely to be dialled at random yet take different times to reach. Each three-flip window is HTH or HTT with the same 1/8 chance, but the windows overlap, and HTH occurrences tend to arrive in clusters, such as HTHTH, which spaces out the first appearance. The waiting time depends on where a near miss leaves you.

    Where a failure sends you back decides the waitWaiting for HTH: 10 flips on averagestartE = 10HE = 8HTE = 6HTHHTHTHT from HT: back to startWaiting for HTT: 8 flips on averagestartE = 8HE = 6HTE = 4HTTHTTTHH from HT: back to HHTH10flipsHTT8flips
    Waiting for HTH, a tail from state HT sends you back to the start and the average wait is 10 flips; waiting for HTT, a head from HT leaves you holding an H and the average wait is only 8.

    How do you set up the equations?

    Let E0, E1 and E2 be the expected remaining flips when you hold nothing, H and HT. Each flip costs one and moves you to the next state with probability one half each way, so each state's wait is 1 plus the average of the two states it can move to. For HTH: E0 = 1 + (E1 + E0)/2, E1 = 1 + (E1 + E2)/2, E2 = 1 + (0 + E0)/2. Solving gives E2 = 6, E1 = 8, E0 = 10. For HTT only the last equation changes, to E2 = 1 + (0 + E1)/2, and the answers become 4, 6 and 8.

    The relationship
    EHTH=23+21=10EHTT=23=8E_{HTH} = 2^3 + 2^1 = 10 \qquad E_{HTT} = 2^3 = 8
    2^3from the whole pattern matching itself
    2^1from HTH's last flip matching its first: the pattern overlaps itself
    What it says in wordsFor a fair coin, add 2 to the power k for every length k at which the pattern's start equals its end.

    Is there a shortcut an interviewer will accept?

    Yes, the overlap rule, which comes from a fair-bet argument known as the ABRACADABRA methodA martingale argument in which gamblers arriving each flip bet on the pattern, used to compute expected waiting times for patterns.. For a fair coin, the expected wait is the sum of 2 to the k over every k where the first k flips of the pattern equal the last k. HTH matches itself at length 3 and at length 1, the single H, giving 8 + 2 = 10. HTT matches only at length 3, giving 8. HHH matches at 1, 2 and 3, giving 14. Derive the states first, then offer the rule as the check.

    Where candidates lose it

    The trap is answering 8 for every three-flip pattern, reasoning that each has probability 1/8 per window. That confuses frequency with first arrival: over a long run both patterns appear equally often, but HTH comes in overlapping clumps.

    The second loss is getting the fall-back wrong in the state diagram. For HTT, after HT a head is not a return to nothing; it is a new H. Drawing that arrow to the start gives 10 for both and hides the whole point.

    What the interviewer asks next

    • What is the expected wait for HHH?
    • Two players race, one waiting for HTH and one for HTT on the same flips. Who is more likely to win?
    • With a biased coin that shows heads 60% of the time, what is the expected wait for HTH?
  5. 054With interest rate r and volatility sigma, check which of these satisfy the Black-Scholes equation: V = S, V = K e^(-r(T-t)), and V = S squared. Explain what the ones that pass are as trades, and fix the one that fails.Pricing, options and index mathsHardQuant researchOptions market making

    Try it first

    Which candidates pass?

    Show the worked solution

    V = S and V = K e^(-r(T-t)) satisfy it; V = S squared does not. The first is the stock itself and the second is a zero-coupon bond paying K at T, both traded assets that must earn r. S squared has gamma 2 and leaves (r + sigma squared) S squared unbalanced. Multiplying by e^((r + sigma squared)(T-t)) fixes it, which is the price of a claim paying S squared at expiry.

    What is the equation actually saying?

    Think of a household budget rule that any fair arrangement must obey: over one day, what you hold must earn the same as the same money in a savings account, once the risk has been hedged away. The Black-Scholes equation says that for a delta-hedged position, time decay plus the gamma term plus the financing of the hedge equals r times the value. Written in {term('greeks', 'Theta is the change in value with time, delta with the stock price, and gamma is the change in delta with the stock price.')}, it is theta + half sigma squared S squared gamma + r S delta = r V. A candidate price passes only if its greeks balance that line.

    The relationship
    ∂V∂t+12σ2S2∂2V∂S2+rS∂V∂S−rV=0\frac{\partial V}{\partial t} + \tfrac12\sigma^2 S^2 \frac{\partial^2 V}{\partial S^2} + rS\frac{\partial V}{\partial S} - rV = 0
    dV/dttheta, the change in value as time passes
    d2V/dS2gamma, how fast delta changes
    dV/dSdelta, the hedge ratio
    rthe interest rate
    What it says in wordsA hedged position's decay, convexity and financing must add up to exactly the interest the money would earn.
    Substitute each candidate into theta + half sigma^2 S^2 gamma + r S delta - r VCandidate VThetaDeltaGammaLeft side of equationPasses?Sthe stock010rS - rS = 0yesK e^(-r tau)a zero-coupon bondrV00rV - rV = 0yesS^2not a price02S2(r + sigma^2) S^2noS^2 ff = e^((r + sigma^2) tau)-(r + sigma^2) V2S f2 f0yestau = T - t. The failing S^2 leaves a surplus; the time factor f is exactly what cancels it, pricing a claim paying S_T^2.At S = 100, r = 5%, sigma = 20%, one year: the S^2 claim is worth 10,942, not 10,000.
    Substituting each candidate's theta, delta and gamma, the stock and the zero-coupon bond balance the equation exactly, S squared leaves a surplus of (r + sigma squared) S squared, and S squared times e^((r + sigma squared)(T - t)) balances it again.

    Why do the two that pass make sense as trades?

    Anything that is itself a traded, self-financing asset must satisfy the equation, because the equation is only the statement that no hedged position earns more than r. V = S is just holding the stock: delta 1, no gamma, no decay, and the financing term rS matches rV. V = K e^(-r(T-t)) is a zero-coupon bond: it does not depend on S at all, and its value grows at exactly r as it approaches T. The stock and the bond are also the two pieces of the call price formula, which is why the check is worth a minute.

    Why does S squared fail, and how do you repair it?

    S squared has gamma 2, so the half sigma squared S squared gamma term adds sigma squared S squared, the delta term adds 2rS squared, and subtracting rV leaves (r + sigma squared) S squared with nothing to cancel it. A convex payoff gains from every move, so a fair price for it has to decay over time to pay for that gain, and S squared on its own has no decay. Try V = S squared times f(t): the equation forces f' = -(r + sigma squared) f, so the price of a claim paying S squared at T is S squared e^((r + sigma squared)(T - t)). At S = 100, r = 5%, sigma = 20% and one year, that is about 10,942, not 10,000, and the extra is the value of volatility.

    Where candidates lose it

    Candidates often say every function of S and t is a solution, or differentiate correctly and then fail to say what the passing solutions are. The question asks for the trades: the stock and a bond. Naming them turns a calculus check into finance.

    The second trap is the sign of theta for the bond. Its value rises as t approaches T, so theta is +rV; getting that sign wrong makes the bond appear to fail.

    What the interviewer asks next

    • Which power of S, S to the a, satisfies the equation with no time factor?
    • What is the price today of a claim paying log S at expiry?
    • Why does the drift of the stock not appear anywhere in the equation?
  6. 059We play a coin game. I pick a sequence of three heads or tails, you then pick a different sequence after seeing mine, and we flip a fair coin until one of the two sequences appears; whoever's comes first wins. I pick HHH. What do you pick, and how often do you win?Games and strategic reasoningHardQuant tradingProp trading firms

    Try it first

    Which reply to HHH is best?

    Show the worked solution

    Pick THH; you win 7 times in 8. HHH can only win if the first three flips are all heads, which has chance 1/8. In any other run, the first HHH is preceded by a tail, and that tail with the next two heads spells THH, which is completed one flip before HHH. So THH wins every game except the one that opens with three heads.

    Why is this not a fair race between two 1/8 sequences?

    Think of two runners on the same track where one always starts one step ahead of the other on the only route to the finish. Their speeds are identical but the race is not even. In a race between patterns, what matters is not how often each appears but which one tends to appear first, and that depends on how the patterns overlap. THH is built from HHH's own first two heads with a tail placed in front, so it ambushes HHH whenever HHH has not already won at the start.

    Every HHH that is not at the very start has THH inside it, one flip earlierHHH wins only here:HHHflips 1 to 3 all headschance 1/2 x 1/2 x 1/2 = 1/8Any other run, e.g.T1H2T3T4H5H6H7THH done on flip 6HHH only on flip 7: too lateUnless the game opens H H H, the first HHH has a T right before it.That T and the next two heads are THH, completed one flip before HHH.So THH wins 1 - 1/8 = 7/8 of the time.
    HHH wins only when the first three flips are heads, a 1/8 chance; in every other run the first HHH is preceded by a tail, so THH is completed one flip earlier and wins the remaining 7/8 of games.

    How do you prove 7/8 without a Markov chain?

    Look at the first time HHH appears. If it does not start at flip 1, the flip immediately before it must be a tail, because otherwise an earlier HHH would already have appeared. That tail plus the first two heads of the HHH is THH, finished one flip before HHH. So HHH wins only if flips 1 to 3 are heads, chance 1/8, and THH wins otherwise: 7/8. The proof is one sentence, and interviewers want to hear it rather than a transition matrix.

    What is the general lesson for the second mover?

    This is Penney's gameA coin sequence race in which the second player, choosing after seeing the first, can always pick a sequence that wins more than half the time., and the second player always has an edge because the winning relation among three-flip sequences is not transitive: every sequence has another that beats it. The recipe: take the opponent's first two flips, and put in front of them the opposite of the opponent's second flip. Against HHH that gives THH at 7/8; against HTH it gives HHT at 2/3. In trading terms, a strategy that looks as good as any other in isolation can still lose systematically to one designed around it.

    Where candidates lose it

    The trap is answering that every sequence has probability 1/8, so the game is fair, or picking TTT because it has nothing in common with HHH. Both treat the race as independent draws of three flips rather than a stream where patterns overlap.

    The second trap is reaching for a four-state Markov chain and running out of time. The tail-before-the-run argument settles it in one sentence; set up the chain only if asked about a harder pair.

    What the interviewer asks next

    • I pick HTH. What do you pick, and how often do you win?
    • What is the expected number of flips to see HHH, and to see THH?
    • Why can no three-flip sequence be the best first choice?
  7. 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?
  8. 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?
  9. 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?
  10. 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?
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.