View source: R/general_functions.R
pop_var | R Documentation |
Computes the population variance as defined by
\sigma^2=\frac{1}{N}\sum_{i=1}^N(x_i-\mu)^2
where \mu
is the population mean (\frac{1}{N}\sum_{i=1}^Nx_i
)
and N
is the size of the population
pop_var(x)
x |
A numerical vector |
The population variance of this vector
pop_var(c(2, 3, 4, 5))
pop_var(rnorm(20, 1, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.