1EasyType asked atJane StreetCitadelHudson River Trading
A fair coin is tossed three times. What is the probability of at least one head?
Show answer
Answer:87
The complement is three tails, probability 81. So 1−81=87.
2EasyType asked atJane StreetCitadelHudson River Trading
Two fair dice are rolled. What is the probability the sum is 7?
Show answer
Answer:61
Six of the 36 outcomes sum to 7: (1,6),(2,5),…,(6,1). So 6/36=61.
3EasyType asked atJane StreetCitadelHudson River Trading
Two fair dice are rolled. What is the probability the sum is at least 10?
Show answer
Answer:61
Sums of 10, 11, 12 occur in 3+2+1=6 ways out of 36.
4EasyType asked atJane StreetCitadelHudson River Trading
What is the expected value of one roll of a fair six-sided die?
Show answer
Answer:3.5
61(1+2+⋯+6)=621=3.5.
5EasyType asked atJane StreetCitadelHudson River Trading
How many rolls of a fair die do you expect to need to see the first six?
Show answer
Answer:6
The count is geometric with success probability p=61, so the mean is 1/p=6.
6MediumType asked atJane StreetCitadelHudson River Trading
How many rolls of a fair die do you expect to need to see two sixes in a row?
Show answer
Answer:42
Let E0 be the expected remaining rolls when the last roll was not a six, E1 when it was. Then E0=1+65E0+61E1 and E1=1+65E0. Substituting gives 361E0=67, so E0=42.
7MediumType asked atJane StreetCitadelHudson River Trading
How many tosses of a fair coin do you expect before you first see two heads in a row (HH)?
Show answer
Answer:6
With states "no progress" (E0) and "last toss H" (E1): E0=1+21E1+21E0, E1=1+21E0. Solving gives E0=6.
8MediumType asked atJane StreetCitadelHudson River Trading
How many tosses of a fair coin do you expect before you first see a head followed immediately by a tail (HT)?
Show answer
Answer:4
Wait for the first H (expected 2 tosses), then wait for the first T after it (another 2). Once you have an H, a later T always completes HT, so 2+2=4. It is less than HH because HT never loses progress.
9MediumType asked atJane StreetCitadelHudson River Trading
A family has two children, and at least one of them is a boy. What is the probability both are boys?
Show answer
Answer:31
Equally likely families: BB, BG, GB, GG. "At least one boy" removes GG and leaves three, of which one is BB.
10EasyType asked atJane StreetCitadelHudson River Trading
A family has two children and the older one is a boy. What is the probability both are boys?
Show answer
Answer:21
Only BB and BG remain possible, so the answer is 21. The information is about a specific child, which changes the conditioning.
11EasyType asked atJane StreetCitadelHudson River Trading
In the Monty Hall game you pick a door; the host, who knows where the car is, opens another door showing a goat and offers a switch. What is your probability of winning if you switch?
Show answer
Answer:32
Your first pick is right with probability 31. Switching wins exactly when it was wrong, which happens with probability 32.
12MediumType asked atJane StreetCitadelHudson River Trading
What is the smallest number of people needed for the probability that two share a birthday to exceed 21? (Ignore leap years.)
Show answer
Answer:23
P(all distinct)=∏k=0n−1365365−k first drops below 21 at n=23, where it is about 0.493.
13MediumType asked atJane StreetCitadelHudson River Trading
A stick of length 1 is broken at two points chosen independently and uniformly. What is the probability the three pieces form a triangle?
Show answer
Answer:41
A triangle forms iff every piece is shorter than 21. In the unit square of break points this region has area 41.
14MediumType asked atJane StreetCitadelHudson River Trading
X,Y are independent and uniform on [0,1]. What is E[max(X,Y)]?
Show answer
Answer:32
P(max≤t)=t2, so the density is 2t and E=∫012t2dt=32.
15EasyType asked atJane StreetCitadelHudson River Trading
X,Y are independent and uniform on [0,1]. What is E[min(X,Y)]?
Show answer
Answer:31
min+max=X+Y, so E[min]=1−32=31.
16MediumType asked atJane StreetCitadelHudson River Trading
Five numbers are drawn independently and uniformly from [0,1]. What is the expected value of the largest?
Show answer
Answer:65
For n uniforms E[max]=n+1n. The n points split [0,1] into n+1 gaps of equal expected length.
17MediumType asked atJane StreetCitadelHudson River Trading
X,Y are independent and uniform on [0,1]. What is E∣X−Y∣?
Show answer
Answer:31
∣X−Y∣=max−min, so E=32−31=31.
18MediumType asked atJane StreetCitadelHudson River Trading
Three points are placed independently and uniformly on a circle. What is the probability they all lie in some semicircle?
Show answer
Answer:43
For n points the answer is n/2n−1: each point can be the "first" of a clockwise semicircle containing the rest, with probability 2−(n−1), and these events are disjoint. For n=3, 43.
19HardType asked atJane StreetCitadelHudson River Trading
Four points are placed independently and uniformly on a circle. What is the probability they all lie in some semicircle?
Show answer
Answer:21
Using n/2n−1 with n=4 gives 4/8=21.
20MediumType asked atJane StreetCitadelHudson River Trading
How many rolls of a fair die do you expect to need until every face has appeared at least once?
21MediumType asked atJane StreetCitadelHudson River Trading
You start with £3 and bet £1 on each toss of a fair coin until you reach £10 or go broke. What is the probability you reach £10?
Show answer
Answer:0.3
Your wealth is a martingale; by optional stopping 10p=3, so p=0.3.
22HardType asked atJane StreetCitadelHudson River Trading
In the same game (start £3, stop at £0 or £10, fair coin), what is the expected number of tosses?
Show answer
Answer:21
Wn2−n is also a martingale, which gives E[T]=k(N−k)=3⋅7=21.
23HardType asked atJane StreetCitadelHudson River Trading
You start with £1 and bet £1 on a coin that lands heads with probability 0.6, until you reach £3 or go broke. What is the probability you reach £3?
Show answer
Answer:199
With r=q/p=32, P=1−rN1−rk=1−2781−32=19/271/3=199≈0.474.
24EasyType asked atJane StreetCitadelHudson River Trading
Two cards are drawn from a standard deck without replacement. What is the probability both are aces?
Show answer
Answer:2211
524⋅513=2211≈0.0045.
25MediumType asked atJane StreetCitadelHudson River Trading
What is the probability a five-card poker hand is a flush (including straight flushes)?
Show answer
Answer:≈0.00198
Choose a suit and five of its 13 cards: 4(513)=5148 hands out of (552)=2,598,960.
26MediumType asked atJane StreetCitadelHudson River Trading
What is the probability of at least one six in four rolls of a fair die?
Show answer
Answer:≈0.518
1−(65)4=1−1296625=1296671. This is the de Méré bet, slightly favourable.
27MediumType asked atJane StreetCitadelHudson River Trading
What is the probability of at least one double six in 24 rolls of two dice?
Show answer
Answer:≈0.491
1−(3635)24≈0.491. De Méré's second bet, slightly unfavourable.
28MediumType asked atJane StreetCitadelHudson River Trading
A disease affects 1% of a population. A test detects it 99% of the time and gives a false positive 5% of the time. Given a positive test, what is the probability of having the disease?
40HardType asked atJane StreetCitadelHudson River Trading
A needle of length 1 is dropped at random on a floor ruled with parallel lines 1 apart. What is the probability it crosses a line?
Show answer
Answer:π2≈0.637
Buffon: with centre distance x∼U[0,21] and angle θ∼U[0,2π], it crosses iff x≤21sinθ. The probability is π4∫0π/221sinθdθ=π2.
41MediumType asked atJane StreetCitadelHudson River Trading
A game pays 2n if the first head appears on toss n of a fair coin. What is the expected payout?
2
4
log2 of the stake
Infinite
Show answer
Answer: Infinite
∑n≥12n⋅2−n=∑1=∞. The St Petersburg paradox: nobody would pay very much, which is why utility and finite bankrolls matter.
42MediumType asked atJane StreetCitadelHudson River Trading
A coin is tossed until either HHH or THH appears. What is the probability HHH comes first?
Show answer
Answer:81
HHH wins only if the first three tosses are HHH. Any earlier T means that the first HH to follow completes THH before HHH can.
43MediumType asked atJane StreetCitadelHudson River Trading
How many tosses of a fair coin do you expect before you first see three heads in a row?
Show answer
Answer:14
For k heads in a row the answer is 2k+1−2; for k=3, 14.
44EasyType asked atJane StreetCitadelHudson River Trading
Customers arrive as a Poisson process at 2 per hour. What is the probability of no arrivals in a given hour?
Show answer
Answer:e−2≈0.135
P(N=0)=e−λt=e−2.
45EasyType asked atJane StreetCitadelHudson River Trading
A bulb's lifetime is exponential with mean 1000 hours. It has already lasted 500 hours. What is its expected remaining lifetime?
Show answer
Answer:1000 hours
The exponential distribution is memoryless, so the remaining life is again exponential with mean 1000.
46MediumType asked atJane StreetCitadelHudson River Trading
X,Y are independent Exp(1). What is E[max(X,Y)]?
Show answer
Answer:23
min is Exp(2) with mean 21; after it, by memorylessness, the other needs another 1 on average. 21+1=23.
47EasyType asked atJane StreetCitadelHudson River Trading
Z∼N(0,1). Approximately what is P(Z>1.96)?
Show answer
Answer:0.025
1.96 is the two-sided 95% point, so each tail holds 2.5%.
48MediumType asked atJane StreetCitadelHudson River Trading
X,Y are independent standard normals. What is corr(X,X+Y)?
Show answer
Answer:21≈0.707
cov=varX=1 and sd(X+Y)=2, so 1/2.
49HardType asked atJane StreetCitadelHudson River Trading
A stick is broken at a uniform point, then the longer piece is broken at a uniform point. What is the probability the three pieces form a triangle?
Show answer
Answer:2ln2−1≈0.386
The longer piece L is uniform on [21,1]. Breaking it at a, all three pieces are below 21 iff a∈(L−21,21), a window of length 1−L, so the conditional probability is L1−L. Then ∫1/212⋅L1−LdL=2ln2−1.
50MediumType asked atJane StreetCitadelHudson River Trading
A fair coin is tossed 10 times. What is the expected number of runs (maximal blocks of identical outcomes)?
Show answer
Answer:5.5
Runs =1+ number of changes between consecutive tosses. Each of the 9 adjacent pairs differs with probability 21: 1+29=5.5.
51EasyType asked atJane StreetCitadelHudson River Trading
A simple symmetric random walk starts at 0. What is the probability it is back at 0 after exactly 2 steps?
Show answer
Answer:21
It returns iff the two steps differ: UD or DU, 2 of 4 paths.
52EasyType asked atJane StreetCitadelHudson River Trading
Two cards are drawn from a deck without replacement. What is the probability they are of different suits?
Show answer
Answer:1713
Whatever the first card, 39 of the remaining 51 are another suit: 5139=1713.
53EasyType asked atJane StreetCitadelHudson River Trading
A fair coin is flipped until the first head appears. What is the expected number of flips?
Show answer
Answer:2
The count is geometric with p=21, so the mean is 1/p=2.
54MediumType asked atJane StreetCitadelHudson River Trading
Three fair dice are rolled. What is the probability that all three show different numbers?
Show answer
Answer:95≈0.556
636⋅5⋅4=216120=95.
55MediumType asked atJane StreetCitadelHudson River Trading
Two cards are drawn from a standard deck without replacement. What is the probability that both are hearts?
Show answer
Answer:171≈0.0588
5213⋅5112=41⋅174.
56MediumType asked atJane StreetCitadelHudson River Trading
X is uniform on [0,1]. What is E[X∣X>21]?
Show answer
Answer:43
Conditioned on X>21, X is uniform on (21,1), whose mean is the midpoint.
57MediumType asked atJane StreetCitadelHudson River Trading
A stick of length 1 is broken at a uniformly random point. What is the expected length of the longer piece?
Show answer
Answer:43
The longer piece is max(U,1−U), which is uniform on [21,1]: mean 43.
58MediumType asked atJane StreetCitadelHudson River Trading
Four people each take a hat at random from four hats. What is the probability that nobody takes their own?
Show answer
Answer:83
Derangements of 4 objects: D4=9 out of 4!=24.
59MediumType asked atJane StreetCitadelHudson River Trading
Two players take turns rolling a fair die, and the first to roll a six wins. What is the probability that the player who rolls first wins?
Show answer
Answer:116
Let p be the first player's chance. The first roll wins at once with probability 61; otherwise both players miss (probability 3625) and the game restarts. So p=61+3625p, giving p=116. Going first is worth about nine percentage points over a coin toss, which is why the order of play gets negotiated in real games.
60MediumType asked atJane StreetCitadelHudson River Trading
Ten balls are thrown independently into ten boxes, each ball landing in any box with equal probability. What is the expected number of empty boxes?
Show answer
Answer:10(0.9)10≈3.49
A given box stays empty with probability 0.910≈0.349. By linearity, the expected number of empty boxes is 10×0.349≈3.49. No box needs to be independent of any other for this to work, and they are not. Roughly a third of the boxes stay empty, close to the 1/e you get as the number of boxes grows.
61HardType asked atJane StreetCitadelHudson River Trading
Ten distinct numbers arrive one at a time in random order. A number is a *record* if it exceeds everything before it. What is the expected number of records?
Show answer
Answer:H10≈2.93
The k-th arrival is a record exactly when it is the largest of the first k, and by symmetry that happens with probability k1. The indicators are not independent, but expectation is additive regardless, so the mean is H10=1+21+⋯+101≈2.93. Records are logarithmically rare: a thousand numbers produce only about 7.5 of them, which is why "best so far" events feel so much scarcer than people expect.
62HardType asked atJane StreetCitadelHudson River Trading
You interview 100 candidates in random order and must accept or reject each on the spot, with no recalls. You reject the first r outright, then take the first candidate better than all of them. Which r maximises the chance of hiring the very best?
Show answer
Answer:r=37
Conditioning on the position k of the best candidate, the strategy succeeds when k>r and the best of the first k−1 lies in the rejected block, which has probability k−1r. Summing, P(r)=100r∑k=r+1100k−11≈xln(1/x) with x=r/100. That is maximised at x=1/e, giving r=37 and a success probability of about 37% — strikingly high for a problem where you see each candidate once.
63HardType asked atJane StreetCitadelHudson River Trading
How many tosses of a fair coin are expected before the pattern HTH first appears?
Show answer
Answer:10
Imagine a gambler arriving before every toss, betting £1 on H, then on T, then on H, doubling through and stopping on any loss. This is a fair game, so the casino's expected profit is zero: after E[T] tosses it has taken E[T] pounds in stakes and must pay out what the winners hold. When HTH completes, one gambler has run the full three-step parlay and holds £8, and one has just matched the trailing H and holds £2. So E[T]=8+2=10. The overlap is what costs you: HTH can begin again on its own last letter.
64HardType asked atJane StreetCitadelHudson River Trading
How many tosses of a fair coin are expected before the pattern HHT first appears?
Show answer
Answer:8
Same accounting as for HTH. When HHT completes, only the gambler who backed the whole pattern is still solvent, holding £8; nobody is mid-parlay, because a T cannot start HHT. So E[T]=8. Two patterns of the same length need not have the same waiting time — HHT has no self-overlap and so arrives sooner than HTH, which is the fact that makes the next problem possible.
65HardType asked atJane StreetCitadelHudson River Trading
Your opponent chooses the pattern HHT. You then choose your own three-toss pattern, and whichever appears first in a sequence of fair tosses wins. What is your winning probability under the best choice?
Show answer
Answer:43
Choose THH. For HHT to come first the sequence must open with HH, because any T before the first HH puts a T in front of a later HH and hands you THH. The opening HH has probability 41. So you win with probability 43. The game is non-transitive: every pattern has a beater, so the second player always has the advantage, and the first player's "strongest-looking" choice is irrelevant.
66HardType asked atJane StreetCitadelHudson River Trading
Draw numbers independently and uniformly from [0,1], adding them up, and stop as soon as the running total exceeds 1. How many draws are expected?
Show answer
Answer:e≈2.718
The sum of n independent uniforms is at most 1 exactly when the point (x1,…,xn) lies in the simplex xi>0,∑xi≤1, whose volume is n!1. So P(N>n)=n!1, and for a non-negative integer variable E[N]=∑n≥0P(N>n)=∑n≥0n!1=e. One of the few places e appears without a limit or a logarithm in sight.
67HardType asked atJane StreetCitadelHudson River Trading
Ten people leave identical hats at a cloakroom and receive them back at random. What is the probability nobody gets his own hat?
Show answer
Answer:≈0.3679
By inclusion–exclusion the number of permutations with no fixed point is n!∑k=0nk!(−1)k, so the probability is ∑k=010k!(−1)k≈0.36788. That is 1/e to five decimal places, and it is essentially constant from n=6 onwards — the answer does not care whether there are ten people or ten thousand.
68HardType asked atJane StreetCitadelHudson River Trading
A permutation of 1,2,…,10 is chosen uniformly at random. What is the probability that 1 and 2 lie in the same cycle?
Show answer
Answer:21
Follow the cycle through 1: 1→π(1)→π(π(1))→⋯. At each step the next element is uniform over those not yet visited plus the option of closing the cycle back at 1. By symmetry, 2 is equally likely to appear before the cycle closes as after it, so the answer is 21 for every n≥2. The same argument drives the 100-prisoners puzzle, where everything depends on cycle lengths.
69HardType asked atJane StreetCitadelHudson River Trading
100 prisoners are numbered 1 to 100. In a room are 100 closed boxes, each holding one of the numbers in random order. Each prisoner enters alone, may open 50 boxes, and must find his own number; all must succeed or all are executed. They may agree a strategy beforehand but cannot communicate once it starts. What is the best achievable success probability?
Show answer
Answer:≈31.2%
Each prisoner opens the box with his own number, then the box named by what he finds, and follows that chain. The arrangement is a permutation, and this chain is the cycle containing him, so he succeeds precisely when that cycle has length at most 50. Everyone succeeds together exactly when the permutation has no cycle longer than 50. A permutation of 2n has at most one cycle longer than n, and the probability of a cycle of length ℓ>n is ℓ1, so the failure probability is ∑ℓ=51100ℓ1=H100−H50≈0.6882. Success is ≈0.3118, against 2−100 for independent guessing. Correlating the failures, rather than reducing them, is the whole trick.
70HardType asked atJane StreetCitadelHudson River Trading
A stick of length 1 is broken at two independent uniform points. What is the expected length of the shortest of the three pieces?
Show answer
Answer:91
The three pieces are exchangeable, so think of the two break points as splitting a circle of circumference 1 at three points into three arcs — the standard trick is to note the shortest of n such spacings has mean n21. Directly: P(min>t)=(1−3t)2 for 0≤t≤31, so E[min]=∫01/3(1−3t)2dt=91. The middle piece averages 185 and the longest 1811, which sum to 1 as they must.
71MediumType asked atJane StreetCitadelHudson River Trading
Three points are chosen independently and uniformly on a circle. What is the probability the triangle they form is acute?
Show answer
Answer:41
An inscribed angle is obtuse exactly when its opposite arc exceeds a semicircle, and at most one of the three arcs can. So the triangle is right or obtuse precisely when the three points lie in some semicircle, which happens with probability 3/22=43. The triangle is acute with probability 41. Most random inscribed triangles are obtuse, which surprises people who picture the equilateral case.
72MediumType asked atJane StreetCitadelHudson River Trading
Three cards sit in a hat: one red on both sides, one white on both sides, one red on one side and white on the other. You draw one and see red. What is the probability the other side is red?
Show answer
Answer:32
Count faces, not cards. Three faces are red, and two of them belong to the double-red card, so the answer is 32. The intuitive "21" treats the two cards as equally likely once red is seen, but the double-red card had twice the chance of showing red in the first place.
73HardType asked atJane StreetCitadelHudson River Trading
A man has two children. At least one is a boy born on a Tuesday. What is the probability both are boys?
Show answer
Answer:2713
Label each child by sex and weekday: 14 equally likely types, 196 ordered pairs. Pairs with no Tuesday boy number 132=169, leaving 27. Of those, the both-boys pairs are the 142−132=27 minus... count directly: both boys with at least one Tuesday boy is 7⋅7⋅2−1⋅1=2⋅7−1=13 out of the 7 weekday choices each way, i.e. 13. So 2713≈0.481. The weekday looks irrelevant yet moves the answer from 31 towards 21, because the more specific the condition, the less it double-counts the two-boy case.
74HardType asked atJane StreetCitadelHudson River Trading
A fair die is rolled 10 times. What is the expected number of distinct faces seen?
Show answer
Answer:≈5.03
Face j fails to appear with probability (65)10, so it appears with probability 1−(65)10≈0.8385. Summing the six indicators gives 6(1−(65)10)≈5.03. Indicators plus linearity again sidestep the dependence entirely; trying to track the joint distribution of which faces appear is a great deal of work for the same number.
75MediumType asked atJane StreetCitadelHudson River Trading
Buses arrive as a Poisson process, on average one every 10 minutes. You arrive at the stop at a random moment. How long do you expect to wait?
Show answer
Answer:10 minutes
The exponential is memoryless: however long it has been since the last bus, the wait for the next is still exponential with mean 10. The gap you land in is not a typical gap — you are more likely to fall inside a long one — and in fact the gap containing you has mean 20, split into 10 behind and 10 ahead. That is the inspection paradox, and it is why the average passenger's wait exceeds half the average headway.
76MediumType asked atJane StreetCitadelHudson River Trading
X is exponential with mean 1. Given X>5, what is E[X]?
Show answer
Answer:6
Memorylessness: X−5 conditioned on X>5 is again exponential with mean 1, so E[X∣X>5]=6. The exponential is the only continuous distribution with this property, which is exactly why it models waiting times with no ageing.
77HardType asked atJane StreetCitadelHudson River Trading
b and c are independent and uniform on [0,1]. What is the probability x2+bx+c has real roots?
Show answer
Answer:121
Real roots require b2≥4c, i.e. c≤b2/4, which is at most 41 and so never clipped by c≤1. The area is ∫014b2db=121. A random quadratic with small positive coefficients almost always has complex roots — the discriminant is a demanding condition.
78MediumType asked atJane StreetCitadelHudson River Trading
n points are dropped independently and uniformly on [0,1]. What is the expected value of the k-th smallest?
Show answer
Answer:n+1k; for k=3,n=9, 0.3
The n points cut [0,1] into n+1 gaps which are exchangeable, so each has mean n+11. The k-th smallest point sits at the end of k of them, giving E=n+1k. With n=9 and k=3 that is 0.3. No integration required once you see the gaps are symmetric.
79HardType asked atJane StreetCitadelHudson River Trading
A random chord of a circle is drawn by picking its two endpoints independently and uniformly on the circumference. What is the probability it is longer than the side of the inscribed equilateral triangle?
Show answer
Answer:31
Fix the first endpoint and rotate the triangle so it sits there. The chord beats the triangle's side exactly when the second endpoint falls on the opposite third of the circumference, so the probability is 31. Choosing the chord by its midpoint instead gives 41, and by its distance from the centre gives 21 — Bertrand's paradox. "At random" is not a specification until you say which quantity is uniform.
80HardType asked atJane StreetCitadelHudson River Trading
In the casino game of craps you roll two dice. You win at once on 7 or 11 and lose at once on 2, 3 or 12. Any other total becomes your *point*, and you then roll until either the point repeats (win) or a 7 appears (lose). What is your probability of winning?
Show answer
Answer:495244≈0.4929
Immediate wins: 366+362=368. With point p, the duel between p and 7 is won with probability np+6np, where np is the number of ways to roll p. Points 4 and 10 give 93, 5 and 9 give 104, 6 and 8 give 115. Weighting by 36np and summing gives 495244≈0.4929 — a house edge of 1.41%, among the slimmest on the floor, which is precisely why the table is loud.
81MediumType asked atJane StreetCitadelHudson River Trading
Two fair dice are rolled repeatedly. What is the probability a total of 8 appears before a total of 7?
Show answer
Answer:115
Only rolls showing 7 or 8 matter; everything else is a repeat of the same question. There are 5 ways to make 8 and 6 to make 7, so the answer is 115. Conditioning on the relevant event and discarding the rest turns an infinite sum into a ratio.
82HardType asked atJane StreetCitadelHudson River Trading
An ant starts at one corner of a cube and each minute walks along a randomly chosen edge to an adjacent corner. How many minutes are expected before it first reaches the opposite corner?
Show answer
Answer:10
Group the corners by distance from the start: A (the start), B (three neighbours), C (three at distance 2), D (the far corner). From A you always go to B; from B, one third back to A and two thirds to C; from C, two thirds to B and one third to D. With a,b,c the expected times from each class, a=1+b, b=1+31a+32c, c=1+32b. Solving gives a=10. Lumping states by symmetry turns an eight-state chain into three equations.
83MediumType asked atJane StreetCitadelHudson River Trading
A fair coin is tossed 10 times. Given that at least one head appeared, what is the probability all ten were heads?
Show answer
Answer:10231
P(all heads)=2−10 and P(at least one head)=1−2−10=10241023, so the ratio is 10231. Conditioning removes exactly one of the 1024 sequences, and the answer is the reciprocal of what remains.
84HardType asked atJane StreetCitadelHudson River Trading
You are dealt 13 cards from a well-shuffled standard deck. What is the expected number of distinct suits in your hand?
Show answer
Answer:≈3.949
A named suit is void in your hand when all 13 cards come from the other 39, which has probability (1339)/(1352)≈0.01279. So each suit is present with probability ≈0.98721, and the four indicators sum to 4×0.98721≈3.949. Roughly one hand in 78 is missing a named suit, and about one in 20 is void in something — which is why bridge bidding spends so much effort on distribution.
85HardType asked atJane StreetCitadelHudson River Trading
Two people agree to meet between noon and one o'clock, each arriving at a uniformly random time and waiting exactly 15 minutes before leaving. What is the probability they meet?
Show answer
Answer:167
Plot arrival times in the unit square. They meet when ∣x−y∣≤41, a band about the diagonal. The two corner triangles outside it each have legs 43, so the miss probability is 2⋅21(43)2=169 and they meet with probability 167. A fifteen-minute grace period in a one-hour window buys less than even odds, which is worse than most people guess.
86HardType asked atJane StreetCitadelHudson River Trading
An urn holds one black and one white ball. You draw a ball at random, return it, and add another ball of the same colour. Repeat. After n draws, what is the probability that exactly k of them were black?
Show answer
Answer: Uniform: n+11; for n=4, 0.2
This is Pólya's urn. The probability of any particular sequence with k blacks and n−k whites is (n+1)!k!(n−k)! — it depends only on the counts, not the order, so the sequences are exchangeable. Multiplying by the (kn) orders gives n+11 for every k. The number of blacks is uniform on {0,1,…,n}: reinforcement makes the long-run fraction converge, but to a limit that is itself uniform on [0,1].
87HardType asked atJane StreetCitadelHudson River Trading
A random walk starts at 0 and each step moves +1 or −1 with equal probability. What is the probability it ever reaches +1?
Show answer
Answer:1
Let p be the probability. Conditioning on the first step, p=21+21p2, so (p−1)2=0 and p=1. The walk is recurrent: it reaches every level with certainty. The expected time to do so, however, is infinite — a distinction that catches people out, and the reason the "double until you win" system is not free money.
88MediumType asked atJane StreetCitadelHudson River Trading
In a room of 30 people, what is the expected number of pairs sharing a birthday? (Ignore leap years.)
Show answer
Answer:≈1.19
There are (230)=435 pairs, each matching with probability 3651, so the expectation is 365435≈1.19. The expected count passing 1 near n=28 is the honest reason the birthday paradox works: it is pairs that grow quadratically, not people.
89EasyType asked atJane StreetCitadelHudson River Trading
Three cards are drawn from a standard deck without replacement. What is the probability that all three are red?
Show answer
Answer:172
5226⋅5125⋅5024=172≈0.118. With replacement it would be 81=0.125; removing each red card makes the next one slightly less likely.
90EasyType asked atJane StreetCitadelHudson River Trading
A fair die is rolled twice. What is the probability that the second roll is strictly greater than the first?
Show answer
Answer:125
Six of the 36 outcomes are ties. The other 30 split evenly between "first larger" and "second larger" by symmetry, so the answer is 3615=125. Counting the ties first and using symmetry on the rest is faster than listing cases.
91EasyType asked atJane StreetCitadelHudson River Trading
A fair coin is tossed until both a head and a tail have appeared. What is the expected number of tosses?
Show answer
Answer:3
The first toss shows one face. From then on you wait for the other face, which takes a geometric number of tosses with mean 2. Total 1+2=3.
92MediumType asked atJane StreetCitadelHudson River Trading
A fair coin is tossed four times. What is the probability that no two consecutive tosses are both heads?
Show answer
Answer:21
Let an count length-n sequences with no HH. A valid sequence ends in T (any valid sequence of length n−1 before it) or in TH (any valid sequence of length n−2 before that), so an=an−1+an−2 with a1=2, a2=3. Then a3=5, a4=8, and 8/16=21. The counts are Fibonacci numbers, so the probability falls roughly like 0.81n.
93MediumType asked atJane StreetCitadelHudson River Trading
X and Y are independent and uniform on [0,1]. What is the probability that Y>X2?
Show answer
Answer:32
For fixed X=x, the chance that Y>x2 is 1−x2. Averaging over x: ∫01(1−x2)dx=1−31=32. Geometrically it is the area of the unit square above the parabola.
94MediumType asked atJane StreetCitadelHudson River Trading
X and Y are independent standard normal random variables. What is E[max(X,Y)]?
Show answer
Answer:π1≈0.564
max(X,Y)=21(X+Y)+21∣X−Y∣. The first term has mean 0. X−Y is normal with variance 2, and for W∼N(0,σ2), E∣W∣=σ2/π. So E[max]=2122/π=π1. Writing a maximum as mean plus half the absolute difference is a trick worth keeping.
95MediumType asked atJane StreetCitadelHudson River Trading
Z is standard normal. What is E[Z∣Z>0]?
Show answer
Answer:2/π≈0.798
E[Z1Z>0]=∫0∞zφ(z)dz=φ(0)=2π1, because φ′(z)=−zφ(z). Dividing by P(Z>0)=21 gives 2/π. This number reappears as the mean absolute deviation of a normal, and in the expected payoff of an at-the-money option.
96MediumType asked atJane StreetCitadelHudson River Trading
Two numbers are drawn independently and uniformly from [0,1]. What is the probability that the larger is more than twice the smaller?
Show answer
Answer:21
By symmetry, compute P(Y>2X) and double it. The region y>2x in the unit square is a triangle with vertices (0,0), (0,1), (21,1), area 41. Doubling gives 21.
97HardType asked atJane StreetCitadelHudson River Trading
A fair die is rolled until a six appears. Given that every roll in the sequence showed an even number, what is the expected number of rolls?
Show answer
Answer:23
The tempting answer is 3, from treating the die as a three-sided die {2,4,6}. That is wrong: the condition throws away every long sequence, because long sequences are much more likely to contain an odd number. Think of each roll as ending the experiment when it shows 1, 3, 5 or 6 (probability 32), and ask which of those endings happened. The number of rolls is geometric with success probability 32, independent of which ending occurred, so the conditional mean is 2/31=23. Conditioning on a rare event changes the distribution of everything it touches.
98EasyType asked atJane StreetCitadelHudson River Trading
Three friends each toss a fair coin; if exactly one shows a different face from the other two, that person pays. If all three match, they toss again. What is the expected number of rounds?
Show answer
Answer:34
All three match with probability 82=41, so each round settles it with probability 43. The number of rounds is geometric with mean 34.
99MediumType asked atJane StreetCitadelHudson River Trading
A bag holds two coins: one fair, one with heads on both sides. You pick one at random and toss it three times, getting three heads. What is the probability you picked the double-headed coin?
Show answer
Answer:98
Bayes: 21⋅1+21⋅8121⋅1=98. Each further head doubles the odds in favour of the double-headed coin: 1:1 before tossing, 8:1 after three heads.
100MediumType asked atJane StreetCitadelHudson River Trading
A fair coin is tossed five times. What is the probability of a run of at least three consecutive heads?
Show answer
Answer:41
Classify by where the first HHH starts. Starting at toss 1: HHH followed by anything, 4 sequences. Starting at toss 2: T then HHH then anything, 2 sequences. Starting at toss 3: ?THHH with the first toss free, 2 sequences. That is 8 of 32, or 41. Anchoring on the first occurrence, with a T just before it, is what prevents double counting.
101MediumType asked atJane StreetCitadelHudson River Trading
A point is chosen uniformly at random in a unit square. What is its expected distance to the nearest side?
Show answer
Answer:61
The distance to the nearer vertical side, U=min(x,1−x), is uniform on [0,21], and the same holds for the horizontal sides, independently. The minimum of two independent uniforms on [0,a] has mean 3a, so the answer is 21⋅31=61.
102MediumType asked atJane StreetCitadelHudson River Trading
What is the probability that a five-card poker hand contains exactly one pair and nothing better?
Show answer
Answer:≈0.423
Choose the pair's rank (13) and two of its suits ((24)=6). Choose three other ranks from the remaining 12 ((312)=220) and a suit for each (43=64). That gives 1,098,240 hands out of (552)=2,598,960, about 0.423. Choosing the three side ranks together, rather than one at a time, avoids counting each hand six times.
103MediumType asked atJane StreetCitadelHudson River Trading
A coin lands heads with probability 41. It is tossed three times. What is the probability of an even number of heads?
Show answer
Answer:169
Expand (q+p)n and (q−p)n: adding them keeps only the even powers of p, so P(even)=21(1+(q−p)n). Here q−p=21, giving 21(1+81)=169. The formula also shows why a fair coin gives exactly 21 for any n.
104HardType asked atJane StreetCitadelHudson River Trading
A coin lands heads with probability 31. To get a fair bit, you toss it in pairs: HT means 0, TH means 1, and HH or TT means toss another pair. What is the expected total number of tosses?
Show answer
Answer:29
A pair is decisive with probability 2pq=2⋅31⋅32=94. The number of pairs is geometric with mean 49, and each pair is two tosses, so 29. HT and TH each have probability pq, which is why the output is exactly fair whatever p is. The cost is the waste: the more biased the coin, the more pairs you discard.
105HardType asked atJane StreetCitadelHudson River Trading
A fair die is rolled 10 times. Let X be the number of ones and Y the number of sixes. What is the correlation of X and Y?
Show answer
Answer:−51
For a multinomial, Cov(X,Y)=−np1p6=−3610, and each variance is np(1−p)=3650. So the correlation is −5010=−51, independent of the number of rolls. The negative sign comes from competition for the same rolls: every six is a roll that could not have been a one.
106HardType asked atJane StreetCitadelHudson River Trading
A permutation of 1,…,10 is written in a row. An entry is a peak if it is larger than each of its neighbours (the two ends have only one neighbour). What is the expected number of peaks?
Show answer
Answer:311
An interior entry is a peak when it is the largest of three consecutive entries: probability 31. An end entry needs only to beat its one neighbour: probability 21. By linearity, 8⋅31+2⋅21=311. Linearity of expectation does not care that neighbouring peaks are dependent — two adjacent entries can never both be peaks.
107MediumType asked atJane StreetCitadelHudson River Trading
Two fair dice are rolled and you are told at least one shows a six. What is the probability that both show a six?
Show answer
Answer:111
Eleven of the 36 outcomes contain a six (6 with the first die, 6 with the second, minus the double counted (6,6)). Only one of them is (6,6), so 111. Being told "the red die shows a six" would give 61 instead. What you are told, and how, sets the conditioning.
108MediumType asked atJane StreetCitadelHudson River Trading
How many people must you meet, each with a birthday independent and uniform over 365 days, before the probability that at least one of them shares your birthday exceeds 21?
Show answer
Answer:253
You need 1−(365364)n>21, i.e. n>ln2/ln364365≈252.7, so 253. Compare 23 for "any two people share a birthday": there the number of pairs grows quadratically, while here every new person gives just one more chance to match a single fixed date.
109HardType asked atJane StreetCitadelHudson River Trading
100 passengers board a full plane one at a time. The first has lost their boarding pass and takes a seat uniformly at random. Each later passenger takes their own seat if it is free, and otherwise a free seat at random. What is the probability the last passenger gets their own seat?
Show answer
Answer:21
Only two seats matter: the first passenger's and the last passenger's. Whenever someone is forced to choose at random, they pick each free seat equally often, so they are as likely to take seat 1 (which settles everyone else into their own seats) as seat 100 (which dooms the last passenger). Any other choice just passes the problem on. So the process ends on seat 1 or seat 100 with equal probability: 21, for any number of passengers above one.
110HardType asked atJane StreetCitadelHudson River Trading
A stick of length 1 is cut at three points chosen independently and uniformly. What is the probability the four pieces can form a quadrilateral?
Show answer
Answer:21
Four lengths form a quadrilateral exactly when each is shorter than the other three together, i.e. shorter than 21. A given piece is at least 21 only if all three cuts fall on one side of a half-length stretch, probability (21)3. Two pieces cannot both be 21 or more, so these four events are disjoint: P(fail)=4⋅81=21. With n pieces the same argument gives 1−n/2n−1.
111HardType asked atJane StreetCitadelHudson River Trading
In an election, candidate A receives 6 votes and B receives 4. The ballots are counted one at a time in random order. What is the probability A is strictly ahead throughout the count?
Show answer
Answer:51
The ballot theorem gives a+ba−b=106−4=51. The reflection argument behind it: A must win the first ballot. Any count that starts with B and later ties can be matched, by swapping the ballots up to the first tie, with a count that starts with A and later ties, so bad counts starting with A are as many as all counts starting with B, which are 104 of the total. Good counts are therefore 106−104=51.
112HardType asked atJane StreetCitadelHudson River Trading
A permutation of 1,…,10 is chosen uniformly at random. What is the variance of the number of fixed points?
Show answer
Answer:1
Write X=∑i1i, where 1i says i is fixed. E[X]=n⋅n1=1. For the second moment, E[X2]=E[X]+∑i=jP(i and j fixed)=1+n(n−1)⋅n(n−1)1=2. So the variance is 2−1=1. Mean and variance both equal 1, as for a Poisson(1), which is the limiting distribution.
113MediumType asked atJane StreetCitadelHudson River Trading
A point is chosen uniformly at random inside a disc of radius 1. What is its expected distance from the centre?
Show answer
Answer:32
P(R≤r)=r2, the ratio of areas, so the density of R is 2r and E[R]=∫012r2dr=32. The answer is not 21: area grows with r, so points sit further out than a uniform radius would suggest.
114HardType asked atJane StreetCitadelHudson River Trading
Two points are chosen independently and uniformly on a circle of radius 1. What is the expected length of the chord joining them?
Show answer
Answer:π4≈1.273
Fix the first point. The angle θ to the second is uniform on [0,2π), and the chord is 2sin(θ/2). So E=2π1∫02π2sin2θdθ=2π1⋅8=π4. Reducing to one angle by symmetry is the whole trick.
115HardType asked atJane StreetCitadelHudson River Trading
X and Y are independent and uniform on [0,1]. What is the correlation between min(X,Y) and max(X,Y)?
Show answer
Answer:21
min⋅max=XY, so E[minmax]=41, and Cov=41−31⋅32=361. Each of min and max has variance 181 (both are Beta distributions with the same spread). The correlation is 1/181/36=21. The product identity min⋅max=XY saves an integral.
116HardType asked atJane StreetCitadelHudson River Trading
A fair die is rolled until a six appears. What is the expected sum of all the rolls before the six?
Show answer
Answer:15
The number of rolls before the six is geometric with mean 5. Each of those rolls, given it is not a six, is uniform on {1,…,5} with mean 3. By Wald's identity (a random number of i.i.d. terms, where the count is a stopping time), the expected sum is 5×3=15. Multiplying the two means is only valid because the count does not depend on future rolls.
117MediumType asked atJane StreetCitadelHudson River Trading
A fair die is rolled until two consecutive rolls show the same number. What is the expected total number of rolls?
Show answer
Answer:7
After the first roll, every new roll matches the one before it with probability 61, independently. So the wait is geometric with mean 6, plus the first roll: 7.
118HardType asked atJane StreetCitadelHudson River Trading
A coin has an unknown probability of heads, uniformly distributed on [0,1]. It is tossed three times and lands heads each time. What is the probability the next toss is heads?
Show answer
Answer:54
The posterior density of the bias p is proportional to p3. The chance of another head is ∫01p3dp∫01p4dp=1/41/5=54. This is Laplace's rule of succession, n+2k+1 after k successes in n trials. It is not 1, however many heads you see.
119HardType asked atJane StreetCitadelHudson River Trading
Ten people stand in a room. At a signal, each fires a water pistol at one of the other nine, chosen uniformly and independently. What is the expected number of people left dry?
Show answer
Answer:10(98)9≈3.46
A given person stays dry if none of the other nine aims at them. Each aims at them with probability 91, independently, so the chance is (98)9≈0.346. By linearity, 10×0.346≈3.46. The events for different people are dependent, and linearity does not care.
120MediumType asked atJane StreetCitadelHudson River Trading
Three numbers are drawn independently and uniformly from [0,1]. What is the probability their sum is less than 1?
Show answer
Answer:61
The region x+y+z<1 in the unit cube is a corner tetrahedron with volume 31⋅21⋅1=61. In general n uniforms sum to less than 1 with probability n!1, and summing those tail probabilities is where the e in "how many uniforms until the total exceeds 1" comes from.
121HardType asked atJane StreetCitadelHudson River Trading
A simple symmetric random walk starts at 0 and takes 10 steps. What is the expected number of times it returns to 0 (not counting the start)?
Show answer
Answer:256437≈1.71
A return can happen only at an even time 2k, with probability (k2k)/4k. Summing for k=1,…,5 by linearity: 21+83+165+12835+25663=256437. The terms shrink like 1/πk, so the expected number of returns grows like n: infinite in the limit, which is recurrence again.
122MediumType asked atJane StreetCitadelHudson River Trading
Three fair dice are rolled in order. What is the probability the three numbers are strictly increasing?
Show answer
Answer:545
Every set of three different numbers can be written in increasing order in exactly one way, so count the sets: (36)=20 of the 216 outcomes, or 545.