95 free probability puzzles to practise for Graviton interviews, in the style the firm is known for.
What Graviton tends to ask
Quant hiring uses a proof-style written test and olympiad-style interviews: combinatorics, probability, combinatorial games and coin-pattern problems. Reported as harder than peers.
Graviton is known to ask this kind of question at this level. These are practice in that style, not questions it's known to have asked.
A city walk through one corner· difficulty 3 of 5You walk 6 blocks east and 4 blocks north, choosing uniformly among all shortest routes. What is the probability your route passes the…
A perfect record in a round robin· difficulty 3 of 56 equally strong players each play everyone else once; every game is a coin flip with no draws. What is the probability that someone wins…
A shootout after five kicks each· difficulty 3 of 5In a penalty shootout each team takes 5 kicks (ignore stopping early, which doesn't change the result). Team A scores each kick with…
Avoiding the roadworks· difficulty 3 of 5You walk 5 blocks east and 4 blocks north by a shortest route. The corner 2 blocks east and 2 blocks north of the start is closed for…
Buses on an uneven timetable· difficulty 3 of 5Buses leave a stop with gaps that alternate: 5 minutes, then 25 minutes, then 5, then 25, and so on (so the average gap is (5 + 25)/2).…
Calling in liar's dice· difficulty 3 of 5In liar's dice there are 10 dice hidden under cups. Someone bids that at least 3 of them show a six. If the dice are fair and independent,…
Collect every team card· difficulty 3 of 5Every cereal box contains one team card, equally likely to be any of the 10 teams, independently. What is the expected number of boxes you…
Collecting part of the set· difficulty 3 of 5Each packet holds one of 20 stickers, uniformly at random. How many packets do you open on average until you have 10 different stickers?…
Color runs in a deck· difficulty 3 of 5A deck of 26 red and 26 black cards is shuffled. A run is a maximal block of cards of one color. How many runs are there on average? Give…
Empty subway cars· difficulty 3 of 5A subway train has 8 cars. 8 passengers each board a car chosen uniformly at random, independently of each other. What is the expected…
First to draw an ace· difficulty 3 of 5Two players take turns drawing cards from a shuffled 52-card deck, Ana first. Whoever draws the first ace wins. What is the probability…
Five in a row· difficulty 3 of 5You're dealt 5 cards. What is the probability they form five consecutive ranks (a straight, flushes included; the ace counts high or low,…
Flopping a set· difficulty 3 of 5You hold a pocket pair in Texas hold'em. What is the probability that the three-card flop contains at least one more card of your rank?
Grab a matching pair· difficulty 3 of 5A drawer holds 5 pairs of socks, every pair different, so 10 socks in all. In the dark you grab 4 socks at random, without replacement.…
Guess which is bigger· difficulty 3 of 5Two numbers are drawn independently and uniformly between 0 and 1. You see one at random and guess whether it's the larger: you say…
Heads in a row· difficulty 3 of 5You flip a coin that lands heads with probability 0.5, until you first get 2 heads in a row. What is the expected number of flips?
Heads, given there's at least one· difficulty 3 of 5You flip 3 fair coins and I tell you at least one is heads. How many heads are there on average, given that? Give a decimal.
Heads-heads against tails-heads· difficulty 3 of 5A fair coin is flipped until either HH or TH appears (two consecutive flips). Ana wins if HH comes first, Ben if TH does. What is the…
Hitting a blot in backgammon· difficulty 3 of 5In backgammon, an opponent's lone checker sits 6 pips from your checker, with nothing blocking the way. You can move one die's number, the…
How long until it's over· difficulty 3 of 5You have $3. You bet $1 at a time on flips of a fair coin: heads you win $1, tails you lose $1. You stop as soon as you have $10 or you go…
How many suits in your hand· difficulty 3 of 5You're dealt 5 cards from a shuffled 52-card deck. How many different suits are in your hand, on average? Give a decimal.
In-between· difficulty 3 of 5Two cards are turned up, each a rank from 1 to 13 equally likely (cards replaced). A third card wins if its rank is strictly between them.…
Keep or reroll· difficulty 3 of 5You roll a fair 6-sided die and are paid its face value. After each roll you may keep it, or roll again, up to 1 rerolls in total; you…
Match or beat your first roll· difficulty 3 of 5You roll an 6-sided die once, then keep rolling until you get a number at least as big as that first roll. How many more rolls does it…
Meeting in a knockout· difficulty 3 of 5A knockout tournament has 2^4 equally strong players placed in a random bracket, and each match is a coin flip. What is the probability…
Never going down· difficulty 3 of 5You roll a fair 6-sided die 4 times. What is the probability that no roll is smaller than the roll before it? Repeats are allowed, so 2,…
Nobody sits next to anyone· difficulty 3 of 53 people take seats at random in a row of 10 seats. What is the probability that no two of them sit next to each other?
Odd one out· difficulty 3 of 53 friends each flip a coin at once, repeating until exactly one person's coin differs from everyone else's: that person is out. How many…
One step from the edge· difficulty 3 of 5A walker stands one step from the edge of a cliff. Each step, independently, they move one step away from the edge with probability 2/3…
Pairs in a handful of socks· difficulty 3 of 5A basket holds 10 pairs of socks, all different. You grab 6 socks at random. How many complete pairs do you get on average? Give a decimal.
Players race to a six· difficulty 3 of 53 players take turns rolling a die, in a fixed order, and the first to roll a six wins. You roll in position 1. What is your chance of…
Points before doubles· difficulty 3 of 5You roll two dice repeatedly, adding the totals, and stop when you roll doubles (which scores nothing). What total do you reach on average?
Rolling a die with a coin· difficulty 3 of 5You want a fair roll of an 6-sided die but only have a fair coin. You flip it k times to get a binary number from 0 to 2^k − 1, with k as…
Rooms with exactly one guest· difficulty 3 of 510 guests are each sent to one of 10 rooms at random, independently. How many rooms end up with exactly one guest, on average? Give a…
Swapped pairs· difficulty 3 of 510 people put their names in a hat and each draws one at random (drawing your own is allowed). A swapped pair is two people who drew each…
The big wheel· difficulty 3 of 5A game-show wheel lands on 5, 10, …, 100 (20 values, equally likely). You spin once, and spin again if you got 50 or less, adding the two.…
The next number right after· difficulty 3 of 5The numbers 1 to 10 are shuffled into a row. How many times, on average, is a number immediately followed by the next number up (like 4…
The total before the first six· difficulty 3 of 5You roll an 6-sided die until it shows 6, adding up every roll before that one. What total do you reach on average?
The unlucky second seed· difficulty 3 of 5A badminton tournament has 16 players in a single-elimination draw, with the draw made completely at random (no seeding). The better…
Tiling a hallway· difficulty 3 of 5In how many ways can a 2 × 10 hallway be tiled with 2 × 1 tiles (each lying either way)?
Two adjacent bullets, no re-spin· difficulty 3 of 5A six-chamber cylinder holds two blank cartridges in adjacent chambers. It's spun once, then two players take turns pulling the trigger,…
Two who won't sit together· difficulty 3 of 58 guests sit around a round table; seatings that are rotations of each other count as the same. Two of them refuse to sit next to each…
Until both players get heads· difficulty 3 of 5Two players each flip their own coin (heads chance 0.5) every round, and each stops once they've flipped heads. How many rounds until both…
Waiting for another ace· difficulty 3 of 5You turn over the cards of a shuffled 52-card deck one by one. On average, at what position does ace number 2 appear? Give a decimal.
A battle in Risk· difficulty 4 of 5In Risk the attacker rolls 3 dice and the defender 2. Their highest dice are compared (and the second highest, if both rolled at least…
A bigger die in a race to three· difficulty 4 of 5Ana rolls a 8-sided die and Ben an ordinary 6-sided die each round; the higher roll scores a point and ties are replayed. The first to 3…
A flat bridge hand· difficulty 4 of 5You're dealt 13 cards. What is the probability your suits split 4-3-3-3 (four cards in one suit and three in each of the others)?
A flush in seven cards· difficulty 4 of 5From 7 random cards (your two plus the five on the board), what is the probability at least 5 share a suit?
A small edge, a big gap· difficulty 4 of 5You start with 5 chips. Each round you bet one chip on a game you win with probability 0.45: win and you gain a chip, lose and you lose…
Back after two passes· difficulty 4 of 510 people sit in a room. A random shuffle decides who passes a note to whom: everyone receives exactly one note, and someone may pass to…
Bank before a seven· difficulty 4 of 5You roll two dice repeatedly, adding each total to your score for the turn, but rolling a 7 wipes the turn's score and ends it. You bank…
Betting the don't pass· difficulty 4 of 5At craps the don't-pass bet wins on a first roll of 2 or 3, loses on 7 or 11, and ties on 12. Otherwise the total becomes the point, and…
Calling the next red card· difficulty 4 of 5Cards from a shuffled deck of 26 red and 26 black are turned one at a time. Once, before any card you like, you say 'the next one is red'…
Cards until a rank repeats· difficulty 4 of 5A deck has 13 ranks in 4 suits (13 × 4 cards), shuffled. You turn cards over until you see a rank you've seen before. How many cards do…
Drawing to seventeen· difficulty 4 of 5A dealer draws cards valued 1 to 10, each equally likely (an endless shoe), adding them up from 0 and stopping as soon as the total is 17…
Exactly k letters in the right envelope· difficulty 4 of 56 letters are put into their 6 addressed envelopes at random. What is the probability that exactly 2 of them land in the right envelope?
Guessing colors as the cards turn· difficulty 4 of 5A deck of 26 red and 26 black cards is shuffled. Before each card is turned over you guess its color, and you see each card after…
Handshakes that don't cross· difficulty 4 of 52·5 people sit around a round table. In how many ways can they all shake hands in pairs at the same time so that no two handshakes cross?
Hold or roll for twenty-one· difficulty 4 of 5You roll a die repeatedly, adding the faces. You may stop at any time and score your total, but going over 21 scores 0. Playing the best…
How far the newcomer is from the root· difficulty 4 of 5A tree grows one node at a time: node 1 is the root, and each new node k attaches to one of the k − 1 earlier nodes uniformly at random.…
How long a tennis game lasts· difficulty 4 of 5In a tennis game the server wins each point with probability 0.6, independently. The game goes to the first to 4 points, but must be won…
How long the first climb lasts· difficulty 4 of 5The numbers 1 to 10 are shuffled. Starting from the first, how long is the opening run in which each number is bigger than the one before,…
Leaves on a random family tree· difficulty 4 of 5A tree grows one node at a time: node 1 is the root, and each new node k attaches to one of the k − 1 earlier nodes chosen uniformly at…
No couple side by side· difficulty 4 of 54 married couples (8 people) sit down in a single row of 8 chairs at a wedding dinner, in a uniformly random order: all 8! seatings are…
Nobody draws themselves· difficulty 4 of 510 friends write their names on slips, put them in a hat, and each draws one slip at random for Secret Santa. What is the probability that…
Pig: holding at twenty· difficulty 4 of 5In Pig you roll a die repeatedly, adding the faces to your turn total; rolling a 1 wipes the turn total and ends your turn. You stop and…
Rerolling for a fee· difficulty 4 of 5Every roll of a die costs 50 cents. After each roll you may take its face value in dollars and stop, or pay to roll again, as often as you…
Rock-paper-scissors with a group· difficulty 4 of 53 friends play rock-paper-scissors to pick one winner, each choosing at random every round. If all three gestures appear, or only one, the…
Routes with diagonal shortcuts· difficulty 4 of 5On a grid you may step one block east, one block north, or one block diagonally northeast. How many routes go from one corner to the point…
Selling when each day costs· difficulty 4 of 5Offers for your house arrive one a day, each uniform from $0 to $100 thousand, and every day costs you $2 thousand. Rejected offers are…
Selling with a few offers· difficulty 4 of 5You'll receive 3 offers for your car, one at a time, each uniform between $0 and $100 (thousand). You must accept or reject each on the…
Skip the first few candidates· difficulty 4 of 510 candidates arrive in random order and you must accept or reject each on the spot. You reject the first 3, then accept the first one…
Splitting the stakes· difficulty 4 of 5A match is stopped early. Ana needs 2 more round wins and Ben needs 3; Ana wins each round with probability 0.5. To split the stakes…
The shortest piece· difficulty 4 of 5A stick of length 1 is cut at 3 − 1 points chosen uniformly at random, making 3 pieces. What is the expected length of the shortest piece?
Tic-tac-toe played at random· difficulty 4 of 5Two players play tic-tac-toe by choosing a random empty square every move, X first, until someone gets three in a row or the board fills.…
Triangles with whole-number sides· difficulty 4 of 5How many different triangles have whole-number side lengths and perimeter 20? (Triangles with the same three side lengths count once; they…
Two numbers with nothing in common· difficulty 4 of 5Two whole numbers are picked independently and uniformly from 1 to 100. What is the probability they have no common factor bigger than 1?…
Tying noodle ends into loops· difficulty 4 of 5A bowl holds 100 noodles. You repeatedly pick two loose ends at random and tie them together, until no loose ends are left. How many loops…
Waiting for an ace· difficulty 4 of 5A shuffled deck has 52 cards, 4 of which are aces. You turn cards over one at a time. What is the expected position of the first ace?
Winning a tiebreak· difficulty 4 of 5A tiebreak goes to the first player to 7 points, winning by 2 (from 6-6 it continues until someone leads by 2). You win each point with…
Ahead all night· difficulty 5 of 5In a two-candidate election, A receives 6 votes and B receives 4. The ballots are counted one at a time in a uniformly random order. What…
Chasing five of a kind· difficulty 5 of 5You roll five dice, set aside the most common face (any one, if tied), and from then on reroll only the dice that don't show it, setting…
Comparisons in quicksort· difficulty 5 of 5Quicksort sorts 10 different numbers: pick a random pivot, compare everything else to it, split, and repeat on each side. How many…
Consecutive numbers kept apart· difficulty 5 of 5The numbers 1 to 6 are shuffled into a row. What is the probability that no two consecutive numbers (like 3 and 4, in either order) end up…
Dice that multiply to a square· difficulty 5 of 5You roll 2 dice and multiply the faces. What is the probability the product is a perfect square?
Displaced by a lost boarding pass· difficulty 5 of 5100 passengers board a full plane in order. The first has lost their pass and sits in a random seat. Each later passenger takes their own…
Flip until everyone's out· difficulty 5 of 58 players each flip a coin every round. Anyone who flips heads is out; the rest play on. How many rounds does it take on average until…
Hire on the spot· difficulty 5 of 5You interview 10 candidates in random order and must decide on each one on the spot. Your rule: skip the first 3, then hire the first…
Necklaces from two colors of beads· difficulty 5 of 5A necklace has 6 beads in a circle, each black or white. Necklaces that are rotations of each other count as the same (flipping over does…
Red cards win, black cards lose· difficulty 5 of 5A deck of 5 red and 5 black cards is shuffled. You turn cards one at a time: each red wins you $1, each black loses $1, and you may stop…
Rolling while the dice climb· difficulty 5 of 5You roll an 6-sided die repeatedly, stopping at the first roll that is smaller than the one before it. How many rolls do you make on…
Stop on the last six· difficulty 5 of 5A die will be rolled 12 times, one roll at a time. Right after a six you may shout 'last!', once. You win if no six comes after that. If…
The longest piece· difficulty 5 of 5A stick 1 foot long is broken at 2 points, each chosen independently and uniformly at random along its length, giving 3 pieces. What is…
The truel· difficulty 5 of 5Ana, Ben and Cal take turns shooting in that order (skipping anyone hit). Ana hits with probability 30%, Ben with 60%, and Cal never…
The two matchboxes· difficulty 5 of 5A smoker carries two matchboxes, each starting with 20 matches. Each time, he picks a box at random and takes a match. The first time he…