PyDocs

Nav

Numeric and Mathematical Modules

NormalDist

statistics

class · Added in 3.8 (source)
  • NormalDist(mu=0.0, sigma=1.0)
Normal distribution of a random variable
Members of NormalDist

c

cdf
Cumulative distribution function.

f

from_samples
Make a normal distribution instance from sample data.

i

inv_cdf
Inverse cumulative distribution function.

m

mean
Arithmetic mean of the normal distribution.
median
Return the median of the normal distribution
mode
Return the mode of the normal distribution

o

overlap
Compute the overlapping coefficient (OVL) between two normal distributions.

p

pdf
Probability density function.

q

quantiles
Divide into *n* continuous intervals with equal probability.

s

samples
Generate *n* samples for a given mean and standard deviation.
stdev
Standard deviation of the normal distribution.

v

variance
Square of the standard deviation.

z

zscore
Compute the Standard Score.
1 Example
>>> temperature_february = NormalDist(5, 2.5)             # Celsius
>>> temperature_february * (9/5) + 32                     # Fahrenheit
NormalDist(mu=41.0, sigma=4.5)
from the Python docs
See Also
No see-alsos for statistics/NormalDist
0 Notes
No notes for NormalDist