本书暂未推出简体中文版。现有版本:English, Français。
Interviews I: Maths, Probability and Speed · 职业发展
27Timed Test 4
Take it in one sitting, without notes or a calculator.
Section A — 6 questions, 40 minutes
Question 27.1
A drawer holds 5 pairs of different socks. You take out 4 socks at random. What is the probability that no two of them match? What is the probability of exactly one matching pair?
Answer
Answer to Question 27.1.
No match has probability , and exactly one pair has probability .
Taking the socks one at a time, the first can be anything. The second must avoid its partner: 8 of 9 remain. The third must avoid two partners: 6 of 8. The fourth must avoid three: 4 of 7. The product is .
Exactly one pair: choose the pair, in 5 ways, then 2 of the other 4 pairs, and one sock from each: , out of . That gives .
Two pairs have ways, or , and the three cases sum to 1, a useful check.
Classic wrong answer. Counting ordered draws in one place and unordered ones in another, which is the usual way to get the second figure wrong.
Question 27.2
, and are independent exponential variables with mean 1. What is the probability that ?
Answer
Answer to Question 27.2.
The probability is .
Given , we have . So the answer is . And . The result is .
A second route uses a race. Think of three exponential clocks. The first ring among and is with chance . By the memoryless property, starts anew. Then must also beat it, again with chance . That gives . A simulation confirms this.
Follow-up. What is ? .
Question 27.3
Fit a straight line by least squares to the three points , and . Give the intercept, the slope and the .
Answer
Answer to Question 27.3.
The slope is , the intercept is , and .
The means are and . Then and . So the slope is . The line passes through the means, so the intercept is .
The total sum of squares is , and the explained part is . So .
The residuals are , and . They sum to 0, and they are orthogonal to , as they must be. That catches any slip.
Classic wrong answer. Forcing the line through the origin, which gives a slope of . Nothing in the question drops the intercept.
Question 27.4
A token starts on square 0 of squares numbered 0 to 6. Each turn you roll a die and move forward by that amount, but if this would go past square 6, you stay where you are. On average, how many rolls does it take to land exactly on 6?
Answer
Answer to Question 27.4.
The expected number is 6, from any square below 6.
Let be the expected number of rolls from square . From 5, only a roll of 1 ends the game, so .
From 4: a 1 goes to 5, a 2 finishes, and the other four rolls stay. So , which gives . By induction, if are all 6, then from we have useful rolls, of which one finishes and the rest lead to squares with value 6. Then
which gives .
The reason is simple: from any square, exactly one roll finishes the game on that turn. So each roll succeeds with chance , whatever the square, and the wait is geometric. A simulation agrees.
Classic wrong answer. Computing a long recursion and never noticing the pattern. A surprising answer of 6 should prompt a search for the simple reason.
Question 27.5
Two points are chosen independently and uniformly on a circle of radius 1. What is the expected straight-line distance between them?
Answer
Answer to Question 27.5.
The expected distance is .
Fix the first point. The angle to the second is uniform on . The chord has length . So
A sanity check: the distance is between 0 and 2, and a chord at a right angle has length . The mean is below this since the short chords, at small and near , pull it down. A simulation confirms .
Classic wrong answer. Using the root mean square. The mean squared distance is exactly 2, so the root is , which is too high. A mean of a root is not the root of a mean.
Question 27.6
Three players play rock, paper, scissors, all choosing at random. If all three throw the same or all differ, they replay. Otherwise losers are eliminated, and if two remain they play on. On average, how many rounds does it take to have one winner?
Answer
Answer to Question 27.6.
The average is rounds.
With three players, there are 27 outcomes. All the same: 3. All different: 6. So a replay has chance . Otherwise exactly two symbols appear. Then one winner has chance (9 outcomes), and two winners also has chance (9 outcomes).
With two players, a tie has chance , so .
For three,
which gives , so . A simulation of the game returns .
Follow-up. With four players, how likely is a replay? Exactly two symbols appear in of the 81 outcomes, so a replay has chance , nearly one in two. Larger groups stall.
Section B — 6 questions, 60 minutes
Question 27.7
A fair coin is flipped until either two heads in a row or three tails in a row appear. What is the probability that the two heads come first?
Answer
Answer to Question 27.7.
The probability is .
Set up states for the current run: after one head, after one tail, after two tails, and the start. Let each symbol stand for the chance that heads wins from that state:
Then , and , which gives . So .
From the start, the first flip leads to or with equal chance: . An exact solve and a simulation agree.
So a target that is one flip shorter wins of the time, a little more than the raw chance of each run suggests. A limit case: against four tails in a row, the head run’s chance would be higher still.
Classic wrong answer. Comparing and directly, which gives . This ignores that a failed attempt at one run resets differently, and that a head run resets the tail run.
Question 27.8
You draw independent uniform numbers on and multiply them until the product falls below . What is the expected number of draws?
Answer
Answer to Question 27.8.
The expected number is .
Take logs. is exponential with mean 1, and the product falls below when passes .
So the are the gaps of a Poisson process at rate 1. The number of arrivals in is Poisson with mean . The first arrival after is the stopping draw. So the number of draws is this Poisson count plus 1, whose mean is . A simulation gives .
A second route: let be the expected number from threshold , so . This gives , and at it is the same.
Classic wrong answer. Using and solving for . That is a statement about means, not about the first passage.
Follow-up. What if the target is ? draws, by the same argument.
Question 27.9
A bet wins with probability and pays 2 to 1, independently each time. What fraction of wealth should you stake each time to maximise long-run growth? What is the growth rate per bet?
Answer
Answer to Question 27.9.
Stake of wealth, for a log growth of about per bet.
A stake of multiplies wealth by or . The expected log is
Setting the derivative to zero: , so . The general form is edge over odds: .
Then . A direct search confirms the optimum.
Doubling to gives : no growth at all. So too much leverage on a good bet leaves nothing, even with a positive expected return per bet.
Classic wrong answer. Staking everything, because the expected return is positive. The first loss then ends the game.
Question 27.10
Two teams play a best-of-seven series, with independent games. If one team wins each game with probability , what is the chance that it wins the series? If the teams are equal, what is the expected number of games?
Answer
Answer to Question 27.10.
The stronger team wins with probability about , and equal teams play games on average.
Imagine all seven games are played. The team wins the series exactly when it wins at least 4 of the 7. That gives
For equal teams, the series ends after games when the winner takes game and 3 of the earlier . With both teams counted:
The mean is . An exact sum over games confirms both.
Classic wrong answer. Using for a series that ends at game . The last game must be a win, so only the earlier games are free. Playing all seven games avoids this, as the extra games cannot change the winner.
Why it matters. Extending a stopped game to a fixed length often removes the hardest part of the calculation.
Question 27.11
Two fair dice are rolled. Let be the larger value and the smaller. What is the covariance of and ?
Answer
Answer to Question 27.11.
The covariance is .
Since is the product of the two dice, .
The largest has , which gives . By the symmetry , .
So the covariance is . An enumeration over the 36 outcomes confirms it.
It is positive, as high values of one come with high values of the other. Note how the identity avoids a table of 36 products.
Classic wrong answer. Assuming that and are uncorrelated because the dice are independent. They are functions of the same two dice.
Question 27.12
The number of claims in a year is Poisson with mean 10, and each claim’s size is independent and exponential with mean 5. Find the mean of the total, and its standard deviation. What is the chance of a total of zero?
Answer
Answer to Question 27.12.
The mean is 50, the standard deviation is , and the chance of zero is .
By the law of total expectation, .
By the law of total variance,
For a Poisson count, this simplifies to . Half of the variance comes from the number of claims, and half from their sizes. A simulation agrees.
The total is 0 only with no claims, so the chance is .
Classic wrong answer. Giving . That leaves out the uncertainty in how many claims arrive.
Follow-up. How does the relative risk change with ? falls as . A book that is four times the size has half the relative risk.