Skip to content
BIASED

The change of variables

Block 1 of 8~2 min

Exact likelihood and samples

Generate and evaluate

In Wasserstein GANs, a critic guided a generator without providing a normalized density for each input. A normalizing flow trades architectural freedom for an invertible map and an exactly evaluable density. Unlike a VAE's approximate posterior and ELBO, its encoding is deterministic and its likelihood needs no variational bound.

Keep the directions explicit. Here f:x↦zf:x\mapsto z encodes data into the base distribution, following this course's notation. Write F=f−1F=f^{-1} for generation, z↦xz\mapsto x. The linked longer note calls its generating map ff; the mathematics is the same after exchanging the names.

A standard flow uses differentiable bijections with differentiable inverses between spaces of the same dimension. Draw zz from a known base density, then generate x=F(z)x=F(z). To score an observed xx, encode it to z=f(x)z=f(x) and account for the change in volume. Invertibility alone does not tell us that both directions are cheap; the layer design determines that.

Answers are saved on the server and tied to this browser until you sign in.

Go deeper — optional

Code and labs do not count toward the main percentage or the certificate.

  • Density and volume in a flowoptional

    Fit the reviewed synthetic affine flow, compare complete and missing-Jacobian objectives, then check reflection and a new two-coordinate coupling.

    ~20 min · easier on a computer · Read the matching topic. Python standard library only; no downloads.

    Self-check in the notebook — not part of mastery or the certificate.