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 1 · Marginal transforms

The atomic operation of Gaussianization is a one-dimensional map T=Φ−1∘FT = \Phi^{-1} \circ F that sends one coordinate to a standard normal, for some monotone estimate FF of its CDF. Every method in the later parts stacks these maps between rotations, so this part builds them every way that matters: estimating FF, computing the log-determinant a flow needs, inverting the map and training it, each time checked against rbig and gauss_flows.

Every estimator notebook carries a log-determinant section, because the per-coordinate term (5) is what a flow sums in log_prob: the density of the estimated CDF is the log-determinant. This makes the change of variables of Part 0 concrete, and the forward and inverse trade-off of (4) shows up again as root finding for the smooth CDFs and a closed-form inverse for the splines.

#NotebookWhat you take away
00ECDF and histogramsthe probability integral transform (1) Gaussianizes with ranks alone, the DKW bound (3) says how fast the empirical CDF converges, and its log-determinant is degenerate until a histogram (6) smooths it
01KDE and mixture CDFssmooth CDFs from a kernel estimate (1) or a Gaussian mixture (2), with an analytic log-determinant, and how to choose the bandwidth and the number of components by BIC (3)
02Spline CDFsmonotonicity is what a spline CDF must keep, and the rational-quadratic spline (2) keeps it with a closed-form inverse (4) and derivative (5)
03Learnable mixture CDFthe marginal as a trainable layer: an unconstrained parametrisation (2) trained end to end by maximum likelihood (1)
04Inversion strategiesNewton (1) against bisection, the safeguarded hybrid (3), the gradient of an inverse through the implicit function theorem (5) or one Newton step (6), and a whole batch with vmap