Skip to content
Part IA Easter Term

Population Estimation and Secretary Problem

Tank Problem (German Tank Problem)

Suppose we observe nn serial numbers from a population numbered 1,2,,N1, 2, \ldots, N (unknown NN). Estimate NN.

Model

Serial numbers drawn uniformly without replacement from {1,,N}\{1, \ldots, N\}.

MLE

N^MLE=max(X1,,Xn)\hat{N}_{MLE} = \max(X_1, \ldots, X_n)

This maximises likelihood, but is biased downward.

Unbiased Estimator

N^=n+1nmaxiXi1\hat{N} = \frac{n+1}{n} \max_i X_i - 1

Example

Observed serial numbers: 7,3,10,46,147, 3, 10, 46, 14.

max=46\max = 46, n=5n = 5.

N^=65×461=54.2\hat{N} = \frac{6}{5} \times 46 - 1 = 54.2

Estimate: N54N \approx 54 or 5555.

Secretary Problem

We interview nn candidates sequentially. After each interview, must accept or reject. Cannot recall rejected candidates. Goal: maximise chance of hiring the best.

Optimal Strategy

Reject the first r=n/er^* = \lfloor n/e \rfloor candidates, then choose the first one better than all seen so far.

For large nn: rn/e0.368nr^* \approx n/e \approx 0.368n.

Probability of Success

With optimal strategy: 1/e0.368\approx 1/e \approx 0.368 (surprisingly high).

Proof Idea

The optimal rr balances:

  • Seeing enough candidates to know what “good” looks like
  • Not waiting so long that the best is already rejected

Computer simulations verify the 1/e1/e rule.

Example

100 candidates. Reject first 37, then hire the first better than all previous.

Dice Game Problem

Roll a fair die nn times. Stop at the last 6 rolled to win.

Optimal Strategy

Stop as soon as we see a 6 after some threshold kk.

Threshold: k=k = smallest integer satisfying Pk(win)>0.5P_k(\text{win}) > 0.5.

For n=10n = 10: threshold around throw 5.

Summary

ProblemKey Idea
Tank estimationUse max + correction
Secretary problemReject first n/en/e, then choose best yet
Dice gameThreshold-based stopping