The Secretary Problem (the 37 % Rule)
Home · Interesting Math Problems · Problem 6 · Probability traps

1. The problem

You must hire one person from n = 100 candidates who arrive in random order. After each interview you must accept or reject on the spot; a rejected candidate never comes back. You can rank everyone you have seen, but you know nothing about those still to come.

What strategy gives the best chance of hiring the single best candidate? With no strategy, a random pick gives 1 %.

2. The answer

Skip 37
Interview and reject the first n/e ≈ 37 % of candidates, then hire the first one better than all of them.
≈ 37 %
chance of getting the very best — for 100 candidates or for a million.

Amazingly, the success chance does not shrink as the pool grows. It stays near 1/e ≈ 36.8 %.

3. Working it out

Reject the first r candidates, then accept the first one who beats all of them. You win if the best candidate is at position i > r and the best of the first i − 1 sits in the rejected group (otherwise you would stop too early). That second chance is r/(i − 1). So

P(r) = Σi=r+1…n (1/n) · r/(i − 1) = (r/n) · [ 1/r + 1/(r+1) + … + 1/(n−1) ]

For large n, with x = r/n, this becomes P ≈ −x ln x, which is largest at x = 1/e, where P = 1/e.

4. Calculator

Candidates n: · Reject the first r: 37
Your success chance
–
Best r
–
Best possible chance
–

5. Simulation

Random orders of candidates; each run uses the cut-off r set above. A run "wins" only if it hires the very best.

Runs: 0 · hired the best: 0 → – · nobody hired (best was in the rejected group): 0

Press S for one run. Bars are candidate scores in arrival order; the grey zone is the rejected group.

6. Fine print

  • The rule is about getting the very best. If you only want someone good, a shorter look-around phase (around √n) gives a better average rank.
  • If you can see real scores (not just ranks) and know their distribution, you can do better with a falling threshold.
  • People apply it, half-seriously, to flat hunting, choosing a parking space and even dating: spend the first 37 % of your search only looking.