Astroinformatics / Further Foundations

Inversion Sampling: Turning Uniform Randomness into a Universe

Follow equally likely uniform draws through a quantile function to build a non-uniform population.

Read the lecture →
The principleIf U is Uniform(0,1), then F−1(U) follows the target distribution. Uniform probabilities need not produce uniform values.
Uniform draws transformed
Maximum empirical-CDF discrepancy
Target probability inside view

Uniform probability → inverse CDF → value

Purple: target CDFOrange guides: latest twelve drawsTeal dots: transformed draws

The transformed population, on a log scale

Orange: revealed drawsTeal: target density per log10 unit

Both horizontal axes are log10(value). The density includes the Jacobian ln(10) × value; the CDF does not need a density correction.