In probability theory and statistics, the normal distribution (sometimes Gaussian distribution, bell curve) is a probability distribution given by:

where is the mean and is the variance. One of the key properties of the normal distribution is that:

  • About 68% of the population lies within one standard deviation of the median.
  • About 95% within two and 99.7% within three.

Because this idea is true for any normal population, we may be motivated to convert into a set of “standard units”. This leads to the idea of the z-score, which we can use to work backwards and calculate the mean/standard deviation/sample.

The parameter can be produced with the softplus function: