Assume the target probability density function is supported where the proposal probability density function is positive and that the envelope constant is finite. Any satisfies , and integration gives . For each attempt draw independently and . Accept if ; otherwise discard it and repeat. Independent attempts give independent accepted values. A finite pre-generated list of independent proposal draws can be screened with independent uniforms in the same way, though the number retained is random. If , this fixed-envelope rejection sampling method cannot be used with that proposal.
For any measurable set , integrating the joint acceptance event in rejection sampling gives
Setting equal to the whole support yields . Thus
To verify repeated attempts directly, the probability that the first accepted observation falls in is
With finite , eventual acceptance has probability one. Applying the same argument after each success proves that the retained sequence consists of independent draws from the target.
The acceptance probability is , so
For the given proposal probability density function , every valid envelope must have . Rejection increases with , so the optimal envelope is , giving rejection probability . This optimizes the constant for the fixed proposal; it does not assert that is the best possible proposal. For densities specified only almost everywhere, an essential supremum is sufficient.
Write . A proper target requires , and a proper proposal requires . Normalization gives and the Pareto distribution proposal on . Their ratio is
The 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 is
The 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 rule
Equivalently 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 (0)

There are currently no matching articles.