You roll a pair of fair dice. How likely is a total of 10 or more?
Show answer
Answer:61
Sums of 10, 11, 12 occur in 3+2+1=6 ways out of 36.
4EasyType asked atXTX MarketsTwo SigmaJ.P. Morgan
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 atIMCOptiverBarclays
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 atTwo SigmaHudson River TradingCitadel
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 atSIGD. E. ShawG-Research
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.
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 atIMCD. E. ShawBarclays
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.
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 atJump TradingIMCJ.P. Morgan
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 atHudson River TradingSIGGoldman Sachs
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.
PDF · Edition 2 · £79
The Quant Careers Report
Probability runs through every trading interview. The report sets out how 13 firms interview, the pay they state for interns and graduates, and when to apply, with worked questions in their styles.
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 atXTX MarketsSIGMillennium
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 atCitadelSquarepointHudson River Trading
How many rolls of a fair die do you expect to need until every face has appeared at least once?
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 atG-ResearchXTX MarketsD. E. Shaw
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 atHudson River TradingGoldman SachsJ.P. Morgan
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 atFive RingsXTX MarketsBarclays
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 atHudson River TradingSIGJ.P. Morgan
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 atTwo SigmaMillenniumMorgan Stanley
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 atXTX MarketsDRWBarclays
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 atSquarepointJane StreetIMC
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?
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 atSIGOptiverG-Research
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 atDRWJane StreetD. E. Shaw
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 atMorgan StanleyG-ResearchHudson 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 atDRWD. E. ShawMorgan Stanley
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 atJump TradingBarclaysJane Street
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 atHudson River TradingJ.P. MorganD. E. Shaw
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 atMorgan StanleyD. E. ShawSquarepoint
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.
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 atG-ResearchBarclaysOptiver
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 atFive RingsDRWJ.P. Morgan
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 StreetGoldman SachsD. E. Shaw
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 atJ.P. MorganTwo SigmaMorgan Stanley
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 atJ.P. MorganTwo SigmaBarclays
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 atMillenniumFive RingsD. E. Shaw
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 atIMCSIGD. E. Shaw
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 atHudson River TradingD. E. ShawOptiver
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 atIMCFive RingsD. E. Shaw
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 StreetIMCJ.P. Morgan
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.
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.
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 atFive RingsDRWTwo Sigma
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 StreetD. E. ShawIMC
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 atBarclaysOptiverXTX Markets
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 atG-ResearchCitadelMorgan Stanley
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 atSquarepointHudson River TradingTwo Sigma
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 atDRWMillenniumGoldman Sachs
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 atHudson River TradingBarclaysJane Street
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 atIMCGoldman SachsSquarepoint
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.
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 atG-ResearchXTX MarketsOptiver
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 atSIGJump TradingSquarepoint
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 atFive RingsJ.P. MorganMorgan Stanley
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 atHudson River TradingJane StreetG-Research
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 atFlow TradersSquarepointDRW
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 atJ.P. MorganBarclaysTwo Sigma
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 atHudson River TradingGoldman SachsD. E. Shaw
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 atDRWHudson River TradingBarclays
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.
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.
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.
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 atD. E. ShawIMCMillennium
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 atHudson River TradingJump TradingD. E. Shaw
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 StreetXTX MarketsCitadel
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].
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 atD. E. ShawG-ResearchXTX Markets
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 atD. E. ShawMillenniumOptiver
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 atXTX MarketsJ.P. MorganCitadel
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 atFive RingsMillenniumJane Street
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 atGoldman SachsMillenniumSIG
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.
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 atHudson River TradingJ.P. MorganBarclays
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 atJump TradingOptiverD. E. Shaw
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 atMillenniumD. E. ShawOptiver
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 atTwo SigmaFive RingsDRW
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 atBarclaysXTX MarketsSquarepoint
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 atGoldman SachsMillenniumSIG
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 atDRWOptiverBarclays
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.
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 atMorgan StanleyDRWD. E. Shaw
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.
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 atG-ResearchGoldman SachsJ.P. Morgan
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 atIMCJump TradingTwo Sigma
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 atDRWCitadelSquarepoint
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 atSIGFlow TradersJ.P. Morgan
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 atHudson River TradingCitadelBarclays
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 atMorgan StanleyHudson River TradingTwo Sigma
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 atHudson River TradingFive RingsTwo Sigma
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.
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.
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 atCitadelTwo SigmaXTX Markets
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 atTwo SigmaFlow TradersJ.P. Morgan
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 atJ.P. MorganFlow TradersJane Street
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 atDRWCitadelHudson 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 atSquarepointMillenniumMorgan Stanley
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 atCitadelMillenniumFlow Traders
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 atBarclaysTwo SigmaOptiver
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 atDRWMorgan StanleyFive Rings
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 atG-ResearchBarclaysOptiver
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 atSIGD. E. ShawFlow Traders
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.
123MediumType asked atSquarepointHudson River TradingMorgan Stanley
Three fair dice are rolled. What is the expected value of the smallest of the three numbers?
Show answer
Answer:2449≈2.04
For a non-negative integer variable, E[M]=∑k≥1P(M≥k). The minimum is at least k when all three dice are, which has probability (67−k)3. So E[M]=216216+125+64+27+8+1=216441=2449.
124EasyType asked atDRWGoldman SachsMillennium
An integer is chosen at random from 1 to 100. What is the probability that it shares no common factor greater than 1 with 100?
Show answer
Answer:52
100=22⋅52, so the number must avoid both 2 and 5. Euler's totient: 100(1−21)(1−51)=40 such numbers, probability 10040.
125HardType asked atFive RingsOptiverBarclays
A fair coin is tossed 100 times. What is the expected value of ∣H−T∣, the absolute difference between the numbers of heads and tails? Give your answer to two decimal places.
Show answer
Answer:≈7.96
Exactly, E∣H−T∣=2100100(50100)≈7.959. The fast estimate: H−T is a sum of 100 independent ±1 steps, so it is roughly normal with standard deviation 10, and E∣N(0,σ2)∣=σ2/π≈10×0.798=7.98. Interviewers usually want the second line; the first shows you know it is approximate.
126HardType asked atIMCBarclaysMillennium
A fair die is rolled until the running total is at least 7. What is the expected number of rolls? Give your answer to two decimal places.
Show answer
Answer:(67)6≈2.52
Let En be the expected number of rolls to reach a total of at least n, with En=0 for n≤0. Conditioning on the first roll, En=1+61(En−1+⋯+En−6). For 1≤n≤7, subtracting the equation for n−1 gives En=67En−1, and E1=1. So E7=(67)6≈2.52.
A fair die is rolled until the running total is at least 100. Approximately how many rolls does this take on average? Give your answer to one decimal place.
Show answer
Answer:≈29.0
By Wald's identity, E[SN]=3.5E[N], where SN is the total at the stopping roll. That total overshoots 100 by about 2E[X]E[X2]+E[X]−1=791/6+7/2−1=35 on average. So E[N]≈3.5100+5/3≈29.05; the exact value agrees to three decimal places. Dividing 100 by 3.5, about 28.6, misses the overshoot.
128MediumType asked atOptiverFive RingsMorgan Stanley
What is the probability that a five-card poker hand is a full house?
Show answer
Answer:41656≈0.00144
Choose the rank for the three, 13 ways, and its suits, (34)=4. Then the rank for the pair, 12 ways, and its suits, (24)=6. That is 13⋅4⋅12⋅6=3,744 hands out of (552)=2,598,960, which is 41656.
Two fair dice are rolled and their sum is 8. What is the expected value of the first die?
Show answer
Answer:4
By symmetry the two dice have the same conditional expectation, and they add to 8, so each is 4. Listing the five outcomes, (2,6), (3,5), (4,4), (5,3), (6,2), confirms it.
130MediumType asked atFive RingsBarclaysSIG
Ten fair dice are rolled. What is the variance of their total?
Show answer
Answer:6175≈29.17
One die has variance E[X2]−E[X]2=691−449=1235. Independent variances add: 10×1235=6175.
131MediumType asked atJump TradingIMCMorgan Stanley
Two fair dice are rolled. What is the probability that the product of the two numbers is a perfect square?
Show answer
Answer:92
The six doubles give squares, and so do (1,4) and (4,1). No other pair works: the product would need every prime to an even power. That is 8 of 36 outcomes, 92.
132MediumType asked atOptiverSquarepointMorgan Stanley
Four numbers are drawn independently and uniformly from [0,1]. What is the expected value of the second smallest?
Show answer
Answer:52
The four numbers cut [0,1] into five gaps, and by symmetry each has expected length 51. The second smallest sits at the end of the second gap: 52. In general the k-th smallest of n has mean n+1k.
133HardType asked atIMCJump TradingTwo Sigma
X and Y are independent and uniform on [0,1]. What is the covariance of max(X,Y) and min(X,Y)?
Show answer
Answer:361
max⋅min=XY, so E[max⋅min]=E[X]E[Y]=41. With E[max]=32 and E[min]=31, the covariance is 41−92=361. Positive, because a high minimum forces a high maximum.
X is exponential with rate 1 and Y is exponential with rate 2, independent. What is P(X>Y)?
Show answer
Answer:32
For independent exponentials, the probability that Y comes first is its share of the total rate: 1+22=32. Think of two independent alarm clocks; the faster one rings first two times in three.
A fair die is rolled four times. What is the probability that the largest number rolled is exactly 5?
Show answer
Answer:14441≈0.285
All four rolls at most 5 minus all four at most 4: (65)4−(64)4=1296625−256=1296369=14441.
136HardType asked atG-ResearchSIGXTX Markets
Three numbers are drawn independently and uniformly from [0,1]. What is the probability that the largest and the smallest differ by at most 21?
Show answer
Answer:21
For n uniform points the range R satisfies P(R≤a)=nan−1−(n−1)an. With n=3 and a=21: 43−41=21. One way to derive it: fix which point is smallest (3 choices) and its position m; the other two must land in [m,min(m+a,1)].
137MediumType asked atSquarepointHudson River TradingGoldman Sachs
A fair die is rolled until both a 1 and a 6 have appeared. What is the expected number of rolls?
Show answer
Answer:9
Waiting for the first of the two faces takes 26=3 rolls on average. After that you need the other face specifically, which takes 6 more on average. 3+6=9.
138MediumType asked atDRWGoldman SachsMillennium
A standard 52-card deck is shuffled and dealt face up, one card at a time. What is the expected position of the first ace?
Show answer
Answer:553=10.6
The four aces cut the 48 other cards into five gaps: before the first ace, between consecutive aces, and after the last. By symmetry the five gaps have the same expected size, 548=9.6. The first ace comes straight after the first gap, at position 9.6+1=10.6. In general, with n cards of which k are marked, the first marked card is expected at position k+1n+1.
A shuffled deck of 26 red and 26 black cards is turned over one card at a time. At any moment before the last card you may say "stop", and you win if the next card turned over is red; if you never stop, you are betting on the last card. With the best possible strategy, what is your probability of winning?
Show answer
Answer:21
Let Xt be the fraction of red cards among those not yet turned. If you stop at time t you win with probability Xt. Turning one more card does not change its expectation: E[Xt+1∣now]=Xt, so Xt is a martingale. By optional stopping, every strategy, however clever, wins with probability E[X0]=21. A shorter way to see it: saying "the next card is red" wins in exactly the same deals as saying "the last card is red", and the last card is red with probability 21. Waiting for the remaining deck to turn red-heavy does not help: the deals in which it does are exactly offset by those in which the reds run out first.
You may draw up to three numbers, each uniform on [0,1] and independent. After each draw you either stop and receive that number, or discard it and draw again; the third draw must be kept. With the best strategy, what is your expected payoff?
Show answer
Answer:12889≈0.695
Work backwards. With one draw left the payoff is 21. With two left, keep the first draw exactly when it beats what continuing is worth, 21: the payoff is 21⋅43+21⋅21=85. With three left, keep the first draw when it exceeds 85: 83⋅1613+85⋅85=12839+12850=12889. The acceptance threshold is always the value of continuing, so it rises as more draws remain.
141HardType asked atMillenniumJ.P. MorganCitadel
A coin lands heads with probability 32. It is tossed until the number of heads first exceeds the number of tails by 2. What is the expected number of tosses?
Show answer
Answer:6
Let m be the expected time for the lead H−T to rise by one from any level; by the same reasoning at every level it is the same number. One toss either succeeds, or drops the lead by one, after which it must rise by two: m=1+31⋅2m, so m=3. Rising by two takes 2m=6. As a check, H−T drifts up by p−q=31 per toss, and Wald's identity gives 31E[T]=2. With a fair coin the same argument gives m=1+m: the walk still reaches +2 with probability 1, but the expected time is infinite.
A permutation of 1,2,…,6 is chosen uniformly at random. What is the expected number of cycles, counting fixed points as cycles of length 1?
Show answer
Answer:H6=2049=2.45
Build the permutation by placing 1,2,…,6 in turn. Element k either starts a new cycle of its own or is inserted directly after one of the k−1 elements already placed, in that element's cycle: k choices, all equally likely, and every permutation arises from exactly one sequence of choices. Element k starts a new cycle with probability k1, so the expected number of cycles is 1+21+⋯+61=2049. For large n this is about lnn+0.577: a random permutation of a million elements has only about 14 cycles.
A fair die is rolled repeatedly and the running total is kept. What is the probability that the running total is ever exactly 10?
Show answer
Answer:≈0.289
Let pn be the probability that the total ever equals n, with p0=1 and pn=0 for n<0. To land on n the total must land on n−k for some k∈{1,…,6} and then roll k, and these routes are disjoint, since the total just before n is unique. So pn=61(pn−1+⋯+pn−6), which gives p6=61(67)5≈0.360 and p10=6046617617492167≈0.289. For large n, pn→3.51=72: the totals advance 3.5 at a time on average, so they land on about one integer in 3.5.
144HardType asked atIMCXTX MarketsMorgan Stanley
Numbers are drawn one at a time, independently and uniformly from [0,1], until a draw is smaller than the one before it. What is the expected number of draws, including the last?
Show answer
Answer:e≈2.718
Let N be the number of draws. N>n exactly when the first n draws are in increasing order, and since all n! orders are equally likely that has probability n!1. Then E[N]=∑n≥0P(N>n)=1+1+2!1+3!1+⋯=e. The identity E[N]=∑P(N>n) for a non-negative integer N is the step to remember; it turns many waiting-time questions into a single sum.
145MediumType asked atG-ResearchSIGXTX Markets
A frog sits on one vertex of a regular hexagon. Each minute it jumps to one of the two neighbouring vertices with equal probability. What is the expected number of jumps until it first reaches the opposite vertex?
Show answer
Answer:9
Only the distance to the target matters. Let Ed be the expected time from distance d. From 3 every jump leads to distance 2: E3=1+E2. E2=1+21(E3+E1) and E1=1+21E2. Substituting, E2=2+43E2, so E2=8 and E3=9. On a cycle of n vertices the expected time to cover a distance k is k(n−k), here 3⋅3.
146MediumType asked atIMCDRWMillennium
An urn holds 5 red and 5 blue balls. Balls are drawn without replacement until both colours have appeared. What is the expected number of draws?
Show answer
Answer:38
Say the first ball is red; 4 red and 5 blue remain. A given one of the remaining reds is drawn before every blue with probability 61, since it is equally likely to be first among itself and the five blues. So the expected number of further reds before the first blue is 4⋅61=32. The total is the first ball, those reds and the first blue: 1+32+1=38. Indicators of this kind, one per ball, are the quickest route through most without-replacement questions.
Each entry of a 2×2 matrix is 0 or 1, independently with probability 21. What is the probability that the matrix is invertible?
Show answer
Answer:83
The determinant is ad−bc. Each product is 1 with probability 41, and the two products are independent. The matrix is singular when ad=bc: both 1 with probability 161, both 0 with probability 169. So it is invertible with probability 1−1610=83. For n×n matrices of random signs the probability of being singular goes to 0 as n grows, a theorem that took decades to sharpen.