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

Derivatives Foundation puzzles, solved step by step

Puzzles
100
Traced to a firm
66
Topics
12
Hard
29
Topic
All topicsMental maths and estimation9Random walks and Markov chains7Conditional probability and Bayes7Volatility and correlation7Option pricing intuition7Expected value and optimal stopping10Market making11Option payoffs and no-arbitrage10Probability and counting11Distributions and statistics8Games and logic8Betting and sizing5
Level
AnyWarm upCoreHard
Source
AnyReported at a firmStandard
Showing 1–7 of 7 · filtered from 100Clear filters
  1. 002Every market day is either trending or choppy. A trending day is followed by another trending day 70% of the time, and a choppy day by another choppy day 60% of the time. In the long run, what fraction of days are trending? And when a trend starts, how many days does it last on average?Random walks and Markov chainsCoreQuant tradingHedge funds

    Try it first

    Gut call before the algebra: which is larger, the share of trending days or the share of choppy days?

    Show the worked solution

    4/7 of days trend, about 57.1%, and a trend lasts 3.3 days on average. In the long run the flow out of trending must equal the flow in: 0.3 times the trending share equals 0.4 times the choppy share, so the shares stand 4 to 3. A trend ends on any given day with probability 0.3, so its expected length is 1/0.3, and a choppy spell lasts 1/0.4 = 2.5 days.

    Why must the two flows balance?

    Picture two rooms at a party with a door between them. Each minute, 30% of the people in room A wander into B and 40% of those in B wander into A. The crowd settles when the two queues through the door carry the same number of people; otherwise one room keeps filling. A stationary split is one where the number of days leaving each state equals the number entering it, and that single equation fixes the split. Days leaving trending: 0.3 times the trending share. Days entering it from choppy: 0.4 times the choppy share. Set them equal and the ratio is 4 to 3.

    Two states, four arrows: in the long run the two crossing flows must balanceTrendingdayChoppydaystays trending 0.7stays choppy 0.60.3 of trending days flip0.4 of choppy days flipBalance: 0.3 x (trending share) = 0.4 x (choppy share)so trending : choppy = 4 : 3Long-run share of daysTrending: 57.1% of days4/7average streak 1/0.3 = 3.3 daysChoppy: 42.9% of days3/7average streak 1/0.4 = 2.5 daysCheck: 4/7 x 3.3 against 3/7 x 2.5share = streak x how often a streak starts
    Trending days keep 0.7 of their successors and lose 0.3 to choppy, while choppy days keep 0.6 and lose 0.4 back, so the long-run shares stand 4 to 3, 57.1% trending and 42.9% choppy, with trends lasting 3.3 days and choppy spells 2.5 days on average.
    The relationship
    0.3 πT=0.4 πC,πT+πC=1  ⇒  πT=0.40.3+0.4=47E[streak]=10.3=3.330.3\,\pi_T = 0.4\,\pi_C,\quad \pi_T + \pi_C = 1 \;\Rightarrow\; \pi_T = \frac{0.4}{0.3 + 0.4} = \frac{4}{7} \qquad E[\text{streak}] = \frac{1}{0.3} = 3.33
    pi_T, pi_Cthe long-run shares of trending and choppy days
    0.3, 0.4the chance a trending day flips to choppy, and a choppy day flips to trending
    1/0.3expected length of a run that ends with probability 0.3 each day
    What it says in wordsEach state's share is the other state's flip rate divided by the sum of the two flip rates, and a run's length is one over its own flip rate.

    Why is the average streak 1/0.3 and not something longer?

    A trend that has lasted five days is no more likely to end tomorrow than one that started today: the chain has no memory beyond yesterday. Each trending day ends the run with probability 0.3, independent of its age, so the run length is a geometric count with mean 1/0.3 = 3.33 days. That is the same reason the expected number of rolls to a six is 6. The two answers also check each other: the share of a state equals how often a run of it starts, times how long it lasts, and 4/7 against 3/7 is exactly 3.33 against 2.5 scaled by the same start rate.

    What does the chain say about tomorrow, given today?

    This is where the puzzle connects to trading. Today's state carries real information: after a trending day, tomorrow trends with probability 0.7, well above the unconditional 57%. After a choppy day it is only 0.4. The long-run split tells you nothing about tomorrow; the transition row for today's state does. Say that distinction out loud, because an interviewer who hears 57% quoted as a one-day forecast knows you have confused the stationary distribution with a conditional one. The limitation to add: a two-state chain with fixed probabilities is a toy, and real regime persistence drifts over time.

    Where candidates lose it

    The first wrong answer is 50%, on the grounds that each state has one way in and one way out. The flows are not equal in rate: trending leaks at 0.3, choppy at 0.4, and the slower leak wins more of the time.

    The second loss is writing out eigenvectors of a two-by-two matrix under time pressure. The balance equation, flow out equals flow in, takes one line and is what the interviewer wants to hear.

    What the interviewer asks next

    • Starting from a choppy day, what is the chance that the day after tomorrow is trending?
    • Add a third state, a crash day, that follows a choppy day 5% of the time. How does the method change?
    • How would you estimate these transition probabilities from a year of daily data, and how noisy would they be?
  2. 033We play chess repeatedly. Half the games are draws; of the decisive games I win two thirds. The match ends when someone wins three games in a row, and a draw resets both streaks. What is the probability that I win the match?Random walks and Markov chainsHardOld Mission CapitalChicago · 2018

    Try it first

    Before setting anything up: roughly how likely am I to win the match?

    Show the worked solution

    86/99, about 86.9%. Per game I win with probability 1/3, you win with 1/6 and we draw with 1/2. The match has five live states: no streak, my streak of one or two, your streak of one or two. Writing my chance of winning the match from each state as an unknown, each state's equation is a weighted average of its neighbours, and solving the five equations gives 86/99 from the start. The naive ratio of (1/3)^3 to (1/6)^3 gives 89% and is wrong.

    Why does the match need states rather than a single formula?

    A tennis game at deuce is the everyday version: whoever is a point ahead is in a different position from level, and the chance of winning the game from deuce is best found by naming the positions and linking them. What matters here is not the game count but the current streak, and only five positions are possible before the match ends: no streak, me on one, me on two, you on one, you on two. Every game moves the match from one of those positions to another, with the same three probabilities each time, so the match is a Markov chain and the answer is a small linear system rather than a series. Three in a row sounds like it needs a long sum over all the ways the match can go; the states collapse that sum into five unknowns.

    Five states, one equation each: my chance of winning the match from every positionno streak86/99 = 86.9%me: 1 in a row29/33 = 87.9%me: 2 in a row10/11 = 90.9%I win1you: 1 in a row28/33 = 84.8%you: 2 in a row8/11 = 72.7%you win0I win 1/3you win 1/61/31/31/61/61/61/31/6: to you 11/3: to me 1Every draw, probability 1/2 from any state, returns to the start box; the draw arrows are left out for clarityNaive guess (1/3)^3 / ((1/3)^3 + (1/6)^3) = 8/9 = 88.9% overshoots; the chain gives 86.9%
    From the no-streak start my chance of winning the match is 86/99, about 86.9%; on my streak of one or two it rises to 87.9% and 90.9%, on your streak of one or two it falls to 84.8% and 72.7%, and every draw returns the match to the start.

    How do you write and solve the equations?

    Call my winning chance x from no streak, a1 and a2 from my streaks, b1 and b2 from yours. From any state a draw, probability 1/2, takes you to x. From no streak a win takes you to a1 and a loss to b1, so x = x/2 + a1/3 + b1/6. From a1 a win takes you to a2 and a loss to b1. From a2 a win ends the match in my favour, worth 1. From b1 a loss takes you to b2 and a win takes you to a1; from b2 a loss ends it, worth 0. Five equations in five unknowns, and the structure is friendly: substitute the draw term first, since x/2 appears everywhere, and the system reduces by hand in a few lines. The solution is x = 86/99, a1 = 29/33, a2 = 10/11, b1 = 28/33, b2 = 8/11. A simulation of 200,000 matches gives 0.869, which confirms the fraction.

    The relationship
    x=12x+13a1+16b1,a1=12x+13a2+16b1,a2=12x+13+16b1,b1=12x+13a1+16b2,b2=12x+13a1x = \tfrac12 x + \tfrac13 a_1 + \tfrac16 b_1, \quad a_1 = \tfrac12 x + \tfrac13 a_2 + \tfrac16 b_1, \quad a_2 = \tfrac12 x + \tfrac13 + \tfrac16 b_1, \quad b_1 = \tfrac12 x + \tfrac13 a_1 + \tfrac16 b_2, \quad b_2 = \tfrac12 x + \tfrac13 a_1
    xmy chance of winning the match with no streak live
    a1, a2my chance when I have won one or two in a row
    b1, b2my chance when you have won one or two in a row
    1/2, 1/3, 1/6the per-game chances of a draw, my win and your win
    What it says in wordsEach state's value is the average of the values of where the next game can send it, weighted by the chance of each result.

    Why is the naive ratio wrong, and in which direction?

    The tempting shortcut compares the chance of three straight wins for me, (1/3)^3, with three straight for you, (1/6)^3, and takes my share: 8 over 9, 88.9%. That treats the match as a single race from scratch, but a broken streak is not a reset to equal footing: when you beat me on my streak of two, you start a streak of one, and the shortcut ignores every such hand-over. Those hand-overs favour the weaker player a little, which is why the true 86.9% sits below 88.9%. It is also worth saying that the draws change nothing about who wins: they only lengthen the match, which lasts about 33.9 games on average, because every draw sends both streaks back to zero.

    Where candidates lose it

    The common loss is the ratio shortcut, (1/3)^3 against (1/6)^3, which gives 8/9. It is close enough to sound right and the interviewer will ask you to defend it, at which point the missing hand-over of streaks becomes obvious.

    The second is setting up too many states, tracking game counts or draw counts. Only the current streak matters. Five states, five equations, and the draw term is the same in every one.

    What the interviewer asks next

    • How long does the match last on average?
    • The match now ends at two in a row. Does my chance go up or down, and why?
    • Draws no longer reset the streaks, they are simply ignored. What is my chance now?
    • Write the transition matrix and show which states are absorbing.

    Asked at Old Mission Capital, Prop Trading, Chicago, 2018 (Wall Street Oasis): You and I play chess. 1/2 games end in draws and in the other half I win with 2/3 probability and you win with 1/3

  3. 039You start with Rs 2 and bet Rs 1 at a time on a coin that falls your way 60% of the time. You stop when you reach Rs 5 or go broke. What is the probability you reach Rs 5?Random walks and Markov chainsHardTwo SigmaNew York · 2023

    Try it first

    Roughly how likely are you to reach Rs 5 before going broke?

    Show the worked solution

    135/211, about 64.0%. Let r be q over p, which is 0.4 / 0.6 = 2/3. The probability of reaching N from a stake of i is (1 - r^i) / (1 - r^N). With i = 2 and N = 5 that is (1 - 4/9) / (1 - 32/243) = (5/9) x (243/211) = 135/211. A fair coin would give 2/5 = 40%; the 60% edge lifts it to 64.0%. The game lasts about 6.0 bets on average.

    Why is the answer not simply 2 out of 5?

    With a fair coin the answer is 2/5, because a fair game cannot create or destroy expected money: you start with Rs 2, you finish with Rs 5 or Rs 0, so the chance of Rs 5 must be 2/5 to keep the average at 2. With a 60% coin each bet gains you Rs 0.20 on average, so the walk drifts upward and the chance of hitting the top is higher than the fair-coin fraction; what you need is a quantity that is still conserved under the biased coin. That quantity is (q/p) to the power of your stake. A win multiplies it by q/p, a loss by p/q, and weighted by their probabilities the two moves cancel: p x (q/p) + q x (p/q) = q + p = 1. Because that quantity is conserved, its starting value must equal its average finishing value, and that one line gives the formula.

    The relationship
    r=qp=23,Pi=1−ri1−rN=1−(2/3)21−(2/3)5=5/9211/243=135211≈0.640r = \frac{q}{p} = \frac{2}{3}, \qquad P_i = \frac{1 - r^i}{1 - r^N} = \frac{1 - (2/3)^2}{1 - (2/3)^5} = \frac{5/9}{211/243} = \frac{135}{211} \approx 0.640
    rthe loss probability over the win probability; below 1 when the coin favours you
    ithe starting stake, Rs 2
    Nthe target, Rs 5
    P ithe chance of reaching the target before going broke
    What it says in wordsSet the conserved quantity r to the stake equal to its average at the end, and solve for the chance of reaching the target.
    Chance of reaching Rs 5 from each starting stake: the 60% coin against a fair coin0.250.50.7510Rs 0Rs 1Rs 2Rs 3Rs 4Rs 5starting stake, target Rs 5, Rs 1 a betP(reach Rs 5 before Rs 0)0.3840.8100.9240.20.4, the fair-coin 2/50.60.8start Rs 2: 135/211 = 64.0%p = 0.6: (1 - (2/3)^i) / (1 - (2/3)^5)p = 0.5: i / 5The ratio q/p = 2/3 drives it: each extra rupee of stake multiplies the odds of ruin by 2/3No target: P(never broke from Rs 2) = 1 - (2/3)^2 = 5/9. Simulation of 200,000 runs: 0.639; about 6.0 bets on average
    The chance of reaching Rs 5 before Rs 0 rises along a curve above the fair-coin straight line, reaching 0.640 from a starting stake of Rs 2 against 0.4 for a fair coin, because each rupee of stake multiplies the odds of ruin by q over p, two thirds.

    How do you derive it from the states if you forget the formula?

    Write P_i for the chance of reaching 5 from a stake of i. Then P_0 = 0, P_5 = 1, and in between P_i = 0.6 P_(i+1) + 0.4 P_(i-1), one equation per state. That is a second-order linear recurrence whose solutions are of the form A + B r^i with r = q/p, and the two boundary conditions fix A and B. Solving the five equations directly gives P_1 = 81/211, P_2 = 135/211, P_3 = 171/211 and P_4 = 195/211, and the recurrence is the thing to write on the whiteboard first, because it works for any rule change. A simulation of 200,000 games gives 0.639, agreeing with the fraction to three places. The same system with a 1 on the right-hand side of each interior equation gives the expected duration, about 6.0 bets from Rs 2.

    What does the biased formula tell you about trading with an edge?

    Let the target go to infinity. With a fair coin the chance of never going broke is zero: any finite stake is eventually lost. With the 60% coin it is 1 minus r to the stake, which from Rs 2 is 1 - 4/9 = 5/9, about 56%, and from Rs 10 it is above 98%. An edge does not protect a thin stake: with Rs 2 behind a 60% coin you still go broke 44% of the time, and the cure is not a better coin but a bigger stake relative to the bet. That is why a desk with a genuine edge still caps position size, and why the question sits next to the Kelly one. The limitation is that the bets here are of fixed size; once you can resize the bet with your capital, the ruin arithmetic changes completely.

    Where candidates lose it

    The common loss is answering 2/5, the fair-coin answer, or guessing that 60% means roughly 60%. The edge changes the structure, and the interviewer wants to hear q over p.

    The second is writing the formula with p/q instead of q/p, which gives a number below 40% for a coin that favours you. Sanity check the direction: an edge in your favour must raise the chance above the fair-coin 2/5.

    What the interviewer asks next

    • What is the chance of reaching Rs 5 from Rs 2 with a fair coin, and why is it exactly 2/5?
    • The target is Rs 10 instead of Rs 5. What is the chance now?
    • There is no target: you play until you go broke or forever. What is the chance you never go broke?
    • How long does the game last on average from Rs 2?

    Asked at Two Sigma, Research, New York, 2023 (Wall Street Oasis): Biased gamblers ruin problems; Markov Chain problems; sampling uniformly from triangle

  4. 055A token sits on one corner of a square. Every second it moves to one of the two neighbouring corners, chosen by a fair coin. What is the expected number of seconds until it first reaches the opposite corner?Random walks and Markov chainsCoreQuant trading

    Try it first

    The opposite corner is two steps away. Expected time to get there?

    Show the worked solution

    4 seconds. By symmetry, the two corners next to the start are the same state, call it adjacent. From the start you always move to adjacent in one step. From adjacent, half the time you reach the target and half the time you return to the start. So E(start) = 1 + E(adjacent) and E(adjacent) = 1 + E(start)/2, giving E(adjacent) = 3 and E(start) = 4.

    Why collapse four corners into three states?

    If you are lost in a town with a river on one side, what matters is how far you are from the river, not which street you are on. The square is the same: standing at either corner next to the start, the token's future looks identical, one coin flip from the target and one from the start. Grouping corners by their distance from the target turns a four-state chain into a three-state line, and a line is solved with one equation per unknown. You have two unknowns, the expected time from the start and from an adjacent corner, because the target itself takes zero time.

    Collapse four corners into three distances, then solve two equationsstarttarget1 step away1 step awayeach move: a coin flipbetween the two neighboursStartdistance 0Adjacentdistance 1Targetdistance 211/21/2 back to startE(start) = 1 + E(adjacent)E(adjacent) = 1 + 1/2 x 0 + 1/2 x E(start)E(adjacent) = 1 + 1/2 (1 + E(adjacent)) so E(adjacent) = 3E(start) = 1 + 3 = 4 steps on average
    Grouping the two corners next to the start into one state gives a three-state chain in which the start always moves to adjacent, and adjacent finishes or returns to the start with equal chance, so E(adjacent) = 3 and E(start) = 4 seconds.

    How do you set up and solve the equations in the room?

    Each equation says the same sentence: one step, plus the average of what is left from where you land. From the start, every step lands on an adjacent corner, so E(start) = 1 + E(adjacent); from an adjacent corner, half the steps finish and half return, so E(adjacent) = 1 + (1/2) x 0 + (1/2) x E(start). Substitute the first into the second: E(adjacent) = 1 + (1/2)(1 + E(adjacent)), so E(adjacent)/2 = 3/2, E(adjacent) = 3, and E(start) = 4. Saying the sentence before the symbols is what keeps the equations honest.

    The relationship
    E0=1+E1,E1=1+12E0  ⇒  E1=3,  E0=4E_0 = 1 + E_1, \qquad E_1 = 1 + \tfrac{1}{2}E_0 \;\Rightarrow\; E_1 = 3,\; E_0 = 4
    E_0the expected steps to the target from the starting corner
    E_1the expected steps from either corner next to the start
    1/2the chance a step from an adjacent corner lands on the target
    What it says in wordsFrom the start you always move one step closer; from there a coin flip either finishes or sends you back, and the two equations give four steps on average.

    What is the check, and what does the general case look like?

    Check it with the geometric picture. After the first step you are adjacent, and from there each attempt either finishes in one step or costs two steps, back to the start and out again, before you are adjacent once more. Each attempt succeeds with chance 1/2, so E(adjacent) = (1/2) x 1 + (1/2) x (2 + E(adjacent)), which again gives 3, and the first step makes it 4. On a cube the same method with four distance classes gives 10 steps to the opposite vertex; on a general graph the method is the same, but the number of distance classes grows and the arithmetic stops being mental.

    Where candidates lose it

    The fast wrong answer is 2, the length of the shortest path. The interviewer is checking whether you see that the token can bounce back, and whether you reach for the first-step equations rather than trying to sum a series.

    The second loss is writing four equations, one per corner. Say the symmetry out loud, collapse to three states, and the whole thing is two lines.

    What the interviewer asks next

    • What is the expected time to return to the starting corner for the first time?
    • Same walk on the eight corners of a cube. Expected time to the opposite vertex?
    • What is the probability the token reaches the opposite corner within 4 steps?
    • The coin is biased: it moves clockwise with chance 0.7. Does the expected time change?
  5. 074What is the expected number of fair coin flips needed to see two heads in a row? And how many to see a head followed by a tail?Random walks and Markov chainsCoreSCSquarepoint CapitalLondon · 2025

    Try it first

    HH and HT each have probability 1/4 on any two flips. Do they take the same expected time to appear?

    Show the worked solution

    6 flips for HH and 4 flips for HT. Track one state: whether the last flip was a head. For HH, a tail after a head sends you back to the start, so E(start) = 1 + E(one H)/2 + E(start)/2 and E(one H) = 1 + E(start)/2, giving 6. For HT, a head after a head leaves you still holding a head, so E(one H) = 1 + E(one H)/2 = 2 and E(start) = 2 + 2 = 4.

    Why do two patterns with the same probability take different times?

    Two queues at a counter: in one, a mistake sends you to the back; in the other, a mistake keeps your place. Both queues move at the same speed, but one is a much longer wait. Waiting for a pattern is a race with restarts, and what matters is how much progress a failure destroys: a tail after a head destroys everything for HH, while a head after a head destroys nothing for HT. That asymmetry, not the probability of the pattern, sets the expected time. It is also why HT and TH take 4 while HH and TT take 6.

    A failed HH sends you back to the start; a failed HT does notWaiting for H then HStartnothing useful yetOne Hfirst head seenDoneHTT: stayT: back to the startE(start) = 1 + 1/2 E(one H) + 1/2 E(start)E(one H) = 1 + 1/2 x 0 + 1/2 E(start)E(one H) = 4E(start) = 6 flipsWaiting for H then TStartnothing useful yetOne Hfirst head seenDoneHHT: stayH: stay, still one headE(start) = 1 + 1/2 E(one H) + 1/2 E(start)E(one H) = 1 + 1/2 x 0 + 1/2 E(one H)E(one H) = 2E(start) = 4 flips
    Waiting for HH takes 6 flips because a tail after a head sends you back to the start, while waiting for HT takes 4 because a second head after a head still counts as a first head, so no progress is lost.

    How do you set up and solve the equations in the room?

    Two states, two equations, each saying one flip plus the average of what remains. For HH: from the start, a head takes you to one H and a tail keeps you at the start, so E0 = 1 + E1/2 + E0/2; from one H, a head finishes and a tail returns you to the start, so E1 = 1 + E0/2; substitute to get E1 = 4 and E0 = 6. For HT the second equation changes to E1 = 1 + E1/2, since a head keeps you at one H, giving E1 = 2, and the first equation gives E0 = 2 + E1 = 4. The first equation is the same in both problems; only the failure branch differs.

    The relationship
    HH: E0=1+12E1+12E0, E1=1+12E0⇒E0=6HT: E1=1+12E1⇒E1=2, E0=4\text{HH: } E_0 = 1 + \tfrac{1}{2}E_1 + \tfrac{1}{2}E_0,\ E_1 = 1 + \tfrac{1}{2}E_0 \Rightarrow E_0 = 6 \qquad \text{HT: } E_1 = 1 + \tfrac{1}{2}E_1 \Rightarrow E_1 = 2,\ E_0 = 4
    E_0expected flips remaining from the start, no useful progress
    E_1expected flips remaining once the last flip was a head
    1/2the chance of a head or a tail on each flip
    What it says in wordsThe pattern whose failures throw away progress takes six flips on average, and the pattern whose failures keep progress takes four.

    What is the quick check, and where does this matter beyond coins?

    There is a general rule: the expected time to a pattern is the sum of 2 to the k over every length k at which the pattern overlaps itself. HH overlaps itself at lengths 1 and 2, so 2 + 4 = 6; HT overlaps only at its full length 2, so 4. The same arithmetic prices a bet on which of two patterns appears first, and it shows up on a desk whenever a signal needs a run of confirmations: a rule that resets on any contradicting tick waits far longer than one that keeps partial progress. The limitation is the fair coin; with a biased coin the overlap rule still holds but the powers of two become products of the relevant probabilities.

    Where candidates lose it

    The common answer is that HH and HT take the same time because each has probability 1/4. The interviewer is testing whether you see that waiting time depends on what a failure costs, not on the pattern's probability.

    The second loss is setting up the HT chain with a return to the start after a second head. A head after a head is still one head; the state does not change.

    What the interviewer asks next

    • What is the expected number of flips to see three heads in a row?
    • Which appears first on average, HHT or HTH, and why are their waiting times different?
    • The coin lands heads with probability 0.6. Expected time to HH?
    • You flip until you see HT and I flip until I see HH. What is the chance you finish first?

    Asked at Squarepoint Capital, Quantitative Research, London, 2025 (Wall Street Oasis): a few siimple questions on statistical problems e.g. # of throws expected to get 2 heads in a row

  6. 083A price starts at 100 and moves up or down 1 each day with equal chance for 10 days. What is the probability that it touches 104 at some point in those 10 days?Random walks and Markov chainsHardExotics tradingQuant trading

    Try it first

    Which quantity is easier to count, and how does it relate to touching?

    Show the worked solution

    232 of the 1,024 paths touch 104, about 22.7%. A path ending at or above 104 must have touched it: that needs at least 7 up days, 176 paths. A path that touches 104 and ends below it can be reflected in the 104 line after its first touch, and the reflection ends above 104, needing at least 8 up days: 56 paths. The pairing is one to one, so the count is 176 + 56 = 232.

    Why is the reflection a fair way to count?

    Imagine a walker who reaches a wall at some point and then wanders on. Flip every step after the first touch, up for down, and you get another walker who also touched the wall at the same moment and is now the same distance on the other side of it. Each flipped step is as likely as the original, so the two walks have equal probability. Reflection pairs every path that touches 104 and finishes below it with exactly one path that finishes above 104, so the hard count becomes an easy count of endpoints. Paths that finish at exactly 104 are their own partners and are counted once.

    Every path that touches 104 and ends below pairs with one that ends aboveday 0day 2day 4day 6day 8day 109698100102104106108barrier 104first touch, day 4ends 100ends 108actual pathmirror imageCount by the endpointend at or above 1041767, 8, 9 or 10 up daystouched 104, ended below56= mirrors of paths ending above 104paths that touch 104232out of 1,024: 22.7%the counting idea behind barrier options
    A path that climbs to 104 by day 4 and ends at 100 is mirrored in the 104 line after the first touch into a path that ends at 108, and counting by endpoint gives 176 paths ending at or above 104 plus 56 mirrors of paths ending above it, 232 of 1,024 paths, which is 22.7%.

    How do the binomial counts fall out?

    After 10 days of plus or minus 1, the position is 100 plus ups minus downs, which is 100 + 2 x ups - 10. Ending at or above 104 needs ups of at least 7: C(10,7) + C(10,8) + C(10,9) + C(10,10) = 120 + 45 + 10 + 1 = 176. Ending strictly above 104 means at or above 106, since the endpoint is always even, so ups of at least 8: 45 + 10 + 1 = 56. The probability of touching is (176 + 56)/1,024 = 232/1,024, about 22.7%, against only 176/1,024 = 17.2% for ending at or above 104. The gap is the 56 paths that visited the barrier and came back.

    The relationship
    P(max⁡S≥4)=P(S10≥4)+P(S10>4)=176+561024=2321024P(\max S \ge 4) = P(S_{10} \ge 4) + P(S_{10} > 4) = \frac{176 + 56}{1024} = \frac{232}{1024}
    S_10the net move after ten days
    P(S_10 >= 4)paths ending at or above the barrier, 176
    P(S_10 > 4)paths ending strictly above, which are the reflections of touch-and-return paths, 56
    What it says in wordsThe chance of touching a level equals the chance of ending at or past it plus the chance of ending strictly past it.

    Say why a derivatives desk cares. A knock-out or one-touch option pays on exactly this event, and the reflection principle is how the closed-form barrier prices are derived in continuous time. The limitation is in the symmetry: reflection needs the up and down steps to be equally likely and the barrier to sit on the lattice. With a drift, or in continuous time with a non-zero rate, the reflected path is not equally likely and a correction factor appears, which is why barrier formulas carry that extra power of the barrier over the spot.

    Where candidates lose it

    The usual loss is answering the probability of ending at or above 104, 17.2%, and forgetting the paths that touched and came back. The interviewer asked about touching, and the difference is a quarter of the answer.

    The second loss is trying to enumerate paths that stay below 104 by hand. There are 792 of them and no clean way to list them in the room. Reflection exists so you do not have to.

    What the interviewer asks next

    • What is the probability the price touches 104 and ends at 100?
    • Change the odds to 55% up. Why does reflection stop working as stated?
    • How does this count turn into the price of a one-touch option?
  7. 084Orders join a queue at a limit price at random at 2 a minute and are filled at random at 3 a minute. What fraction of the time is the queue empty, and how many orders are in it on average?Random walks and Markov chainsHardDRWNew York · 2026

    Try it first

    What fraction of the time is the queue empty?

    Show the worked solution

    The queue is empty one third of the time and holds 2 orders on average. With arrivals at 2 a minute and fills at 3, the fill process is busy a fraction 2/3 of the time, so the queue is empty 1/3 of the time. Balancing flow across each arrow of the chain gives share(n + 1) = (2/3) share(n), a geometric ladder starting at 1/3, whose mean is (2/3)/(1/3) = 2.

    Why does balancing flow across one arrow solve the whole chain?

    Picture a ticket counter with one clerk. Over a long day, the number of times the queue grows from 3 people to 4 must equal the number of times it shrinks from 4 to 3, because you cannot go up through that boundary twice without coming back down through it once. In the long run the flow of arrivals across each boundary equals the flow of fills back across it, which pins the share of time in each state to the share in the state below. Arrivals push at 2 a minute times the share of time at n; fills pull at 3 a minute times the share at n + 1. Equal flows mean share(n + 1) = (2/3) share(n).

    Balance the flow across each arrow and the queue lengths fall geometrically0arrive 2/minfill 3/min1arrive 2/minfill 3/min2arrive 2/minfill 3/min3arrive 2/minfill 3/min4arrive 2/minfill 3/min5...orders in the queue; across each arrow pair, flow right = flow left: 2 x share(n) = 3 x share(n + 1)33.3%0 orders22.2%1 order14.8%2 orders9.9%3 orders6.6%4 orders4.4%5 ordersempty 1/3 of the timeaverage = 2 ordersrho / (1 - rho) = (2/3) / (1/3)each bar is 2/3 of the last
    Arrivals at 2 a minute push the queue one state to the right and fills at 3 a minute pull it one state to the left, and balancing the two flows across every boundary makes the long-run share of each queue length two thirds of the one before, starting at one third for an empty queue and averaging 2 orders.

    How do the shares add up to one, and what is the mean?

    The shares form a geometric series: share(0), share(0) x 2/3, share(0) x 4/9 and so on. They must sum to 1, and a geometric series with ratio 2/3 sums to 3 times its first term, so share(0) = 1/3. The mean number in the queue is the sum of n times share(n), which for a geometric ladder is the ratio over one minus the ratio: (2/3)/(1/3) = 2. A queue fed at two thirds of its capacity holds two orders on average, and because the mean is rho/(1 - rho) it explodes as arrivals approach fills. At 2.7 arrivals a minute the average would be 9; at 3 it is unbounded.

    The relationship
    πn+1=λμ πn=23πn,π0=1−λμ=13,L=λ/μ1−λ/μ=2\pi_{n+1} = \tfrac{\lambda}{\mu}\,\pi_n = \tfrac{2}{3}\pi_n, \qquad \pi_0 = 1 - \tfrac{\lambda}{\mu} = \tfrac{1}{3}, \qquad L = \frac{\lambda/\mu}{1 - \lambda/\mu} = 2
    lambdathe arrival rate, 2 a minute
    muthe fill rate, 3 a minute
    pi_nthe long-run share of time with n orders in the queue
    Lthe mean number of orders in the queue
    What it says in wordsEach queue length is two thirds as likely as the one below it, the empty state has share one third, and the average length is two.

    Two sentences that show you can use it. Little's law says time in the system equals mean number over arrival rate, 2/2 = 1 minute, so an order joining this queue expects to wait a minute to be filled, which is what a market maker deciding whether to post at this price wants to know. The limitation: the chain assumes memoryless arrivals and fills and no cancellations, and real order books have cancellations that depend on queue position, so the geometric shape is a first model, not a description.

    Where candidates lose it

    Candidates write the balance equations for every state at once and try to solve a system, then run out of time. The cut across a single boundary is the whole method: flow up equals flow down, so each share is a fixed multiple of the one below.

    The second loss is answering zero for the empty fraction because orders keep arriving. Fills outpace arrivals, so the queue drains to empty regularly; it is empty exactly the fraction of time the fill process is idle.

    What the interviewer asks next

    • How long does an order expect to wait from joining to being filled?
    • What happens to the average queue if arrivals rise to 2.7 a minute?
    • Now orders can also be cancelled at 1 a minute each. How does the chain change?

    Asked at DRW, Quantitative Research, New York, 2026 (Wall Street Oasis): one on birth death chains

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.