Normalising flows: interactive change-of-variables and layer stacking

log p(x) = log p_z(f⁻¹(x)) + log|df⁻¹/dx|
The orange probe x tracks through the formula live. Stretching spreads probability — density must shrink. Squishing concentrates it — density grows.