Skip to content

Instantly share code, notes, and snippets.

View iamdv's full-sized avatar

DV iamdv

View GitHub Profile
@willium
willium / population.R
Created November 14, 2015 09:42
Population variance and standard deviation in R
pop.var <- function(x) var(x) * (length(x)-1) / length(x)
pop.sd <- function(x) sqrt(pop.var(x))