You are here : python_3statisticsstatisticspvariance

statistics.pvariance() - statistics

Return the population variance of data, a non-empty iterable of real-valued
numbers.  Variance, or second moment about the mean, is a measure of the
variability (spread or dispersion) of data.  A large variance indicates that
the data is spread out; a small variance indicates it is clustered closely
around the mean.


Syntax

statistics.pvariance(data, mu=None)


Example

>>> data = [0.0, 0.25, 0.25, 1.25, 1.5, 1.75, 2.75, 3.25]
>>> pvariance(data)
1.25


Output / Return Value


Limitations


Alternatives / See Also


Reference