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?
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.
Here is an alternative conditional probability approach. If the sample is of size m , let M m be the maximum score of the candidates in the sample. Then P [ M m = j ] = ( m 6 ) ( m − 1 j − 1 ) m ≤ j ≤ 6 Let A m be the event that the best candidate is selected, given a sample of size m . If M m = 6 , the probability of A m is 0 . If M m = j , where m ≤ j ≤ 5 , then there are 6 − j candidates left who rank better than the top score of the sample, and A m only occurs if the best of these remaining candidates is interviewed before the other 5 − j . Thus P [ A m ∣ M m = j ] = { 0 6 − j 1 j = 6 m ≤ j ≤ 5 and hence P [ A m ] = j = m ∑ 5 ( 6 − j ) ( m 6 ) ( m − 1 j − 1 ) The values of P [ A m ] for m = 1 , 2 , 3 , 4 are 7 2 0 2 7 4 , 7 2 0 3 0 8 , 7 2 0 2 8 2 , 7 2 0 2 1 6 , making the optimal sample size 2 .
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Conditional Probability
When sample size is 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 ( 6 1 ) ( j − 1 r ) = ( 6 r ) j = r + 1 ∑ 6 j − 1 1
Therefore, we get
The table above shows that the optimal sample size is 2 .
Try Secretary Problem 2 .