本书暂未推出简体中文版。现有版本:English, Français。
Interviews I: Maths, Probability and Speed · 职业发展
32Timed Test 9
Take it in one sitting, without notes or a calculator.
Section A — 6 questions, 40 minutes
Question 32.1
Two fair coins are flipped together, round after round. A coin that has already shown heads may be set aside. What is the expected number of rounds until each coin has shown heads at least once?
Answer
Answer to Question 32.1.
The expected number is .
Let and be the rounds of each coin’s first head. We want . Using , the sum has mean 4.
The minimum is the first round in which either coin shows heads. A round has this with chance , so the minimum has mean . So the maximum has mean .
A second route is by states: from the start, , which gives , so . A simulation agrees.
Classic wrong answer. Answering 4 by adding the two means, or 2 by saying that they run side by side. The true value lies between the two.
Question 32.2
Three different vertices of a cube are chosen at random. How likely are they to form an equilateral triangle?
Answer
Answer to Question 32.2.
The probability is .
There are triples. Any equilateral triangle must have three equal sides, and the distances between vertices are the edge, the face diagonal and the space diagonal.
Only the face diagonal works. Each vertex has 3 others at a face-diagonal distance, and these three are also mutually at that distance. So any two of them form an equilateral triangle with the vertex, and each vertex lies in triangles. Each triangle has 3 vertices, so there are triangles. Then .
An enumeration of the 56 triples confirms 8. No triple of edges closes up, as a cube has no triangle of its edges.
Classic wrong answer. Counting only 2 triangles, or the triangles of one tetrahedron, of which there are 4. The cube holds two such tetrahedra.
Question 32.3
A parameter has a prior . You observe a single measurement of 2, with independent normal noise of variance 1. What are the posterior mean and variance? What if the noise variance is 4?
Answer
Answer to Question 32.3.
The posterior mean is 1 and the variance is . With noise variance 4, they are and .
Precisions add. The prior has precision 1, and the measurement has precision 1. So the posterior precision is 2, the variance is , and the mean is the precision-weighted average: .
With noise variance 4, the measurement has precision . Then the posterior precision is , the variance is , and the mean is .
A numerical integration of the posterior agrees. Limit checks: with no noise, the mean is 2, and with infinite noise, it stays 0.
Classic wrong answer. Giving a posterior variance above the prior’s. A new measurement can only reduce it, in this normal case.
Question 32.4
A number is chosen uniformly from the divisors of . What is the probability that it is a multiple of ?
Answer
Answer to Question 32.4.
The probability is .
Since , the divisors are with and each from 0 to 6, which gives .
A multiple of needs and . That is 4 values for each exponent, so 16 divisors. Hence .
A direct list of the divisors confirms the counts. The chance of alone is , and the two exponents are independent, so the answer is its square. Note the pairing: a divisor matches , and sits in the middle of the list.
Classic wrong answer. Using the chance , as for a random whole number. Divisors are not spread evenly, so it is the exponents that must be counted.
Question 32.5
and are independent standard normals. What is the probability that , given that for a standard normal ? What is ?
Answer
Answer to Question 32.5.
The probability is about , and the conditional mean is 1.
is normal with mean 0 and variance 2. So .
Given , symmetry gives , and the two add up to 2. So each is 1.
The regression route agrees: the slope of on is , and the mean of is 0, so the value is . A simulation gives both.
Limit check: for a target of 0 in place of 1, the chance is , as it should be.
Classic wrong answer. Using a variance of 1 for . Variances add for a difference too, so the scale is .
Question 32.6
and are independent exponentials with mean 1. What are the means of the smaller and the larger? What is the probability that ?
Answer
Answer to Question 32.6.
The smaller has mean , the larger has mean , and the probability is .
The minimum is exponential with rate 2, so its mean is . After it, the other variable has a fresh exponential life, by the memoryless property. So the gap has mean 1, and the maximum has mean .
The sum checks: .
needs two things: outlasts , with chance , and then it lasts at least 1 more, with chance . A simulation returns .
Limit check: replacing 1 by 0 gives , and a large gap makes the chance vanish.
Classic wrong answer. Treating the gap as depending on the size of . The memoryless property makes it independent of how long the first has lasted.
Section B — 6 questions, 60 minutes
Question 32.7
is Poisson with mean 1. What is the probability that is even? Separately, customers arrive at a shop as a Poisson process at a rate of 6 per hour, and each buys with probability , independently. What is the probability of no sale in an hour?
Answer
Answer to Question 32.7.
, and the chance of no sale is .
Add the series for and : the odd terms cancel. So , and . At , this is . As grows, it tends to , and at it is 1.
Thinning a Poisson process with a chance of gives a Poisson process at rate 3. So no sale has chance . Summing over the number of customers gives the same result: . A simulation agrees.
Classic wrong answer. Using , which is the chance of no customers at all. A customer who does not buy is still no sale.
Question 32.8
Five fair dice are rolled. What is the probability of exactly two pairs, meaning two values appear twice each and a third value appears once?
Answer
Answer to Question 32.8.
The probability is .
Choose the two values that pair up: . Choose the single value: 4. Arrange the five dice: . That gives , out of .
An enumeration over all the 7776 outcomes confirms the count.
Note that choosing the two pair values is unordered. Doing it in order would count each outcome twice.
Classic wrong answer. Using , which treats (3, 3, 5, 5, 2) and (5, 5, 3, 3, 2) as different results.
Follow-up. Is this more or less likely than one pair? One pair has outcomes, or , so it is twice as likely.
Question 32.9
Two uncorrelated assets have expected excess returns of 5% and 10% and volatilities of 10% and 20%. What portfolio maximises the Sharpe ratio, and what is that ratio?
Answer
Answer to Question 32.9.
The weights are 2 to 1, or and , and the Sharpe ratio is about .
The best portfolio is proportional to . With no correlation, the weights are proportional to : and . That is 2 to 1.
Each asset alone has a Sharpe ratio of . For uncorrelated assets, the squared Sharpe ratios add, so the best is .
Direct check: the portfolio has a return of , and a variance of , so the volatility is . The ratio is .
Classic wrong answer. Choosing equal weights, as the two Sharpe ratios match. Equal Sharpe calls for equal risk, not equal capital.
Question 32.10
A five-card hand is dealt from a standard 52-card deck, for which there are possible hands. What is the probability of exactly two pairs, meaning two cards of one rank, two of another, and one card of a third rank?
Answer
Answer to Question 32.10.
The probability is about .
Choose the two ranks: . Choose the two suits in each: . Choose the fifth card from the 44 cards of other ranks. The count is . Divided by the number of hands, this is .
A simulation returns the same. Note the 44: only cards of the other 11 ranks are allowed, and each has 4 suits.
As a rough check, , and that over million is about one hand in 20.
Classic wrong answer. Using for the ranks, which counts each hand twice. The two pairs have no order, so the value doubles to about .
Question 32.11
A plane has 10 seats and 10 passengers, each with an assigned seat. The first has lost the boarding card and sits at random. Each later passenger takes their own seat if it is free, and otherwise a random free seat. What is the probability that the last passenger gets their own seat? What is the probability that the ninth passenger does not?
Answer
Answer to Question 32.11.
The last passenger gets their own seat with probability , and the ninth is displaced with probability .
Whenever someone sits at random, three things can happen. They may choose the first passenger’s seat, and all is settled. They may choose the last person’s seat, and the last person is displaced. Or they may choose another seat, and the choice passes to someone else. The first and second are equally likely at each step, so the last passenger’s chance is .
For the ninth, the same holds with three seats left to matter: seat 1, seat 9, and seat 10. When a random choice first falls on one of these, each is equally likely. Only seat 9 displaces the ninth passenger. So the chance is . In general, passenger of is displaced with chance .
A simulation confirms both. With , this is , as before.
Classic wrong answer. Computing the full tree of 10 passengers. The answer for the last passenger does not depend on at all, and that is the clue to look for a symmetry.
Question 32.12
Using Stirling’s approximation , how many decimal digits does have? You may use . What does tend to as grows?
Answer
Answer to Question 32.12.
has 158 digits, and the limit is .
With , . Subtracting 100 gives . And , so . Dividing by gives about . Its whole part is 157, so has 158 digits. An exact product confirms it: .
The answer is close to the next power of ten, so a careful estimate matters here: the term is essential.
For the limit, . So . This means that the geometric mean of is about , against the arithmetic mean of about .
Classic wrong answer. Dropping the small term and getting , so 157 digits. This is too low by one.