ID EN
Statistics

stdev

Python 3.11

Return the sample standard deviation (the square root of the sample variance). See variance() for arguments and other details.

Syntax

PYTHON
statistics.stdev(data, xbar=None)

Examples

Example 1
PYTHON
>>> stdev([1.5, 2.5, 2.5, 2.75, 3.25, 4.75])
1.0810874155219827

See Also

variance()