Skip to content

pvariance

In std/stats.

reduction fn pvariance(self: Collection<Int>) : Option<Float>
reduction fn pvariance(self: Collection<Float>) : Option<Float>
reduction fn pvariance(self: Collection<Decimal>) : Option<Decimal>

The population variance, the sum of squared deviations from the mean divided by n, or none over an empty collection: [1, 2, 3, 4] | pvariance is 1.25.