How many draws of a random number [0,1] are needed to sum to 1
bayesianthink.blogspot.com
How many draws of a random number [0,1] are needed to sum to 1
1–10 of 42 posts
Re: How many draws of a random number [0,1] are needed to sum to 1
#2Re: How many draws of a random number [0,1] are needed to sum to 1
#3Re: How many draws of a random number [0,1] are needed to sum to 1
#4Isn't the pdf of a uniform distribution just f(x) = 1. What he gave was an exponential distribution with rate parameter lambda. The rest of the math seems correct. But the dependence on e is not surprising as it is relevant to the initial pdf. Am I missing something?
Re: How many draws of a random number [0,1] are needed to sum to 1
#5Isn't the pdf of a uniform distribution just f(x) = 1. What he gave was an exponential distribution with rate parameter lambda. The rest of the math seems correct. But the dependence on e is not surprising as it is relevant to the initial pdf. Am I missing something?
Re: How many draws of a random number [0,1] are needed to sum to 1
#6Isn't the pdf of a uniform distribution just f(x) = 1. What he gave was an exponential distribution with rate parameter lambda. The rest of the math seems correct. But the dependence on e is not surprising as it is relevant to the initial pdf. Am I missing something?
Re: How many draws of a random number [0,1] are needed to sum to 1
#7Isn't the pdf of a uniform distribution just f(x) = 1. What he gave was an exponential distribution with rate parameter lambda. The rest of the math seems correct. But the dependence on e is not surprising as it is relevant to the initial pdf. Am I missing something?
It's very easy to verify experimentally that e is likely the correct answer.
(average (map-n (fn ()
(1+ (position-if (let1 x 0
(fni (Re: How many draws of a random number [0,1] are needed to sum to 1
#8Isn't the pdf of a uniform distribution just f(x) = 1. What he gave was an exponential distribution with rate parameter lambda. The rest of the math seems correct. But the dependence on e is not surprising as it is relevant to the initial pdf. Am I missing something?
It's very easy to verify experimentally that e is likely the correct answer.
import random
totalsteps = 0
for i in range(100000000):
sum = 0.0
steps = 0
while sum Re: How many draws of a random number [0,1] are needed to sum to 1
#9Isn't the pdf of a uniform distribution just f(x) = 1. What he gave was an exponential distribution with rate parameter lambda. The rest of the math seems correct. But the dependence on e is not surprising as it is relevant to the initial pdf. Am I missing something?
It's very easy to verify experimentally that e is likely the correct answer.
EDIT: Beaten to it :)