On this page
statistics.pstdev
Prev: statistics.NormalDist | Up: statistics | Next: statistics.pvariance
Rel: statistics.correlation, statistics.covariance, statistics.fmean, statistics.geometric_mean
Ref: docs.python.org — statistics.pstdev
Tags: #public #python3 #stdlib #statistics
Import
import statistics
from statistics import pstdev
Signature & Overview
statistics.pstdev(data, mu=None)
Return the square root of the population variance.
Usage
import statistics
assert statistics.pstdev([2, 4, 4, 4, 5, 5, 7, 9]) == 2.0
Gotchas
- Population standard deviation ($N$ denominator): Use
stdev()for a sample ($N - 1$).
REPL Inspect
from statistics import pstdev
help(pstdev)
Linked from
Related notes
- tuts/python3/stdlib_module/statistics/NormalDist Linked here; links to this page; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/pvariance Linked here; links to this page; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/statistics/correlation Linked here; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/covariance Linked here; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/fmean Linked here; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/geometric_mean Linked here; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/harmonic_mean shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/kde shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/kde_random shared tags: #statistics, #stdlib