Skip to content

Instantly share code, notes, and snippets.

View iamdv's full-sized avatar

Infinity iamdv

  • New Jersey
  • 13:55 (UTC -12:00)
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))