Quant puzzles, solved step by step
- Puzzles
- 100
- Traced to a firm
- 71
- Topics
- 12
- Hard
- 30
043A 3 x 3 x 3 cube is painted on the outside and cut into 27 small cubes. How many small cubes have 3, 2, 1 and 0 painted faces? You pick a small cube at random and roll it like a die: what is the probability the top face is painted?Jane StreetNew York · 2026
Try it first
What is the probability the top face is painted?
Show the worked solution
8 cubes have 3 painted faces, 12 have 2, 6 have 1 and 1 has none; the chance the top face is painted is exactly 1/3. Corners carry three, edge middles two, face centres one, and the core none. Picking a random cube and rolling it picks a random small face out of 27 x 6 = 162. The painted ones are the big cube's surface, 6 x 9 = 54, so the probability is 54/162 = 1/3.
Where do the 8, 12, 6 and 1 come from?
Think of a Rubik's cube: its pieces are corners, edges and centres, plus a hidden core. A small cube's painted faces equal the number of outer walls it touches: a corner touches three, an edge middle two, a face centre one, the core none. A cube has 8 corners, 12 edges with one middle piece each, and 6 faces with one centre each. That accounts for 8 + 12 + 6 = 26 cubes; the 27th is the core.
Slicing the cube into three layers shows 8 corner cubes with three painted faces, 12 edge cubes with two, 6 face centres with one and a single unpainted core, which together carry 54 painted faces out of 162, exactly one third. Why is the roll probability exactly one third?
Do it the long way first: weight each cube type by its share of cubes and its share of painted faces. 8/27 x 3/6 + 12/27 x 2/6 + 6/27 x 1/6 + 1/27 x 0 = (24 + 24 + 6)/162 = 54/162. Then notice the shortcut: a random cube with a random face up is a uniform pick from all 162 small faces, and the painted small faces are exactly the big cube's surface, 6 x 9 = 54. That gives 1/3 without any case split, and it works for any size: an n x n x n cube gives 6n squared over 6n cubed, which is 1/n.
The relationship8, 12, 6, 1 numbers of corner, edge, face-centre and core cubes 3, 2, 1, 0 painted faces on each type 27 x 6 all small faces, each equally likely to land on top What it says in wordsCount painted small faces over all small faces, because the roll makes every small face equally likely.Interviewers use the second part to see whether you look for the structure before the arithmetic. Counting faces instead of cubes turns a four-case weighted average into one division. Say both routes: the case split proves you can count, the face count proves you can see.
Where candidates lose it
The common loss is answering about cubes when the question is about faces: 26 of 27 cubes have paint, so candidates say 26/27, forgetting that a painted cube still shows an unpainted face most of the time.
The second is miscounting edges, using 8 or 24 instead of 12. Say the cube's shape out loud, 8 corners, 12 edges, 6 faces, and check 8 + 12 + 6 + 1 = 27.
What the interviewer asks next
- For a 4 x 4 x 4 cube, how many small cubes have exactly two painted faces?
- You roll a random small cube and see a painted top. What is the chance it is a corner cube?
- For which n does an n x n x n cube have more unpainted small cubes than painted ones?
Asked at Jane Street, Engineering, New York, 2026 (Wall Street Oasis):
How you got to the answer matters even if you got the question right. Strawberry question + 3x3 cube question
044A stick of length 1 is broken at three independent uniform points into four pieces. What is the expected length of the longest piece?Hudson River TradingNew York · 2024
Try it first
What is the expected length of the longest piece?
Show the worked solution
25/48, about 0.521. For a stick broken into n pieces, the expected k-th smallest piece is (1/n)(1/n + 1/(n - 1) + ... ) with k terms. For n = 4 the sorted pieces average 3/48, 7/48, 13/48 and 25/48, which add to 1. The longest is (1/4)(1 + 1/2 + 1/3 + 1/4) = 25/48, more than twice the average piece of 1/4.
Why is the longest piece so much longer than a quarter?
Cut a sheet of dough at three random spots and the pieces are rarely even: one is usually a big slab and one a sliver. Random breaks produce uneven pieces, and the longest piece collects the unevenness, so its average sits far above the average piece. The average piece is always 1/4; the question asks about the largest of four correlated lengths, which is an {term('order statistic', 'The k-th smallest value in a sample, for example the minimum, the median or the maximum.')}.
Sorted by length, the four pieces of a randomly broken stick average 3/48, 7/48, 13/48 and 25/48 of its length, so the longest piece averages about 0.52, more than twice the naive quarter, and a 100,000-stick simulation agrees to three decimals. Where does the harmonic formula come from?
Start with the shortest piece. The chance that all four pieces exceed x is (1 - 4x) cubed: take x off every piece and the three breaks must fit into the remaining length 1 - 4x. Integrating that from 0 to 1/4 gives an expected shortest piece of 1/16. Then the key fact: the step from each sorted piece to the next adds on average (1/n) times 1 over the number of pieces still longer. After the shortest, three pieces remain longer, so the next piece averages 1/16 + (1/4)(1/3); then add (1/4)(1/2), then (1/4)(1). The longest piece is (1/4)(1/4 + 1/3 + 1/2 + 1) = 25/48.
The relationshipL_(4) the longest of the four pieces 1/4 one over the number of pieces 1 + 1/2 + 1/3 + 1/4 the harmonic sum up to the number of pieces What it says in wordsThe longest piece averages one quarter of the fourth harmonic number.The step rule comes from the fact that the pieces behave like independent exponential lengths scaled to total 1, and the gap between successive minima of exponentials is memoryless. You can name that in the room rather than prove it. The check that the formula is right: the four sorted averages add to exactly 1, and a simulation of 100,000 sticks gives 0.521 for the longest. For n pieces in general, the longest averages (1/n) times the n-th harmonic number, which grows like (ln n)/n.
Where candidates lose it
The common loss is answering 1/4, the average piece. The question asks for the average of the largest piece, and the largest of four uneven pieces is usually more than half the stick.
The second is trying to integrate the maximum directly over the three break points, which gets messy fast. Start from the minimum, use the step rule, and check that the four averages add to 1.
What the interviewer asks next
- What is the expected length of the shortest piece for n pieces?
- What is the probability the four pieces can form a quadrilateral?
- Break the stick at two points instead. What is the expected longest piece?
Asked at Hudson River Trading, Campus Algo Dev Interview, New York, 2024 (Wall Street Oasis):
I was asked an expected value question involving order statistics.
045Simplified poker with three cards, A, K and Q: each player antes 1, you are dealt one card and I am dealt another. You may bet 1 or check; if you bet, I call or fold, and if you check the higher card wins the antes. How often should you bluff with the Q, and how often should I call with the K, in equilibrium?Old Mission CapitalNew York · 2022
Try it first
How often should I call a bet when I hold the K?
Show the worked solution
Bluff with the Q one time in three, and call with the K one time in three. You always bet the A and always check the K; I always call with the A and fold the Q. A Q bluff risks 1 more to win the 2 antes, so I must defend two thirds of hands facing it: the A gives half, the K calling one time in three gives the rest. The game is worth 1/18 per hand to you.
Which hands are easy, and where is the real decision?
Clear away the obvious hands first. With the A you always bet, because you win whether I call or fold. With the K, betting only gets called by the A and folds out the Q, which you beat anyway, so you check. As the caller, I always call with the A and always fold the Q. The whole game comes down to two mixed choices: how often you bluff with the Q, and how often I call with the K.
In equilibrium the bettor always bets the A, always checks the K and bluffs the Q one time in three, while the caller always calls the A, folds the Q and calls with the K one time in three; together the A and the K calls defend two thirds of hands facing a bluff. How do the indifference conditions fix both frequencies?
A teacher who spot-checks homework faces the same logic: check every paper and time is wasted, never check and everyone copies, check at the right rate and copying stops paying. In equilibrium each player mixes at the rate that makes the other indifferent between their two options. Your Q loses 1 by checking. Bluffing loses 2 against my A, and against my K loses 2 if I call and wins 1 if I fold. The two are equal only when I call with the K one time in three. My K loses 1 by folding; calling loses 2 against your A and wins 2 against a bluff, which is worth -1 only when you bluff one time in three.
The relationshipc how often the caller calls with the K b how often the bettor bluffs with the Q -1 the payoff of the alternative: checking the Q or folding the K, losing the ante What it says in wordsEach frequency is set so the opponent's two choices are worth the same.Check against the pot-odds rule. A bluff risks 1 extra to win the 2 antes, so the caller must defend 2/(2 + 1) = 2/3 of the hands facing it; the A already covers half, and the K calling one time in three covers the other sixth. That two thirds is the number people misremember as the K's calling rate. Put the strategies together and the bettor, who acts first with more information about their own hand, earns 1/18 of a chip per hand. The limitation: with a bigger bet or more cards the ratios change, but the method, indifference on both sides, carries over.
Where candidates lose it
The common loss is setting the K's calling rate to two thirds. Two thirds is the total defence the caller needs against a bluff, and the A already provides half of it, so the K calls only one time in three.
The second is never bluffing because the Q cannot win a showdown. A player who never bluffs lets the caller fold every K to a bet, and the A's bets stop earning. The bluff is what gets the A paid.
What the interviewer asks next
- What is the value of the game to each player?
- The bet size doubles to 2. How do the bluffing and calling frequencies change?
- Now the caller may also bet after a check. What changes?
Asked at Old Mission Capital, Quantitative Research, New York, 2022 (Wall Street Oasis):
Asking to find the game theory optimal strategy in a simplified poker game
047Two assets' daily returns are negatively correlated within every month, yet their monthly returns are positively correlated across the year. How can that happen? Build a small numerical example.Squarepoint CapitalMontreal · 2024
Try it first
Both assets share a drift that changes from month to month, plus daily noise that is negatively correlated. What happens to the correlation as you sum more days into one return?
Show the worked solution
A drift shared by both assets for the whole month can outweigh daily noise that moves them in opposite directions. Within a month the drift is constant, so only the noise shows and the correlation is negative. Summed over 21 days the drift's covariance grows with 21 squared but the noise's only with 21. With noise correlation -0.5 and drift standard deviation 0.3% a day, monthly correlation is +0.48.
What does a three-month example look like?
Picture two shops in the same market street. On any one day, a customer who buys from one did not buy from the other, so their daily takings move against each other. But in festival months the whole street is busy and in the rains the whole street is quiet, so their monthly takings rise and fall together. Correlation at one horizon says nothing on its own about another, because a slow common factor and fast opposing noise can sit in the same data.
Make it numerical with five-day months. In month 1 both assets drift at -0.8% a day, in month 2 at +0.2%, in month 3 at +1.2%. On top, asset A gets daily noise of +0.6, -0.3, 0, +0.3, -0.6 and asset B gets -0.3, +0.3, 0, -0.3, +0.3, which move in opposite directions. Within each month the correlation is -0.95. Summed over each month, the noise nets to zero, so both assets return -4%, +1% and +6%: identical, a monthly correlation of +1. Even all 15 days pooled show +0.71, because the month-to-month swing in drift is larger than the noise.
Within each five-day month the daily returns of the two assets slope downward with a correlation of -0.95, but the monthly drifts of -0.8%, +0.2% and +1.2% a day are shared, so the three cluster centres rise together and the monthly returns correlate at +1. Why does summing more days push the correlation positive?
Write each daily return as the month's drift m plus noise. Over n days the drift adds up to n times m, while the noise adds up to a sum of n separate shocks. The drift's contribution to covariance scales with n squared, the noise's only with n, so the longer the horizon the more the shared drift wins. Take noise with standard deviation 1% a day and a within-month correlation of -0.5, and a drift whose standard deviation across months is 0.3% a day. For a 21-day month the drift adds 39.69 to the covariance and the noise subtracts 10.5, for a monthly correlation of 29.19/60.69 = 0.48.
The relationshipn number of days summed into one return \sigma_m standard deviation of the shared daily drift across months, 0.3% c daily noise covariance within a month, -0.5 \sigma daily noise standard deviation, 1% What it says in wordsShared drift covariance grows with the square of the horizon, independent noise covariance only in proportion to it.For a 21-day month the shared drift adds 39.69 to the covariance and the opposing daily noise takes away 10.5, so monthly returns correlate at +0.48, and the correlation of summed returns crosses from negative to positive at about 5.6 days. The crossover sits where n times 0.09 equals 0.5, about 5.6 days, so even weekly returns of five days would still show a slightly negative correlation, -0.03. A hedge sized on daily correlation can therefore fail at a monthly horizon, which is why a desk measures correlation at the frequency it actually holds risk. The other mechanisms worth naming are mean reversion in the spread between the two assets and stale prices that lag by a day; both also make correlation depend on frequency. The limitation of the example is the assumption that drift is constant inside a month and noise is independent from day to day.
Where candidates lose it
The common loss is saying it is impossible, or that it must be a data error, because correlation feels like a fixed property of two assets. It is a property of two assets at a horizon, and the interviewer wants the decomposition into a slow shared part and a fast opposing part.
The second is a hand-waved answer with no numbers. Build the five-day example in a minute, state that drift covariance scales with n squared and noise with n, and the explanation becomes checkable.
What the interviewer asks next
- What would make daily correlation positive but monthly correlation negative?
- How would you estimate the shared monthly drift from daily data?
- A pairs trader hedges at the daily beta and holds for a month. What goes wrong?
Asked at Squarepoint Capital, Hedge Fund, Montreal, 2024 (Wall Street Oasis):
correlation can be negative intra-month but positive across a year, how?
048Calls on the same stock and expiry are quoted: the 95 strike at 9.80 bid, 10.20 offered, and the 100 strike at 4.30 bid, 4.50 offered. Is there an arbitrage, and exactly how would you trade it?Wolverine Trading, Chicago, ILUSA · 2019
Try it first
What can you lock in, per spread, at these quotes?
Show the worked solution
Yes: sell the 95 call at 9.80 and buy the 100 call at 4.50, collecting 5.30 for a position that can never cost more than 5. A 95/100 call spread pays between 0 and the strike gap of 5 at expiry, so its price must sit between 0 and 5. The market lets you sell it for 5.30, which locks in at least 0.30 per spread, more if the stock ends below 100.
What is a 95/100 call spread worth at most?
Think of two coupons for the same shirt: one lets you buy it for Rs 950, the other for Rs 1,000. The first is worth more, but never by more than Rs 50, because the most it can save you over the second is the Rs 50 difference in price. Long the 95 call and short the 100 call pays the stock's rise above 95, capped once it reaches 100, so at expiry it is worth between 0 and the strike gap of 5. Anything that is certain to pay no more than 5 cannot be worth more than 5 today; with interest it is worth at most 5 discounted, slightly less.
Selling the 95 call at its 9.80 bid and buying the 100 call at its 4.50 offer collects 5.30 for a spread whose payoff is zero below 95 and capped at 5 above 100, so at least 0.30 is kept whatever the stock does at expiry. Which side of each quote do you trade at?
This is where the question is really won or lost. You sell at the bid and buy at the offer, so the spread you can sell is worth 9.80 - 4.50 = 5.30 to you, not the mid of 5.60. 5.30 is still above 5, so the bound is broken at prices you can actually deal at. Buying the spread would cost 10.20 - 4.30 = 5.90 for something worth at most 5, a certain loss, so only one direction works. Check the stock price cases: below 95 both calls expire worthless and you keep 5.30; at 97 you owe 2 on the short call and keep 3.30; at 100 or above you owe exactly 5 net and keep 0.30.
Stock at expiry Short 95 call pays Long 100 call receives Net owed You keep 90 0.00 0.00 0.00 5.30 95 0.00 0.00 0.00 5.30 97 -2.00 0.00 2.00 3.30 100 -5.00 0.00 5.00 0.30 110 -15.00 +10.00 5.00 0.30 The 5.30 collected less what the spread owes at expiry is never below 0.30, because the short 95 call and the long 100 call together never owe more than 5. The relationshipC(K) price of the call with strike K, same stock and expiry e^{-rT} discount factor to expiry; it makes the upper bound slightly below 5 What it says in wordsA call spread is worth between zero and the discounted strike gap; selling it for more than the gap is free money.What could stop the arbitrage from paying?
If the calls are American and the short 95 is exercised early, exercise the 100 call too: you pay the stock price minus 95 and receive the stock price minus 100, a net 5, and you already hold 5.30. The real frictions are fees, the margin the short call ties up, and the risk that the quote vanishes after you trade one leg. Trade both legs together as a spread order. On a real screen a 0.30 bound violation lasts seconds, which is why the interviewer is testing whether you can see it fast and name the side, not whether such quotes are common.
Where candidates lose it
The common loss is reasoning with mid prices: 10.00 - 4.40 = 5.60 and a claimed profit of 0.60. Nobody deals at mids; you sell at the bid and buy at the offer, and the honest edge is 0.30.
The second is getting the direction backwards and buying the spread because the 95 call looks cheap next to its payoff. Say the bound first, the spread is worth at most 5, and the direction follows: sell it.
What the interviewer asks next
- The 105 call is quoted 1.10 bid, 1.30 offered. Is there a butterfly arbitrage across 95, 100 and 105?
- What is the lower bound on the 95/100 call spread, and what quotes would break it?
- How does a dividend before expiry change the early-exercise argument?
Asked at Wolverine Trading, Prop Trading, Chicago, IL, USA, 2019 (Wall Street Oasis):
pricing options given an ask and a bid price for options with different strikes if you were to short one and long another
050A bus leaves the depot with some passengers. At stop 1 half of them get off; by stop 2 the number on board has grown by a third; at stop 3 half get off; by stop 4 the number has grown by a third again. There are now 16 people on board. How many started?Jane StreetNew York · 2026
Try it first
How many passengers started?
Show the worked solution
36 passengers started. Work backwards from 16 and undo each step with its inverse. Growing by a third multiplies by 4/3, so undo it by multiplying by 3/4: 16 becomes 12. Undo half getting off by doubling: 24. Then 3/4 again: 18. Double again: 36. Forwards it checks: 36, 18, 24, 12, 16.
Why work backwards instead of setting up an equation?
Retracing your route to find a dropped wallet works because you know where you ended up. Here you know the final count and every step, so the cheapest route is to run the film in reverse. Each step is a multiplication, so each can be undone by multiplying by its reciprocal, starting from the 16 and moving toward the depot. An equation also works, 4x/9 = 16, but the backward chain shows every intermediate count, which lets you check that each one is a whole number of people.
Going forward the count is multiplied by 1/2, 4/3, 1/2 and 4/3 to reach 16; going backward from 16 the inverses 3/4, 2, 3/4 and 2 give 12, 24, 18 and finally 36 passengers at the depot. What is the inverse of growing by a third?
This is the step that catches people. Growing by a third means the new count is 4/3 of the old one. To undo a rise of a third you multiply by 3/4, which removes a quarter of the new number, not a third of it. Taking a third off 16 gives 10.67, which is not a whole person and is a red flag on its own. Multiplying by 3/4 gives 12, and 12 grown by a third is 16 again, so the step checks.
The relationshipx passengers leaving the depot 1/2 half get off 4/3 the count grows by a third 4/9 the net factor over all four stops What it says in wordsFour multiplications compound into one factor of 4/9, so the start is 16 divided by 4/9.The whole-number check also tells you what starting counts are possible at all. Every intermediate count, x/2, 2x/3, x/3 and 4x/9, must be a whole number, so x must be a multiple of 18. A free consistency check is worth saying aloud: 36 is a multiple of 18, and every count on the way, 18, 24 and 12, is whole. The same structure appears on a desk whenever a number passes through several percentage changes: a price up 10% and then down 10% ends at 99% of where it began, and undoing a change always means dividing by the factor, never subtracting the percentage.
Where candidates lose it
The common loss is undoing the growth by taking a third off the later number, which gives 10.67 and stalls. A third of the earlier count is a quarter of the later one, so the inverse is multiplying by 3/4.
The second is doing the steps in the wrong order when working backwards. The last thing that happened is the first thing to undo: start with the growth at stop 4, then the halving at stop 3.
What the interviewer asks next
- What is the smallest number of passengers the bus could have started with for every count to be whole?
- If the pattern repeats for eight stops and 64 people are left, how many started?
- A stock rises a third and then falls a quarter. Where does it end?
Asked at Jane Street, Technology, New York, 2026 (Wall Street Oasis):
x amount of people in the bus. 1/2 got off, 1/3 get in , and so on and so forth
051You and a friend agree to meet at a spot some time between 5 and 6 pm. Each of you arrives at an independent, uniformly random time in that hour and waits 20 minutes for the other before leaving (or until 6 pm, whichever comes first). What is the probability you meet?Jane StreetNew York · 2026
Try it first
Before you draw anything: what is the chance you meet?
Show the worked solution
5/9, about 55.6%. Put your arrival time on one axis and your friend's on the other, so every outcome is a point in a unit square. You meet when the two times differ by at most a third of an hour, a band along the diagonal. The two corner triangles outside the band each have legs of 2/3, area 2/9, so the band is 1 - 4/9 = 5/9.
Why turn two arrival times into a square?
Think of two people trying to catch each other at a tea stall with no phones. Nothing about the answer depends on who is you and who is the friend; it depends only on the pair of times. With two independent uniform times, every pair is equally likely, so the pair is a point spread evenly over a square and any probability is simply an area. The event you meet becomes a region: the set of points where the two times are within 20 minutes of each other. That region is a diagonal band, because the line x = y is where you arrive together.
Plotting your arrival against your friend's, the meeting region is the diagonal band where the times differ by 20 minutes or less; the two white corner triangles, each 2/9 of the square, are the misses, so you meet with probability 5/9. How do you get the area without any integration?
Count the region you do not want. The two corners where one person arrives more than 20 minutes after the other are right triangles with both legs 40 minutes long, which is 2/3 of the side. Each has area (2/3) x (2/3) / 2 = 2/9, together 4/9, so the band is 5/9. Complements are the fastest route here, as they are for most geometric probability questions, because the leftover pieces are usually triangles.
The relationshipX, Y the two arrival times as fractions of the hour, independent and uniform on 0 to 1 w the waiting time as a fraction of the hour, here 20 of 60 minutes What it says in wordsThe chance of meeting is one minus the two corner triangles, whose legs are each one minus the waiting time.What does the general formula tell you that the number does not?
Read 2w - w squared term by term. The 2w is the naive answer of either person waiting, and the minus w squared removes the double count and the clipping at the edges of the hour. It also tells you how waiting time buys certainty: to meet half the time each person must wait about 17.6 minutes, and to be sure each must wait the whole hour. The same picture prices any tolerance between two random arrivals, such as two orders landing in the same matching window of an auction.
Where candidates lose it
The common answer is 1/3, from reading 20 minutes as a third of the hour. It ignores that either person can be the one who waits, and it has no way to handle the edges of the hour, where a person arriving at 5:55 can only wait five minutes.
The second trap is trying to integrate over one person's arrival time case by case near the edges. It works but wastes three minutes. Draw the square first and subtract the two triangles out loud.
What the interviewer asks next
- How long would each person need to wait for a 50% chance of meeting?
- You wait 10 minutes and your friend waits 30. What is the chance now?
- Three people arrive at random in the hour and each waits 20 minutes. What is the chance all three are together at some moment?
Asked at Jane Street, Technology, New York, 2026 (Wall Street Oasis):
1v1 math problems. bus stop. two people meeting probelm
053Five assets each have unit variance, and every pair has correlation 0.4. What are the eigenvalues of the correlation matrix, and what share of total variance does the first principal component explain?Jump TradingPudong Xinqu · 2023
Try it first
Before any algebra: what share of variance does the first component explain?
Show the worked solution
One eigenvalue of 2.6 and four of 0.6, so the first principal component explains 52%. Write the matrix as 0.6 times the identity plus 0.4 times a matrix of ones. The all-ones vector is an eigenvector with eigenvalue 0.6 + 5 x 0.4 = 2.6; any vector whose weights sum to zero is killed by the ones matrix and has eigenvalue 0.6. The trace check: 2.6 + 4 x 0.6 = 5.
What structure should you spot before touching a determinant?
Think of five students whose marks all move together when the paper is hard, plus their own good and bad days. There is one shared shock and five private ones. An equicorrelation matrix is exactly that: R = (1 - rho) I + rho J, where J is the matrix of all ones, so its eigenvectors are those of J and you never need a characteristic polynomial. J sends the all-ones vector to 5 times itself and sends any vector whose entries sum to zero to zero. Those two facts give every eigenvalue.
The 5 by 5 matrix with 0.4 off the diagonal has one eigenvalue of 2.6, carried by the equal weight portfolio and explaining 52% of the variance, and four eigenvalues of 0.6, carried by long short combinations and explaining 12% each. How do the eigenvalues fall out, and how do you check them?
Apply R to the all-ones vector: each row sums to 1 + 4 x 0.4, so the equal weight portfolio has eigenvalue 1 + (n - 1) rho = 2.6. Apply R to any vector with weights summing to zero, such as long asset 1 and short asset 2: the rho J part vanishes and only (1 - rho) = 0.6 is left, and there are four independent such vectors. The eigenvalues must add to the trace, the sum of the diagonal, which is 5: 2.6 + 2.4 = 5.
The relationshiprho the common pairwise correlation, 0.4 n the number of assets, 5 1 1^T the all-ones matrix J What it says in wordsA common correlation creates one large factor for the average and leaves every long short combination with the same small variance.What does the answer say about a real portfolio?
The first component is the market: equal weights, and its share rises towards rho as you add assets. With 50 assets at the same correlation the first eigenvalue is 1 + 49 x 0.4 = 20.6, 41.2% of the total, while each of the other 49 stays at 0.6. Diversification removes the private shocks but never the common one. The same formula gives a limit: the smallest eigenvalue 1 - rho is always fine, but 1 + (n - 1) rho must stay positive, so five assets cannot all share a correlation below -0.25.
Where candidates lose it
The loss is trying to expand a 5 by 5 determinant by hand. It is slow, error prone and signals that you did not see the structure. The interviewer is waiting for identity plus ones matrix.
The second trap is reading 40% as the explained share because the correlation is 0.4. The share is (1 + (n - 1) rho)/n, which is 52% here and only approaches rho as n grows.
What the interviewer asks next
- What is the most negative common correlation five assets can have?
- What are the eigenvectors of the four 0.6 eigenvalues, and why are they not unique?
- If one asset is removed, what share does the first component explain?
- How would you spot a second factor, such as a sector, in the eigenvalues?
Asked at Jump Trading, Prop Trading, Pudong Xinqu, 2023 (Wall Street Oasis):
Some very difficult linear algebra questions about PCA and eigenvalues
055In how many ways can three positive integers, in order, sum to 10? To 11? Give the general formula for any total n of at least 3.Old Mission CapitalNew York · 2018
Try it first
How many ordered triples of positive integers sum to 10?
Show the worked solution
36 for 10, 45 for 11, and (n - 1)(n - 2)/2 in general. Write n as a row of n stars. Splitting it into three positive parts means placing two bars in two different gaps among the n - 1 gaps between stars. Each choice gives exactly one ordered triple, so the count is n - 1 choose 2: 9 choose 2 = 36 and 10 choose 2 = 45.
Why turn the sum into a row of stars?
Think of ten sweets in a line to be shared among three children in order, each getting at least one. You do not need to decide amounts; you only need to decide where to cut the line. Every ordered split of n into three positive parts is exactly one choice of two cut points among the n - 1 gaps between items, and every choice of two gaps gives a valid split. That one-to-one match is the whole argument, and it is what the interviewer wants to hear you state.
Ten stars have nine gaps between them; putting bars in two different gaps, here gaps 3 and 7, splits the stars into 3, 4 and 3, so the ordered triples summing to 10 number 9 choose 2, which is 36, and those summing to 11 number 45. What if the interviewer meant something slightly different?
Ask two quick questions before you answer: are zeros allowed, and does order matter. The word numbers hides three different questions, and each has a different count. If zeros are allowed, add one to each part first so they become positive and sum to n + 3: for 10 that is 12 choose 2 = 66. If order does not matter, the count for 10 drops to 8 unordered triples, and for 11 to 10, which you would list rather than compute. Asking which one is wanted takes five seconds and is part of the answer.
The relationshipn - 1 the number of gaps between n stars 2 the number of bars needed to make three parts What it says in wordsChoose two of the gaps between the stars; each choice is one ordered triple.How do you check 36 without the formula?
Fix the first number and count the rest. If the first part is a, the other two must sum to 10 - a, which can be done in 9 - a ordered ways. For a from 1 to 8 that is 8 + 7 + ... + 1 = 36. The counts for each total are the triangular numbers 1, 3, 6, 10 and so on, which is the same formula read another way.
Where candidates lose it
The fast wrong answer comes from listing unordered triples such as 1, 1, 8 and 2, 3, 5, getting 8, and not noticing the question counts order. The opposite slip is counting zeros and getting 66.
Both are avoided by one clarifying question at the start. Then give the stars and bars picture in a sentence, because the interviewer's next question is usually four or five parts.
What the interviewer asks next
- How many ways can four positive integers sum to 10?
- How many ordered triples of non-negative integers sum to 10?
- How many ordered triples of positive integers sum to 10 with every part at most 5?
Asked at Old Mission Capital, Finance, New York, 2018 (Wall Street Oasis):
In how many ways can you have three numbers that sum to 10? What about 11?
056You roll a fair die until each of 2, 4 and 6 has appeared at least once. Given that the last even number to make its first appearance was 2, what is the probability that the very first roll was a 1? Why is it not 1/5?Squarepoint CapitalLondon · 2026
Try it first
Given that 2 was the last even to show up, what is the chance the first roll was a 1?
Show the worked solution
1/6, the same as with no information. An odd first roll says nothing about the order in which 2, 4 and 6 first appear, so it is independent of 2 finishing last. A first roll of 4 or 6 raises the chance 2 is last from 1/3 to 1/2, so conditioning on that ending shifts weight onto 4 and 6, which rise to 1/4 each. The odd faces keep 1/6 each; 1/5 wrongly spreads the weight evenly.
Why does the ending tell you anything about the start?
Suppose you hear that a friend reached a party last. That makes it a little more likely they left home late, because leaving late and arriving last go together. It says nothing about whether they wore a blue shirt, which has no bearing on arrival order. Conditioning on an outcome reweights every starting state by how likely that state makes the outcome, and a state that does not affect the outcome keeps its original probability. Here the outcome is 2 finishing last among the evens; the question is which first rolls make that more or less likely.
A first roll of 1, 3 or 5 leaves 2 a one in three chance of finishing last, a first roll of 4 or 6 raises it to one in two, and a first roll of 2 makes it impossible, so given that 2 finished last the odd faces are worth 1/6 each and 4 and 6 are worth 1/4 each. How do the numbers work out with Bayes?
Odd rolls never change which new even appears next, so only the order of first appearances matters, and without information it is a random ordering of three: 2 is last with chance 1/3. If the first roll is 4, then 2 and 6 are left to race, and each is equally likely to show first, so 2 ends last with chance 1/2. Now weigh: each face has prior 1/6. The joint chance of first roll 1 and 2 last is 1/6 x 1/3 = 1/18; of first roll 4 and 2 last, 1/6 x 1/2 = 1/12. The total is 1/3, so first roll 1 has posterior (1/18)/(1/3) = 1/6 and first roll 4 has (1/12)/(1/3) = 1/4.
The relationship1/6 the prior chance of any face on the first roll 1/3 the chance 2 is last when the first roll is odd, and also overall 1/2 the chance 2 is last when 4 or 6 is already seen What it says in wordsAn odd first roll is independent of the ending and keeps 1/6; the even faces 4 and 6 absorb the weight that 2 loses.Where does the 1/5 intuition go wrong?
It treats the information as simply ruling out one face and renormalising the rest. Ruling out an outcome and conditioning on an event are the same thing only when every remaining outcome makes the event equally likely, and here they do not. A check: the posteriors 1/6, 1/6, 1/6, 1/4, 1/4 and 0 add to 1, while five faces at 1/5 would give 4 and 6 the same weight as 1. On a desk this is the error of reading a trade's outcome as if it said nothing about which signal triggered it.
Where candidates lose it
Nearly everyone's first answer is 1/5. The interviewer is not testing the arithmetic; the question itself says it is not 1/5 and asks you to explain why, so an answer that only produces 1/6 without the reason loses most of the credit.
The second trap is getting lost in the odd rolls. They can be ignored completely, because they never change which even appears next. Say that early and the problem shrinks to the order of three numbers.
What the interviewer asks next
- Given that 2 finished last, what is the probability the first roll was a 4?
- What is the expected number of rolls until all three evens have appeared?
- Given that 2 finished last, what is the probability the first even to appear was 4?
Asked at Squarepoint Capital, Quant Research Intern Interview, London, 2026 (Wall Street Oasis):
why is the probability of seeing a 1 on our first roll, given that we end on a 2, not 1/5

