On this page
  1. statistics.pstdev
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from statistics import pstdev
help(pstdev)

Linked from

Related notes