basic statistics functions mean, median, quantile, variance