Statistics Attributes

statistics.NormalDist.variance

Read the squared standard deviation of the distribution.

Formal Syntax & Structure

python syntaxpython
distribution.variance

Return Value

float

Floating-point distribution metadata.

Working Example

Example Snippetpython
import statisticsprint(statistics.NormalDist(12, 3).variance)
Python Reference