statistics.NormalDist.median

Full name
statistics.NormalDist.median
Library
statistics
Syntax

statistics.NormalDist.median

Description

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

Parameters

The statistics.NormalDist.median attribute accepts no arguments.

Result

The statistics.NormalDist.median 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 median with the following code:

dist.median
5.0
Submitted by admin on Sun, 04/11/2021 - 11:55