Imagine an administrator who wants to hire the best secretary out of to-be-ranked applicants for the 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).
If is the optimal sample size, find
Try this problem first.
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.
When sample size is r , the probability of selecting the best applicant is
p r , n = j = r + 1 ∑ n P ( j th applicant is best and the administrator selects it ) = j = r + 1 ∑ n P ( j th applicant is best ) P ( the administrator selects j th applicant ∣ j th applicant is best ) = j = r + 1 ∑ n P ( j th applicant is best ) P ( the best of the first j − 1 applicants is in the first r applicants ) = j = r + 1 ∑ n ( n 1 ) ( j − 1 r ) = ( n r ) j = r + 1 ∑ n j − 1 1
Let n r = x , we get
p ( x ) p ′ ( x ) = n → ∞ lim p r , n = n → ∞ lim ( n r ) j = r + 1 ∑ n ( n j − 1 1 ) ( n 1 ) = x ∫ x 1 ( t 1 ) d t = − x ln x = − ( 1 + ln x )
Therefore, p ( x ) has a maximum value when p ′ ( x ) = 0 , that is x = e 1 making the answer n → ∞ lim r ( n ) n = e .