Quantij quantitative finance education and research
Quant Interview Questions
Created from Quant Bible from MIT Sloan
Practise the concepts behind historical interview examples through original probability, coding, statistics and trading drills.
Published 27 November 2026 · Full chapter
How to use the question bank
Beyond the company-specific questions discussed later in this section, there are plenty of “classic” types of quant questions that can pop up in any interview, especially earlier phone rounds. There are dozens of not hundreds of these questions and rather than single out a few to put into this section, the participants decided that they’re all important enough to brush up on every single one as you head into recruiting season. You’ll find some important questions from two books the participants mentioned in the intro to this bible:
Heard on the Street, Chapter 2. This contains 70 math brainteasers that you’ll probably run into in any finance recruiting process, and certainly in the quant process.
A Practical Guide to Quantitative Finance Interviews, Chapters 2 and 4. This is the quant “green book” you might hear people mention.
Since these are more fundamental questions compared to the pretty complex stuff in the rest of the section, the participants recommend looking at these books first, but after you’ve built up the math (and CS) coursework and reviewed probability, stats, and data science with the rest of the interview guide.
Jane Street
Question 1
There are 10 people in a room; how many ways to choose three of them?
Answer
The order of selection does not matter.
Question 2
Consider a dice game with a d6.
Follow-up question
You pay to get the amount in one roll; what is a fair price?
Answer
The fair price is the expected roll.
Follow-up question
You will roll the dice, then choose whether to re-roll. If you re-roll, you get whatever the value of the re-roll is. What is a fair price?
Answer
Reroll on 1, 2, or 3, since the next roll is worth 3.5 on average.
Follow-up question
You will roll the dice, then choose whether to re-roll. If you re-roll, you get whatever the value of the re-roll is. The re-roll costs USD 1. What is a fair price?
Answer
The net expected value of a reroll is 2.5. Reroll on 1 or 2.
Follow-up question
Same as above, but now you have infinite re-rolls *each* of which cost USD 1. What is a fair price/optimal strategy?
Answer
Let be the value before a roll. After a roll of , compare keeping with paying one unit to return to a fresh game worth .
The fixed point is : the continuation value is 3. Reroll on 1 or 2, keep 4 through 6, and either action is optimal at 3.
Question 3
Rank the expected values of three payoffs: the product of two independent six-sided die rolls, the square of one roll, and the square of the median of five independent rolls.
Answer
For independent dice , the product has mean . The square of one die has mean .
If is the median of five dice, at least three of the five must be at most for . Set . The point probability is .
The ranking is product of two dice, square of the median, then square of one die.
Question 4
Roll a fair 100-sided die once for an entry fee of . After each result, either keep the value or pay one dollar to reroll. Rerolls are unlimited. What strategy maximises expected value, and what entry fee makes the game fair?
Answer
Let be the fair price before the first roll. After seeing , keeping the roll pays and rerolling is worth .
The consistent cutoff is to reroll on 1 through 86 and keep 87 through 100. Since , the cutoff is consistent with the decision rule.
Question 5
Two players each have a six-sided die (hidden from the other person). The participants each roll, and then a third party sees both of the rolls and puts the sum in a jar hidden from the candidate. The participants then take turns bidding on the jar. At each step, you can either raise the bid by a positive integer amount (+1, +2,... ) or pass. If a player passes, the person who made the last bid pays their bid to the third party and receives whatever was in the jar. What is your strategy?
Answer
This is not a solvable problem; they want to see how you think, and there are a variety of ways to approach it. One conservative approach guarantees no loss through the betting strategy. In the end you are required to come up with a specific strategy regarding what you will do for each potential dice roll you get, and doing so required the candidate to think through each step of the bidding process to evaluate what the candidate’s opponent could have for their die. One useful assumption to make is that your opponent has the same strategy as you do (you are, after all, claiming your strategy is optimal). (Onsite; Virtual)
Question 6
Quote a market on the number of magazines in an unfamiliar rental property (more just to check how well you know Market Making terminology; Fermi is not big)
Answer
No specific count or quote is determined by the prompt. Give a rough fair value, quote a bid below it and an ask above it, and state both the units and whether a trade is binding. For example, a fair value of 12 magazines with a range of likely outcomes could lead to a quote of 8 bid and 16 ask. Update the quote after a fill based on what the trade reveals and the resulting position.
Question 7
Market Making on a variety of games involving die (product of d6, d12, max of d3, d4, d8, etc... ).
They are guaranteed to take one side, but they will choose which.
Answer
For independent and rolls, the fair value of the product is . For a maximum of independent , , and rolls, use for nonnegative integers , then add the tail probabilities. Quote around the fair value with a spread that reflects uncertainty about the counterparty's choice.
Question 8
Ski-Ball! You have a virtual ski-ball machine where you are given (for each game) the probability of successfully getting a ball in a hole if you aim for that hole. You are then put up against a series of opponents who play with various strategies. You are given 5 practice rounds (to evaluate your opponent’s strategy) and then play 1 round against the opponent. You put down a certain number of chips to play the game, and if you win the game against the opponent (get more points than they do in 10 throws), you win whatever you put down and receive your down back (so 2x). If you lose, you get nothing. Strategies opponent’s played with that I observed: 1) always go for the 10-point hole (that hole had a 100% chance of success if you aim for it); 2) Always go for the 100 point hole unless they get it in which case they go for the 10-point hole, although sometimes if they miss the 100 point hole too much they switch to just going for the 10-point hole anyway
Answer
The supplied scoring and opponent probabilities determine the best policy. Given the current score and throws remaining, compare actions by their probability of winning the round. Use the five practice rounds to estimate opponent thresholds and distinguish a high expected score from a high chance of beating the opponent.
Question 9
There are 10 coins, 9 of unknown weight and 1 of known weight (50/50). You are given the PMF over the weights of the coins. You pay 50 chips to play the game, and then are given 100 flips of the coins.
Every head you get earns you one chip. First question: do you want to play the game (answer yes by observing PMF). Actually playing the game, you are given the ability to record the observed H/T ratio for each of the coins as well as the number of times you have flipped it. You need to find an exploration vs exploitation strategy.
Answer
A known fair coin gives an expected 50 chips from 100 flips, exactly covering the entry cost. The game is attractive if the prior or the option to learn gives expected net value above that baseline. Update the distribution over a coin’s head probability with each observed head or tail. A posterior-sampling policy can balance trying uncertain coins and using coins with good observed results.
Question 10
You play a game where you throw your chips against the wall, playing against your interviewer. At each step you have two options: throw a chip, or pass. If you pass, it moves to your opponent’s turn.
If two people pass in a row, the person who threw the chip that has landed closest to the wall (over all throws) gets 20 chips, the other person gets nothing. You do not get back any chips you threw at the wall. Since this was a virtual interview, instead of a wall, the participants had two entirely unknown random number generators which output a distance to the wall.
Answer
The unknown distance generators make the answer depend on learned probabilities. Track the best distance, remaining chips, and whether the opponent just passed. Compare the cost of another throw with its chance of beating the current best distance and the chance that passing ends the game. A conservative strategy avoids extra throws when the estimated benefit is below their cost.
Question 11
Three correlations problem. This is an important brainteaser example in linear algebra rarely seen in any of the “classic” quant interview books, and although it is rarely reported in any interviews in the past year or two, the candidate is throwing it in the Jane Street section because apparently it used to be asked at Jane Street in the past. The question: suppose Suppose there are three random variables X, Y, Z, and the participants know two of the three pairwise correlations. The participants know X,Y have a correlation of 0.9, and Y,Z have a correlation of 0.8, but the participants don’t know the correlation of X,Z exactly. What are the best bounds that a candidate can find for the correlation of X,Z?
Answer
Let . The correlation matrix must be positive semidefinite.
Its determinant must be nonnegative. Completing the square gives . The attainable interval is approximately .
Question 12
Ants on a circle problem. This question may or may not have actually been asked at Jane Street before, but it’s very Jane Street-esque. The participants arrange n ants equally spaced around a circle. All ants walk at a constant speed that allows them to complete 1 revolution around the circle, or the equivalent of 1 revolution, in 1 minute. The participants run an experiment where the participants randomly set each ant to face one of the two possible directions (clockwise or counterclockwise), and then have the ants walk for 1 minute.
Whenever two ants bump into each other, they both turn around and start walking in the opposite direction. At the end of the minute the ants stop and the participants check their positions. What is the probability that all n ants are in the same positions as they were originally?
Answer
First key insight: the set of the n ant positions at the end is the same as the set of the original positions. a candidate can see this by considering a simpler variant where the ants are indistinguishable; then when two ants meet and turn around, it looks the exact same as if the two ants pass right through each other. Then a candidate can consider the simplified experiment as all n ants walking in a full revolution uninterrupted and ending up with the same set of positions.
Second key insight: Suppose there are an invariant at any point in the experiment which is the total number of clockwise-moving ants. Whenever two ants collide, the participants transition from one clockwise and one counterclockwise ant to one counterclockwise and one clockwise ant, respectively, so the total number of clockwise-walking ants has not changed. a candidate can reformulate this invariant as the total clockwise speed of the ants, which also is determined at the start of the experiment and stays the same throughout; this constant total clockwise speed leads to a total clockwise distance traveled across the n ants by the end of the experiment, and this is the final insight the participants need.
If ants initially point clockwise, the total signed displacement after one minute is revolutions. Because labelled ants retain their cyclic order, the final positions differ from the starting positions by a common cyclic shift. Their starting positions are all restored when is a multiple of , which occurs for or, if is even, .
Question 13
Ball drawing problem. This is also a random question that is Jane Street-esque. Suppose there are two bags of colored red and blue balls; bag A has 8 blue and 4 red balls, while bag B has 4 blue and 8 red balls.
The participants pick one of the bags at random, and the candidate draws 3 balls without replacement; the participants see that the participants drew 2 blue balls and 1 red ball. Conditioned on the result of these draws, what is the probability that the participants originally picked bag B?
Answer
The bags have equal priors and equal total size. Drawing without replacement, the count of ways to draw two blue and one red is from bag A, and from bag B.
An equivalent argument conditions first on one blue and one red. Both bags are equally likely at that point, but the remaining blue proportions are and .
Virtu Financial
Question 14
There is a 40% chance is rains on Saturday and a 70% chance it rains on Sunday; what is the probability it does not rain this weekend (what assumptions do you make?); give a lower and an upper bound on the probability it does not rain this weekend.
Answer
Under independence, the probability of no rain on either day is .
Without independence, the probability of rain on at least one day can range from to . Therefore
Question 15
the participants distribute 20 points randomly along a circle and then choose 4 of these points at random, labeling them A, B, C, and D (e.g. choose A at random, from remaining choose B,... ). The candidate draws the chords AB and CD; what is the probability they intersect within the circle?
Answer
Only the circular order of the four chosen labels matters. Fix as the starting point. Of the six equally likely orders of , only the two in which the chord endpoints alternate give an intersection.
Question 16
Suppose there are two planes, a 4-engine one and a 2-engine one. Each engine fails independently from every other one with probability p; the 4-engine plane goes down if 3 engines fail, the 2-engine plane goes down if both fail. Is either plan safer to be on outright? What is the value of pthat makes them both equally safe to be on?
Answer
The four-engine plane fails if three or four engines fail. The two-engine plane fails only if both fail.
Their difference factors as . For , the four-engine plane has lower failure probability. For , the two-engine plane is safer. They tie at , , and .
Question 17
Flip a fair coin until the first head. If the payoff equals the number of flips , what price makes the game fair? What if the payoff is ? How much would a risk-conscious player actually pay for the second game?
Answer
Let be the number of fair coin flips through the first head. Conditioning on the first flip gives , hence the fair price for a payoff of is .
For a payoff of , for . A practical willingness to pay depends on risk preferences, the payout limit and the ability of the counterparty to pay. A cutoff at a 1-in-32 probability, for example, is a decision assumption rather than the fair expected-value price.
Question 18
You have a camera which can hold 1 picture in memory at all times (so if you take a new picture and there was one in memory, the one in memory is lost forever). You have a row of houses to photograph which has unknown but finite length. You are given a Uniform(0, 1) generator. Devise a strategy to photograph the houses s.t. After the last house, any house is equally likely to be in the camera’s memory
Answer
Store the first photo. When house passes, replace the current photo with probability , using a uniform random draw. This works without knowing how many houses there will be.
By induction, an earlier house is stored with probability before the new decision. Its probability of surviving is . The new photo also has probability .
Question 19
You have a set of numbers of size n: {0,1,2,...,n−1}. At each step, you select a number randomly from the available numbers and then reduce your set to all numbers less than that number (e.g. n= 4: {0,1,2,3}; select 2, now you are left with {0,1}). You then continuously repeat this until you select the number 0. What is the expected number of selections required for this to happen (e.g. n = 4: {0,1,2,3}; select 2; {0,1}; select 1; {0}; select 0 →3 selections, the last one included).
Answer
Let be the expected selections starting with numbers and set . Selecting leaves exactly numbers. The first cases are , , and .
Subtract the equations for and to get . Thus
Question 20
How do you test the significance of a regression slope in simple linear regression?
Answer
Test using . In simple regression with an intercept and classical Gaussian errors, compare with the two-sided reference distribution with degrees of freedom. If errors are heteroskedastic or dependent, choose a standard error appropriate to the data.
Question 21
Suppose you have linear regression with several covariates; how do you prevent overfitting?
Answer
Lp regularization (lasso, ridge, elastic)
Question 22
the objective is to create an algorithm which will keep a running 30-minute minimum for price data from SPX; your code will be queried for the minimum at random times, and you receive a completely random amount of price data at random times. How do you design an efficient algorithm to do this?
Answer
Use a monotonic deque of timestamp–price pairs, assuming observations arrive in time order. Expire entries more than 30 minutes old at the front. Before adding a price, drop entries from the back whose prices are at least as high. Those prices expire earlier and can never again be the minimum.
The first remaining entry is the minimum. Each observation enters and leaves the deque at most once, so updates are amortised . A query also expires old entries before reading the front. If input can arrive out of order, reorder it or use a data structure that supports timestamp-based insertions.
Optiver
Question 23
Mental math – square root questions
Answer
No specific radicand is supplied. To estimate a square root near a perfect square , use and check the result by squaring it. For example, .
Question 24
9 AM start time for work; leave home and arrive in 20, 40, 35, 15, 25 minutes, want to be early 95% of the time.
Follow-up question
Assuming normal distribution, around when is the latest you should leave?
Answer
The sample mean is 27 minutes and the sample standard deviation is about 10.37 minutes. Under a fitted normal model, the estimated 95th percentile is minutes. Leave around 8:16 a.m., or round down to 8:15 a.m. for a full-minute buffer. The estimate is uncertain with only five observations.
Follow-up question
Would you rather reduce mean or standard deviation by a minute if you want to leave later but still be at work on time the same proportion of time?
Answer
A one-minute reduction in the mean cuts the 95th percentile by one minute. Reducing the standard deviation by one minute cuts it by about minutes under the fitted normal model.
Question 25
Shuffle function can shuffle two letters of ABCD.
Follow-up question
How many ways for 1, 2, 3, 4 letters to be out of order?
Answer
Choose the displaced positions, then derange those letters. With displaced letters the count is . For the counts are , respectively.
Follow-up question
Expected value of shuffles to return back to order given that the list is out of order?
Answer
The starting permutation and shuffle rule matter. If every move independently swaps one of the six pairs uniformly and the current order was created by one swap from sorted, the expected time to sort is further swaps. The random walk on the 24 permutations has a uniform stationary distribution, so the mean return from sorted is 24 moves, including the first swap away. A different initial permutation can have a different expected time.
Question 26
Multiple parts
Follow-up question
Most number of singles possible with 100 AB, 0.300 BA, 0.500 SLG?
Answer
23
Follow-up question
How many arrangements possible if 100 AB, 0.300 BA, 0.500 SLG, no home runs?
Answer
Let and count doubles and triples. With no home runs, . Every integer gives a valid count of doubles and singles, for 11 possible hit compositions.
Follow-up question
General formula for x AB?
Answer
With at-bats, the extra bases required are . With no home runs, solve . For positive divisible by 10, can be any integer from through , giving hit compositions.
Akuna Capital
Question 27
Draw independent samples uniformly from . What is the probability that their sum is at most one?
Answer
The joint distribution is uniform on the unit cube. The event is the simplex cut out by the coordinate planes and the hyperplane . Its volume is .
In two dimensions the region is a right triangle with area . More generally, integrating over the final coordinate yields
Question 28
Using coin flips for a fair coin, the objective is to simulate different distributions of 1/n probabilities.
Follow-up question
Simulate three equal probabilities of 1/3?
Answer
the participants need two coin flips at least, which creates 4 equally likely outcomes; assign three of the four outcomes, say HH,HT,TH, to the three outputs, and the fourth outcome, say TT, is thrown out, i.e. if the result is the fourth outcome the participants redo the coin flips.
Follow-up question
In general, how many coin flips needed for n equal probabilities 1/n?
Answer
A single trial needs bits. Accept the first of the equally likely bit patterns and retry otherwise. This uses flips on average with this fixed-block method.
Follow-up question
Suppose the participants only need one 1/3 probability. How do the participants generate this probability with the smallest expected number of coin flips, and what is this smallest expected number of coin flips?
Answer
a candidate can begin with the earlier strategy of flipping the coin twice and throwing out one of the four outcomes. The participants now only need one of the three valid outcomes to map to a single 1/3 probability. Then for some of the remaining outcome space, a candidate can combine these outcomes into just the first coin flip. To illuminate this idea, suppose the participants always throw out TT, and Take TH as the single valid output for the 1/3 probability. Then the remaining outcomes are HH and HT, which a candidate can account for already when the first coin flip is H. the strategy is to flip the coin once, and output that the participants missed the 1/3 probability if the participants obtain H; if the first flip is T, then the participants flip again, outputting the 1/3 probability if the participants obtain TH and starting over the two flips if the participants obtain TT.
The first flip ends the process with probability . The two-flip branches either finish or restart, each with probability . To see optimality, after any fixed depth a binary decision tree for probability must leave at least one of the branches unresolved. The expected depth is therefore at least .
Citadel
Question 29
Two ants start at opposite vertices of an octahedron. They alternate moves. Each move chooses one of the four adjacent vertices uniformly. The first ant to land on the other ant’s vertex wins. What is the probability that the first mover wins?
Answer
Let and be the probability that the next mover wins when the ants are adjacent and opposite, respectively. From opposite vertices the next move makes them adjacent and passes the turn, so . From adjacent vertices there is one immediate winning move, one move to an opposite vertex, and two moves that leave the ants adjacent.
Solving gives and . Since A goes first from opposite vertices, A wins with probability .
Question 30
Let and . Assuming independence, calculate .
Answer
Assume and are independent. Then . The absolute difference has a half-normal distribution. If the variables are jointly normal but correlated, subtract from the variance instead.
Question 31
Deal six disjoint three-card hands from a shuffled 52-card deck. What is the probability that exactly one of the six hands contains exactly one ace? Other hands may contain zero, two, or three aces.
Answer
Assume six disjoint three-card hands. Regard the four aces as occupying four of 52 labelled slots, with 34 slots outside the hands. The six hands must have exactly one singleton ace hand. The remaining aces can all lie outside, form a pair in another hand with one outside, or form a triple in another hand.
Counting exactly one ace among the 18 dealt cards would omit the pair and triple cases.
Question 32
Suppose there are 100 airplane passengers labeled 1,..., 100, the airplane has 100 seats labeled 1,... 100.
Each passenger boards in numerical order and they’re each supposed to take the seat with the same label. However passenger 1 is drunk and boards first and takes a random seat. For each subsequent passenger, their will board their labeled seat if it is free and board a random remaining seat if their seat is filled. What is the probability passenger 100 gets to sit in their own seat?
Answer
Follow the chain of passengers whose assigned seats are occupied. At each random choice, seat 1 and seat 100 are equally likely to be chosen if both are free. Choosing seat 1 ends the displacement chain and leaves seat 100 available. Choosing seat 100 makes the last passenger miss it. Choosing another seat continues the chain. Symmetry gives probability .
Question 33
(Systematic) How to find k maximum elements in an array of size n? Most efficient algorithm?
Answer
Most efficient in sorting regime is using an O(nlog n) sort such as merge or quick, then querying the k elements at the start of the array.
Can have an answer array of size k storing the k maximum; pass through array once and then compare to sorted k array, add/replace and resort k array if necessary. O(nk) for the pass, O(klog k) for keeping the array sorted; total O(nk+ klog k)
Conclusion: The single pass is better when k is small, but runtime gets high for large k so the full mergesort or quicksort is better for large k.
Extra solution: can build max heap in O(n) and then query for max k times, each query takes O(log n) so total O(n+ klog n) time
Question 34
(Systematic) How to find number of pairs of elements in array of size n that sum to some number m?
Answer
Can make dictionary enumerating each unique value and # of times it appears in array, in linear time. Then pass through dictionary in linear time, for each key k, query the key m-k and add the product of the values to a running sum; return answer in linear time
Question 35
Suppose there are a half hour of stock price data; how do the participants find the maximum profit the participants could have made from a single transaction? No shorting, so the transaction must be a buy followed by a sell.
Answer
This is a Leetcode problem that can be solved with a single pass through the data, i.e. in linear time. The participants do the backwards pass approach, although the forwards direction should be essentially similar. As the participants iterate backwards through the stock price time series, the participants keep track of the minimum price seen so far as well as the greatest profit possible so far (initialized to the final price and 0, respectively, when the participants start the pass). At every price point the participants see, if the current price point - minimum price point > greatest possible profit, the participants update the greatest possible profit; also, if the current price point is below the minimum so far the participants update the minimum. When the participants reach the start of the time series the candidate should have the answer.
Question 36
Suppose the participants do simple linear regression with one input feature, i.e. the input X and output Y are vectors. The participants obtain a beta when the participants regress Y on X, and on the flip side the participants obtain a second beta when the participants regress X on Y. Can you bound the product of the two betas?
Answer
When both regressions include intercepts, centre both variables. The slopes are and .
Without intercepts, the corresponding product is the squared cosine of the angle between the uncentred vectors.
Question 37
Let be independent and identically distributed with mean and variance . Replace the sequence with differences . What are the mean and variance of the differences?
Answer
Write for . By linearity, . Independence of the two original observations gives .
The differences themselves are dependent. The sum telescopes: Hence the average difference has variance , while each individual difference has variance .
Hudson River Trading
Question 38
Let be independent standard normal variables. What is ?
Answer
Independence implies . Symmetry about zero gives .
Alternatively, the joint density of is rotationally symmetric. The line divides the plane into two equal half-planes.
Question 39
Let be independent standard normal variables. What is ?
Answer
With , the polar angle is uniform between and . The event requires an angle above .
Question 40
the participants stand on a street and keep track of the heights of people that walk by. The participants note the height of the very first person who walks by; then for each subsequent person, the participants compare their height to the first person. What is the expected number of people that pass by after the first person before the participants see someone taller than the first person?
Answer
Assume independent heights from a continuous distribution. Let be the percentile of the first height. Conditional on , the waiting time through the first taller person is geometric with success probability and mean .
By the probability integral transform, is uniform on . Excluding the final taller person subtracts one from the waiting time and does not change the divergence. A normal model for heights is unnecessary.
Question 41
Starting from a running sum of 0, the candidate draws a number from the uniform distribution from 0 to 1 and add it to the running sum; what is the expected number of draws before the running sum exceeds 1?
Answer
Let be the expected number of draws until the sum exceeds , for . The first draw always counts. If that draw is , the remaining target is .
Differentiating gives and , so . The expected draw count is .
Two Sigma
These historical examples cover probability. Data science is also relevant preparation for research interviews.
Question 42
Exactly one sample in a batch is defective. A pooled test detects the defect if any sample in the pool is defective. How can several parallel tests identify the defective sample?
Follow-up question
How can ten parallel tests identify one defective sample among 1,000?
Answer
Assign each sample a distinct ten-bit code. Test one pool per bit, including the samples with a 1 in that position. The ten test results recover the code.
Follow-up question
What is the maximum number of samples with ten tests? What about a general number of tests?
Answer
Ten binary results give distinguishable patterns. With binary tests, the information bound is , and the bit-pooling construction attains it.
Follow-up question
What if each test channel can identify the round in which it first detects the defect?
Answer
Two rounds give three possible results per channel: first hit in round one, first hit in round two, or no hit. Assign base-three codes to identify up to samples. With rounds and channels, the bound generalises to , assuming ideal detection and a single defect.
Question 43
Roll a fair six-sided die. A roll of 1 completes the sequence, an even roll appends its value, and a roll of 3 or 5 discards the current sequence and starts a new attempt. What is the expected length of the completed sequence?
Answer
One completed attempt has no 3 or 5 before its terminating 1. If it contains even rolls, its probability in one attempt is . The total success probability of an attempt is , so conditional on success
The expected number of even entries in the final sequence is . Counting the terminal 1 gives an expected length of . If the question counts all physical rolls across discarded attempts as well, stopping is at the first 1 and the expectation is .
Five Rings
Question 44
the participants set up a single-elimination tournament; each round randomly pairs each team left in that round, and all teams are equally skilled so equal chance of either team in a game passing to next round. If odd number of teams in a round, one team randomly selected for a bye (automatically pass to next round). Suppose there are two teams A, B in the tournament, what is the probability they play in some game?
Follow-up question
What if the tournament starts with 8 teams?
Answer
Can calculate with casework on what round A and B can play in and whether they both make it to that round. Answer is 2/8.
Follow-up question
9 teams?
Answer
More casework. 2/9
Follow-up question
n teams?
Answer
In a single-elimination tournament, the pair can meet at most once. Therefore the probability they meet equals the expected count of their meetings. There are games and possible unordered pairs. By symmetry across team labels, This argument also covers an odd field if byes are assigned symmetrically.
Important note. The core insight above that the probability of A and B playing together equals the expected number of games they play together across the tournament is unique to this context. The variable that describes whether or not A and B play a game together is an indicator variable which is 1 with probability p (the answer the participants are looking for) and 0 with probability 1−p. The expected value of this indicator is therefore p. This is a very elegant trick a candidate can generally perform with indicator variables. Keep in mind that for a lot of the other ”elementary” random variables (i.e. Bernoulli, Poisson, exponential, etc.) also have expected values (means) that are simple functions of their main parameter; it’s just the case that the indicator/Bernoulli variable’s main parameter is a probability.
Question 45
the participants set up a game where Suppose there are npairs of socks in a drawer, each pair labeled 1 through nrespectively.
In the game, the participants randomly draw 2 socks from the drawer without replacement to form a pair; the pair of drawn socks is ”satisfactory” if their labels are at most 1 apart, i.e. drawing a (2,2) or (1,2) is satisfactory but a (1,3) is not. The participants lose the game if the candidate draws any unsatisfactory pair; the participants win if the candidate draws all socks from the drawer, i.e. draw a pair n times, and get a satisfactory pair each time.
Follow-up question
First examine the small case of n= 3. What is the probability that the participants win the game?
Answer
There are equally likely matchings of six labelled socks. Five are valid: one pairs every label with itself, two cross the labels 1 and 2, and two cross the labels 2 and 3. The probability is .
Follow-up question
General case of n. How do the participants find the probability of winning the game?
Answer
First key insight. Imagine drawing nrandom pairs of socks first, and then checking if the participants won or lost after the fact, i.e. if all npairs are satisfactory then the participants won and if at least one pair is unsatisfactory then the participants lose. This is identical to the original setup in terms of win probability.
The difference here is any ordering of the n random pairs is the same when the participants check after the fact. In other words a candidate can consider the drawn socks in any order, and since the next step is to draw all socks to win (or to finish the game at all in the modified setup), a candidate can condition on the outcome of some specific pair... maybe some edge case?
Second key insight. When the candidate draws a satisfactory pair whose labels are 1 apart, the next step is to draw that same pair again or else a candidate can’t win. Intuitively, when the candidate draws a 1-apart satisfactory pair, say (k,k+ 1) for some k, Suppose there are one remaining k sock and one remaining k+ 1 sock each of which need to be paired somehow. If k pairs with k−1 then later the other k−1 must be paired, and so on; this inductively reduces to a single 1 sock having no possible satisfactory pair so the participants lose. The argument is symmetric for the k+ 1 sock. Then another (k,k+ 1) pair must be drawn.
Let be the probability with labelled pairs of socks. Either the two label-1 socks are paired together, or each is paired to a label-2 sock. There are two ways to choose the cross-pairing. Hence and .
Question 46
You and the interviewer bet on opposite sides on the n = 3 sock drawer game from above. The interviewer allows you to bet with 1 : 1 odds, i.e. if the sock drawer game wins then you double your money (and if the sock drawer game loses then you lose what you betted). If you start with 100 dollars, how much money do you bet on this game?
Answer
First calculate the expected return of the game.
At even odds, a one-dollar bet returns two dollars including stake on a win and zero on a loss. With the exact sock rules in the previous question the win probability is , so expected return is dollars and the expected net gain is dollars. If the interviewer instead stipulates , expected net gain is dollars.
Follow-up question
Suppose the participants only do one round of betting. How much money do you bet?
Answer
No exactly right or wrong answer; the interviewer is looking for how you manage risk relative to your total wealth. For this kind of question the number you say isn’t any form of math problem solving, but probability illuminates your risk adversity.
Follow-up question
Suppose a candidate can do infinite rounds of betting. Can you formulate a betting strategy?
Answer
This is done using the Kelly criterion, a very useful trade sizing framework in industry. Feel free to search up Kelly criterion on Wikipedia; the core ideas are simple to remember, and although quants will very rarely expect you to know Kelly criterion in interviews, it’s a good trick to have up your sleeve.
For a win probability at even odds, the fraction maximises expected log wealth growth, . The optimum over nonnegative stakes is . With , the optimal long-side stake is zero; with stipulated , it is one third of bankroll. Expected log growth and expected wealth are different objectives.
Susquehanna International Group
Question 47
Paint the outside of a cube red and cut it into 27 unit cubes. Select a small cube and one of its faces uniformly. Given that the face is red, what is the probability the small cube was at a corner?
Answer
There are painted small faces. The eight corner cubes contribute painted faces. Sampling a cube and a face uniformly makes these faces equally likely conditional on seeing paint.
Question 48
Opponent has 2 dollars, you have 1 dollar. You play a game where you each wager 1 dollar. Opponent has 1/3 chance of winning each game, you have 2/3 chance of winning each game. You play until someone is bankrupt, and then they lose. What is the probability you win the game?
Answer
Let be the probability of reaching the full bankroll of 3 dollars starting with . The boundaries are and . With win probability , Solving gives .
Question 49
Analyst report says that stock will be taken over with probability 50%. If it’s not taken over, it’ll move to 5 dollars with 40% chance, and to 0 dollars with 60% chance. If it’s taken over, it’ll move to 15 dollars with 80% chance, and x with 20% chance. The stock is trading at 10 dollars. How much would you pay, assuming no time value of money, for the option to buy the stock at 22 dollars after everything settles? This means you get to see if it’s taken over or not, and then get to see where it goes after that.
Answer
Assume the scenario probabilities can be used for pricing and discounting is negligible. The stock price pins down the high takeover outcome: Thus .
Only the high takeover outcome exceeds the strike of 22. It occurs with probability , so the fair option value is .