varPop
Introduced in: v1.1.0 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
This function uses a numerically unstable algorithm. If you need numerical stability in calculations, use the
varPopStable function. It works slower but provides a lower computational error.VAR_POP
Arguments
Returned value
Returns the population variance of x. Float64
Examples
Computing population variance
Query
Response