Buku ini belum tersedia dalam Bahasa Indonesia. Edisi: English, Français.
Interviews I: Maths, Probability and Speed · Karier
29Timed Test 6
Take it in one sitting, without notes or a calculator.
Section A — 6 questions, 40 minutes
Question 29.1
A rook and a king stand on two different random squares of an 8 by 8 chessboard. What is the probability that the rook attacks the king, ignoring any blocking? What is the probability that the king attacks the rook, meaning that they stand on neighbouring squares, including diagonals?
Answer
Answer to Question 29.1.
The rook attacks with probability , and the king with probability .
A rook attacks the same 14 squares wherever it stands: 7 in its row and 7 in its column. The other piece is on one of the 63 remaining squares, so the chance is .
A king’s reach depends on where it stands. There are 4 corners with 3 neighbours, 24 edge squares with 5, and 36 inner squares with 8. The neighbouring ordered pairs total , out of . So the chance is . An enumeration confirms both.
Classic wrong answer. Using 8 neighbours everywhere, which gives . It ignores that the board’s edge cuts off about a fifth of those neighbours, since 28 of the 64 squares have fewer than 8.
Question 29.2
Four teams play a round robin: each pair meets once, and each game is a fair coin flip with no draws. What is the probability that some team wins all its games? What is the probability that some team wins all and some team loses all?
Answer
Answer to Question 29.2.
The first probability is , and the second is .
One team wins its 3 games with chance . Two teams cannot both do so, because they meet. So these events are disjoint, and the sum is .
For the second, choose the winner and the loser, in ordered ways. Together, these two teams play 5 distinct games, as their match counts once. So each ordered choice has chance . These events are disjoint too, which gives .
An enumeration over all outcomes confirms both. With teams, the first chance is , which goes to 0 quickly, as it should.
Classic wrong answer. Using , which treats the four events as independent. They exclude each other, so the plain sum is exact.
Question 29.3
A 52-card deck is shuffled. What is the expected position of the first ace? What is the probability that the first two cards have the same rank?
Answer
Answer to Question 29.3.
The expected position is , and the probability is .
The 4 aces split the 48 other cards into 5 gaps. By symmetry, all gaps have the same expected size, . The first ace comes after the first gap, so its position has mean .
Whatever the first card is, 3 of the remaining 51 cards share its rank, and .
A simulation agrees with both. As a limit, with 48 aces and 4 other cards, the same rule gives , just above 1, as it should be.
Classic wrong answer. Answering 13, the deck size over the number of aces. This is the spacing between aces if the deck is a circle, and it ignores the gap after the last ace, which also takes its share.
Question 29.4
A stock is at 50, and in one period it will go to 65 or to 45. The interest rate is zero. What is a call with strike 50 worth? What position in the stock and cash replicates it? Does the value change if the stock goes up with a real probability of 90%?
Answer
Answer to Question 29.4.
The call is worth , replicated with of a share and in cash. A real probability of 90% does not change the value.
The call pays 15 or 0. Holding shares and cash , we need and . So and . The cost is .
As a second route, the risk-neutral probability makes the stock fair: , so , and the value is .
Any other price gives a free profit against the replicating portfolio, whatever the real odds. The real expected payoff of is not a price.
Classic wrong answer. Pricing at the real expected payoff. This is the usual error, and the replication shows why it fails.
Question 29.5
A shuffled deck holds 26 red cards and 26 black cards. What is the expected number of neighbouring cards of the same colour? Separately, what is the expected number of pairs of the same rank in a hand of 5 cards from a standard 52-card deck?
Answer
Answer to Question 29.5.
The expected number of neighbouring same-colour pairs is 25, and the expected number of pairs in a hand is .
Each of the 51 neighbouring positions has a same-colour pair with chance . Indicators add with no need for independence, so the mean is exactly 25.
In a hand, each of the pairs of cards has the same rank with chance . So the mean is .
A simulation returns 25.0 and . Note that a hand with three of a kind counts as 3 pairs here, and the indicators count it correctly.
Classic wrong answer. Using for the neighbouring pair, which gives . Having seen a red, there is one fewer red left.
Question 29.6
Each square of a 3 by 3 grid is coloured black or white with equal probability. What is the expected number of lines (rows, columns and the two diagonals) that have a single colour? How likely is it that one or more of the three rows have a single colour?
Answer
Answer to Question 29.6.
The expected number of lines is 2, and the probability is .
There are 8 lines. Each is single-coloured with chance . Indicators give , even though the lines overlap.
The three rows share no squares, so they are independent. No row is single-coloured with chance , and the answer is the complement.
An enumeration over the 512 grids confirms both. Only 32 of the 512 grids have no such line at all. Dependence moves the distribution of the count, but not its mean.
Classic wrong answer. Taking the chance of at least one line among all 8 as . The lines share squares, so they are not independent. Only the rows are.
Section B — 6 questions, 60 minutes
Question 29.7
Ten balls are thrown independently and at random into 10 bins. What is the expected number of empty bins? What is the probability that exactly one bin is empty? You may use and .
Answer
Answer to Question 29.7.
The expected number is about , and the probability is about .
A given bin is empty with chance . So the mean is , a little below the large- value of .
With exactly one empty bin, one bin has two balls and the other eight have one each. Choose the empty bin in 10 ways. Choose the two balls that share, in ways. Assign the 9 groups to 9 bins, in ways. So
A simulation confirms both figures. With empty bins on average, having only one is rare, and that is what this small value says.
Classic wrong answer. Multiplying by the chance that the rest are full, as if the bins were independent. Filling nine bins with ten balls uses a precise count instead.
Question 29.8
In the dice game of craps, you roll two dice. A total of 7 or 11 wins at once, and a total of 2, 3 or 12 loses at once. Any other total becomes your point, and you then roll until the point appears again (you win) or a 7 appears (you lose). What is the probability of winning?
Answer
Answer to Question 29.8.
The probability is .
The first roll wins at once with chance .
For a point with ways of rolling it, only the point or a 7 matters on later rolls. So the point comes first with chance . The points 4 and 10 have , 5 and 9 have , and 6 and 8 have . Thus
The bracket is . Adding all this up gives . A simulation gives . So the house edge is on an even-money bet.
Classic wrong answer. Using for the point’s chance on the later rolls. Rolls that show neither the point nor a 7 do not count.
Question 29.9
You hold 10 assets in equal weights. Each has a volatility of 20%, and every pair has a correlation of . What is the volatility of the portfolio? What does it tend to as the number of assets grows?
Answer
Answer to Question 29.9.
The volatility is about , and the limit is about .
For equally weighted assets with variance and correlation ,
With , the bracket is . So the variance is , and the volatility is .
As grows, the bracket tends to , which gives . This is the risk that diversification cannot remove.
A check at the limits: gives whatever is, and gives .
Classic wrong answer. Dividing by and stopping at , which needs independence. Most of the risk left comes from the common correlation.
Question 29.10
A stick of length 1 is cut at a uniform random point. Fix a point on the stick. What is the expected length of the piece that contains , as a function of ? Give it at and .
Answer
Answer to Question 29.10.
The expected length is , which is at and at .
If the cut falls left of , then the piece is , with length . If it falls right of , the piece is , with length . So
Limit check: at , the piece always starts at 0, and its length has mean , which matches. A simulation gives the two values.
Note that the piece containing a fixed point is longer than an average piece, . This is length-biased sampling, which also underlies the inspection paradox.
Classic wrong answer. Answering for all . The point is more likely to fall in the longer of the two pieces.
Question 29.11
A permutation of is chosen at random. What is the distribution of the length of the cycle containing element 1, and what is its mean? What is the probability that elements 1 and 2 lie in the same cycle?
Answer
Answer to Question 29.11.
The length is uniform on , with mean , and the probability is .
Follow element 1 under the permutation. It returns to itself on the first step with chance . If it does not, it does so on the next step with chance , and so on. The chance of a length is
So it is uniform. Given a length , element 2 is among the other members of the cycle with chance . Its mean over is .
A simulation agrees. A limit check: with , the two elements are together only under the swap, which has chance . The value does not depend on .
Classic wrong answer. Assuming that long cycles are rarer for a given element. A permutation has more short cycles than long ones, but a long cycle holds many more elements, and the two effects balance exactly.
Question 29.12
You have a fair five-sided die, numbered 1 to 5. Design a way to simulate a fair seven-sided die, and find the expected number of rolls per output. What is the lower bound from information?
Answer
Answer to Question 29.12.
Roll twice, keep 21 of the 25 outcomes, and repeat otherwise. That costs rolls per output, against a bound of .
Two rolls give 25 equally likely pairs. Give each of the 7 outputs three pairs, using 21 pairs, and start over on the other 4. Each output then has the same chance, so the result is fair.
Each attempt succeeds with chance , so the number of attempts is geometric with mean . Each attempt costs 2 rolls. A simulation returns .
Each output carries bits, and each roll bits, so no scheme can use fewer than rolls per output on average.
Classic wrong answer. Summing two rolls and reducing modulo 7. The sums are not equally likely, so the output is not fair, however it looks.
Follow-up. Can the 4 rejected outcomes be reused? Yes. They carry information: a rejected pair is a uniform draw from 4, which can seed the next attempt. This brings the cost closer to the bound.