I am about to join my Computer Science Master’s course in around 10 days. One of the introductory and how-to mails I received mentioned that hostel rooms are allotted by drawing lots. One of the hostels is a newly constructed block, which has slightly better rooms than the others. This situation posed an interesting problem to me: how to maximize my chances of ending up in the new hostel?

Or, phrasing in a more general way:

There are

plots, out of whichqare winning lots (0 < q ≤ p). Contestants draw their lots one after the other. After drawing his lot, the contestant publicizes the lot that he has got, i.e. whether it is a winning lot or not. A lot once drawn is not returned to the box. What is the ideal time to draw your lot, so as to maximize the winning probability?

There is one aspect that makes this problem slightly different from usual probabilistic reasoning questions: new information is being presented after each draw. After each lot is drawn, we know whether it was a winning or losing lot; so the present values of total number of lots (say, ) and number of winning lots () change accordingly.

Here was my approach to solving the problem; which seems reasonable and arrives at a reasonable-sounding answer. The factor we consider is—brace yourselves—*the probability that the probability of a win increases after the next draw* – some sort of a meta-probability, if you may.

Consider an arbitrary situation where there are total lots and winning lots. The current probability of the a win, . If a lot is drawn from the box, one of the two following cases may result:

- The lot drawn was a winning lot. There are now winning lots and total lots left in the box. The new probability of a win, .
- The lot drawn was a losing lot. There are now winning lots and total lots left.

Obviously, the probability of winning decreases in case 1, and increases in case 2. The idea is to quantify the probability that ; i.e. the probability of winning goes up after the next draw.

Since there are presently winning lots in the box, there are ways to reach case 1 and ways to reach case 2. Therefore;

Probability that increases; . . The best time to draw your lot, then, is the moment when becomes less than .

That is;

So, statistically speaking, the ideal strategy to draw your chit is as follows:

- If to start with, draw your lot immediately; as your winning probability is likely to decrease if you wait.
- As long as , wait. Statistically, the probability of your winning is likely to increase after the next draw.
- If, after any draw, becomes greater than or equal to , take the next turn to draw your lot. Statistically, now is the peak probability that you win.

So that sums up a probabilistic examination of the lot-taking scene and outlines some strategies that maximizes your winning chance. Statistically, of course. If all the first draws end up as winning lots while you still wait for the optimal moment, you’re screwed.

and still you did not get the winning slot 😀

after reading a couple of posts, i am considering you as the “communication skills” guy (atleast) for our department for the placement season this year 😉