Calculation of mean, median, mode, and range