statistics.NormalDist.mean

Full name
statistics.NormalDist.mean
Library
statistics
Syntax

statistics.NormalDist.mean

Description

The mean attribute of an object of type statistics.NormalDist returns the arithmetic mean of the distribution.

Parameters

The statistics.NormalDist.mean attribute accepts no arguments.

Result

The statistics.NormalDist.mean attribute returns a value of type float.

Examples

If we start from the following normal distribution:

dist = statistics.NormalDist(mu = 5, sigma = 2)

...we can obtain its arithmetic mean with the following code:

dist.mean
5.0
Submitted by admin on Sun, 04/11/2021 - 11:48