The latent variable and the angle
The code draws the latent samples and applies the two maps. The generator, the angle map and the noise scale are the only ingredients.Code
Code
The curve without noise
Without the noise term, every sample is and lies exactly on the unit half-circle.Adding noise
Adding gives each point a small Gaussian cloud around its position on the arc. The result is a half-moon whose band extends about around the arc.Code
Code
Mapping a lower dimension to a higher one
The latent space here has one dimension and the data space has two. A latent variable model can do this because is only required to be a function from the latent space to the data space. An invertible flow cannot. A flow is a smooth bijection, so its input and output have the same dimension, and the change of variables formula relates the two densities through a square Jacobian. A one-dimensional Gaussian cannot be turned into a distribution on a two-dimensional space by such a map. The latent variable model avoids the restriction by letting the noise term fill in the missing dimension.Angle and radius distributions
The angle is uniform on . The Kolmogorov-Smirnov statistic, the largest gap between the empirical CDF and the uniform CDF, is of order for samples from the uniform distribution. The radius follows a Rice distribution. The generator places every point at distance 1 from the origin, so is the length of a vector with mean of length 1 plus isotropic Gaussian noise of scale . That length is Rice distributed with parameters and . The code compares the empirical radii with this distribution.Code
Code
Found an error on this page? Report an issue.

