Secretary Problem

Imagine an administrator who wants to hire the best secretary out of 6 rankable applicants for a position. The applicants are interviewed one by one in random order. A decision about each particular applicant is to be made immediately after the interview. Once rejected, an applicant cannot be recalled. During the interview, the administrator can rank the applicant among all applicants interviewed up to that time, but is unaware of the quality of yet unseen applicants. The question is about the optimal strategy (stopping rule) to maximize the probability of selecting the best applicant.

If you think carefully, it might seem obvious that one cannot select the first candidate because the first candidate has no one to compare with. A better strategy is always rejecting the first few applicants interviewed as samples to compare against and then stopping at the first applicant who is better than every applicant interviewed till then (or continuing to the last applicant if this never occurs).

What's the optimal sample size?

1 2 3 4

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Brian Lie
Oct 21, 2018

Relevant wiki: Conditional Probability

When sample size is r r , the probability of selecting the best applicant is

p r = j = r + 1 6 P ( j th applicant is best and the administrator selects it ) = j = r + 1 6 P ( j th applicant is best ) P ( the administrator selects j th applicant j th applicant is best ) = j = r + 1 6 P ( j th applicant is best ) P ( the best of the first j 1 applicants is in the first r applicants ) = j = r + 1 6 ( 1 6 ) ( r j 1 ) = ( r 6 ) j = r + 1 6 1 j 1 \begin{aligned} p_r&=\sum_{j=r+1}^6P(j^\text{th}\text{ applicant is best and the administrator selects it}) \\&=\sum_{j=r+1}^6P(j^\text{th}\text{ applicant is best})\,P(\text{the administrator selects }j^\text{th }\text{applicant}\,|\,j^\text{th}\text{ applicant is best}) \\&=\sum_{j=r+1}^6P(j^\text{th}\text{ applicant is best})\,P(\text{the best of the first }j-1\text{ applicants is in the first }r\text{ applicants}) \\&=\sum_{j=r+1}^6\left(\frac 16\right)\left(\frac r{j-1}\right) =\left(\frac r6\right)\sum_{j=r+1}^6\frac 1{j-1} \end{aligned}

Therefore, we get

r r 1 2 3 4 5
p r p_r 0.381 0.428 0.392 0.3 0.167

The table above shows that the optimal sample size is 2 \boxed2 .


Try Secretary Problem 2 .

Mark Hennings
Dec 12, 2018

Here is an alternative conditional probability approach. If the sample is of size m m , let M m M_m be the maximum score of the candidates in the sample. Then P [ M m = j ] = ( j 1 m 1 ) ( 6 m ) m j 6 P[M_m=j] \; = \; \frac{\binom{j-1}{m-1}}{\binom{6}{m}} \hspace{2cm} m \le j \le 6 Let A m A_m be the event that the best candidate is selected, given a sample of size m m . If M m = 6 M_m=6 , the probability of A m A_m is 0 0 . If M m = j M_m=j , where m j 5 m \le j \le 5 , then there are 6 j 6-j candidates left who rank better than the top score of the sample, and A m A_m only occurs if the best of these remaining candidates is interviewed before the other 5 j 5-j . Thus P [ A m M m = j ] = { 0 j = 6 1 6 j m j 5 P[A_m|M_m=j] \; = \; \left\{ \begin{array}{lll} 0 & \hspace{1cm} & j = 6 \\ \frac{1}{6-j} & & m \le j \le 5 \end{array}\right. and hence P [ A m ] = j = m 5 ( j 1 m 1 ) ( 6 j ) ( 6 m ) P[A_m] \; = \; \sum_{j=m}^5 \frac{\binom{j-1}{m-1}}{(6-j)\binom{6}{m}} The values of P [ A m ] P[A_m] for m = 1 , 2 , 3 , 4 m=1,2,3,4 are 274 720 \tfrac{274}{720} , 308 720 \tfrac{308}{720} , 282 720 \tfrac{282}{720} , 216 720 \tfrac{216}{720} , making the optimal sample size 2 \boxed{2} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...