Overview
Rejection Sampling draws from a proposal distribution and accepts only samples that pass a probability test.
Samples from a target distribution by rejecting some easier samples.
Compact metadata for implementation and discovery.
Rejection Sampling draws from a proposal distribution and accepts only samples that pass a probability test.
Quick facts
Runtime and memory behavior at a glance.
Best
O(k)
Average
O(k / a)
Worst
O(k / a)
Space
O(k)
accept if u <= target(x) / (M * proposal(x))Accepts proposals in proportion to how well they match the target distribution.
Show candidate points under a curve being accepted or rejected.
Rejection Sampling operates in O(k / a) time and O(k) space within the Sampling family. Key governing relation: accept if u <= target(x) / (M * proposal(x)). Often compared with Importance Sampling and Inverse Transform Sampling.
What each reference supports for this entry.
Random variate generation reference for Rejection Sampling's distribution-sampling mechanism and acceptance or transform rules.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Randomness & Sampling · Core
Rejection sampling uses proposal draws and acceptance tests, while inverse transform sampling uses an inverse CDF.
Compare with thisRandomness & Sampling · Core
Bootstrap Resampling and Rejection Sampling address nearby randomness and sampling problems but make different implementation tradeoffs.
Compare with thisRandomness & Sampling · Core
Cluster Sampling and Rejection Sampling address nearby randomness and sampling problems but make different implementation tradeoffs.
Compare with thisRandomness & Sampling · Core
Hamiltonian Monte Carlo and Rejection Sampling address nearby randomness and sampling problems but make different implementation tradeoffs.
Compare with thisBoth use proposal distributions for probabilistic estimation or generation.
Rejection sampling uses proposal draws and acceptance tests, while inverse transform sampling uses an inverse CDF.