normal¶
- final class boring_math.probability_distributions.distributions.normal.Normal¶
Bases:
ContDistClass for visualizing Normal distributions
The Normal, also called Gaussian, distribution is a continuous probability distribution with probability density function
f(x) = (1/√(2πσ²))exp(-(x-μ)²/2σ²)where
μis the mean valueσis the standard deviation
- __init__(mu: float = 0.0, sigma: float = 1.0)¶
init
- param mu:
The mean of the normal distribution.
- param sigma:
The std deviation of the normal distribution.
- __repr__() str¶
repr string
- returns:
The string ‘Normal(μ, σ)’ where μ is the mean and σ is the std deviation of the distribution.
- __str__() str¶
user string
- returns:
The string ‘Normal(mu=μ, sigma=σ)’ where μ is the mean and σ is the std deviation of the distribution.
- pdf(x: float) float¶
Normal PDF
Normal probability distribution function.
- param x:
x ∈ [-∞, ∞]
- returns:
Value of the PDF at x.