Write . A proper target requires , and a proper proposal requires . Normalization gives and the Pareto distribution proposal on . Their ratio isThe derivative of its logarithm is . It is positive before and negative after it. Since , the maximum occurs within the proposal support. Consequently the tight envelope for truncated gamma rejection sampling with a Pareto envelope isThe accompanying acceptance rule can be evaluated without :
Integrating the Pareto distribution proposal yields for . For an independent uniform random variable , solve to obtain the inverse transform sampling ruleEquivalently because is also uniformly distributed. In implementation choose strictly between zero and one so that the inverse is finite.
Every independent proposal/uniform pair succeeds with probability . The number retained from a fixed budget of 100 attempts therefore has a binomial distribution, rather than a fixed value:Conditioned on the accept/reject indicators, each retained value still has the target probability density function; the random output count is a separate issue from the correctness of those retained draws.
Articles by others on the same topic
There are currently no matching articles.