Normal#

class Normal(loc, scale)[source]#

Bases: ContinuousDistribution

Class for the Normal (Gaussian) distribution.

Parameters:
  • loc (float) – Mean of the distribution (mu). Can be any real number.

  • scale (float) – Standard deviation of the distribution (sigma). Must be positive.

Variables:
  • loc (float) – Mean of the distribution.

  • scale (float) – Standard deviation of the distribution.

Methods

ppf(P)

Percent Point Function (PPF) or quantile function.

pdf(X)

Probability density function (PDF).

lpdf(X)

Log of the Probability Density Function (LPDF).

log_gradients(X)

Calculates the gradients of the log-PDF w.r.t.

generate(size)

Generates random samples from the distribution.