POV-Ray : Newsgroups : povray.off-topic : Problem of the day Server Time
6 Sep 2024 19:19:50 EDT (-0400)
  Problem of the day (Message 21 to 30 of 34)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 4 Messages >>>
From: Florian Pesth
Subject: Re: Problem of the day
Date: 18 Dec 2008 03:19:54
Message: <494a07aa$1@news.povray.org>
Am Thu, 18 Dec 2008 02:55:41 -0500 schrieb Florian Pesth:

> In this case the infinite sum is
> diverging and you can't calculate an average.

Ah... forget that, there is also an infinite number of solutions of the 
same length. Even though it is an infinite sum, one can calculate it.


Post a reply to this message

From: scott
Subject: Re: Problem of the day
Date: 18 Dec 2008 03:26:57
Message: <494a0951$1@news.povray.org>
>> Do a search for Coupon Collector's Problem. For equal random drawings 
>> it's roughly nHn that is n * Sum k=1-n of 1/k multiplied by n
>
>
> Brain death! - n * Sum k=1-n of 1/k

Thanks Phil, when you know what it's called it's easy to find.

So, my answer is that the expected number of drawings to get all balls is 
given by:

E[T] = n*(1/1 + 1/2 + 1/3 + ... 1/n)

Cool neat little formula :-)


Post a reply to this message

From: Phil Cook v2
Subject: Re: Problem of the day
Date: 18 Dec 2008 04:09:01
Message: <op.umco07ywmn4jds@phils.mshome.net>
And lo On Thu, 18 Dec 2008 08:26:56 -0000, scott <sco### [at] scottcom> did  
spake thusly:

>>> Do a search for Coupon Collector's Problem. For equal random drawings  
>>> it's roughly nHn that is n * Sum k=1-n of 1/k multiplied by n
>>
>>
>> Brain death! - n * Sum k=1-n of 1/k
>
> Thanks Phil, when you know what it's called it's easy to find.

Indeed, one of the major difficulties in research is trying to guess what  
someone else might have named their solution ;-)

> So, my answer is that the expected number of drawings to get all balls  
> is given by:
>
> E[T] = n*(1/1 + 1/2 + 1/3 + ... 1/n)
>
> Cool neat little formula :-)

Yup, of course as you recognise it's only an estimate the lower bound  
being n and the upper bound being infinity; there's no reason why you  
can't be pulling out the same number over and over again although you  
might suspect a fiddle if it yields a high mean absolute error.

-- 
Phil Cook

--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com


Post a reply to this message

From: scott
Subject: Re: Problem of the day
Date: 18 Dec 2008 04:52:41
Message: <494a1d69$1@news.povray.org>
>> E[T] = n*(1/1 + 1/2 + 1/3 + ... 1/n)
>>
>> Cool neat little formula :-)
> 
> Yup, of course as you recognise it's only an estimate the lower bound  
> being n and the upper bound being infinity; there's no reason why you  
> can't be pulling out the same number over and over again although you  
> might suspect a fiddle if it yields a high mean absolute error.

On an only slightly related topic, I did manage to find this one

http://en.wikipedia.org/wiki/Benford%27s_law

without knowing what it was called beforehand.


Post a reply to this message

From: Stephen
Subject: Re: Problem of the day
Date: 18 Dec 2008 06:58:16
Message: <heekk45r7l4tjksg7o6c6np5rq1jk9793d@4ax.com>
On Thu, 18 Dec 2008 08:38:40 +0100, "scott" <sco### [at] scottcom> wrote:

>> Strange, I've never wondered about it o_O
>
>Hehe, the exact problem I was applying it to was that I needed to save all 
>the possible images generated by some website, I knew there was a certain 
>number of possibilities and that it was random that each one appeared, so I 
>just wondered how many times I would need to try before I got all of them.
>
>I didn't need to know exactly, eg if N=100, am I expecting 150 tries, 200 
>tries, 500 tries?  But knowing the exact formula would be cool as it seemed 
>an interesting problem without an obvious result.
>

OK, a real world problem. I don't think that I've come across the need to work
out probabilities in RL.

>Another situation I can think of is if you need to check every item in a 
>physical population, but you can only select ones at random (eg tagging fish 
>in a lake or something).
> 
There are more things in Heaven and Earth than in my philosophy, Scott. :)
-- 

Regards
     Stephen


Post a reply to this message

From: Invisible
Subject: Re: Problem of the day
Date: 18 Dec 2008 07:02:18
Message: <494a3bca@news.povray.org>
Stephen wrote:

> OK, a real world problem. I don't think that I've come across the need to work
> out probabilities in RL.

*Clearly* you're not a betting man. ;-)


Post a reply to this message

From: Stephen
Subject: Re: Problem of the day
Date: 18 Dec 2008 07:16:45
Message: <uofkk498sd7k2jjut5r91h74rkhua6eb7r@4ax.com>
On Thu, 18 Dec 2008 12:02:19 +0000, Invisible <voi### [at] devnull> wrote:

>Stephen wrote:
>
>> OK, a real world problem. I don't think that I've come across the need to work
>> out probabilities in RL.
>
>*Clearly* you're not a betting man. ;-)

Not with anything as trivial as money. ;)
-- 

Regards
     Stephen


Post a reply to this message

From: Invisible
Subject: Re: Problem of the day
Date: 18 Dec 2008 07:25:36
Message: <494a4140$1@news.povray.org>
>> *Clearly* you're not a betting man. ;-)
> 
> Not with anything as trivial as money. ;)

Oh I see... You wager with beer, eh?


Post a reply to this message

From: Stephen
Subject: Re: Problem of the day
Date: 18 Dec 2008 07:53:31
Message: <pshkk41c3dfrvgd62fbs461eipfdsn3fvp@4ax.com>
On Thu, 18 Dec 2008 12:25:37 +0000, Invisible <voi### [at] devnull> wrote:

>>> *Clearly* you're not a betting man. ;-)
>> 
>> Not with anything as trivial as money. ;)
>
>Oh I see... You wager with beer, eh?

Generally with mars bars.
-- 

Regards
     Stephen


Post a reply to this message

From: Invisible
Subject: Re: Problem of the day
Date: 18 Dec 2008 07:55:00
Message: <494a4824$1@news.povray.org>
>> Oh I see... You wager with beer, eh?
> 
> Generally with mars bars.

Eww... beer and mars bars?? o_O


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 4 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.