Basic weighted statistics for Julia.