AI engineering glossary · Probability

What is inverse transform sampling?

Inverse transform sampling: A method for generating random values from any distribution: draw a uniform number u between 0 and 1 and return the quantile at u, that is, the inverse of the cumulative distribution function evaluated at u.

Level: advancedTopic: Probability

Inverse transform sampling: an example

For an exponential distribution with rate lambda, x = -ln(1 - u) / lambda turns uniform draws into exponential waiting times.

Related terms

More Probability terms

Where you learn it

Inverse transform sampling is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.