statistics.NormalDist.stdev

Full name
statistics.NormalDist.stdev
Library
statistics
Syntax

statistics.NormalDist.stdev

Description

The stdev attribute of an object of type statistics.NormalDist returns the standard deviation of the distribution.

Parameters

The statistics.NormalDist.stdev attribute accepts no arguments.

Result

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

dist.stdev
2.0
Submitted by admin on Thu, 04/15/2021 - 15:01