Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
which ensures that the [ratio-of-almost-uniform] set I defined in my slides last week
is bounded in u. Since the transform g is the derivative of the inverse of h (!),
the parametrisation of the boundary of H is
which means it remains bounded if (a) a≤1 [to ensure boundedness at infinity] and (b) the limit of v(x) at zero [where I assume the asymptote stands] is bounded. Meaning
For instance, this holds for Gamma distributions with shape parameter larger than ½…
Working a wee bit more on the problem led me to realise that resorting an arbitrary cdf Φ instead of the logistic one could solve the problem for most distributions, including all Gammas. Indeed, the boundary of H is now
which means it remains bounded if φ has very heavy tails, like 1/x². To handle the explosion when x=0. And an asymptote itself at zero, to handle the limit at infinity when f(x) goes to zero.
Filed under: Books, pictures, R, Statistics Tagged: Gamma generator, Luc Devroye, Non-Uniform Random Variate Generation, random number generation, ratio of uniform algorithm, University of Warwick
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.