Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Part 0 · Foundations

The ideas every later method reuses. Before fitting any flow, these notebooks build the small set of tools a Gaussianization method is made of, first by hand in JAX and then confirmed against rbig and gauss_flows: the change-of-variables formula and its log-determinant, how log-determinants compose, the trade-off between the forward and inverse directions, why N(0,I)\mathcal{N}(\vect{0}, \mat{I}) is the target, what a density destructor is, the numerics that keep one stable, and how to check that the result is Gaussian.

Each notebook follows the same pattern: derive the idea by hand, then show the same quantity coming out of the library, so the packages stop being black boxes.

#NotebookWhat you take away
00Change of variablesthe change-of-variables formula (3), and why a bijector’s log_det is its Jacobian term
01Compositionlog-determinants of stacked layers add, (4), and rotations cost nothing
02Forward vs inversethe density direction is closed form and the sampling direction (1) needs a root find (4), so a Gaussianization flow samples far slower than it scores
03Why a standard Gaussianthe Gaussian has maximum entropy, (1), the standard one factorises so its total correlation is zero, (4), and its score is −z-\vect{z}
04Density destructorsa flow is an invertible map that sends the data to a standard Gaussian, (1), built by alternating a marginal Gaussianization with a rotation
05Numerical mechanicswhere round trips lose accuracy, the clamp (1) and the log-space probit (3), float32 drift in deep log-determinant sums, and the round-trip test (4)
06Gaussianity diagnosticsmarginal checks miss dependence, (3); an energy test against the standard normal, (4), certifies the joint