- #1
BOAS
- 553
- 19
Hello,
I am looking at different methods for generating random numbers from the beta distribution. I am a bit confused about the following statement:
"It is known that if ##a, b ∈ N_{>0} = \{1, 2, 3, . . .\}##, ##Y = \frac{\sum_{i=1}^a X_i}{\sum_{j=1}^{a+b}X_k}## is ##\mathrm{Be}(a, b)##-distributed where ##X_1, X_2, . . .## are IID Exp(1) random variates."
What I am confused by is the different intervals of support that the beta distribution and exponential distribution have. The beta distribution is supported on [0,1] whereas the exponential distribution on [0, inf).
It seems that this method for generating samples from the beta distribution results in values greater than 1 which should otherwise be zero.
So what does one typically do in this situation?
Generate samples from a truncated exponential?
Throw away samples that are outside the support interval of the beta distribution?
I hope my question is clear,
thank you
I am looking at different methods for generating random numbers from the beta distribution. I am a bit confused about the following statement:
"It is known that if ##a, b ∈ N_{>0} = \{1, 2, 3, . . .\}##, ##Y = \frac{\sum_{i=1}^a X_i}{\sum_{j=1}^{a+b}X_k}## is ##\mathrm{Be}(a, b)##-distributed where ##X_1, X_2, . . .## are IID Exp(1) random variates."
What I am confused by is the different intervals of support that the beta distribution and exponential distribution have. The beta distribution is supported on [0,1] whereas the exponential distribution on [0, inf).
It seems that this method for generating samples from the beta distribution results in values greater than 1 which should otherwise be zero.
So what does one typically do in this situation?
Generate samples from a truncated exponential?
Throw away samples that are outside the support interval of the beta distribution?
I hope my question is clear,
thank you