NewTurn any lesson into a live trading bot with one prompt, using AgenKitagenkit.xyz

Part 6 · Interview prep

The question bank

50 questions reported from interviews at 9 trading firms, from the Quant Bible. Try each one before opening the hint. Every answer has been checked by exact calculation or simulation; 24 of them come with a simulator you can run yourself. Where the original had a slip (9 cases), the corrected answer is shown with a note.

Showing all 50 questions

Jane StreetCombinatorics
There are 10 people in a room. How many ways are there to choose three of them?
Jane StreetExpected valueSimulator
We play a game with one six-sided die. (a) You are paid the number you roll. What is a fair price? (b) Now you may re-roll once, keeping the second roll. What is a fair price?
Jane StreetExpected valueSimulator
Same game, but a re-roll now costs $1. What is a fair price?
Jane StreetExpected valueCorrectedSimulator
Same game, but you may re-roll as many times as you like, paying $1 each time. What is the optimal strategy and the fair price?
Jane StreetExpected valueSimulator
Rank by expected value: the product of two dice, the square of one die, and the square of the median of five dice.
Jane StreetExpected valueCorrectedSimulator
You roll a 100-sided die once for a fixed price, then may re-roll as often as you like for $1 each. When you stop you get the face shown. What is the optimal strategy, and the fair fixed price?
Jane StreetGames & strategy
You and I each roll a hidden die. A third party puts the sum in a jar. We take turns either raising the bid on the jar by a positive integer or passing. When someone passes, the last bidder pays their bid and receives the jar. What is your strategy?
Jane StreetMarket making
Make me a market on the number of magazines in the Airbnb I’m staying in.
Jane StreetMarket making
Make markets on dice games: the product of a d6 and a d12; the maximum of a d3, a d4 and a d8. The interviewer will take one side of each, but chooses which.
Jane StreetGames & strategy
Virtual ski-ball: for each hole you know the probability of scoring if you aim at it. You watch an opponent’s strategy for 5 practice rounds, then bet chips on one 10-throw round against them (win and double your stake, lose and lose it). Strategies seen: always aim at the 10-point hole (100% success); aim at the 100-point hole until it hits, then switch to 10s.
Jane StreetGames & strategy
There are 10 coins: 9 of unknown bias (you are given the distribution the biases come from) and 1 known to be fair. You pay 50 chips to play and get 100 flips; each head pays 1 chip. Should you play? You can track each coin’s heads, tails and flip count. Design an exploration–exploitation strategy.
Jane StreetGames & strategy
You and the interviewer take turns: throw a chip at a wall, or pass. If both pass in a row, whoever threw the chip closest to the wall (over all throws) wins 20 chips; the other gets nothing. Thrown chips aren’t returned. (Virtually, throws were two unknown random-number generators giving a distance.)
Jane StreetStatistics
and . What are the best bounds on ?
Jane StreetProbability
ants are equally spaced around a circle, each facing clockwise or anticlockwise at random. All walk at one revolution per minute; when two meet, both turn around. After one minute, what is the probability every ant is back in its own starting spot?
Jane StreetProbabilityCorrectedSimulator
Bag A has 8 blue and 4 red balls; bag B has 4 blue and 8 red. You pick a bag at random and draw 3 balls without replacement: 2 blue and 1 red. What is the probability you picked bag B?
Virtu FinancialProbability
There is a 40% chance of rain on Saturday and 70% on Sunday. What is the probability it doesn’t rain all weekend? State your assumptions, then give bounds without them.
Virtu FinancialProbabilitySimulator
20 points are spread at random on a circle. Choose 4 of them at random and label them A, B, C, D. What is the probability chords AB and CD intersect?
Virtu FinancialProbability
A 4-engine plane crashes if 3 or more engines fail; a 2-engine plane crashes if both fail. Each engine fails independently with probability . Is either plane always safer? For which are they equally safe?
Virtu FinancialExpected valueSimulator
You flip a coin until the first head and are paid the number of flips. Fair price? What if you’re paid ? What would you actually pay?
Virtu FinancialProbabilitySimulator
Your camera holds one photo (a new photo replaces the old). You walk past a row of houses of unknown length, with a Uniform(0, 1) generator. Design a strategy so that at the end every house is equally likely to be the one in memory.
Virtu FinancialExpected valueSimulator
Start with . Repeatedly pick a number uniformly at random from what’s left and discard it and everything above it, until you pick 0. What is the expected number of picks?
Virtu FinancialRegression
How do you test whether the slope in a simple linear regression is significant? And how do you stop a regression with many covariates from overfitting?
Virtu FinancialAlgorithmsCorrected
Design a data structure that keeps the minimum SPX price over the last 30 minutes. Prices arrive at random times; queries for the minimum also arrive at random times.
OptiverStatistics
Mental maths: estimate to two decimal places without a calculator.
OptiverStatistics
Work starts at 9:00. Your last five commutes took 20, 40, 35, 15 and 25 minutes. Assuming commutes are normal, when must you leave to be on time 95% of the time? To leave later with the same reliability, would you rather cut the mean or the standard deviation by a minute?
OptiverCombinatorics
Consider arrangements of the letters ABCD. In how many are exactly 1, 2, 3 and 4 letters out of their original place?
OptiverCombinatorics
A batter has 100 at-bats, a .300 average and a .500 slugging percentage. (a) What is the most singles possible? (b) With no home runs, how many hit combinations are possible? (c) Generalise to at-bats.
Akuna CapitalProbabilitySimulator
Draw i.i.d. Uniform(0, 1) numbers. What is the probability their sum is at most 1?
Akuna CapitalProbabilityCorrectedSimulator
Using a fair coin, simulate three outcomes with probability 1/3 each. In general how many flips do you need for equally likely outcomes? If you only need one event of probability 1/3, what is the smallest expected number of flips?
CitadelProbabilitySimulator
Two ants start at opposite vertices of an octahedron. Ant A moves to a random neighbouring vertex (probability 1/4 each), then ant B does the same, and so on, until one ant moves onto the other’s vertex. If A moves first, what is the probability A is the one to land on B?
CitadelExpected valueSimulator
and , independent. What is ?
CitadelCombinatoricsSimulator
You deal 6 sets of 3 cards from a standard deck (18 cards in total). What is the probability that exactly one ace is among them?
CitadelProbabilitySimulator
100 passengers board a 100-seat plane in order. Passenger 1 is drunk and sits in a random seat. Each later passenger takes their own seat if it’s free, otherwise a random free seat. What is the probability passenger 100 gets their own seat?
CitadelAlgorithms
Find the largest elements of an array of size . What is the most efficient approach?
CitadelAlgorithms
Count the pairs of elements in an array that sum to .
CitadelAlgorithms
Given half an hour of stock prices, find the maximum profit from one buy followed by one sell (no shorting).
CitadelRegressionCorrected
In simple regression, is the slope from regressing on and is the slope from regressing on . Bound .
CitadelStatistics
A sequence is i.i.d. with mean and variance . Replace it by its differences . What are the mean and variance of the new terms?
Hudson River TradingProbabilitySimulator
and are i.i.d. standard normal. What is ?
Hudson River TradingProbabilitySimulator
and are i.i.d. standard normal. What is ?
Hudson River TradingExpected value
You note the height of the first person to walk by, then count how many more people pass before someone is taller. What is the expected count?
Hudson River TradingExpected valueSimulator
Keep adding Uniform(0, 1) draws to a running total starting at 0. What is the expected number of draws until the total exceeds 1?
Two SigmaCombinatorics
1,000 bottles of wine, one poisoned. A rat that drinks any poison dies within an hour. With 10 rats and one hour, how do you find the bottle? What is the most bottles you can handle with rats? With hours?
Two SigmaExpected valueCorrectedSimulator
Build a sequence of die rolls: on a 1, stop; on an even number, append it and continue; on a 3 or 5, throw the whole sequence away and start again. What is the expected length of the final sequence (including the 1)?
Five RingsProbabilitySimulator
A knockout tournament randomly pairs the remaining teams each round (with a random bye if the number is odd). All teams are equally good. Teams A and B are in it. What is the probability they play each other with 8 teams? 9 teams? teams?
Five RingsProbabilityCorrectedSimulator
A drawer holds pairs of socks labelled 1 to . You draw two socks at a time, without replacement, until the drawer is empty. A pair is satisfactory if its labels differ by at most 1. You win if every pair is satisfactory. What is the win probability for ? For general ?
Five RingsGames & strategyCorrected
You and the interviewer take opposite sides of the sock game at even odds, and you have $100. How much do you bet in a single round? If you can play forever, what is your betting strategy?
SIGProbabilitySimulator
Paint the outside of a 3×3×3 cube red and cut it into 27 unit cubes. Pick one at random and roll it: the top face is red. What is the probability it came from a corner?
SIGProbabilitySimulator
You have $1 and your opponent has $2. Each game you each bet $1; you win each game with probability 2/3. You play until someone is broke. What is the probability you win?
SIGExpected value
A stock trades at $10. There is a 50% chance of a takeover. Without one, it goes to $5 (40%) or $0 (60%). With one, it goes to $15 (80%) or $ (20%). Ignoring the time value of money, what would you pay for the right to buy the stock at $22 once everything settles?