Calculate the population variance or standard deviation of a vector.
var_pop(x)
sd_pop(x)
(Numeric) vector.
The population variance or standard deviation of x
.
Unlike var
, which returns the sample variance,
var_pop()
returns the population variance. sd_pop()
returns the standard deviation based on the population variance.