varPop
varPop
Introduced in: v1.1
Calculates the population variance.
The population variance is calculated using the formula:
Where:
- is each value in the population
- is the population mean
- is the population size
注意
此函数使用数值不稳定的算法。如果您在计算中需要数值稳定性,请使用 varPopStable 函数。该函数运行速度较慢,但计算误差更小。
Syntax
Aliases: VAR_POP
Arguments
Returned value
Returns the population variance of x. Float64
Examples
Computing population variance