normal

final class boring_math.probability_distributions.distributions.normal.Normal

Bases: ContDist

Class for visualizing Normal distributions.

Note

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__(μ: float = .0, σ: float = 0):)
__repr__() str

Return repr(self).

pdf(x: float) float

Normal probability distribution function.

cdf(x: float) float

Normal cumulative probability distribution function.

__add__(other: Self | float) Self

Add together two Normal distributions.

Normal distributions are stable, thus if two independent random variables X₁ and X₂ are Normally distributed then aX₁ + bX₂ is also Normally distributed with μ = μ₁ + μ₂ and σ² = a²σ₁² + b²σ₂².

__mul__(factor: float) Self

Scale Normal distribution by a non-zero factor.

__rmul__(factor: float) Self

Scale Normal distribution by a non-zero factor.