Note

Secretary problem with competition

2026-07-09T00:00:00.000Z


A firm interviews applicants one at a time and must hire on the spot or lose them. The classical secretary problem asks how to maximise the chance of hiring the very best. Its answer is famous: watch about the first 37%37\%, hire nobody, then take the next applicant who beats everyone seen so far. This note asks what changes when a second firm is chasing the same people and every applicant would rather work for the first.

The classical problem

nn applicants are interviewed one by one in a uniformly random order. The firm observes only relative ranks: after each interview it can rank the applicants seen so far by desirability, but it never learns their absolute ranks. It must then accept the current applicant — ending the search — or reject him and move on. A rejected applicant cannot be recalled. The aim is to maximise the probability of hiring the best of the nn.

An optimal rule has a simple shape. Fix an integer k0k \ge 0: reject the first kk applicants, then accept the first later applicant who is better than all before him — the first record after kk. Call this the kk-strategy.

Let BkB_k be the event that the kk-strategy selects the best applicant, and let XX be the position of the best applicant, so Pr(X=i)=1/n\Pr(X=i)=1/n. If the best arrives at position i>ki>k, the strategy catches him exactly when the best of the first i1i-1 applicants fell in the first kk — probability k/(i1)k/(i-1). Hence

Pr(Bk)=i=1nPr(BkX=i)Pr(X=i)=1ni=k+1nki1knkn1idi=knlog ⁣(nk).\begin{aligned} \Pr(B_k) &= \sum_{i=1}^{n}\Pr(B_k \mid X=i)\Pr(X=i) = \frac{1}{n}\sum_{i=k+1}^{n}\frac{k}{i-1} \\ &\approx \frac{k}{n}\int_{k}^{n}\frac{1}{i}\,di = \frac{k}{n}\log\!\left(\frac{n}{k}\right). \end{aligned}

Maximising over kk gives k=n/ek^{*}=n/e for large nn: reject about 37%37\% and take the next record. The probability of success is also about 1/e37%1/e \approx 37\%.

Two firms, one ranking

Now two firms, 11 and 22, each have one post to fill from the same nn applicants. Every applicant strictly prefers firm 11, and this is common knowledge. Applicants arrive in a uniformly random order; each is interviewed by both firms at once — both observe the same relative ranks, neither the absolute — and the firms decide simultaneously whether to make an offer. An applicant holding both offers joins firm 11; an applicant with one offer takes it. A firm keeps interviewing until it hires someone or the applicants run out, with no recall. Each firm’s payoff is the probability that it hires the best applicant, and we use Nash equilibrium as the solution concept.

Firm 11\text{'}s problem is unaffected by firm 22: any applicant holding both offers chooses firm 11, so firm 11 faces exactly the single-firm problem, and its dominant strategy is the kk-strategy with cutoff k1=n/ek_1=n/e. Because firm 22 observes the same arrivals and the same relative ranks as firm 11, and firm 11\text{'}s strategy is fixed and known, firm 22 can anticipate firm 11\text{'}s decisions exactly. Taking those decisions as given, firm 22 faces an ordinary optimal-stopping problem, whose solution is again a kk-strategy.

Claim. Given that firm 11 plays its optimal strategy k1=n/ek_1=n/e, firm 22\text{'}s best response is to reject approximately n/e3/2n/e^{3/2} applicants and thereafter make an offer to the best applicant it has interviewed so far.

Firm 2’s best response

Let kik_i be the number of applicants firm ii rejects, so both firms play kk-strategies. Let Bk1,k2B_{k_1,k_2} be the event that firm 22 hires the best applicant, XX the position of the best applicant, and YY the position of the applicant hired by firm 11. Since Pr(X=i)=1/n\Pr(X=i)=1/n,

Pr(Bk1,k2)=i=1nPr(Bk1,k2X=i)Pr(X=i)=1ni=1nPr(Bk1,k2X=i).\Pr(B_{k_1,k_2}) = \sum_{i=1}^{n}\Pr(B_{k_1,k_2}\mid X=i)\Pr(X=i) = \frac{1}{n}\sum_{i=1}^{n}\Pr(B_{k_1,k_2}\mid X=i).

We evaluate the conditional probabilities in two cases.

Case (i): k2k1k_2 \le k_1. Condition on the best applicant arriving in position ii. If ik2i \le k_2, firm 22 has already passed him, so the probability is 00. If k2<ik1k_2 < i \le k_1, the best applicant arrives after firm 22\text{'}s cutoff but no later than firm 11\text{'}s, firm 22 secures him exactly when the best of the first i1i-1 applicants is among firm 22\text{'}s first k2k_2 rejects, i.e. Pr(Bk1,k2X=i)=k2/(i1)\Pr(B_{k_1,k_2}\mid X=i)=k_2/(i-1). If i=k1+1i=k_1+1, firm 11 will hire him, so the probability is 00. If ik1+2i \ge k_1+2, firm 22 hires the best applicant only if firm 11 hires first, at some position jj with k1<j<ik_1 < j < i, so that

Pr(Bk1,k2X=i)=j=k1+1i1Pr ⁣(Bk1,k2{Y=j}X=i)=j=k1+1i1(k2j1) ⁣(1i1).\Pr(B_{k_1,k_2}\mid X=i) = \sum_{j=k_1+1}^{i-1}\Pr\!\big(B_{k_1,k_2}\cap\{Y=j\}\mid X=i\big) = \sum_{j=k_1+1}^{i-1}\left(\frac{k_2}{j-1}\right)\!\left(\frac{1}{i-1}\right).

Hence

Pr(Bk1,k2)=1ni=k2+1k1k2i1+1ni=k1+2n[j=k1+1i1(k2j1) ⁣(1i1)].\Pr(B_{k_1,k_2}) = \frac{1}{n}\sum_{i=k_2+1}^{k_1}\frac{k_2}{i-1} + \frac{1}{n}\sum_{i=k_1+2}^{n}\left[\sum_{j=k_1+1}^{i-1} \left(\frac{k_2}{j-1}\right)\!\left(\frac{1}{i-1}\right)\right].

For large nn, approximating the sums by integrals,

Pr(Bk1,k2)1nk2k1k2idi+1nk1nk1i(1i) ⁣(k2j)djdi=k2nlog ⁣(k1k2)+k22n(log ⁣(nk1))2.\begin{aligned} \Pr(B_{k_1,k_2}) &\approx \frac{1}{n}\int_{k_2}^{k_1}\frac{k_2}{i}\,di + \frac{1}{n}\int_{k_1}^{n}\int_{k_1}^{i} \left(\frac{1}{i}\right)\!\left(\frac{k_2}{j}\right)dj\,di \\ &= \frac{k_2}{n}\log\!\left(\frac{k_1}{k_2}\right) + \frac{k_2}{2n}\left(\log\!\left(\frac{n}{k_1}\right)\right)^{2}. \end{aligned}

Substitute k1=n/ek_1 = n/e, so log(n/k1)=1\log(n/k_1)=1 and

Pr(Bk1,k2)k2nlog ⁣(k1k2)+k22n.\Pr(B_{k_1,k_2}) \approx \frac{k_2}{n}\log\!\left(\frac{k_1}{k_2}\right)+\frac{k_2}{2n}.

Differentiating with respect to k2k_2,

ddk2Pr(Bk1,k2)=1n[log ⁣(k1k2)12],\frac{d}{dk_2}\Pr(B_{k_1,k_2}) = \frac{1}{n}\left[\log\!\left(\frac{k_1}{k_2}\right)-\frac12\right],

which vanishes at log(k1/k2)=12\log(k_1/k_2)=\tfrac12, i.e. k2=k1e1/2=n/e3/2k_2 = k_1 e^{-1/2}=n/e^{3/2}. The second derivative equals 1/(nk2)<0-1/(n k_2)<0, so this is a local maximum, and n/e3/2<n/e=k1n/e^{3/2}<n/e=k_1, so it lies inside the region k2k1k_2\le k_1. The value there is

Pr(Bk1,k2)k2=n/e3/2=1e3/212+12e3/2=1e3/20.223.\Pr(B_{k_1,k_2})\Big|_{k_2=n/e^{3/2}} = \frac{1}{e^{3/2}}\cdot\frac12+\frac{1}{2e^{3/2}} = \frac{1}{e^{3/2}}\approx 0.223.

Case (ii): k2>k1k_2 > k_1. Now firm 22\text{'}s cutoff is later than firm 11\text{'}s, so whenever firm 22 is still active firm 11 may already have hired. Conditioning on X=iX=i, the probability is 00 for ik2i\le k_2, and for i>k2i>k_2,

Pr(Bk1,k2X=i)=j=k1+1k2(k1j1) ⁣(k2i1) ⁣(1j)+j=k2+1i1(k1j1) ⁣(1i1),\Pr(B_{k_1,k_2}\mid X=i) = \sum_{j=k_1+1}^{k_2}\left(\frac{k_1}{j-1}\right)\!\left(\frac{k_2}{i-1}\right)\!\left(\frac{1}{j}\right) + \sum_{j=k_2+1}^{i-1}\left(\frac{k_1}{j-1}\right)\!\left(\frac{1}{i-1}\right),

where the first sum covers firm 11 hiring within firm 22\text{'}s reject window (k1,k2](k_1,k_2] and the second covers firm 11 hiring after firm 22\text{'}s cutoff. Hence

Pr(Bk1,k2)=1ni=k2+1n[j=k1+1k2(k1j1) ⁣(k2i1) ⁣(1j)+j=k2+1i1(k1j1) ⁣(1i1)].\Pr(B_{k_1,k_2}) = \frac{1}{n}\sum_{i=k_2+1}^{n}\left[ \sum_{j=k_1+1}^{k_2}\left(\frac{k_1}{j-1}\right)\!\left(\frac{k_2}{i-1}\right)\!\left(\frac{1}{j}\right) + \sum_{j=k_2+1}^{i-1}\left(\frac{k_1}{j-1}\right)\!\left(\frac{1}{i-1}\right)\right].

Approximating by integrals,

Pr(Bk1,k2)1nk2n[k1k2(k1j) ⁣(k2i) ⁣(1j)dj+k2i(k1j) ⁣(1i)dj]di=k2k1nlog ⁣(nk2)+k12n(log ⁣(nk2))2.\begin{aligned} \Pr(B_{k_1,k_2}) &\approx \frac{1}{n}\int_{k_2}^{n}\left[ \int_{k_1}^{k_2}\left(\frac{k_1}{j}\right)\!\left(\frac{k_2}{i}\right)\!\left(\frac{1}{j}\right)dj + \int_{k_2}^{i}\left(\frac{k_1}{j}\right)\!\left(\frac{1}{i}\right)dj\right]di \\ &= \frac{k_2-k_1}{n}\log\!\left(\frac{n}{k_2}\right) + \frac{k_1}{2n}\left(\log\!\left(\frac{n}{k_2}\right)\right)^{2}. \end{aligned}

Differentiating and factoring,

ddk2Pr(Bk1,k2)=1n(1k1k2)(log ⁣(nk2)1).\frac{d}{dk_2}\Pr(B_{k_1,k_2}) = \frac{1}{n}\left(1-\frac{k_1}{k_2}\right)\left(\log\!\left(\frac{n}{k_2}\right)-1\right).

For k2>k1=n/ek_2>k_1=n/e we have 1k1/k2>01-k_1/k_2>0 and log(n/k2)<1\log(n/k_2)<1, so the derivative is negative. Thus Pr(Bk1,k2)\Pr(B_{k_1,k_2}) is strictly decreasing on k2>k1k_2>k_1, and the best firm 22 can do here is the boundary k2=k1k_2=k_1, where the payoff equals 1/(2e)0.1841/(2e)\approx 0.184.

Comparing the two cases, the boundary value 1/(2e)1/(2e) is below the interior maximum 1/e3/21/e^{3/2} from Case (i). Therefore the global optimum is

k2=ne3/20.223n,k_2^{*}=\frac{n}{e^{3/2}}\approx 0.223\,n,

so firm 22 rejects about 23%23\% of the applicants — fewer than firm 11\text{'}s 37%37\% — and then offers the position to the best applicant seen so far. Its probability of hiring the best applicant is e3/20.223e^{-3/2}\approx 0.223.

Two success-probability curves against reject fraction: firm 1 classical curve peaks at one over e; firm 2 response curve peaks lower and earlier, at e to the minus three halves.

Success probability against reject fraction. Firm 11\text{'}s classical curve peaks at k/n=1/ek/n=1/e; firm 22\text{'}s response peaks earlier and lower, at k/n=e3/2k/n=e^{-3/2}, given that firm 11 has chosen its best cutoff.


← All notes