Overview
Inverse transform sampling is exact when the inverse cumulative distribution function is available or easy to approximate.
Samples a target distribution by applying its inverse CDF to uniform random values.
Compact metadata for implementation and discovery.
Inverse transform sampling is exact when the inverse cumulative distribution function is available or easy to approximate.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(sample count)
Worst
O(sample count)
Space
O(1)
x = F_inverse(u)Transforms a uniform random value into a sample from the target distribution.
Plot generated samples against the target distribution or domain.
Inverse Transform Sampling should be used with the assumptions and tradeoffs of distribution Sampling in mind.
What each reference supports for this entry.
Random variate generation reference for Inverse Transform Sampling inverse CDF sampling and random variate transformation.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Randomness & Sampling · Core
For discrete distributions, alias tables provide faster repeated sampling.
Compare with thisRandomness & Sampling · Core
Inverse transform can sample from cumulative weights, while alias tables preprocess for constant-time draws.
Compare with thisFor discrete distributions, alias tables provide faster repeated sampling.
Inverse transform sampling uses an inverse CDF instead of proposal rejection.