tag:blogger.com,1999:blog-3824394956672712858.post8507135245848321815..comments2024-01-26T23:57:05.224-08:00Comments on Probability Puzzles: The Expected Draws to Sum over One.Unknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3824394956672712858.post-48926601004712354062013-02-26T20:47:27.715-08:002013-02-26T20:47:27.715-08:00Its the same if it were uniform. The simplex way i...Its the same if it were uniform. The simplex way is the popular "text-book" way out there. I think something can be done for the uniform distribution case by observing that the natural log of a uniform random variable is exponentially distributed. But I'ven't given it much thought yet.RumpelStiltSkinhttps://www.blogger.com/profile/09194504426856651927noreply@blogger.comtag:blogger.com,1999:blog-3824394956672712858.post-56358542885725831322013-02-26T16:44:34.296-08:002013-02-26T16:44:34.296-08:00Thanks for fixing the type of distribution. Do you...Thanks for fixing the type of distribution. Do you know what the result might be if it were indeed a uniform distribution, or is there any difference? I followed Enrique in testing this programatically and encountered the same result, but I thought that random number generators for most languages pick numbers uniformly. Admittedly I've made zero effort in answering my own questions, this was just a passing wonder.Perlaza1https://www.blogger.com/profile/06869577220701014397noreply@blogger.comtag:blogger.com,1999:blog-3824394956672712858.post-31402462108738471842013-02-24T10:52:06.419-08:002013-02-24T10:52:06.419-08:00numero=zeros(10000000,1);
for j=1:10000000
s...numero=zeros(10000000,1);<br /><br />for j=1:10000000<br /><br /> suma=0;<br /><br /><br /> i=0;<br /><br /> while(suma<1)<br /> i = i + 1;<br /> suma = suma +rand;<br /><br /> end<br /> <br /> numero(j)=i;<br /><br /><br />end<br /><br />mean(numero)-exp(1)<br /><br /><br />¬ 1e-4Enriquehttps://www.blogger.com/profile/13714078549473644426noreply@blogger.com