normal¶
- final class boring_math.probability_distributions.distributions.normal.Normal¶
Bases:
ContDistClass 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₁andX₂are Normally distributed thenaX₁ + 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.