varPop
varPop
Calculates the population variance:
Syntax
Alias: VAR_POP.
Parameters
Returned value
- Returns the population variance of
x.Float64.
Example
Query:
Result:
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
Note
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.
Syntax
Aliases: VAR_POP
Arguments
Returned value
Returns the population variance of x. Float64
Examples
Computing population variance