Re: A statistical list problem
- From: David Winsemius <doe_snot@xxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 09:09:27 -0500
christof@xxxxxxxxx wrote in news:1157030889.770379.78350
@m79g2000cwm.googlegroups.com:
I have a list of n elements. I've marked m elements in the list
(1<=m<=n). Now I want to search to the list until I found an UNMARKED
element. How many elements do I have to search through in average?
For m=1 the answer is probably: 1 + 1/n
For m=2: 1 + 2/n + 2/n * 1/(n-1)
I call this the function f(m)
My question now is: How many elements do I have to search through for
the summary of all possible m values. That means:
f(1) + f(2) + ... + f(n) = ???
Can somebody help me with the problem?
Try searching on the term "negative binomial". The mean of a NB(k;r,p)
distribution is r(1-p)/p
--
David Winsemius.
.
- References:
- A statistical list problem
- From: christof
- A statistical list problem
- Prev by Date: A statistical list problem
- Next by Date: Re: A statistical list problem
- Previous by thread: A statistical list problem
- Next by thread: Re: A statistical list problem
- Index(es):