This post discuss the problem that NCA posted at the top of his thread.
http://www.bj21.com/greenchip/misc_bj/index.cgi?read=110274
It is a follow-up to my comments.
The problem is pretty well described at the top of the thread. If you haven�t seen it, I would suggest reading ti and then skimming the beginning of the linked article before reading my post.
Let us say we are given N scores. We will sample k of them with thought stopping, and then stop at the first viable score which we see after that. For later reference, Iet us call the ratio of k/N �x�
With a little bit of work, we can set up a formula which explicitly computes the exact probability of winning. I come up with a complicated formula based on the ranking B of the best element in the first k that were samples. It had a somewhat complicated term in for each B, and then you some them. I did the summing in a spreadsheet which I described in the previous post.
I then worked on the asymptotic approximation when N is Big. I came up with a series which I could simplify further, and when done I got the function
F(x) = x * ln(x)
It is an easy Calculus exercise to see that the optimal value of this occurs at x=1/e. Also the biggest value of the function, f(1/e) is also 1/e. I think it is clear that this function underestimates your Probability. That is, you probability of wining is actually bigger than this. From an AP perspective, this is useful to know.
I tried to do some searching online to see any references for ti, and I eventually ran across this. http://en.wikipedia.org/wiki/Secretary_problem#Deriving_the_optimal_policy (Note the different name of the problem, which complicated the search.)
They came with the same approximation that I did, but they had a different form for the actual function. It is the same function of mine; it is also correct. But it is not obvious, at least to me, that they are the same formula. I spent some time trying to figure out where it came from. If you attack the problem differently, by focusing on the position of the actual maximum, you can come with their formula. Once you see this, I think it is actually easier to follow. Their formula, although also a lengthy sum, but it is much
easier to compute.
By coincidence, I am talking about these kind of Max/Min problems in Calculus, and so I may use this as an example on Monday. Even more interesting, in my CSC course (Data Structures) we had just done some which used the logarithmic estimate to the harmonic sum. So I may mention this there.

