| • Science | • People | • Locations | • Timeline |
random from any probability distribution, given its cumulative distribution function (cdf).
The problem that the inverse transform sampling method solves is as follows:
Many programming languages have the ability to generate pseudo-randomnumbers which are effectively distributed according to the standard uniform distribution. If a random variable has that distribution, then the probability of its falling within any subinterval (a, b) of the interval from 0 to 1 is just the length b - a of that subinterval.
The inverse transform sampling method works as follows:
The following diagram may help the reader to visualise how the method works:
The rejection sampling method .